From 8377e9442952a44815c06544d18875319832569e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 13:39:31 -0700 Subject: [PATCH 001/637] Initial commit --- .gitignore | 288 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 288 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..940794e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,288 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ +**/Properties/launchSettings.json + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Typescript v1 declaration files +typings/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs From 8487a19eae7955bea2f694fe2497b35b6ee1fae3 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 15:36:39 -0700 Subject: [PATCH 002/637] Established preliminary model --- .../Attributes/EditorAttribute.cs | 73 +++++++++++++++++++ .../Attributes/HtmlEditorAttribute.cs | 50 +++++++++++++ .../Collections/EditorAttributeCollection.cs | 52 +++++++++++++ .../EditorBindingModel.cs | 49 +++++++++++++ Ignia.Topics.Editor.Models/EditorViewModel.cs | 63 ++++++++++++++++ .../Ignia.Topics.Editor.Models.csproj | 53 ++++++++++++++ .../Ignia.Topics.Editor.Models.sln | 25 +++++++ .../Properties/AssemblyInfo.cs | 36 +++++++++ 8 files changed, 401 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/HtmlEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Collections/EditorAttributeCollection.cs create mode 100644 Ignia.Topics.Editor.Models/EditorBindingModel.cs create mode 100644 Ignia.Topics.Editor.Models/EditorViewModel.cs create mode 100644 Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj create mode 100644 Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln create mode 100644 Ignia.Topics.Editor.Models/Properties/AssemblyInfo.cs diff --git a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs new file mode 100644 index 00000000..edf22dd7 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs @@ -0,0 +1,73 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a generic attribute in the Topic Editor. + /// + /// + /// + public class EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private string _key = null; + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public EditorAttribute() { + } + + /*========================================================================================================================== + | KEY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The unique name associated with the specified attribute. + /// + public string Key { + get; + set; + } + + /*========================================================================================================================== + | VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The value associated with the attribute. + /// + public string Value { + get; + set; + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + /// + /// Unlike the property, which simply returns the literal value associated with the attribute, the + /// method is intended to be overwritten by derived versions of the + /// class, in order to provide specific serialization instructions. + /// + public virtual string GetValue() { + return Value; + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/HtmlEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/HtmlEditorAttribute.cs new file mode 100644 index 00000000..41e32423 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/HtmlEditorAttribute.cs @@ -0,0 +1,50 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: HTML EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of an HTML attribute in the Topic Editor. + /// + /// + /// + public class HtmlEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private string _key = null; + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public HtmlEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + /// + /// The CkEditor that Ignia uses for the frontend will occasionally inject extraneous line breaks. Prior to saving, this + /// strips any extra line breaks from the body. + /// + public override string GetValue() { + return Value.Replace("

 

", "").Replace("

 

", "").Replace("

", "").Replace("\r\n", ""); + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Collections/EditorAttributeCollection.cs b/Ignia.Topics.Editor.Models/Collections/EditorAttributeCollection.cs new file mode 100644 index 00000000..6a42232b --- /dev/null +++ b/Ignia.Topics.Editor.Models/Collections/EditorAttributeCollection.cs @@ -0,0 +1,52 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Diagnostics.Contracts; +using System.Linq; +using System.Text; +using Ignia.Topics.Editor.Models.Attributes; + +namespace Ignia.Topics.Editor.Models.Collections { + + /*============================================================================================================================ + | CLASS: EDITOR ATTRIBUTE COLLECTION + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a keyed collection of instances. + /// + public class EditorAttributeCollection : KeyedCollection { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public EditorAttributeCollection() : base(StringComparer.InvariantCultureIgnoreCase) { + } + + /*========================================================================================================================== + | OVERRIDE: GET KEY FOR ITEM + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Method must be overridden for the EntityCollection to extract the keys from the items. + /// + /// The object from which to extract the key. + /// The key for the specified collection item. + protected override string GetKeyForItem(EditorAttribute item) { + Contract.Assume(item != null, "Assumes the item is available when deriving its key."); + return item.Key; + } + + } //Class + +} //Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/EditorBindingModel.cs b/Ignia.Topics.Editor.Models/EditorBindingModel.cs new file mode 100644 index 00000000..e89058de --- /dev/null +++ b/Ignia.Topics.Editor.Models/EditorBindingModel.cs @@ -0,0 +1,49 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using Ignia.Topics.Editor.Models.Collections; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: EDITOR BINDING MODEL + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents a model for retrieving data from the editor interface, primarily as a collection of + /// instances, via the . + /// + /// + /// + public class EditorBindingModel { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public EditorBindingModel() { + Attributes = new EditorAttributeCollection(); + } + + /*========================================================================================================================== + | ATTRIBUTES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Collection of attribute values extracted from the post. + /// + public EditorAttributeCollection Attributes { + get; + set; + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/EditorViewModel.cs b/Ignia.Topics.Editor.Models/EditorViewModel.cs new file mode 100644 index 00000000..9c1b971c --- /dev/null +++ b/Ignia.Topics.Editor.Models/EditorViewModel.cs @@ -0,0 +1,63 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: EDITOR VIEW MODEL + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents a model for interacting with the editor interface, including the established list of + /// and their values. + /// + /// + /// + public class EditorViewModel { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public EditorViewModel(Topic topic, ContentType contentType) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set properties + \-----------------------------------------------------------------------------------------------------------------------*/ + Topic = topic; + ContentType = contentType; + + } + + /*========================================================================================================================== + | TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Read-only reference to the current topic being edited, for familiar access to the full context. + /// + public Topic Topic { + get; + } + + /*========================================================================================================================== + | CONTENT TYPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Read-only reference to the current associated with the request. + /// + public ContentType ContentType { + get; + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj new file mode 100644 index 00000000..84e2d808 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + 02a3d98a-bf8a-4150-8fec-45a0d9c322e4 + Library + Properties + Ignia.Topics.Editor.Models + Ignia.Topics.Editor.Models + v4.7 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln new file mode 100644 index 00000000..954e1021 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26730.16 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Models", "Ignia.Topics.Editor.Models.csproj", "{02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DDA291E9-CA6A-4439-8244-50F6914F518F} + EndGlobalSection +EndGlobal diff --git a/Ignia.Topics.Editor.Models/Properties/AssemblyInfo.cs b/Ignia.Topics.Editor.Models/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..ba13cec9 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Ignia.Topics.Editor.Models")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Ignia.Topics.Editor.Models")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("02a3d98a-bf8a-4150-8fec-45a0d9c322e4")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] From f2cdbce7c14e27b26585c1d93fd8ec0cc29ca78d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 16:35:38 -0700 Subject: [PATCH 003/637] Established MVC project This may need to be updated in the future so it is easier to distribute as a component of an existing website (e.g., via NuGet) as opposed to a stand-alone web application. For now, this allows it to be worked with independently while testing. --- .../Ignia.Topics.Editor.Models.sln | 11 + .../App_Start/BundleConfig.cs | 44 +++ .../App_Start/FilterConfig.cs | 35 +++ .../App_Start/RouteConfig.cs | 55 ++++ .../ApplicationInsights.config | 79 ++++++ .../EditorControllerFactory.cs | 60 +++++ Ignia.Topics.Editor.Mvc/Global.asax | 1 + Ignia.Topics.Editor.Mvc/Global.asax.cs | 41 +++ .../Ignia.Topics.Editor.Mvc.csproj | 253 ++++++++++++++++++ .../Properties/AssemblyInfo.cs | 35 +++ Ignia.Topics.Editor.Mvc/Web.Debug.config | 30 +++ Ignia.Topics.Editor.Mvc/Web.Release.config | 31 +++ Ignia.Topics.Editor.Mvc/Web.config | 57 ++++ Ignia.Topics.Editor.Mvc/packages.config | 21 ++ 14 files changed, 753 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/App_Start/BundleConfig.cs create mode 100644 Ignia.Topics.Editor.Mvc/App_Start/FilterConfig.cs create mode 100644 Ignia.Topics.Editor.Mvc/App_Start/RouteConfig.cs create mode 100644 Ignia.Topics.Editor.Mvc/ApplicationInsights.config create mode 100644 Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs create mode 100644 Ignia.Topics.Editor.Mvc/Global.asax create mode 100644 Ignia.Topics.Editor.Mvc/Global.asax.cs create mode 100644 Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj create mode 100644 Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs create mode 100644 Ignia.Topics.Editor.Mvc/Web.Debug.config create mode 100644 Ignia.Topics.Editor.Mvc/Web.Release.config create mode 100644 Ignia.Topics.Editor.Mvc/Web.config create mode 100644 Ignia.Topics.Editor.Mvc/packages.config diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln index 954e1021..94acb103 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln @@ -5,16 +5,27 @@ VisualStudioVersion = 15.0.26730.16 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Models", "Ignia.Topics.Editor.Models.csproj", "{02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Mvc", "..\Ignia.Topics.Editor.Mvc\Ignia.Topics.Editor.Mvc.csproj", "{77022C14-28B2-4182-9F11-796E8B3C73F7}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug CC|Any CPU = Debug CC|Any CPU Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Debug CC|Any CPU.ActiveCfg = Debug|Any CPU + {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Debug CC|Any CPU.Build.0 = Debug|Any CPU {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Debug|Any CPU.Build.0 = Debug|Any CPU {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Release|Any CPU.ActiveCfg = Release|Any CPU {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}.Release|Any CPU.Build.0 = Release|Any CPU + {77022C14-28B2-4182-9F11-796E8B3C73F7}.Debug CC|Any CPU.ActiveCfg = Debug|Any CPU + {77022C14-28B2-4182-9F11-796E8B3C73F7}.Debug CC|Any CPU.Build.0 = Debug|Any CPU + {77022C14-28B2-4182-9F11-796E8B3C73F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {77022C14-28B2-4182-9F11-796E8B3C73F7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {77022C14-28B2-4182-9F11-796E8B3C73F7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {77022C14-28B2-4182-9F11-796E8B3C73F7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Ignia.Topics.Editor.Mvc/App_Start/BundleConfig.cs b/Ignia.Topics.Editor.Mvc/App_Start/BundleConfig.cs new file mode 100644 index 00000000..bf2a703c --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/App_Start/BundleConfig.cs @@ -0,0 +1,44 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System.Web; +using System.Web.Optimization; + +namespace Ignia.Topics.Editor.Mvc { + + /*============================================================================================================================ + | CLASS: BUNDLE CONFIG + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides access to bundles of resources that can easily be embedded in views. + /// + public class BundleConfig { + + /*========================================================================================================================== + | METHOD: REGISTER BUNDLES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provided a configuration reference, used to register new + /// instances. + /// + /// + /// The bundle collection for the server, typically passed from the class. + /// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 + /// + public static void RegisterBundles(BundleCollection bundles) { + + /* + bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( + "~/Scripts/bootstrap.js", + "~/Scripts/respond.js")); + + bundles.Add(new StyleBundle("~/Content/css").Include( + "~/Content/bootstrap.css", + "~/Content/site.css")); + */ + + } + } +} diff --git a/Ignia.Topics.Editor.Mvc/App_Start/FilterConfig.cs b/Ignia.Topics.Editor.Mvc/App_Start/FilterConfig.cs new file mode 100644 index 00000000..04e10e7e --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/App_Start/FilterConfig.cs @@ -0,0 +1,35 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System.Web; +using System.Web.Mvc; + +namespace Ignia.Topics.Editor.Mvc { + + /*============================================================================================================================ + | CLASS: FILTER CONFIG + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Registers filters that can address cross-cutting concerns such as error handling, authentication, and logging. + /// + public class FilterConfig { + + /*========================================================================================================================== + | METHOD: REGISTER GLOBAL FILTERS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provided a configuration reference, used to register new + /// instances. + /// + /// + /// The filter collection for the server, typically passed from the class. + /// + public static void RegisterGlobalFilters(GlobalFilterCollection filters) { + filters.Add(new HandleErrorAttribute()); + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Mvc/App_Start/RouteConfig.cs b/Ignia.Topics.Editor.Mvc/App_Start/RouteConfig.cs new file mode 100644 index 00000000..ba56127f --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/App_Start/RouteConfig.cs @@ -0,0 +1,55 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Routing; + +namespace Ignia.Topics.Editor.Mvc { + + /*============================================================================================================================ + | CLASS: ROUTE CONFIG + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes routes for the MVC application. + /// + public class RouteConfig { + + /*========================================================================================================================== + | METHOD: REGISTER ROUTES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provided a , registers all routes associated with the application. + /// + /// + /// The route collection for the server, typically passed from the class. + /// + public static void RegisterRoutes(RouteCollection routes) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Ignore requests to AXDs (handled by HttpHandler) + \-----------------------------------------------------------------------------------------------------------------------*/ + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + + /*------------------------------------------------------------------------------------------------------------------------ + | Enable attribute-based routing + \-----------------------------------------------------------------------------------------------------------------------*/ + routes.MapMvcAttributeRoutes(); + + /*------------------------------------------------------------------------------------------------------------------------ + | Handle default route convention + \-----------------------------------------------------------------------------------------------------------------------*/ + routes.MapRoute( + name: "Default", + url: "{controller}/{action}/{id}", + defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } + ); + + } + } +} diff --git a/Ignia.Topics.Editor.Mvc/ApplicationInsights.config b/Ignia.Topics.Editor.Mvc/ApplicationInsights.config new file mode 100644 index 00000000..2e0a49ad --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/ApplicationInsights.config @@ -0,0 +1,79 @@ + + + + + + + + + + + search|spider|crawl|Bot|Monitor|AlwaysOn + + + + + + + + + + + + + + + + + + + + + + System.Web.Handlers.TransferRequestHandler + Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler + System.Web.StaticFileHandler + System.Web.Handlers.AssemblyResourceLoader + System.Web.Optimization.BundleHandler + System.Web.Script.Services.ScriptHandlerFactory + System.Web.Handlers.TraceHandler + System.Web.Services.Discovery.DiscoveryRequestHandler + System.Web.HttpDebugHandler + + + + + + + + 5 + + + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs b/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs new file mode 100644 index 00000000..5f12497d --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs @@ -0,0 +1,60 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topic Editor +\=============================================================================================================================*/ +using Ignia.Topics; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.Mvc; +using System.Web.Routing; +using Ignia.Topics.Data.Sql; +using Ignia.Topics.Editor.Mvc.Controllers; + +namespace Ignia.Topics.Editor.Mvc { + + /*============================================================================================================================ + | CLASS: EDITOR CONTROLLER FACTORY + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Acts as the Composition Root for dependency injection. + /// + class EditorControllerFactory : DefaultControllerFactory { + + /*========================================================================================================================== + | GET CONTROLLER INSTANCE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Overrides the factory method for creating new instances of controllers. + /// + /// A concrete instance of an . + protected override IController GetControllerInstance(RequestContext requestContext, Type controllerType) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Register + \-----------------------------------------------------------------------------------------------------------------------*/ + var topicRepository = new SqlTopicRepository("Data Source=(localdb)\ProjectsV13;Initial Catalog=OnTopic;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"); + var rootTopic = topicRepository.Load(); + var topicRoutingService = new TopicRoutingService(topicRepository, requestContext); + + /*------------------------------------------------------------------------------------------------------------------------ + | Resolve + \-----------------------------------------------------------------------------------------------------------------------*/ + if (controllerType == typeof(EditorController)) { + return new EditorController(topicRepository, topicRoutingService.Topic); + } + + return base.GetControllerInstance(requestContext, controllerType); + + /*------------------------------------------------------------------------------------------------------------------------ + | Release + \-----------------------------------------------------------------------------------------------------------------------*/ + //There are no resources to release + + } + + } //Class +} //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Global.asax b/Ignia.Topics.Editor.Mvc/Global.asax new file mode 100644 index 00000000..6e407fd5 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Global.asax @@ -0,0 +1 @@ +<%@ Application Codebehind="Global.asax.cs" Inherits="Ignia.Topics.Editor.Mvc.MvcApplication" Language="C#" %> diff --git a/Ignia.Topics.Editor.Mvc/Global.asax.cs b/Ignia.Topics.Editor.Mvc/Global.asax.cs new file mode 100644 index 00000000..2d28ad1e --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Global.asax.cs @@ -0,0 +1,41 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Optimization; +using System.Web.Routing; + +namespace Ignia.Topics.Editor.Mvc { + + /*============================================================================================================================ + | CLASS: GLOBAL + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides default configuration for the application, including any special processing that needs to happen relative to + /// application events (such as or . + /// + public class MvcApplication : System.Web.HttpApplication { + + /*========================================================================================================================== + | METHOD: APPLICATION START (EVENT HANDLER) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides initial configuration for the application, including registration of MVC routes via the + /// class. + /// + protected void Application_Start() { + AreaRegistration.RegisterAllAreas(); + FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); + RouteConfig.RegisterRoutes(RouteTable.Routes); + BundleConfig.RegisterBundles(BundleTable.Bundles); + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj new file mode 100644 index 00000000..a6495fdb --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -0,0 +1,253 @@ + + + + + + + Debug + AnyCPU + + + 2.0 + {77022C14-28B2-4182-9F11-796E8B3C73F7} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + Ignia.Topics.Editor.Mvc + Ignia.Topics.Editor.Mvc + v4.7 + false + true + + + + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + true + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + False + bin\Ignia.Topics.dll + + + False + bin\Ignia.Topics.Data.Caching.dll + + + False + bin\Ignia.Topics.Data.Sql.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.5\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll + + + + + + + + + + + + + + + + + + + + + + True + ..\Ignia.Topics.Editor.Models\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + + + + + + + True + ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll + + + True + ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll + + + True + ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll + + + True + ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll + + + True + ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll + + + True + ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll + + + True + ..\Ignia.Topics.Editor.Models\packages\WebGrease.1.5.2\lib\WebGrease.dll + + + True + ..\Ignia.Topics.Editor.Models\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll + + + + + ..\Ignia.Topics.Editor.Models\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.2.2.0\lib\net45\Microsoft.ApplicationInsights.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.2.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.WindowsServer.2.2.0\lib\net45\Microsoft.AI.WindowsServer.dll + + + ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web.dll + + + + + + + + + + + Global.asax + + + + + + + + + PreserveNewest + + + + + Web.config + + + Web.config + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {02a3d98a-bf8a-4150-8fec-45a0d9c322e4} + Ignia.Topics.Editor.Models + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + + + + + + + True + True + 54955 + / + http://localhost:54955/ + False + False + + + False + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs b/Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..4003740e --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Ignia.Topics.Editor.Mvc")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Ignia.Topics.Editor.Mvc")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("18159da7-b44e-4681-98c9-f81a2007196b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Ignia.Topics.Editor.Mvc/Web.Debug.config b/Ignia.Topics.Editor.Mvc/Web.Debug.config new file mode 100644 index 00000000..d7712aaf --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Web.Debug.config @@ -0,0 +1,30 @@ + + + + + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Web.Release.config b/Ignia.Topics.Editor.Mvc/Web.Release.config new file mode 100644 index 00000000..28a4d5fc --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Web.config b/Ignia.Topics.Editor.Mvc/Web.config new file mode 100644 index 00000000..f97a1bd7 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Web.config @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/packages.config b/Ignia.Topics.Editor.Mvc/packages.config new file mode 100644 index 00000000..7918f286 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/packages.config @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From f64aff8602e127e65f1b51d4881957f5b819ecee Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 16:36:15 -0700 Subject: [PATCH 004/637] Added dependencies, including new files --- .../Ignia.Topics.Editor.Models.csproj | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 84e2d808..21ccca01 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -1,10 +1,10 @@ - + Debug AnyCPU - 02a3d98a-bf8a-4150-8fec-45a0d9c322e4 + {02A3D98A-BF8A-4150-8FEC-45A0D9C322E4} Library Properties Ignia.Topics.Editor.Models @@ -30,24 +30,25 @@ 4 - - - - - - - - - - - - - - + + bin\Ignia.Topics.dll + + + + + + + + + - + + + + + - + \ No newline at end of file From d99b9fed691a8920ee8d833c0a03dd9e47dcc57e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 16:37:12 -0700 Subject: [PATCH 005/637] Established `Editor` area Placing the editor in an area should help make the project easier to integrate with existing web applications in the future. --- .../Editor/Controllers/EditorController.cs | 85 +++++++ .../Areas/Editor/EditorAreaRegistration.cs | 55 +++++ .../Fonts/glyphicons-halflings-regular.eot | Bin 0 -> 14079 bytes .../Fonts/glyphicons-halflings-regular.svg | 228 ++++++++++++++++++ .../Fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 29512 bytes .../Fonts/glyphicons-halflings-regular.woff | Bin 0 -> 16448 bytes .../Areas/Editor/Shared/Styles/Stylesheet.css | 2 + .../Areas/Editor/Views/Editor/Index.cshtml | 4 + .../Areas/Editor/Views/Shared/Error.cshtml | 13 + .../Areas/Editor/Views/Shared/_Layout.cshtml | 28 +++ .../Areas/Editor/Views/_ViewStart.cshtml | 3 + .../Areas/Editor/Views/web.config | 36 +++ 12 files changed, 454 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.eot create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.svg create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.ttf create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.woff create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/Error.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewStart.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs new file mode 100644 index 00000000..ebf1af06 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -0,0 +1,85 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Repositories; + +namespace Ignia.Topics.Editor.Mvc.Controllers { + + /*============================================================================================================================ + | CLASS: EDITOR CONTROLLER + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides data access and processing for editor related functions. + /// + public class EditorController : Controller { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private ITopicRepository _topicRepository = null; + private Topic _currentTopic = null; + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of a Topic Controller with necessary dependencies. + /// + /// A topic controller for loading OnTopic views. + public EditorController(ITopicRepository topicRepository, Topic currentTopic) { + _topicRepository = topicRepository; + _currentTopic = currentTopic; + } + + /*========================================================================================================================== + | TOPIC REPOSITORY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the Topic Repository in order to gain arbitrary access to the entire topic graph. + /// + /// The TopicRepository associated with the controller. + protected ITopicRepository TopicRepository { + get { + return _topicRepository; + } + } + + /*========================================================================================================================== + | CURRENT TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the current topic associated with the request. + /// + /// The Topic associated with the current request. + protected Topic CurrentTopic { + get { + return _currentTopic; + } + } + + /*========================================================================================================================== + | [GET] INDEX + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Present an editor view bound to a specific topic. + /// + public ActionResult Index() { + return View(); + } + + [HttpPost] + public ActionResult Index(EditorBindingModel) { + return Index(); + } + + } //Class + +} //Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs new file mode 100644 index 00000000..bd869f61 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs @@ -0,0 +1,55 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System.Web.Mvc; + +namespace Ignia.Topics.Editor.Mvc.Areas.Editor { + + /*============================================================================================================================ + | CLASS: EDITOR AREA REGISTRATION + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Registers configuration objects associated with the editor area, including route configuration. + /// + public class EditorAreaRegistration : AreaRegistration { + + /*========================================================================================================================== + | AREA NAME + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes the friendly name for the area. + /// + /// The name of the area. + public override string AreaName { + get { + return "Editor"; + } + } + + /*========================================================================================================================== + | METHOD: REGISTER AREA + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provided a , which allows area-specific configuration of e.g. routes. + /// + /// + /// The , typically passed from the class. + /// + public override void RegisterArea(AreaRegistrationContext context) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Handle OnTopic Web namespace + \-----------------------------------------------------------------------------------------------------------------------*/ + context.Routes.MapRoute( + name: "TopicEditor", + url: "Edit/{*path}", + defaults: new { controller = "Editor", action = "Index", id = UrlParameter.Optional } + ); + + } + + } //Class + +} //Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.eot b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.eot new file mode 100644 index 0000000000000000000000000000000000000000..87eaa434234e2a984c261e0450a2f4ad837aa7b4 GIT binary patch literal 14079 zcma)jRa_K6^zJUrQcHI&-Agwt-Q6i&BGL^KOLw;{-AD_FG)Q-gGzdrvN-EcX-iP~g z&*b^eH{Y4xyv%PN=0ykqC=mnzkp2}Ez<(I(fA#{~JL1@9|&czbr17 z?0>QUi2(qt040DrzyzQTPzI;~05<^oukZrI|7re*(tmmX7j^o_^aj}eC*Svf zS8xM_|1re@Z~iI2{-^mL9EX2e|B>GY!1r$^_@7M#!2iz^{g+$h|9j_j|IfYw09iey z|2e7uJq%=kUm`%z3m_N(;2I^EK8c@Rz+WzA_5K>K_A~&N-y3An#=6kB0L1`ghg@hn zZl7)JRrzdfN4}^l((rOb8!6cPsFL3<+h>Ko$*N(B`~JnKcb$DjB~XQQFl-maOT7?| z=??-O{TBG@KcAzmSNxsJz-Lt-`@AJr0kN!Di;SF6C_P<|x%6Q{;498Vwc}wHl?UCr z{Q~3fpz|ayjwAvkULRl`8oaqCD1Wz4@8$~fj$UC?mYD}9H~K)mrxoe9!WwG7+6D1~ zu)}%fLgSy{-z-;>e_xUdTzZz=OI{SZWnRf9!Z!c1f25WUO+5X9vri&A$czeCIfk$M z9$(eLNbUdRcqZ=w)1@@tN<^z0pQP-fOfjvjK3hvorqiV%Rl2xSOKU%hzr6ahgV9*$ zJlgSvPU509MBT=C+`yifpkEyy8#9c4UL5|r5gWS_tr}Av>(G)ZhAtjcTRS3?SSA9N z_Kegnh`V2N6RU=69p<{&He6g~O%EZ5+2OH{@ca1ru$Z)c3E&|1G!5~|4CfxK{)bF7rn^i` zwcKpWlzAHWR{;3USb36)e|%;$T55rp9tZ<6==s|-B*BebGk#$IYB|(ZrzrewrIl2Q zcVZsN=FLe{6k5m7YDaR%(#gdFf#BlrKVjI$R-nNKpd*2(T6`_?7Tr%rq~E9(yIypk z15x#%OfK;;uk|PQR~)DEppbSH6DmW;v@k*#ZhaG5{w7e$S`ot*K<^C*oB^co5cNr- z84k3(uHIXMy>++r-IRV%?Vpo$*r`8)jmh{vx(My9BI&4V4t z@q&H_L`zH3p725(a{oTG;rYk3%_{r*|8>5_6G?cTr)|U^XlDg8z zm^W6r3{qR3liJadUw%-DfiMsiV2YTxYOPA_X1lBkNTo&NjbQ(_zP!Rimikpp%G~h_ ztU^LLtxb8e!>D>CG^8eZ_@-EFi+JA&%Ym}4^tY?&sz92_hbFAune34RX{tbjogYXK zb;~ja9%4IE{_iiY6WdJ>_PH&3&@yDo2T(p1E`%?ub^PQ3)diW6ii}#+*!=`BpbGP_1R+t&;29S$UAcpH3h}2^>rGvH){c0jJtjcaSiIpFl?|Ykw|FXrNy% zn~l3m7e4&RgrOCH+jCRW=Ls5PATEyA`J8Ad?TVOG`l@pE({KV)pF3Z7;oa4-Hx3nk z^j1RZ{N?bQZy$cYv6=A&0^)qVweZ{+Bno|~E=9j=k-GDXeQ3qsW?N%I&@}1?wxuHf zA|Ro-_+d*C6M-#@VpM30RTEPdo!APpRrFObUDP^Ic|AJ;)&LVdnWX#RxiFb+zGKCQ zI_Kger%ADWvepR*8TGZ{JN(1K9%&P;^!XU4tSvkgGe_{JR~^f9$<0Tklc96r9x1B=VltaV_PCB77l_0tL3{`BdedCe5j3CF zO*e3HwE9GE<^LnU6k=*E%b)otxd+9+t<9)#+ze$kGPmX41&oF?8tHV!$ntX{*8aX^eeP@F2xMvpFGcra42@FI zDr{tW)yt3)P*7pvoD&$N2UDat?KH#6Zr3Wj1ocGNeW7Gj^2e)tH;o4O)FyAx_b=b8 zd=9(x+S@-Ai=UJC?i@DuZ0CtTtAU!S<4~e$K4CsxC85Tve7fHoj%T!vPv{JHch5_Y zM%K`rC>1Uk_m|u`%z4L~W*R<1JgN zI(cyXr))hytWI9~bat*Gf;?_avFr#*aq=$;3DEl;rBBbSfL&s-CmEN9Z=FWBPq|*w zV=1XfmME`nZtgN@DBWrbTSnz2oWcA9yL*=L#%fP3TXt!c0F%_>FvWM9H}5Urg0WkI zNt&dRN)2J@03gGYXLU}Ws1SoLa(2xNG04O@u`3C?42=UF%K^ZmD2OcrLpkyPD{zkZ zqZSrZ%U#vZMaTD{N9>OdGG?lPL;z?aQq&oxZHacwkYDWEjRc9X)Mg4w1*sqqdytQc z;>DOou1OedrNNb->@o%dNQsBess9-iEOg6MCTz%8RuuTHw%yfj66ap};<tL)BjF!!xYDU^iC@^Rt2BMhA>^Oluv#5vBd^doV(|U*_eW!Fpo^kadb~1qfM1 z-4xV$$`eWJMc%3OjU5A{fCA-11x&T35;A``cBD@_K+AfYp`ItY-nO9GFXyk(6H&gC zgVP-%-^o=btFjCC^slGFm}WC)1Fkw6WT{3uKjkNm`0Q%U67%Y#OLYbxB}u8qEXyBf z+jt?k7GWf9V1;7X7NJF^$kk!j@XFwhY;np}TTfKNM)sdEtVZLgSNz~z0}w_y_MM$P z{7ZPot7f{~deqdkb!?PO@3M6uVpZ)~0PM!uFW*8tGxGouYU+idM&+mch>1YWrfYbw zNHh7S!OA3^0A)hxl7xkSusWMIn}pAG7sVY<1G(8sqQS{%57LmXJp-HiSyD=l$*Riw zY+20T)}-|#pikZ7^U!gc1p%vkX1Q*!C%Ns1AbUha>5MtQHVJ(Q7;^mZrN_`4&gR#d z*GMiPozmbFnk7GQMUfb1z-LiF4xQ67RJ<1As!AEvs7ht4PG7P&xpL)JUK!S%jeUiX ziGEQ1j5YCz%;X#HVS2_}6~%)EQ*SZCzV-TqZo{O6%{r8|Py{vm3>zZHrnDT-D+S?Jo!n<`QZ%7N z6#HY((OAs1v%<)LZ%T1o@hclr9U{s$FY2`$#A222+iwA0^_ZWa}Sp$~Z`tSRz?fYd)Prtgp>DC@x&win* zYx)}AGLxzuz+^6ox_-KQe7OJaF4>UhEn2<^kp=1~zSKf2O8lsvgwt(+%dH&YE^$~{ zmIZuN4KWfnT+eLo`$Ntu+@_4dx-xCn%;H+*qI*rz{Pj+IMWV4q&4&v_vDJ?KnuhT? zp`HFH-{i7G z&cb3tRVzJC2)Aj&v-_2I=-cTnDad;U%gi?|r{%q8M3=JWIA4A_$1xksNX8fGQ0MXv z7jsG@yqP^YVXh~FGG7ztRofbb%v-Y2Oa0c4{DoEW2+ghB#=X?sC)zOnd<$FcA;P}k z!&0wB1tjlcu)sC=F=AuzvQsD3oXvch4Ur;5+K@a2;bjf`X@%InJU~*7p!QXL|3UP=)q(sV!;RVRF4eC( z5w2y7m}t3+flB}{o?fK>I$D|ykMw@kZumiw3J18$_+UA|-{#xqT-R~i?db}=&OhR9(;d>s&5GJ-M zuHl@XB;EHQ^c`j#mM47s|SScy-SD&Q0s(780*ui5*B(NU{ z1JAM6oymA%{(T`Qwoer|4`e4fbXpw=Ujf|X8hmq7E&vxv*}=+Rye%5X2xD0*^}YEf zEGd7~le2mpyS%mw8xl44hIvof|Pxp1T*z47AL}K^XlL>J6(gyYOmc|;VYs(tHAWpG7 znr9Tel(H$KV%()2(VBNVoP!o~|Gd)(^S&Q{PCqTk&dV;xZm_-lB_hr!QE$$#GqKT6 zV~RS4<7x-=tx0m&jE1BDqd(cc2iA@B7Ib0!{b&v`-5`t7XEV6UG7WdVy)z(@VR3p< zDC1lTpXHX3oE}5E3V7yx^8>jVnwr!w1_he&_17RJW+}R?{niZFG|4RyT7ZmC!Y^% zbR{57inS^QNGx!}+P3f7%?Sionp@*#h+8;FTaj1>q z1~X!#NO{YL-6+QR)z_o*SW%A+v-XebXs8&@TRzyDRieHy_t(B}bl)uwdFg%YXZ-^# zMWTYOwIkzv%>xr%$CBM=*m$T9k}!UxqnsS6rl-gw-*rU&V2or^ZkP6vPI|0njAB4O zn5CyBPHvXL)29>zpPkhW{`Qw3B?(G-TWfAV0^+}Ji$*Wob6n`WzRTBhd{);=mfm^% z{;`v`S>9Z(j2Nv-VLKD3~iA$Oj{Dq0(I z8U*-!Po9%GdOD|LVS~3(q-_)biNZxTiT)GN)YVr!4f4IRLNhAD48qw@0S#E{-e>UP z!dWH9**gQ$DqT?TkKNJl#J(f~7r6JAfSveml{UZ6jueeC&zR#Vi@e*Z==rWJgp@xj zDdR~Hd=3W?q0l(VMfRu(XreTXK*$pogtsuagZUmp^U^=wp0PM}Wf8W^Fm9n^8S4AS z7GJfQqzDgu-5C9o_f0zKKx$9L$|nGrE2rf%PLxV|c5LZ}PzELiSVok_zxZdiw78@4 zczsV08yXH>t5P&u(+XYPsiu48SXe7a3yEBGFiS7KFN#T`R)LMID_lZrUwvIx-Jfbw zW&lwFFkZK~+S9BQcb`8iqN%$0O{ zd_R#~i~MUF@fY!H4LxF+H=SJ{%h^?na-7Yogv2T6317oP^NJ}Jbg&)D&P;P^w8oe# zDNHRAqcPe>x zP|B*V4YPfm)deuX7-N@-7Mz4N1KmAfyYI78#jS0>Bkd}i9TWLsIZgXQY}1jqm+pG` zy{JiBImlPiF($3(sE&p7ntgNWLh&&5y{|mea7L8%c);7R2$T z_HrZz(`Nx;xE)NtPgF(IH0m#(y)Npg}NBkIWpJb(OJq&ymq^iBIHfZB+V!qd}3EnxDKf_XvD zT3tuka_2>|KJ_Qr(qpGJAf}w3%5Qo=u)K?~`O2CzZnMD_J96QGYE`74E@)I~ODsKK zH%}vL(dJC~ZUF3t99-z<+)r4yfgnU{Y-RryR^-SYY95;xsg#!aUC-Afy-0t%`Ccv_)YQ)A}F@oIMmu2ZX7PQ72ukwf(Cvsr!%uk z?~fxQtYEo0ehCIE`*_+|rxqV~hPV#FQyC(#HP&p@G#fKOUMp?w>)uN0&^pgnu4xwA z{+=Wo;`6mUi`y&O^6j1|StaDJHzuv-uBNf~cik{Jl#-tM_hJ^k+>c0kMduSMRtVAB zXTfh&yMOb>MNO5I1PZ0o!i;G4!y_^YHKHq6oX4a^KR@ocvM24QDH>)gQ-zdAXg{pR zt7?3h$uSFFv$4~lRcBSlUCKIO9p9VFeN}^EPQrbB!iSk~Ba2aSpMlf7sUnT!2PnKp z*Z0Gpr%sIM*x*BP?6E2Zk^y$a@Bl!Rt4YArYn_Po5M;&@gJz097wEglfz`ESLsIET zBs|I>ZJ0yIG}&DmAFB*@>{;;yJ_vO?f1N3M;xsLT(}SOFekLA$9KWf&-oNL?8X4J4oyU8tKa|1>*wEyh6Ebf)U!Z zYdS#`zoaL-RrPmx!}8501YZ{qj!4m&Y7SrdF&73udbUZylkG?gV+qAaszsvHEe+{D z<45m&hYodO2}g4E7>W2VeQ&n7!#30RJ8KbdK;T;5$lg`8J^y4jw3DP%j^Drg_woO{_t+eT$A)(~X?aCV(oI(=tpI1st*S@&~g6?&k z>s|?NRJcDff1`1?-Jc?K@U3-!Ys+&;g!A9IYGA|)zLH&vmifA**}mdVQFo{e8U~b2 zO2E010oyxaVfzV>!DiaH1em79k8chs%8c=txP&UaPiGwS0WcWl(|%w+^T*t*H|mk8 zz)Ak3o-PR;*!0I#w>D*9!+3J9$A|8=Ap!W>(U}g$h&Z!YOggAp^3=wF!Yaz_P($@? z(n!BM5i+f_^FX8~nrY$)=ZBTKHqm zVdAIS4fs!QL{-!F1~xy(})Hxa6p?Rjwv#-#Pvf zm8TQQeBr%Pn(2S+vFpu&c%{Rrk4#{RycSckZsn7q)i-C?s^e~PurOnw~O zv`sbAk*TMuA3Lo&9S}C+NVe+lL`zRzEuw^L!#*K_R{1j-SsyFUDFnW}3R%$ zis0vASSvzW7Jd2#61)h4#M6URkA_A3SsK4n#`cE2$ zLWp@8V}aGF=zO!}e(^Si*LlMGu3Si8)@_u+nrICpR-ng^i~GNd$UP_6*gd;57I81d zqLuuFat(5+->FEsY>{47M=^M$XX_r^DhHhyoVF&%)642YK9oHn`28XL@oD6zTRCr_ zQj#&uvxDDr@MK}Rs%^cX(zMsDRa3RzUQqW?O#N@x@1442leTwu=(D`c&~bPJX1eJx zR}5A8N$9Bq;W2HP`r4=%i4+)}>MCN-g9+FaIfz4#pX3o%gk8jR#?u%4F3+u2WCA{+7b24rYuJ1 zwW3Y9w-Bt2a(91Hcuj#xdB*q8Hy&$|)<1KPvN*|iiK~tq?ka$u;jeH>1QR}^dUxIFtyRN6z{I4L_o?enJ zFR95EMp$tQTUr!1vOm|XcjELh%@1qHj^++_t7XehC^Kxgs_HUQqFOBndGbf*;KnrP z>1BrQ)f5<&={TbN%QdERb6ljEbbCGjdd@5M#n06;VPP)$ z>chCAA@WK55n7o^L|)RL4<9m6lWth#q>&#GG5)ftZ#UzvbU+$2(jP)!o(zaw#;sdv z^%g(${-K@o670tu4>IZELt3#`+>9j?qf(`5Ch+>S&;~QQKzkSNY)16RqV;^f>T9$m zdqgaB84{#YEI4zWG)0m2{JP4snKf5{q~3>X2#QxOjG=sO9EHimSic@4V^<|@R-5Hy zEp^BF6R52jd09ovYpsaxywq*xnqd^%9fxrz=LFuUgxW6tSBC@dGWefD{H&>5oMjlj z6Ud@Q2;X<$!M}!W1R~uQvtTfS6QH%6nlH&~+q&RAWmVP$rbyZI&7MJD!MWh1sb*t; z&V+sSq(hi;g5~PTh!VqP_4Zlgx`%k?t19FqAJy6{$9?t}qv_oZP(+mjL!&s9hsSi0 z`1hZBgO1QyH=#|A^)bdk-w<5x6J#hivLy8_sDXLZ9cyp#>1cVkuO~R8$$=T!YcnR* z2IK3z=tD9$YM0E;xMYvjGX;DYEKeMPAY0k(Lwzo{Vh7}c15$J|s~_D_e%+RH^Zh!m zk4lp6r#OascmM8jGUcEAXfHU(neLo*wABl3)3I;N>=s`|zJAWwZHZtQNH-HR7WUvwmZrG!N z6@C{M0eWXL%2LZxW5tb=HS-8XP81s4JBB@;v&wkf0l#Qa_S5T7lahYrpP#_4z4ku! z%79{Wf8-DjEOK`d7PC)LJqBs(n-#-j1cvFr54a3Sabtu+VZ|9mz#=H?Or~eqxl$PQ@(j-#K-^vA1?!cVSYHiqjG%wgoo{ z;V>B_%aMBK*fx*zO(E~G2V^Rge0k6DE6)El91p>sh#YPjHEIdf%#qo8d;2q;-PEL# zM$qSYuUAeQ2&IGK;PK6zotMsO$LC!pl>@QKlp--=jQIkEwD||8ke1rQc)#gAZCdSP zbp|sBqb`OyD=c13US7+@&9PO~KE57bfoh^{0jOecez`2lpKQh@(KW*IF9t5p(vD6; zqC<&N{Yb0E4bC_{JpkUsO@rlnQkGCgPZc&=!#+=sq3)AE1cd=a-Lo&kH67=u3f~^x z$gvF;{hY5N=zW-MGNTT=kuvj=Eeje|_OvDefcre>sl=DrFKM*}wkk;l`}4haQL%D& zozLBx7UB^7A2;9x3fXkFDG|nU!vVTV#n;l`sA<8?C44E$S_CvCJyIKcbBTSJm2-dp z+A@d77melYFx?WF=8D}pZGaBq7o{5e+?i$`$d&UL1MLb{9o$$YA(U~As5FJ(o8zOW zjycOOtBY}?CJP+$sVEXp?BZ2aL1i4K0obmwIcc&4(62jbW8swa9f?DjTSetJS_F2B z5Z$cKkvqo(>(e|^<$|2NpV%tz7CM|Ai^m?Kd>Yu-{R!v%f8RBr7rWNtfZ^9vKm!u^dP~TR}A-E{C@XK9TX7!)BcW+IpovW>PA7tEh)jxk?zJUM*2{Y zN?T}i@F{LR5-+vp%IKQlcB3Ym)7}cJ12(U+D}MPeLlGDyvcfbe8%LPEy)G!?=e1L= zDJJoWSy{8;p|+#$)~16&EB2)`e$!tX1y-N{WXm?gwG*OnD!ci3u-9+(iLd7=7;7jR zmcY=*?xB}|#asYF%EX6t2{+RK&4M4{66KihGOAs;ij@mK&3Uu)3^b|?B;3B+z!38I z93x_C6}@3&mJvH)!lIq0oQQL86oWy_A|U@GvyD(NwO$c!`%U{`)TMN_Jau#t*Y0lu z0c4~`*Vxk$tP&+W8%8kVnREOkJevuHD;AI8ltWOEzPR%_#f5(Y$jArOxfd2TY42x( zvdviv@hBSfQLqM3;mpaTz|811VlQ7jQEm?Is1NzX>fhX*)3?iglf#v5#%li7DBSDs z9yr*Son&|AfaSp^FHcK!iyS|rW|~Ho3BGnwfGSacSD-Pd3HZx4^Tn{rw@X)t0G#!L z)6pFajr<=k25R8M>3^D^?Vl5V6+B+5p3Y=}-8meaQr23s5Ci^QiE_I#JND7F{`x)Z z${rPtj&q-)Eg1mQ&R^d8PLmmpTs0_NfM;Ld9p`~M`3B|`d)KSkHhIgWGh4h9V(M!E zprOL?IrlHS-Zj#5YaezY^EfJop++5!6~dG@VczVZsShn@a!H)^)mLap zN-5d|ZA^-9-}C0NQY-(>WWq2>z$nZ#9f)04o}#fdrZX(@%ws*mvWvY{x|!V;M+h(u zc(X?j+n3l}NT?SeX>yk#wP026HlrMO$^jJSY9}JbsQW`La`|uCRVgB?-NUkr!Q62rlZJ0 z4(P@;r`r%R2v%XcY4gwA4RY5cS9^>;1!-;WRHH6?A9H4nS~L6+Erf{kNRARp0%v#mG!BN`{Z0DT(;hL>q2tUur3n4FyKJATTZeC)I7~MlF{vYq zP#u$a?65CY1gX<_^dpm$T93g7cEiaEzJi=f(PP7*$Cf< z3e!q;mMXoy);Hc=X!%VmT-e!^igX6GoDK`Lrz#=>sc zkvcN?I-(oNR%$y<5v;+H$CX{e0F$s;-Dc+ckzFlEF7xK<7+Ij5F~FWrmDWsXraDch zDC0G}@xv|q?bH-m|Mjy0Ms)dZNpHw-DvLp2+c4S+O0)kVJ7zx(o)JrS?zKB>t||@D zeBgbVopB;#ax&umSZS)xCuXSI)HhTG6R!eRH?)QacpQ5#6L!rNa(`x=`VUEj)U|nB z1MMG_Tv{ZK#mpijK)fq&ckNP|V4+@K=S)c}ve;M#Pdu?5l^rr)DvUwV0PT?vKYzR% zGPWilY;hyPpFoR|5JP6?I@iC3Vq6S&sN@s)yy2Kk_{_=#E{tj(A~6Gn2o~=^zMyvs zejH=*na5H)n8DO#XSngd{F-OXphTbN9bu!~RA1@WgFi`~<6C$z-&Eg~>%F!po2S1_ ze(jCXcwQ%!S`|5^h}24Cf%DGYlJ8~b8L?zf;0`mM@)Jd|9&jr#{?*Qg1XJuUM}jTV zML9{SGQW{o>!LsKk$gTo3em@>#xK?}8b9NgS$?dN7ub9st#1lf=`*RfERqiz( z%zTB8hI6(Wpm4#3HbZ{z&OHArOIRM>JR?w6>jxW$d~1R( z8=RTg(0-+#XZ>UEu5%s=xiU`S%_}9ZcU{{C`IHp8yqFeq7L^5hHPf(B>{qz0U zx75z&dEB?!YvH!0%yFPn0dnvtlCDFL)%Bh>h0|%OxMnXF0(`E_T1cWldfPUNA#532 zF_UFlhm*4BwrzGZgWp~l89&g1;$Os_(e;Y|xl=2m@`F6(@A7#Zg$6~4{MITfoS(mY z#oK2mo@6)ugHMq+fCN82iP%cl>0rRR$+U-6UX}VIBZ_N3v^l9y2J@~+nXeeKV5tl_ z58#~`c(ljwfpHzaef#fbnkmRlut=er45g1&uFAxlaV4_Qd(S_*vcPY6fo5V{29CqR zh0CQnCWemD$tb;75jw?v?k%iaE$Zb*lYKU|?cRSJjsw=kp)Q^XpVWYrI2cu!TG~H7n=oNXG9I#<8 z2XoyS^Mf6^!*Rvnvc8xyFfpcXmSrE)F%hEOCa_GWBD#KOV3`AJX5v%eZiII@eMG4w zP{6>u6syX2q59xdCM#LN@M@N#|``%$kWIB0~(ROY~Ve=g* zNO-8sq+gRLR{DVwQ!Jfm!U>SpZI$h+6PlG3&djhh9*Vu$hD=4jV#(`EepWBB)od_U z1z*Wewx!;!ADjqaCwDW1G6@8ht6c*A{M}l8%l0jf?jh`J4b);-n=1;fmgB)4p1;ZG zDDk{q6&;eqX;tp_US%-mWh|)q)i{eHZbo|{^0}=bKxC@sGOV$YXz)91vn7~h<-uH& zQb0dByDZJPD`EGPd`kqAvI?*g=B3fqa9H9Rd{L`va?B=t~Y&l0h{I!^E9pG>!S z#>{UpLngb5T`Uqt6sO=~BOjkJh)+u0qiSo-es@5}f!h*a9Gx*&<5{Eoxc-WF!jSyn zM@qOve{Y;Ok^%FZK{2K;y}YNN_;1tethBv;U%(w z%RNe4t*ldJayql#MMurNnNoO;%!n-U0V4mzVpPdGu`LKf+RWv>l>VJ zh|rXJv9Mk&iDk|e!hBRh$KiV}utL&NkptF@GM$|`tR)5FxIigOLHS7vqDnsGiFl7bTk4baLCJDyHe`hWp4JT~ zxRJRy9oc;pw2eW?wv3s^8AsUEk+&zZY`Ez-Lo@iJt=-gFZhS`U&Ct+KB$VGUar1N* z@v1?8ygBYN+o*ZMCgDHM7MC=Korw86(SB>G1fFAvHmj{-oZNU|ZY7bG?7% za!4;s_~l~@pOTy7Zo^+6AY`23W==`h_ME&XEh#dIqn)Ei1rAP5;j0oaGirRuwQysr zBa#0yNX`7Po5nBsn|`gMKsYvFEKdsi0e?F_b6jl8h=+@ms+m|v$is-!NWtw6(@?$V zl_q&yu*vK7NYkl6M5O+M8>hB}h=2U?wrE48%##YSN^?I=0+$V|M7{IRFWf36;()R* zxJPdQDzTQ8c-0|B0$0G*)swoM=@rL%&=A*ZOgwL>7z1a%8 zFKtztnNhe(UFtdIA>1N=eN!pq;(cN?j@4UgtmpU_OVf+Lt5A!~Q-4!7z4rNbGV*<4 z`3S~~rTA$L`Bs@(J%h0xlX-Cme-na$&VA?CWqV?s!6CpeZMEoe$7DyV^%f(Y$CD^& zqb+UVeb3zQ$3puFCqi%M<_{j4`f>6W>Qts%OZ(sH37e1+(`!sDT=vci2*%*lcnLfGx#FXv!uiQm` zC&DPMh8FaCMRu3k7P2;P<>)CU&Sw8mr%`j%w6%l28(zv})E#p^r{~M)l3_X_Eef#9 z!fgwyX5@Oqx9=Waz>)cTxBx#FRZ7Q4&|@q3fbSjP*Pt|Bw)q1)JAG_&4Bc0~QYI5; z9l5@3gJ7IgX2*bCLz?mlb1Z8!pV-p58bZOp4MrH)-?C4BM%`bn_bw_v8c^mNSm=5N}{I(?E;74 zX%b#E#TsuQAAXq1n>W8vD~|I|L(Aqg?g=aXtg!r5BXJq%+P*yi5*0j^`Ml4I6;HT7 z5db0$wG~_=*tJmS#%smF=#xa&&Jz8fS=qB8x{B|9vz!fwmKbQU8&%pTg}ZM=3#kzV z_ZQ6}eE9}~T4%V0Xs%r}Jw9AwZlZ~)%XtE(9Q39 z5S-nO>sGi>EdT88T`M*cJ-QO2)(J{jpdX2j!noU=B@Ze69N9Z*ygRJ((WnKT=0Xa4 z5>HTd{3T)O`V-xs9(FA8^R$B+<_d`Zg!1rg#WK2+HXS(SR!(O)SwKq@O>%tXdp}KT zpzS>sB$N=B!h1`B*_hr3l_}mcGqYM@5PwPL1j^?PC&BQ_KvG0v0}CmL3|yC_fNyLi zaib~0C!;PY#bDnTXvPWs+Y5`ZCeOAdxX zCQNr*a)lN~1JDbninPT|6#xvPr!u6P!D6j#QGyAlSi+iMZzAA8s4!|Oo;I<&P#87f z1}&8+%t~ev%@`NRwfE8lg1+grWmTX#j0Luf0bat{$*Vv6?Oll&1AW4N=p!AztoBEDh8Zbul!(v09dV^(vw_m;E~n7Ix72vc`pWtfDyKs=Ist`7lb zYP5YlV6WodgY`h z&;}e>0a?Pt@c>>_fJG=UQ(rXrUsV^iQy0~j7nOpEOwo~<;9xV3M&qR&z^trFp|Dga z%#afXVTGYE$^|P&Bhs+bBC)Q+6RvGR*Dzw6Fg8?xZ5*HlD1 zp==t)lZj-JiTHwSbr}Zi=tnw-A&Z3toC4Q#(PpeD$iv(YfbFqpp>$-%VOD!U+gMaL z0Fg03#R`b$j_fdp`mKrB7p7qXn6*PHa>q32r&t2sKcoxsl=5LGrqWU=$$(DfX?Z*- zZDL9~XrfbHDB*7s)JG)=$rjZu)RQU*#d&mL*HpM3ux+Bz<4Qp}-b(Vs)G51Y8=Uo+ z7zZlqTu0xvo&(e>I!;k&;b#AbQzV}1(2(z1y>Fk6KE@waF^Kq{d@b-3Ge{J{jt>gwJni6ufU{X-fc+B2-`YjYGsmBSgS6oO)Aq; zI7J~w=8hx-a2*4z3=5D&uDPO|4O?(UBedeq1L}`~nEDmC0d1YYpF1Hr$ZOS9QLtrp z6nW>C@!SbU@@ZZaznY-{-@R|GhS4I()!-?p@Vi*TJjF`oVea-G1XNzd! y-^Vp%pcMc>T*9)K0*lM!C8AZPg+G7PFFQ7O_Sp6RwD_p|> literal 0 HcmV?d00001 diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.svg b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.svg new file mode 100644 index 00000000..5fee0685 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.svg @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.ttf b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 0000000000000000000000000000000000000000..be784dc1d5bcb92ab155f578f3723524a3dd9688 GIT binary patch literal 29512 zcmd753w%_?**|{foU^;hX0w~U=bqhcl1(6Nvb)J{LP$Waa=$}B<>qo1h^Sl?5fQHy z3@Rvsm7*022$ABYeX&1l3tg19UZPd{Y7=d(ZPnK*Z!eHN`F)=`XUP&m>-+!xexJ{O zH?uQy&YWkSnR(`!XP)Po6M+eWU=cP6lF%}8|&%ddqyBm-N z{Tbxb7T>Ub5&Qa-3;A|IxTbl@!uc_wt`W~KsKouq5?nAIk=G#~L%w9miksK%HQQQ{ zzfTavPj6Ut{ruBkb_@}Og}BCEUNL`N3kwKu2*ToWl=rNhzhYtg&RxKL@zsJLZD?6_ z)6MT)KY6VnEc-dCU%z(Yf<p=6vpVK=EbUm|aev2Sol<97XHI8v zXGLdiXI~kpyFL~$jshU}17x8WWT8XXk=5bpsP3rg7y`(n zIwk?~f{vDsO&zVBtW(#S)#>Rh>8$RIb`I$r)_Ha3q|SMrEuEV>TRR^k$lafGpY2}M zVffuAzdQcBB_By=ogbJ#NcZG;vOPAB$)oq^in@!GqD0Z(i~d^lRneb|eqZ!a(Je(c z7p*8-T(qcYUeVm5=AxNJ(~Bk+jV>Bi)L0ZPiWI)7_7<@IzyG1}62u2Jz_o}yTA=aj zhtMB^C}pn}Kx-Z(Js2;+fVfHxf(`LpH3)XZht(iB1fdxBC(c1#}I^JNDoFl zLJb1)9itFNdk&aVx@ONUs!x zPPD6&a9)ELICrKYjb}Qu5OR>d9kB-ixC{3pEezwwFAxLw z&Rt0VQV>2yL_q+xojbvUAiRb6BoBh{HsUip2*Nvvf5n3!v?KmI4}$Qn!2a9DgCM+z z*ujG!{06a$2SIoraVZai@Bv~!4+1!nz(8B*M*d+UA_}P=+@vm6KQemx|IZ&{%9ngF z6Ta1luR8(*pAzxKdcc-Q9yHt_1fFL?)u3YrS@cW)NIdu6+TkMQK-BSSzbUXicV+ z7LJQfeo#IlfbN;MP!5Nh#M-dlp!XH~1I+J>hHIkui9{peklW?<)dWOeu~{^D4PL#| zD|wXm^y>OyVQ0aZap5CH^Ox`c<=T>=rVnB_>dwaQEggHy@vmD3>0bzs8&jBFKYXyA z-4;{Y^=v0QH|FM{{VloGGiwhoyXCuqL+fHywXyxPx4yD?S+u!2$5A=EDHezTzc_1^ z$B8G1@Tg7lxULP-7V(4vy6^s)Rm!i)R}n9>dqa`hnlfLpA;5gadZ)u}W=@CenE2(o zg9q0IDl1=D`S|^^4>Hy=gPFMtS+t4OT5HM-I`k92rd^Ug8!~3%Oq=!oi6f_)jfpIynerv~O}wgE zdN%R*EO+keNVFoyJvl1fXv~m)D%p*RiPr3#)hjD9neu_m!lbUMtEAt2Y*Aj8D_t8ZI( zOLJt{`Yi{Vn)Yv5Kdf%{+O_MY7e-ty516`UNd5XvcO08O{n#Cw*4GbNGj)JG8eJ@Q zzbuTBcc6cbBu_DWIP5GH!@THQWpxD<2Gj#x+Ol-P&stk*TFHxBwc zkvJeWBhj@X7L&I0#BsWw7=GzRdEABL@;Hz!%_2nV2boGO$>*rR`I`keR*_V}tZ1jV zxD1pW3422>U9bGVy??I2skAr?3Y@IfSs*s2<`M@|bC=$eb9TLQ$KZ#x_MPtP==*wV`EOH3 z&P~?T11}||T=Rc&Tiu<}Jh`;r`|NR|C7MA*OAN~iMnsRfH?*pM8{gs&flJGQr>@Q4eq1ZnwMC4)3ed| zy64ZIe|{ar5b(>Gz(DuUU*zvXsm~f_TF@bu+v0Jhy(ggfg-Il*vU9i&7^09XY-!SfL3is01oMw=+<0u`OONSvkBOPN(&Wm24|CRYu-M^_clmsRI@E6Vi2O5HsTfyq*CrnqKf^Q?^^DGDyGgj_z>R@RGLqE=-UPD8ENsq-cmp9W_2*&+8QgS3U&jTUppg-(K4_w-?!PX4|`0`BFKde7Se8I9ECN%{OeuH_8Iw7?TfQyu)l%()Epc{}6<1$YOh- z|8f9Vl1~KYle{b};mf=k$cS%!U7q*@JNlM$pW{t-H1TOD?_eIam4tLw3GwF~1Y!^} z-^pU_O~Rp$VzfUCGm>aX_+WolK8mx-xbhLZ_2^Lo!uLz(6ceySkD<-zYsi{Mfr(ov z#FbE?s7~UVCf3vF3;+(ZkIsFxckbN1S|p0f;jh1D)4o>XJI|lr8JCY^h ztaba7r!;0sJXLH4rvy)(Om}Y87%d{sy9Lg>vji`oM*&dp^kGAR3ZmE#f(J%w!x(w& zkquVy#3L>DK7W2E@!(TWZciMzBrACynRNbns`l3H*oC+BGYd$1gSCkjicJg;Nn6Tq+tPaP&9fbY?p?QG^)g^U)lME^EH5{Xn5>uv zRcCthbQ3u};0JAd480i?u0oGmp+&$LC09d8?@i28h<&IgX@UAk7AC2l%fh|#a@+M! zfArZ$PhSrfnPJ}gd#3;WR-WwYFs1EHGw~m>xhIYNTjk9tkH>CS+BsXRyyLCatKYhV z=iXOp=plB7epAvwo90GbZk9fS%miMU!@N3cCWFcb`Wh%}qHdb5;Ezvj9kn(22c<|0 z=1V-Dyns6Zqr#F}I4tlo4og=W#e!(?V?L;mSnG&Y%ZANJ!lZJ0`6o$%5A z6$~H5XaXsLdWjWxZQz|tiVbWb#S^g@zi}?kx0O^PaR5sksL{h8B#Osc6^pS-6y!1t z-KG_c0I5_?WXjWVB77`C0E0X9N$$~z7hXOe1-sAMkd&T~4x>?4OukyeKg!$Ss|6H5 zgB~bOk%}NSOT8$!b!AJRrG^W~W3lvW_(!D??CLo`Fkp;@bdj&gQl!RTR&3Ba+^!HQ zcM>BYMw~rfP*6Cvkbcl06VyMyHCmL{3Z@kl7Saz|0P59!h_)Coo>-$bXk4NXvs9SR z6HF}jXQj^+Q;59=KB5$x&J7=^@jchhecIDX(a}&ek zaq&bvo@jmCXf_+^N9}Lu{ej0(tmnmo;H@o#*0YK+AJaokW}(q74zR({(gF=9v%Bqb zTXDIqP_I|+xK6n-JKxmLVqq&Pno8`~vU{gw^{-X79}C<(l=ZU*%$d@sUAF2xQ?9`< zbf_y*`R9)Y%p5AFv(pbMKjVFXev^KNx?$@i#U6B+n8{|*!U|=?=#N^iqzg!Xot4&{ znled^`m-4O&AK1Ey~P=(w7d~D{ntD@Q886Ci0Q79B3AjGaW@>;{k>V6ZlCj%e6;Ps z=ylQZG=pRcU$tiBwC&?(8N%gKL%zEp(_#oIci%RC%KWbF^QX0NGgLlcYIBh)+oT4{yo9ax;B(`_Zh3EE_-KeH0}s1>WWM1zi|8vM8yb;}!f zhO(RiZ!uU31~)ERJQg?5Gr9D$Xe*Xm5Hp*qC}v^p;w z*N{S;G6K<5kG?@5T>?=z=@LN2k=}Xf-`uBNVd4PSA2h4_n67NfNuN0j;swsG4xaJg z7L*Pbj#Ew^=PZz3RJW3j!b0VUbGT$csKSDU|GP+LcF9pJrBsJ=9lH5vrwS)Ti|K!5=NyGy*{4rGE8dDr?fg=uqmT+G`HiEHcE>4gPhlm$92*;Zd%Ul{ zpmt$35ulqOKA6%j;t{EBA`5A6KB6PRvexkL+I708Ne}>H@zhp9`it*R{N>86N@>x- z3&+I=F1F%dHA>wNv_XcqkjF)D`$D=XZK*6u*orDEi^MOB_}+k3N>3)%@GB4CHv#nt z?eKeKAnG4CEE<Mp%Hx^%i-A(-muYYU(^2Z)~Z|7t3D;wYa+m6+L8#*+-c=@Wm zW509ThTq(o7(us|Eq@Gk^yo;icf3SH!mP#63-wZru;#W47kX(!x~`LE(6$}Vi^47N zi~60;0vj61428fB)@M?iHc3)I^p`;w$?chLv7dAF#F^sX6=eK$oe@it)27o_nti2wO;QUQ$BiYO?c(b z$y08CxwPs&TMntO#Z)Evb|%dVLKxVcG&vO(48(u&^5bWy0(G0UOiUy_ndu-2YWw~_EjnngQRBr9$MJm7l7k%1~8!AYCYpA$= zT8QnrQCZI0jvv?|#|imD02riJ?se-8q?N#qnQE_vj^0^p))|_lA|{W!SiMfXd;0cd z^)uNLWtSoQ>R~g6)n^ngUOcz3fSs&O;xNh6oW$WSsNtI47tQYQuoc6~YGD7wM5eJI zeD(vM0&uBb_>k(Q2OsnXw=bliQaNbYG3DtbF3J~TOsU_U;tY z<)?53WlkyY6HG4WZb4hH%kt7RPE|NKt$?YRQdX67>@#HyaYvH4pnf0A{>X7t(qyZ__dbhJ@DNS8g3wYhwr*rrmI;~1cYLv&N zili4|Knm6RtQ`GL?L(L0OWR9m5@8WgvY|ynH;~r?jS)Uvj;65>V{deEnD}#ewk9Iy zCf9fBXLQlI0$x2AkJ*d7qcy02{DKo|6UG&+pQ&SiIoz6vG^GdTW$-wL91iKx7v;xf`du&bMkZ0 zDWdmMHLyAu+rpSOw8C-)tR1@fFQA+MV((ry8G4I&Tz;T0q~q_+N!MMs!}?LK-r=mm?8D1TwQF%q;k^xz(Wtad5na1(q_0unK2 zkStczCfz_zWDaN)WH<4v-qlWy>udvx^L@eL!MvsSw8|EPUet-{vRSrEc2}BPXYm(g zv&%;%@khy65o!*F$CYR6Tka6`CZj9kVuwa~skwI_5y2mv$! z-JPnCPwkP(WTGLx++|&IKk2l%j*I$4T^mSmmP?up==#je0EHj9kky8pq-br}Stz=7 z&PWt_T*W<`T`RY}k@M25_=EQqzV@1>--zX-JXZOU(U)SQmzEE*jjyE6N& zx3gD`g#u^M0q@C^d5_&5A2e%fG&3G|OuB1C{8!cAjgMLGKJ!NQ@~h*cS7iSRZSJu_ z*h#iZZFAC8V@Xlu@NclqH;?>(4VU1(nZoUN}no& zm0_%$RVIri4)D5v!PgFGvP-RS2?GsUQT^PuXEyuvBk%v?9m|r}*nI83TRc0zJo0Si?GC#&vwQ=pj z{(yY4dP&pJ#?dy)Z7*cxo|-))T{LB}?+ui*oxgTu%L8SfBjWJcz}k0RyiJ}3 zi9fP{qoBZ{yp7*GW3&qKHMb2i?*RCJMWOK*m~Rk+iJu%R;mBt|lIY3;x!b|l66o`x z`45*y3ngC#D~3c4n^lEKl(9+_i!&Pio`U~!+3e0Qy#@Y8qfZo9k%k;xMd|;#&g`*? ziGM18l!|S({bY9KbkrhkVMa&VVSlx?HPe-CYPAK*o=JZH`+*V;C0TDDYsM1yCu58e|qLKI0(-%dwMusZ?{BW7uS~!p1WyU$dRrq$O+%%@ti!fDs$>k;3swe zOt@YCLJng`F_`?_nZc|t4(Q-K(WDO*>fA!8NseMOmUNMb>J5dmojfPNFy$|D_4y+w z-n8bC)<@RdG;w6UKDYOU#E4C6r_8FnI)g#>?)Vygkk?ECJTFS%MHY_o-(WN5>=8Ty|-h$Id&pc$D*Epw+{chQY zVN0{;l?XE0BA_j8*p~%_Iwt+j4c|pi=htTtn&Xg^!Fba}B5}uC`aP`ThOF?hIrm0;S6zLX+Np z0?ny%7Y?+LA@d>U!o}(U7{rfO#X6ylmv_je&z+2lizmuw_4`LL_<14{$byGpU)@TQACXCAB4nM?DW ziH(jrM`EKhPs)lb``Ih(6=gq`!ciXC3xQYiu;mt4wpG~`%eBw>XpTKMrtGq2yDV&Z z^M+>e7s`K_gN_PErsFZ;;`~2 zxwpvUkUoIjF*>TDLTs)8#{sSoT)4jm+2IDD18GGdc8~qP4wI&ldEw*jB7dYNy}zcB zsYX6>3}==4Z2$O$Prmx(!twrWJ+jv6{@T)piXv+Uq$4mEGyt`DGy|H?+ zGWgPESV)nOk97V1H|+LPtUv4j&!6MB@(p(9Z{Us93WF!S2mZkFuxREfe*o?xJe82Hr(qPEN8kx^iW9sEp$L7-p|E;n{Bi2 zvy#pyDGQF%e0CsNhBZGa_()+(I@b@B`Xs+6I7`zaOxE6$NHT* zrMyS70w-*kkEuph1({|uFApmalndC(z?%Yh)sn30QSn=)9wlT9|C z7p2S$i#{I84rOMZ7Y$Aq8qVMy;FR~sdx&Q;gCBc0e918)>Lw2fe-y3~?3Do>6aMtW zAO2}V$AI0tk^b}X{UV7&Bo#vg zBX?XFBhgMM!+9hbyiUpI_gM!s_^O2AlM~9THqYDch&A4pbv{t~WkI7~c{#t)599Uu z_wI}BjD=tjmfOnnPyIZ%RB0I-t7pwc{bQAr*BEwIPFB9?yj{6J#@4pK3+4xbmE)uG zG_n(ezP#vpcsoK9*ucoN;kIkT&Ld86et47m;G~ zADaJ({++k8wK3)X_IEjdOamWr%G1$5johcE6eLl^xF-lmP-O#TQRiMXI9BBL+MBqb z$ZZAvL{;fK7~&{RjvLrAbB5Kl!kjUk1*R`wF>U!~L!L!BWOz2;JTS&e@6zX4-pI1q zvXm&xkkciDEQ>nhBQvN0($Y`$rWUiqW?nz8b%OGo%fByE%(RvouU67$v8m4TLZ_pE zF;UVF-)LZRHKriVX9L%&d%Swi|U!2ZYn*45pNP zL?u}1GUcH7DWu^^pURnjYvSw7@0B~*)CsNQ*!rw2XXcHjXI{>*WTXRS5vL|99LjUE z*x$ZT5toGdv^MF?kTd!IpS*khFnN*g-0ClbWK2@INQzm5SAyFsgwR2B+9pE8;d1M8 zh{4F?%ALw{sB*of)ZF6A;+Tk;nfqQ*(m$X2k}F58JQO0#uwVLs&Cpu6e7f@XG!x5Q z=_*oo==9IZXyW$4b>R zK%~1PJAV=663FfjXf0})6$gWek%4{&k+fC@pI)4R36hHqo9d|8mznqmV{H7?;%dn( zv#e+1TPJ{}9(I(6LXttB?Rt6Y7wqryq@0Gv%w!qVgd0{)1GKZ7 z_4$_9T{fGG#WM_9X;P-`;Tdcyts_`V!2=G#PZjG53ne{FiM!b$u0V$)UbF9_2Iup= zbN7CD3uo@^VP&O!Xs`0Qrq;6WyY<7pa~0d^*H{_rcX5q61lU=ebHS6->EQ0G1RP=z zB%@k!Iz5$y0^rK$*tG_51ndwpx9;N_GZl2=IpyqYr%$Hf+!tJle5AradOe3rN;i)5 z3sA3J0V)?#mt-~7zm@ZnWItyK_X)eGr!VOZc!5AX zg{27FCGFSYGQfHS@vBgby7Y+QtwLlj(oO|`bV5)M+YIS{A`qgHjz(x3P{@jKyaIQk z*ou`!NkJBcdrQPml!uajy#dxoH!fl8<_a}k-d7J>`sX&KSsE=)7=Yke64a&T>5G}k zm7SJ7&DB(2kQR{o4bU^)qP2y^KFJ)&G>^2VH+lkDp)8r{D`YV(C)aJaXXvx^<#~Ej zx!G)&k^nocByC=)a(kt^zOj537v}RzN(0lyn zm~46@Lq8e(mJGL{_(r#PZGQU5oD92cDom>?lx<@iqp(3Vn#9!wB~3+;4-HuvOw7pe zxy33mGfi@p*$Q$B@(Z){j2VpfQtV1cJKg<_=6;TxbemmD&v5&l9z%tcDe2@ApUWgI zu?79IsFzJ?rV@kEL@G|wo(S_WXAWyNSHHT0Cn>zQRC1Z5LK}eI<#0_C*SWMJTQQyC z!A1g#c7c@cy)S`i<-@6R41~5Gq2`hd@a6vKnygO}8+fA|y9EOoG_pf5#O%XL4JnBn zv9VgF$X}#eaexcMI)~%4R_vPmvX|DntAJ1@LNTAcW{f$II_`Jn^y0m!pXaL+nns4xzAU+VF$c{P{P+RK+NU6f1Q zYTj>1Zt8K8Rx46lQ$qe;yfiyTuJ3&~$tT`*c|0z+$HN>f-Q%W=*%GyeuMSrf{Vh;L zx0K?5hwjJ+F7u>UJ*FS<1U%kK?=)sMySzvnx4Q~T!r>B6P-iYupXF6RtPzDtLPY+V z+ziQ$I9CgF&z+ETryz}H; zf!Q~V8hPq=_Nu9AWOM$gc~cG@nYds?-i)i7T(ehQ%ju-P`)hfv{1f0tyB*jFpuh$5 zp`)yHz!ryp8E|pKXD}R!!od;O{028Pt!Rb;ci4a0m$tLJ|323iC@Szphi)Bu-P|F{ zABGNX=P8yqbm&%-VQIT^8x<*t4rM#7{DFD4Ky86#p47VSCsL~NkC z4~9!UBu?cAGa4IbG{&SKIYWWM!a&H`HHx+i&%p%~*BfU5JamLMh&7!;6|{6$p+~H4 zavao?;+=cyg~3X#etsC1aSgoe_63*(XKsubddY1ipF;7(km5m;qUFbS#~zWwf7D)OqeL!D+ezfdi7Z40<)zxj4r6mcIpk{o62e1-9tt} zB8dr$q(@<+x|&9l-05kR0ZlG1f2BXEQl=*PNoBQy&IMT7t#iJg+?&i z(t=RMM1Mc`+ado9cXm|oG+Is8^lDSdhtFm^jOkL7GFTnT=$7+u)z>^NLg8)mK8%_{Gm zf;s@Z#nbp>mDk6vhh+wK8&%IimTZ`C&f!uE)Kc8(`I7pwpu^+dugUt7Rn)3=K$(lf zdF0|;>r1KcVl}7-U>Bkeu2+FIo;I%Ju?dw0s-{yRGVdEYf1}6F-i8`s-BvpWt+D#t zR0VJ0#g5|Ur8t_Tb(RON;aCI67!~gYk6LgM-bF|fhpfSq$HWNMLO{LP`6?`cR7^B} zd<^)WQx6RpjY0}kz=FHGHyJKs3EyK<5~!z^xdECFEi6?WTl)RCumKkisA@nxNsNyW zI1MmWL5>YXHoakka%evSoe9|q1co&{$z^EIp-ZvMBVR^_mwjJ;@ig~P5o=Yq6LL?1 zCQiHheFmo#EYm&rs0z{__S6IVgsz|OF0s+!HA=l|(pgJMANTYZU+yD-f4Qm$UV}1< zjfa0s<#&Sy-3p1+Yu9l#wWLEQgB?F05TAd9L z3Q0E6h@%nayB*5GciH?M?A)4@6%t1Cw3@Ly~}3oNPOqEN2!mgKX09o z^rl*X_FZaMCdVP5k^Uz1xEvj(Wj!J7I_e4Pm@+m`xn2+|vVA`Fx$sPZ5@$yKNm@kF1+Q4>cU8pW*FUVaEn&urJfoWAG`zW{W}K_ z-jV$4RjKmL;)CqrcvoTa{-z%sBvMgnn)JoAYWLMn>PW1uszin{GxgL8Q3XN)_ZzIl z2J@0u@{S}!042UvJ>adVM-|<~*~-eEdbA^91dG(Zm)5f~{*+94mJkr zP3Y@1&u=m5@`+jCgfS)cOa%@xg94;2yvm)i#9400DMNMCN2D8A1eiyVBKbx=*9VFq z17HP%hfbI|k=W>fc*`&gcU~^*NL{0?m$7`>k9pgW8TS>0+c}^+N&oFY&L^^K6 z6R}W;|H)H|?ABYdMieQ#3TnOCdYy6;O3RNxUV1~hirUTo*BgW+jhp&QeULn>HZEyL zp_Ry)ob6#s7fK{ws7JqmmzOqd5VeZ~k~|J}5*Q0|6jRPvoG~Yh39dk0pTo}OjKzzp z=*lu_ohyflb#lW*L}&$>;Yv>^0GEAs$7+{CzW!GhaczY+)f;$ zB>i%#oI?YzD|PDd?xzY^e^AWtjfzjhHo)B~{7VxDu)MYN6$~#Lpac6j7D?VYEzl!V z`lrmV%+$)0`7OR+0md&WSl~giAnv>S>AM%i7bx%HHu^0~$dbP+KSkCqyFriLW1$p= z%8r~t&{<{JVPnrmP9i_t$5>I*!;2Qb_1JAiMNenx?XTKvverJdVdKIzR=xQ<<^l5d zeHs1lf2e)Y;)ff(Y@fBte4kmiu35ZcII9_)YY-LSb zc>*1?!t5+`(4i!}f@6i~Dx1wx~S9Nu`hxbm1Cn_4qy3FNC?n9%a_bu>#r&YX&zx{%*L`kWNWPLi`2`d}6 ziJYg_dSOALOWv33L#8Ia+=B-ETvGcZkFRRP5H8BK z$=)FEN$LbO?z0!D5BNIMyJqwNRjIZ=)~ileQWm(Z&P)~_01CgXze!IDXw;RxYhvei z;sg4;w14UJ37x_1qh%5ppdH?WL|L$T>WOprQ70_#vCS2c`m)XJ+~%_SNX6#fRZ}Br z&6~D)#*EF=XpUTpLlMq*z&EBZ98zhG?Dl+h{GQ>}g11{k04f}c%@ngcGopd#q;X!9C z=q+q19yF>PNIn#(8&i)IL8S;*AH6}zixiGH)70V8;Nl(-MZ!j48?QFs0}R3Q>`Gcno>A@aRC*P*9qwX?+$2H zzCK8QkWG2~HKZCgXDkQK#w$Oh8@mU<5sP50$3R8p-85g}!p8du_BtRBbuBjsxSXn4 zz~zRvmXz^UgI7Eeh>Tg99%{I4R_-HnZhl%cr;k}$UnMUcQ&)+q2EgjLbWC=UXHnzq zyY#beeEMcNOA?okscm*OoVdj+B*} zHlUGVD@=kA=?}^C2(Ci3JklEhR6CaR83ZQU1z;&u4OL)hD1(A{Ar3W~@5`*HQ{@io z+Y!k-wqQ-ztp2fffAUUXR6L7+JC-6O9jUlT#Eib#fUdyQOpcGB$RqCK4?!3!0L zvt0b^>PX4pYVSPX6%efxpoES5fy6IS?q7V+Y{uJ8ay)k6^d?V(z8J4ZfSnCTQ2bt) ze`;XQlI~%77K^!`xkUL>`4z$t?|~@xW1{msi_%ef{F&bFrv0U3OF6A!3n}X z7$wTIDjig)3HXQzD$VC`nTJc8J#tS2$Q+Xm`zE}VNE14xEqvy5ZJ@eiYo@TuDQmFE zRq}0{=n5@ONV7dcvxXS!Dn<7&P%Z3k*5`$ zUt!j=3&rpmfcJo0W_9G{+FVl-=l?ozpe;AgVO=xWa_dx^-sYI&!0*&sErXShZU~y{ zM%HD};WkIPAw54(f!FR-z$NZEHfsDvhsU1lw3piN7_a8}qqHqs#$vf*LgKabtA z0B)b$g~i!x>^1d-8#|$lkT=p?LOU4V&h)2vt!~6 ztFFjpOt(l1`o`_H(X{!td&#HqS)X1~Q_0^&EOhP;}*a(7OaYz&N_ z;R&omD8Wn;RVn4 ze6S;}Xwi!OoCk>T)4H4MAEPdKbKrHp*!R^$85}txZk=@eLgq8KZB87v^tY_CSj1-U zgn7?wQxcMK@-9Nb>VIds!$aXej}+OU;W9 z(vu)>EoR36awH!8KnqVJPxJ9=HKu!bmY#<;2G(Z|r~4atAtd3Gz6)=MrZU|xtKs6k zWEqMJ5SD3Wsl4`#kc%|Ihg8jD88G%BP0!FZR;9W9xL!5!)n75hBJoqY1L`B zrtM1?(#z6Erf*39hq2B$$M~@Eu<@&mK*qX^XEQoXxu!Lyw=)Bo_n1TG?^@C<0m~xG zz{3ATeWSt?ONM?w!^lM>_+% zbmTfFIqq|O*Kyntcl@X0AI^MdlXIQ(Jy)6QLDxBViF=Xz3HOO?A={B%o;@l1iR_oN z&t`v}W6T+v)0%T4SI!-mdnC`87t8xe-skz*`NQ*97c>_fD|o$7EL>N3swlr`LeUYA z%TwdI!SjsgjOTCO67Ll6J>H*q|5jXGJg4~a;xoQ9-w@w2-=n@0zRyeYOClxnN_LjC zm!_2tDqU2%r}Q(ND%nzY!k_OS?qBCWQ7)7ZEWe@rNcqqv_{SprSmSGU=(9=c zWimXY@LpbJe3qJtrOO8Mq-(Ua9cl80rZRECB_?q=EmVsSuU)$~fd9kP@0DAH|KKs7mtT(l z@W8L-27Em!5N_hRg~Cn3LR?*g-xx}cLd$1iUS2JXMy(Tt3BpvAyBe@=5EdaU1^mT$ zW(vwL##<$B;I#ztWHra7L70x(XX3erK4D!BX+SSn-xdQ;ujgj)cH9IESMfeb#c2|6 zg^FPhrb|%rX5o5XehpfwJ`sSgUp25_ftD=?Oe(Vo?W49YK#vE6S{~}q?;-H7zVQ9` zt?YZG`o6kWpl<;EeFH|h1>?U|!}=y%CHzKbHjzzYli3tDl}%&Q*$g(5HM3c4HoJyh%dTT{*jzRb=DY>$db~z%AzQ>2 zvn6aPTgH~-9KZ^;lC5Gb>_)bl-NbHYx3D#AEnCOdvs>A1Yy-QUZDe<_P3%s#ncc;< zu)Enk>|S;syPrM4zQZ15TiG`D5Nt-<*~9D+_9)wdfA;Yhdz|gUy0e?@VNbH}vZvTy z_C2eZR~ldb$-Z>vlpOSdWpTve#Cyv{)3%> zmHQ|7M+>jApF#@%8T&aq$xg9fusA!-UT1HxGwhe_SM1kV;of3zvv*iKdzZb(exv7X zDX2yv!!0Y9R##tDO>wBYIvEGGJim|YVJ%;y#kE=-(c-8U*J*LR7GI^tp^<7_J5nBT z%j#7;6RB1!iB_wHqt(372n`9u{61oi1Y(W^VqQ67UO8f3IbvQpVh(Rab&xj(u?8oo z!3k<`g1j-fufYpy@PZn=paw6f!3$~dLK?h~1}~(+3u*8|8a$kMK&OtV4r%a08oZDO zFRZ}}Yw&QagO?9$aKaj#um&fr!3k?{!Wx_!4Ni>)r$&QQqv2Jf!Ku-nuhE{b(Vnl> zp0CxOuhpKf)t<-ei8)@i8k|}UpIQxGtp=}FgBQ`@MKm}O4NgRZ6Vc#AG&m6rPDFzf z(cnZiI8hC+s0J^p!Ha6}q8hxY1~00?i)!$q8oW9UUY!Q7PJ>sc!K>5Y)oJkRG(REOx>!3#0L5;418eIo9x(;e|9n|PLsL^#$qwAnX*FlZ0gBm>tHF^$e^c>Xa zIjGTdP^0IdM$bWwo`V`a2g7QA1U0%2YIGgc=sBp-b5Nt>phm|*jedhQYCi@wIu2^| z8`S7GsL^jwqu-!Lzd?lBXP@~_VM!&&`I<7&Dj)NK<2Q@kl zYIGdb=s2j+aZsb<(Q#0tzL5+@s8XX5UIu2@d z9MtGIsL^pyqvN1P$3cybgBl$NH98JzbR5*^IH=KaP^06ZM#n*oj)NK<2b1($ug-@c z-fc?!0jq@mmf*;mp~HAItX7S*+z6f<8KtN;7*eAeHHz>k#2=^)MM>6RliwO!E(re{ DlhOCh literal 0 HcmV?d00001 diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.woff b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.woff new file mode 100644 index 0000000000000000000000000000000000000000..2cc3e4852a5a42e6aadd6284e067b66e14a57bc7 GIT binary patch literal 16448 zcmbXJW03CL7d?tTjor45-QI26wzb=~ZQHhO@3w8*w(ZmJ@BZ(tbF0p$la(=N#>kvm zE2(5vQkCfPhySAC*&%gOhXNAMqjXaM8ZdR9h1n(j|bAOHa3xsaUpVQb^?bFN$mKV0Ewcy3Du z@-8k$`ak32WBbVi`wx;7^0Pnwe^+&aJAe9T8!-8dp8P-m^j_k+W}s`RtGffD4+(~# ztFH^%r@=P?d_)fbz?K5R0s#N*H#RfO?CBZn>6_?x^z-v0gc4w+(WBE}13CaHLhywQ z!#%^j8s6#2z4_*~82qM%VW?EZaP{qr6q7)~zyRXUfu8*DIFkvyQi}2zgVP1nasq{A zzK$~<^8~1Leh9gA7?OYdWb(rhHBCeLF_~b@=XwJtb#c@X=&{tLR~#2+TS{-c`vBYE zGBWX|sg2q1)>^5WQl6tV-S^gSSDaqgl)f0g5bP3XzB_opq(U*a%n-{&Nsp#<PXeb*#gCojQ<~*y?%~jIH!wY%g9nHSRoaSF?Kj+nhFb0uC&n_VOmpd_OBYox zmnx5#Y6>`tg|imfwPr|~9o*VGw6l}bCod<5GtgOopG#Z3FYU1yX;{uJt(#*r8r_e7 zFtr;Gdot=wqBrPOr&Auqx9S#4&q}4+IV@$;lS%g;OwuPXe}-tkmpsZwyFbf2RoE|~ z^I*n!=-?L4caqmD0 ze6gB6sXkw{<`|Cx?yb^4okCyXCb!Pswu?l=&V6!>eVjh=XD+I%?*-Gd7M;9>8h)~6 z&0J!HkB*tz&l&C|b)oTW*SdHifwpF*1$>(yA`o_PKmUNb%3cQp@DV=5e(dQG!VdB# z4zOo2dD*d^}VrwZDE>cjbvV3uXQpX;>NPr?6LUB>JyOhwrqV5Mj1Q8A=HxZxa- zQwXEXE4&D0kFPJik^cKOC{0^_Gd~wNu89<_dGZ;!WUzzZ3ld}@(h^<$4X6-4pZP0> z4cT8q?NQVurwRI1@u5c=cK!0A)|eeN43pohgBKnf%Zphd-bWZGHIQE~`m`*h=F^&l ziYiYp2Bli;gaHnZjhfJboUR`tiB7foe6NfemF%KO8OT@`0*rjk^<*{<(SKi84B6$c zSAeZ)XeDt@7mIt)7s!bPz7`HP9ftqc{+RVQxN1rHewmj8Yp3IVyy5+hfQzfO*PnR6 zhtk{-Yu&KlSEH<_;xUIck%#8F?#Q96cq(tN&Y&yCP>~SwZF+9EW+Z}7E5H4?%I{Wg z(N$R$e70H+BskvgkMrx=s0NkTo4j@vUJI?-vt>?b>ZKxs;_5=f0G)6f@U^u0(`_>iKBH|X`>9ka9q#!rMTZ#DaG+DNj4Hb@5WUDRx;OQyC`$YMi^IjCMmr8 zI(s_$k$_>i*!Zw?b0n%}L?TE;8iYNv&D5Okc@@2k64bhgEg9atc=7JTCCwE4`m2d) zotf55o`s|4kAD`L4d20r!>w61;4e~qalSSgRUGOBHl z9RTUz=#A|RA)-_XJ;fPvhjE(w=K~z`rx{{e9EixI()Jy>7>q7pDk!X2)o;7@b}3Yu z9i|Jv^->~KNaK}*?iz`k`wWk?k2H%PP(=B6#}1W+=RSZgxN>tnUk$!WK4gXlQ5YlR zTsK(s$>9-qC_*h|B?@VYC<>v5_KI>C2z_VFA`o{64(?4{0alZ{Nw|H`!{CqynYP_3XpLG_k ziP$}NfO!Bc1h;p(xMku(+}e9AFC+)*b7-cf-zFY{y5q^zfrbBu7o09H&lgsnQ0~~g zy2GlijEBH%4KeBzhNc5k{iK+Y1-<2Q>UF|@>0Y(&Q0+KPt-?=>*O;tSLw&e#b>>(F zM@%`Dp)}XMSMJ?EoMgkl7E2Dlkm_n=3YT5*wm_QDoZ>7lvtsY4O)?QU&&U>WL1boz zQpm^5oPSA<)4GyW3E#Ps%#pgS9&NNgd{L&{3U4mAPIsPKsgeU0qP%W$`ZjtthBo>w z{j$ZZ`}y)?bf|%(x(~j-JG@sY%R;$v#5BH_v+zHz7j`4+RX_0>ExySHVGK_8?ls$< zCG8GiJ4!l$_CUvA=~B4lvLPO5zU!YI$VaRmBu-~t`|-fjE8m|b--_hjHI@%Obfn<5 zqFvMMzZAUzVr-;8sF5B#27-ldl$|mdx)l)mQQFu2FIOtOc7Gu;oB3aT zkoEXW@GtHDhHTLayMa&3)3q|?*fC_}cttu?Q9^2h4(mFdWi>)r&@Pv28u{R72XTH0 zZRuM=#0U~(p`Qab%BV&JME9I}R{we>pw1JgB;y5-iwrmRLHP%hMOR#-7%AknieOMN zo?28Tc1wE+o31Am+Nv4Dye*YinTqC2UW;J%&TbQ$KFih z&(4l%v^}kxB%IPw1bwe_&i`(w`EDZ;rR4y4yR?*>qOb6Ki?AP+?18T2(HMlK=(_{9 zdm{~sd*AEH(5!TkVTELf1xG!^WBK_T~kY*#Ba=bK-yDs2kr{xCsRh;tzmzhb6>9 z!z+!FI)u7k9fl1aR<{6Rb(#qU59Ak=h_2T0ar}&kf$rP4^hRW*)_l%I!1KROf`P)) z2MGiZQI*|?s^T!TAY`p_e+dw98bH9&ELHjiE7;c;&=hB;DbKUs*7chHcwS>>?5k2X zp7QG43(FDIEQzG>$ws8!ZtSL+a~6-GO3XhBmGXD*rd@xN*P6&K%~IvQsKK~mQb@B& znOIXfL%=A0T}>ki50;ffb)L6t)Hpo7O2uKpP*QnuNkvcZ7+jf1M9EJKck{Er0rd+S z=^O6^6DG2}`u2S{E__E%YL(>)Yet6OO*dmT3ItOyJl?OsHTW3*HpI6^v($s$sAGQW&Iq+~bF@Em2$N)h_?PSD zFNSos=ZjgM*=UQLi`D+ET-=unMuvArE5e=BJ$R=i1hS?y}#89}ucRG*1PD=%dmAiyfM#)nR(>UJ0wzQnF2;OY3FpZoVXs+cy2w5;?GQ$<2e zu|#iFD=ow}--1<8ZyobjRWkurqBk9Rt{?GAKrI;Q9zBLzZJaQ;ho{E4;I!6;pT$iX zS#$C8bIak_Kk3dF92Spdm6>ggwrk&Z%+#hbn9KM1UQBdba`4JOzLqFGQ$(Mc6`_Sa z>2U(>7)j=}3e*Pz?%(KIyA1H%1{)%%Nf*%@0bM+D+(`kq2KwZ*I4VfHF!=@9FDvf( z`D5Cx&Iap(E)z~MuBMM|Ns<5%P%f*;vidnD<8)(8dNv&jv|>5$nb&i>+#`geKYw6} zs3PT6u=@HGWyd^;J@9Q$(ot!|lp4;Qrkl549^Q|)eBMOVeorn*`w#^4TIQ!@;j7&} z9jKr9SzUF3jZ=DpFN7>#&2XI5qjeoeB~fm-glu&dEb0p1Vc|JcV|rPadNR7eIg+YT zLWliky9=Z8uLXGp{|#G$P#Gg@h1E>)KAdDmO{b&8e2ke8G}t7k_78@NFc#F0JXn|K zBvx!abv-#UJu8Tw>T4$Mnk!cA>%@Qq*QbZ};0q`@1DY5aSuFp7Bp-&rG7uC;x6rA7 z-&=2G!#I_&T8pGOhQO5XUKHg8{w~_v^~rQ=q+?je+e{P>8?c)n&tiGj12TFTV;$st z=imv0loSAktP4ipl*=6htfl+=WF}G)C<@j{hH6KSSnUA^irkKXuN>mhbMO<&)L9qz ztxRgH)b)$4gWy-G7G{hdY%H>OqmH8Kiy4|O$&Qj{IOnqbUcP|=?pi__3Uy1aLIaXT z;d4MJh&5FK?Qa(sU1p@pZKR<{N-QlW{S#Orx5zh4 zlU(^I9ua#zo)9`cmCW5Kvt)91pz~0b@&G?Uw2oD%2yV27VTW}>Eenh@0=U_{(9%HS z*C(a5G=1JvO&8Gjti7os4ro{Vz)^K%IlS?fIYb%(zC8>f85Ll-9YkHMM6S$>y!cYT z1!SeBmg^~lOVX+>Lz83WdPQ++h8if4oWH1slf@6-32CtPG{~*G_I6H&G&0VYX-=$# zq7{EUG?nMAbXe7^NV!fPq7}KKeYt2&Fi7xVgvFQ%z4Z~Q27(JT@Cadr_?d|J;tJeEN9xPppq8Bu@=l-p?5xgbM{uJIeJS-PkEfhDz|l3rh3e{N z6Cl11KlvT7)QQ+Xl`qK>!Ae6u1K$q+%+?(XC?gGoN4>bRfpG6Fh@Q{H2N^RdDSz> z9#GX){2iX!;5fyiR~cPQ9@+BDz*xjn<1~BopQ?g3p6ZM_OE~H2fF1hvX;z=qfH<`i z_cPC*N)R{+*jZy%z|hj71bRpZ44Wm3Hy?9bl;fDtL3zH{a`}+!);WGv8VBmF(Ag<5 zvs#%3Mf|+(y)9->pV$x9Ce!7TyyjVegn{&u;Sw~l<2as_WBAt>PSk88Hc28D;TW4s zN>HnoZ$=YxHg+OkcX|B&kQ=@aCMH^UV@sD1ZauA(hjO!9ebL?KskYqa;piGWM1P^y z1@Y3$$V5t!4}m9XMbDLXadOE(9L3v26t;yxGY;P}ZbMx+#Gh<*J5>WKi==HW>GtE- z0k&s-L-LJ4?!0cLr4X&4>&$rrPIuZCHv!tRJ0`AyV#S}yU?7L`D3Tn$iMEOF*nn=M zIDL9;bkMPXrQN-JL+W@>%o%^wD{XBlQ>A)+uI)nFTA&;MYtebFrK1q-&0p9k<5VSF z@?(|%Gdp164bk76uKRMb82gs%moxKY-syEm0U^sI38*rKAiLv8C(>6E0j2T zI4B48ksbj&V)aN9gVR@x`Flb*{v`D=w&v8`MavBqkxb>4 zc~+y2AGRQ?Uck}=nxIDfq{ zd;hm3d8#P^Q#M5dNa3yGk(4=vl=k;PViIqw%R~LT4L*_kZ&GXvChe3)^_otV+Nkxp zwzDTrd>n_#DJ5!~)aSi&x9#_%1TxNL3@+q9!#3q%)Z6q{Z&kvpb?l?tz!i;sptI0` z;AF`$Oag5*)Xjp3N;T0yVn{^qBdF6h)Ck_Ue@nNQF+6W9>e_E0mrQRrBSGbVt!`LH zuaedju6j`$BvedYKBHA2ecp)#x8ThyKcL%t9zLH^{mpC>c*G-&;?>pDU6Zr|Y0WCHAfrOseG`WZPzMHfc-H0N> zQRK|s>|TkRlvYl_B)9L{Z4^4UG~h9l=gDh#iMZu-lkUBzpq3oxA;FJohjMo;j41a3 z22P0kqTrNq(`H}pKIwGX*)WfYX5tw$?mhDxE^3s-%sce9W=+wsS7-imPiGXkgDsM6 zowj>a_V}8QTB;`$Cr&tw#D@sFvE*wgI#!HW@wE`#gc6z(W0-fGSMu^44^NHXUmRo} zjD*Umr|s!tcFJP7>E7ch*6h#Me$J)$ULRJ>%&@s^%fD<}tyI4m=q(~k2Yj_PL@fOF z-`+Ipi3#=$i7;V#TQ|nmYadI+(l%B@20A_0h7lYrR>tmoXD6#*RMKK+TbdvI&Ek5E{W>TYiXL>cS-q5P9fP{aqMdq{g1fQ4~^4 zB<@ZMjpvP~FuYacPKg{Q#;1f<_zn4dgEE#2)(9QXIn~_#_hpayOcnnri%k!k&iK@o zdA4n#?9<(2(yYmL*41h6&YyLQs>SNJho)Ae4!c|Z%WeB2;_`&pQAN4O*{8vR4$N0D zhhEvoTE#EP8kJ#M$`|397jd)iTV#!BqUZ3uP!M?TMyhw0K{W|snIa!*7SecH%O+)y zBlwJ?4(CCz>xC!&*J+O?! z=_McM8)pWN&%c)@;2I1TcTq~;%rhf|p}0Xdve(0rcre)J-M@KB$(rDbbK2Cf84qho zMTpD#+f}g3mc3wKOn`4>|5XdTK(4L-4S9lNkMn{)-voy7QmHX9to!YvVlg8UCxLVY zCbRy9nS}dFo>PfqDk2WfN!t592XAU}6~Kvfu+A9M7_x(C79i@#lgQ}p&DhNj64FI0 zI4sc8w=JauYjuSK_t@mZnt)=kVrjm4!>34cswwp-vn0%WlVZmhF31ZR7Ptv|}&DCmE8RN2m3rG}~5+ z07c@dPb{WT!B&%LSTsSexqny^i$20G((4$QdvnGZQjq(XfnQV=5rgQdCUmabx9?zK#wco#!O>KX@_k^Je2Q$W*QEtQY*y# zP3qZ{M%>vS@*3Ru-N0RMn#E>5)5JJTgIn)vmpeMhqMH8acp{Uxy3Kv#BhBFt{omz% zZHuxMCX74Hf`Hwa?!BLx(O6;Zh{oh1 zk9?Tm2WBR8GEiCj!Ywjjg5qkgkPm)OBVoAa0Anb-81s@YwA8POu|YybRh{Z;Y(#=@ zawHH3n>7}m6HFy7o)u+jG#HquHrn`{XwYP9Kbp>0P{)$LPq58;1P&37^OF|AYi;g( zE16q5W@YMaw(_GY8gy8eh?GsirgiJ?)11BHon@2 z2k?CyXF^c}@a~onwJ2e|$bbMr`g-rOR3+#ozPd#1YrHd=nv`(%_VP<2+PIWPF9N9H zq+6r#yodRe~GJSDxd?Ysbs(A`;H~ z2cshGOmhy@h`h}Qg0l#en1aR&tgOq58Og{h_aT_b1|_!y{)7i=8)AC`425Fh09Ef; zN&2hR2k%RQ-Ib&6T}w&$)d#LE`~BN1n`xW2bBb!JP938R*}P4syXwi|1=W+q`;6tI zlglY7sem`;(Egfr5sE7uEVom^we!@iKGxnxZ#qanxh7>x2W2Z37J++aIyhFb6i6i+ z-%r|}!ZM=pgJka17$qBs#RWv}k&v)mVoP!e>9*5Rd|tQtLODMmYupBbTRto0vVNE~ zL@KHU%7Ug+km4GhdVO;$7N^1Z$9eElbk#&HRa2IB$&aL6F+ZZ~-%K8_&lArt8ZFNa zZ>>@-;66ED@^3F8hF{M-hN49}Z?RN8x47e(yE^-6Qr1~~``1k+jokRzdZJ#T ze?CJnKrp8Y165+f+?bw+@_Y?%u-$k&ci>&Vc9##X6b%V5UtVQ*F}#yDp3kS?#jw{a z&8gS$#pxj?^)F+5IVA)w(M>1t0UW|k8er6zQ)6(%j<9)3`6h+jSR~?fvI3fPVJVM+ zwCN#RBLikE)5lbgaD2zd0Gq_Nk%QjTkTEbwie6*tgDY65K~K&^CzhMnZ1OIY#TcIE z17&d65gVw?>P|QcQFP0(gEe1c%<%(p$kg7L)n0cfC3mJtR?d`sGa2(^aQ6>ISNN?a z-J^~O2SXiYVn6bO#&kDj*^5@Dq(FM5XiX4+0uyC;ECk&Q7&k8-5s%231WBA?$q0a9 zXMy6;|QB#W|+(v zO`d8rhA}$HuBy9OscnOYCeZFokYRpi@1bRp-I_&4qY0mz)dv8 z#psFjfRS)w6fSp|gt2NY0OR?&ol6BnpGjYkiYa3CnjR6X!%qwmPg)L#a&-Nb{oV2H zO_$lCeg)Jzczqn6q+{^q-BgdzhMM-Sbi>iS0zdfdq6(c8zG7_{jgca5gy~#3d7O0} z#=MarJ;x^wl?0x2m=3AZqWyJqK?Ge;x4qX#DpG8$R4pVvS1%z2%!}@Idi(P#hs=l0 zbeX2*YrM|Dr`N*!Ifv|L#sj|afrtl@aUa4)SDlXmz+EP`&5FD zH^4h6n@v8B&1dA=lz<+14Z?%#FV_l(PX(uP^O83`(#wDb`dpW)0(y8nGWxbRTN4qg zbPU*fXZ^u~Yy|M%@qq=pIZX~a)a<1{R}ixEQ{PwCmvJcSi??WZ5K>LnI@Cj9K={AN zbtd=RRU~KDiP{d~1tc=>BfLc^!n7cB9`KcuG*3h%hC>>Gc-FqGJ#D{Az`w4n z>;DvS&)uSF;os}x#=WTf%HmFzK>{QbkiW!_RO6LL>ck8dr}b%)tf7M}m$@%eVNR~$pjWIY>)K76S&6D)ErTYo$!HbpW?J(LEb1Oh$ZHwXN1VXL70mn0hQUgw2^-o1YBD=iZc88NCXQc; zG}na7)C7!ox@$qVt+U6?6dipyH+rh4^T|;1{c5 z+KB?(kr}w(*g+=mOvH}!!q=G z_xI0Tg_ykAxA`S9xAJZ$P^cB4EX&1`Ps=_2hRR4R!B zePQ~o{hbjJpb3KMMZsq1*J@(r{ltu{JFT3YkH>GUB1~8#?T>dK(ZY)hUEV?TAckZEm<8m!rW?ciPRR}Sl6Yh7Qq z@;hYn@cSF`r9^T-)LuFshVKpK(d^`c`5B{_nCxn(lLIv0F)EirmwNF7Guoeyd}Vkm zve@n34B@6edk^VE|A2|r`k( zRg-Mi;u||Z`OySCTK3@T>(UrSTgPBLBFc4pTFx2xHmpm;PO3L5{mkDGSOUGEZ$3!5 zLj6t*e#X8riT-kd@x-b6y~G?N@rX2u5QNA4ld=4cAiA!g#TjIOw^LMNR>9B~k5|tu z6}X36Ay|b*C|MGbBT5Krbc;*8Q(0;IU@;5{`tp^#?0HS14m5^2BAtv7Jr<^r1yQGu zP|-$dQdV_YmC&%Ml2j@pjzKzfk)XN2JhaOcS<=ftV9^@Nn9S(0f6rT0GqeX_^pl{X zRfjUNPfT@zW|`PwNr9da2U{AeQ|S;=R!Bq|Ku^+a?TuGF-A+MX+36CbQ(Z{d2zybS zgye5ZsWq(9HY{3t;~hhCbOvo9fcxL?@`w;9S0%{PnBWwuFQv>o!S4U=j2?e6q-vl@?G zk~X>MqMKZrw9{AkYtz>yuM4k*q2jbBOI6D#~xqViag*hj9#4yU#j=25+6~h{c5z2|Mh?PZe?Tuj&(Su5)z2AX0V3TOflX7$@yQZv$<@WkFiv(@D z#q*Q@2#_7oiKZ-KGIjCmroEgtO4+{>u$!qm+{V4gJ{&}%Je;oN$4BHJ??a?9w%Qn+ zA49Rv&qUp;b?CTvTi+K}?3$;dHhk{7-etD%(>%^w>PoIidH*fMSkYjz`n>h_E22eH zWP2%hnp{~e%kyA5zbbm8eiQY;R^eibVl@I|K36Ttm7u7d>!RA5qLM;xI$|Rk0aF2) zkQ08N{@vimdl`nE5-VHIvD{d2{e&fI;$>lRo}pCOSZNvkO>;G~q>pM-A9rCpgMP$G zWLM)e+H<~}Byt%;WYf|m{|=_vht2D&3hH^7!^#E@E6t+KD;tAYn#PR=w}VOBPmEg| zFVg;q-Ik&r)BN*&9N~=b`kPs^IpEPMVa>&Od2zB@(r!B?A2Ej(DT!k^ul2^#y-_7Z z7?2%^K~~D#ZBVWkJ>OxDi3|>V;#!jCPOm0`OW1~)ECr_^6%~w4oZvjvP)Dl~9p%1gogfOFu6PbC5kIiBpYj;{s!w655Podi3k^ zSY;L!&rb1E6)u%b+IgZ(lfz>!iiJVA5lsc&LPq;}hTQHBWee3>ZNv3Z=n~29XfgUZ z7@9a>q^mm1nTO6E=P`_GuWN{RTvOTsRy`GBffl_SeMb5?X1EsJm&1tL2X=EcYX5|B zgnsne&jRtH8Z?rnneHz$2@{_;BUU;!Ix%egsGc1LxW=C?kK!IH2K&VTG%km2N={MP zDu@Y3Rmk8EE|=^HZ+8aS`10U)bO|FJYMbA?RzVEQBlp5+_bOZFBdnZKqtyEfg7Lyl z4adqX_*%-0bpw<^A!!js3?@B)M@#atJDMOHk`m9qL}&iI^s8^z37kB^6nF#kbL}L$ zhp+R=>NZ&qczRWV#K5@2uE2C-@U7c1kfcUQ(5*<%NA9NzM&W78uQf2@albRKYyS&t*#b-9 zCxDExUpqG^6>dJ+N<1@{U39t94_ILuf_0O~AYIG;^>%!k4{xn!`(kA2|5O_x$J9}n zEmE7PW<)Uw%m4_GH>Y)d(sb2|WrJb|iOJ#9+XSU+53T9)rL0@K-*{#g>M~E$tPw(A>A*=(>X}~13FV?jQPpzRnmN~C|6*YBW zklLeHW@NO5Z)YrGuPwGO*R`)bsj5{y0u{S_4cE3JT6iVS`Sj<%N^~Zz?qHb8VzPFM zTOov74bZ1&W@=h`Fzm?fb}Csc!CweLKugfg|EA$!Gp|#fNaj8i*c{;o+uGdA&cPsH zlIW9@|A91NkcXwDplXVQX!DQ)ila%e8v5}3H)1?N3CNYLwbag@wLZ|9`)VK6V{j8Q zOd-Hf*EiA7f+HJGAVLeFm?rHg`Yc~1X>EkG9^Dv>XypCXxJYw0NMF?z;Ru_?V`rr9 zuD*C)vplMXD|@OUTP(PJES$X9Zu-u%ncLiKl35Mh7OvM6+ZV>pF5Z-j^5&oz|MGOX z=GQ#pe|gY1+g?x9)b1o8Ve@=?e{p-crf3tlx<0R?{@!#!x5dn!(bpKO*TuG#9(Adb z>mMSqiR!|`@m#6dYI2BL(0(UDHJ#<~#&J1yp~+OAD2ozOJxY`SG^+iZj04%zZ`J!W zHHkAIL;r+~$hJLV(0FbNIb}6HTpN+p)`3P2D+kuBpz$q?ozCf-V-sa{4u8VqWQ%m8 zRp7qc-EU)R%2NQl-9VK_Xl`g~qbSPDGvyx>IKg%hk!W|WysrV(81RSC$C@~NEhoAo z6#-eZi{*D9_f{)6I18^4|F8fp%16TI&tDp?FL&%rBYne-$ly1znJDh@%@~A*!?pk^ z$|;f?=ylF6FwFvS-=0y;n+I(2l+!Mxk8~J8OUemtH6*ps?Hp)#bUPns@EdOSAdcnvO?&cBxRLd z-c8puf_=_Tv!OSJ4~py(@oo&m0@>14&?UwKtrqYuz$&~t(n~zbfzg+$NuhNY9P)Bz zr)rGPm8i>=b#Fb_lKE?m*Y2L@lLZT{;;J_t@+UYN(c3jTUVFHE5W6{Scd{>ZYDAi* zt$FzH6gjxF4a*w@#CsuwwB12*hS80^S^`@%ZzpV;1o1ad_Z^1enve=#4b@=3E znJ=I+l%sH}YHV%F7)xSoCN7m^9iCC9eOjk-_nx{9)kb4cFt@wt*J=SL``S%4ACo@n za1@J9nI&*4oH8=SA_pGTclike?rlZDXP+PW;pqTs!aY2pgh%cl1IntO`9w}q&VnQcj9M@Rsh3=x6Mu?_G{(GY zby#Ytdq!xOqkSHU2#-)$$&dnIFr#tJCo9c|1RSm;4BWCwQ%Jm8qKHv%swi%1=gu42 z4ELwEFBh?KMk|r20=Qf8*D`JY7!R2ue!tCGUl5%)`x@lA@+UmkXODnW-V+N7$mT_4 z);HKUib%U=K2W77KDq?~q!bvC{;%FXungD)p|19n*txf1w9Sv9eG5s+oPXGwyv~a& zs#faFU&SgRy>F=J1m5S`_dTNj9I4t~>o|fgoRl>1|J_9|Wh_^1Z=7N5@$51j3?PiB z#f^L-Zs}MbTD@e!Y(S}rA{jAgrXa}*j0Da%$W##b9^8;KU~OBIOH^?-e6^WeNihdT ziPXHKHoG8~Z41%*(v4TfPe&n()yErElCgCfxz7kfRFt~~slt}UCyq%BS}GI?Xzz{} z4MRcUC5-LX*GhQwV>!%c{ldLUO;Qql{iqih)zZ{waPl(n+ml_sD@5wsG)8JFc*qe< z2Gy+~+JJT`VJLH?u--2+IE#*Wdy;>EY%ZkHp78V_fSxYB{#?9Qi8FJkZmW0i#TxMC zIB9xg{{(Yt)+^O|UhHl71Cy+>sPC8t$2pmYc;f+`#toUuiayt^J!hihFMz{jg0Q^M zvga}|vw#J>1hc)>MZ=BNAhNQ5zNXyRU>i`})luG<6Qxfw|5Om1ogK-1F9N>g#e2&G zu#`RXE>=j(s-U0D8}o$0{{CzX^j7c<@H&|vhUVPS$+1hO2zs{)0-3TOoRMdaCC`=F zAKR48D0?_r2reI}-2t=L6SP&!Hy8BD5=vur=)YLSHhvnm0Gfz;Wzg<-xm ze1%lC6#&fi{q`N89g}Ofx&z~#eOV8}u zf`^kf*Uv!`6t_yWNwh}K@9RcsJ}ENiRs6n;%H8K|G}N=2(kwHYi%k^Ws50a=R#h8~ zgxeJ@+?k4-PVkdP&bXyN7$(Xg$%RzqAk95;xoe0006BO)ynGqiyuYe~Co;tR62#YB z>U5WL`P<-{z;sDowb*n(;JBOFgyP_hi%r)% zIJ1qbh9DzClTf15Zvo)=>opRhCN80LG}fI6x;d&R*@=_v)y7zK04TP216M(Bpf1+QvxAP2<3 zmzy)@XiCJWn8_dtKEs{-%P&}7Moi%D3ZV~3D>y#|u`58zKe*1TG2umydw*BW(Sw?X z%go}e=M?9Fw&%eN!dL&;iMTFP_U(|N1|d5Fsmm!XqkS7b@V02=`*uz@C9fgHFky^0 z6eG;jm1aOZ#3LSL$#C**5_oqQK3@}2_#9{TvzqYs9Pv@)w7}MFTK!n_vB0(YQt$|< z^ymy2L6zGUc|E=3l%oCyF*SgCE7Qf&y#OZj=U;e!0s>iV5SP24b4wA)6slbkKPqVa z?L7vIXHveS>h38t5DB(K7mO+b>$HL{jmcsulpV9gIQ+x8|K(jy>TN9DWHsRd-ESVJQ5c}`_fCcA#g-Gmp zL9`a{aW52!x-Xv(liSJ&(t9irNI!(V-XjjUhIaKPVf1eo_X~Srh+bxvmvd1SB{2vp z%wybkv@OTW;}j214>YImKO4Mx*VExQxs$uc1oj(hCj=~pPXQce4-mYN3K~rT&4clb zV5Q3QA)*t>xFc<)$Gw1SYsK|7B|$F-FRzC1FnhN_gFTQu|AQqEncRzh0Z6B{M)+C< z?u7TwN`dnG0r#=owToakaXE%{HxfBuQy5p=EZ(YlaaVUr2=-6PP)+q>>hzs585^st zY6X>ID{0?7@ z=h44eJX;z{S1wJhYB!nt&1~C_TX)&^X*2?!zN!SN1c%|6_m5ayicG1(l*Fy;#;DzL zNcKsqTvA%YiB)@?rim}#*ZBHl+u8^>-_NuAuhV<%)0+B}?EN!mTw3Dx*D$=fr${(d ztqrI?OuuBAvJdwwJ4{1s#VOB+F3a$^pK;jc!^>uQA}tp0M?tagM(|)71f;VY>(F>& z5E?p1FmY%imeRp8ba6QUHQK$*NNA)javS{-@X&e zvtv0<#1x?N>6t|SePNQkwwJyq(K<7g@jJmdML2nT?gZO?nqU;AwC0{U8(w-dM`0*L z>xv;G(}c96S4)A_{IyijaH#&KvIJB`3D48TL;Ez}==}t%=T7tmytIby6cLutzXBlT zg%rq64!uz)`MUkLozQE9WyU#Ua)^a8;n>HbA^Aw^JVulCABWe7wT?Bmsmbw%BZu9l zbPU79H^?Pg&By<#ThlePHJnSOr_bI#q72{~2g`-%U$yB@=|A~a`97}QGD-s2vty+4 z?F!Pw8XCm3MuY0uqe?= zSwbc1gbRN{l5YYTfwFkLBUr^3bqOrHY;3XDO8DMMEd;wD9o z0A%eejz)}V2c{GY%pwWsd*cO1^>_UGe)vX~t47NI;2jX64Mv7}g@FM$!j#4Sul`SW z#=nm)7`WpG(9a%B8>tW}6R9039@&6FOZTN8uXkrKX23C2IrI@q5>*s#1UC+%g1N-D z1h%AO31q2m$!!U~l3m+Sw_b~0H?7ax{}s{iTM%x5NCr}ZRf25-dkjwlUCmZ4u4&Q2 zV|#9=YD>HC-9t2}IOGtf8q*v#9cqKe3*L?AgY^yb1@hqodI7oy3J1}Fc!1o9@PHhN zc!8)%*dlwAgpd>K7aJiLDHk$>mFLl?*(cto7^e?279nmX79uv4q)u=zd4NouMx1OEGTx(5t}jn}~>T|FSoYs}qzy6e$!tlqAX&xu>F%JdA>+;zr4f z^e7*Nj9Ks;rV*SG_#xFH#h6FpcIilIY8i2Xp!d`Cg#4)@x5w9&t&5KU(>mL;#=D)k_n!<{DfwCzCKT@`SI(eT5`YzvG~WPcZM|H&2*@KD4d z>ZZ&d%IB$Z4elssli^YR@DKb_?x&>sq=6BfclO8%R(xFRQh)rr5*PyK-r^5}4GT(l z(-Y?(M64o)+Qlq4z`myGQhFU9)CHLk2ixKqNeHfUWv*$V*`7&Ty0JGoEhhl9&h-d* zXUnhVqeXXu3;AMkfGcaZn+#+$P#2ewEuZhXC^A9#t1B5K2yqA)1ge(y_I3?h7njx@LRV0N zd5f!)3@xoilPpGM9cc?qi--H^K9$+G?rEJWw0(?itnKuT^gd8DgWm~inIvlQMQZ7z zQhJ!lM(oKppOa9PBNCMpe=5h!E2pq3NB>q%a#W7HS5AXjj)+)JkXnuzTTY=_j;dHr zvNS^e!j<@Aj@93+Gklxb6P7tJn%U=QOqZa@9;Kc+WqCxG!k9XomN^Jv;sAHd zkaN$L1KkoEq1H2~*;k}Fbg0>zq&c{#+25o&{J7B*wJ|Wc(O0!Gbh*)+wK2H4(cif- z{K?f5z%|g%)mOkZw9nO>z%@9})!)E1eBaR%(J?UI(O1zibWU{uyLCXlb%eWh$h~z8 z!gD~xbA-%u$jEaH-E~0Ob%fn@$k}xa?tMV!eT43P$m)Fz|CPz+we-=-$dIZ(H*%47 z`LytqPrY_o7p2jH+w4f$?2O%f{($h%u25c}K0$c|{f`>d{I8W5{Qp{` z;u^(eVpm0@qI=ha=jrR%ebO=Iv}$&Zr>s%Q9d}aan6^>PKh^cJ%LQk1&Zew28LN_i z^DAbass=T6%PSTa%uiSzQJq8D%l{8;TKoUrY-S?53a(E$-=e$b@!mgozD_vWqN@we z|Bo}QWPIVw{~yaPI6h%_kN*F<`CG030)I4)=;(s&#O!&yvAS)K8t;Pb6V|t=|GR7A z#uXi&wR6Pzf8#Lk*Bj=s9lzdfc + + + + Error + + +
+

Error.

+

An error occurred while processing your request.

+
+ + diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml new file mode 100644 index 00000000..b38f9984 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -0,0 +1,28 @@ + + + + + + @ViewBag.Title - Ignia OnTopic + @Styles.Render("~/Shared/Styles") + + + + @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" }) + + + +
+ @RenderBody() +
+ + @RenderSection("scripts", required: false) + + + diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewStart.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewStart.cshtml new file mode 100644 index 00000000..66e1fead --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "~/Areas/Editor/Views/Shared/_Layout.cshtml"; +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config new file mode 100644 index 00000000..f8bdef79 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config @@ -0,0 +1,36 @@ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From c6ab6f9f0f62798298c6e877630dc85ea36d9db1 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 17:01:58 -0700 Subject: [PATCH 006/637] Scaffolded placeholder `EditorAttributes` Specifically, introduced `BooleanEditorAttribute` and `FormFieldEditorAttribute`. --- .../Attributes/BooleanEditorAttribute.cs | 50 +++++++++++++++++++ .../Attributes/FormFieldEditorAttribute.cs | 50 +++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/FormFieldEditorAttribute.cs diff --git a/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs new file mode 100644 index 00000000..b4271971 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs @@ -0,0 +1,50 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: BOOLEAN EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a boolean attribute in the Topic Editor. + /// + /// + /// + public class BooleanEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private string _key = null; + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public BooleanEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + /// + /// The CkEditor that Ignia uses for the frontend will occasionally inject extraneous line breaks. Prior to saving, this + /// strips any extra line breaks from the body. + /// + public override string GetValue() { + return Value.Equals("True")? "1" : "0"; + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/FormFieldEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/FormFieldEditorAttribute.cs new file mode 100644 index 00000000..b4271971 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/FormFieldEditorAttribute.cs @@ -0,0 +1,50 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: BOOLEAN EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a boolean attribute in the Topic Editor. + /// + /// + /// + public class BooleanEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private string _key = null; + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public BooleanEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + /// + /// The CkEditor that Ignia uses for the frontend will occasionally inject extraneous line breaks. Prior to saving, this + /// strips any extra line breaks from the body. + /// + public override string GetValue() { + return Value.Equals("True")? "1" : "0"; + } + + } //Class + +} //Namespace From 14fe3e8ec9914d3a315c6c15454110ab4fce6606 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 17:02:24 -0700 Subject: [PATCH 007/637] Added model namespaces --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config index f8bdef79..f4e24f75 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/web.config @@ -18,7 +18,8 @@ - + + From 6a0096d957e87e0a4fa5c2154a422de717c172c6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 17:04:47 -0700 Subject: [PATCH 008/637] Call editor templates The `EditorForModel()` call should identify the appropriate corresponding editors from the `EditorTemplates` folder based on the content types of each item. --- .../Areas/Editor/Views/Editor/Index.cshtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index db980e59..4328178d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -1,4 +1,8 @@ -@{ +@model Ignia.Topics.Editor.Models.EditorViewModel + +@{ ViewBag.Title = "Home Page"; } +@Html.EditorForModel() + From 0c0002c74b95ad563abc79352babd1a2fd20108f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 17:05:15 -0700 Subject: [PATCH 009/637] Added placeholder Editor Templates --- .../Editor/EditorTemplates/Boolean.cshtml | 2 ++ .../Editor/EditorTemplates/FormField.cshtml | 2 ++ .../Editor/EditorTemplates/HtmlEditor.cshtml | 2 ++ .../Ignia.Topics.Editor.Mvc.csproj | 26 ++++++++----------- 4 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml new file mode 100644 index 00000000..82873d81 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml @@ -0,0 +1,2 @@ +@model Ignia.Topics.Editor.Models.Attributes.HtmlEditorAttribute + diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml new file mode 100644 index 00000000..55f6c89c --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml @@ -0,0 +1,2 @@ +@model Ignia.Topics.Editor.Models.Attributes.FormFieldEditorAttribute + diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml new file mode 100644 index 00000000..82873d81 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml @@ -0,0 +1,2 @@ +@model Ignia.Topics.Editor.Models.Attributes.HtmlEditorAttribute + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index a6495fdb..d1e2e46f 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -155,7 +155,7 @@ - + Global.asax @@ -163,13 +163,12 @@ - - + PreserveNewest - + Web.config @@ -177,30 +176,27 @@ Web.config - - - - - + + - - - - + - + - + + + + From 55e1a077147fd70089fa83a4c7c64b3c66967eab Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 17:23:08 -0700 Subject: [PATCH 010/637] Updated comments --- .../Attributes/BooleanEditorAttribute.cs | 3 +-- .../Attributes/FormFieldEditorAttribute.cs | 10 +++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs index b4271971..53a51b1d 100644 --- a/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs @@ -38,8 +38,7 @@ public BooleanEditorAttribute() : base() { /// Retrieves the value associated with the attribute. /// /// - /// The CkEditor that Ignia uses for the frontend will occasionally inject extraneous line breaks. Prior to saving, this - /// strips any extra line breaks from the body. + /// Determines whether the value is checked and, if it is, returns "1"; otherwise returns "0". /// public override string GetValue() { return Value.Equals("True")? "1" : "0"; diff --git a/Ignia.Topics.Editor.Models/Attributes/FormFieldEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/FormFieldEditorAttribute.cs index b4271971..1df07bad 100644 --- a/Ignia.Topics.Editor.Models/Attributes/FormFieldEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Attributes/FormFieldEditorAttribute.cs @@ -15,7 +15,7 @@ namespace Ignia.Topics.Editor.Models.Attributes { /// /// /// - public class BooleanEditorAttribute : EditorAttribute { + public class FormFieldEditorAttribute : EditorAttribute { /*========================================================================================================================== | PRIVATE VARIABLES @@ -28,7 +28,7 @@ public class BooleanEditorAttribute : EditorAttribute { /// /// Initializes a new instance of the class, using the specified key/value pair. /// - public BooleanEditorAttribute() : base() { + public FormFieldEditorAttribute() : base() { } /*========================================================================================================================== @@ -37,12 +37,8 @@ public BooleanEditorAttribute() : base() { /// /// Retrieves the value associated with the attribute. /// - /// - /// The CkEditor that Ignia uses for the frontend will occasionally inject extraneous line breaks. Prior to saving, this - /// strips any extra line breaks from the body. - /// public override string GetValue() { - return Value.Equals("True")? "1" : "0"; + return Value; } } //Class From ba6779c8ff8314ded4bed5bbbb059dcd797ae262 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 17:23:40 -0700 Subject: [PATCH 011/637] Added titles to views --- .../Editor/Views/Editor/EditorTemplates/Boolean.cshtml | 1 + .../Editor/Views/Editor/EditorTemplates/FormField.cshtml | 1 + .../Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml | 1 + .../Areas/Editor/Views/Editor/Index.cshtml | 8 +++++++- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml index 82873d81..cb1b2eb4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml @@ -1,2 +1,3 @@ @model Ignia.Topics.Editor.Models.Attributes.HtmlEditorAttribute +

@Model.Key (Boolean)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml index 55f6c89c..d3c9e9f0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml @@ -1,2 +1,3 @@ @model Ignia.Topics.Editor.Models.Attributes.FormFieldEditorAttribute +

@Model.Key (FormField)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml index 82873d81..1b1c866b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml @@ -1,2 +1,3 @@ @model Ignia.Topics.Editor.Models.Attributes.HtmlEditorAttribute +

@Model.Key (HTML)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index 4328178d..45255730 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -4,5 +4,11 @@ ViewBag.Title = "Home Page"; } -@Html.EditorForModel() +

@Model.Topic.Title

+@using (Html.BeginForm()) { + + @Html.EditorForModel() + + +} From fd50e0ae1c2b6f1e8fd81ad98151a5a6f35a6433 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 21:18:42 -0700 Subject: [PATCH 012/637] Based views on `Attribute` This way they can be bound to the `Attribute` definition off of the `ContentType` instance. --- .../Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml | 2 +- .../Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml | 2 +- .../Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml index cb1b2eb4..8d1b7972 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml @@ -1,3 +1,3 @@ -@model Ignia.Topics.Editor.Models.Attributes.HtmlEditorAttribute +@model Ignia.Topics.Attribute

@Model.Key (Boolean)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml index d3c9e9f0..01e33397 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml @@ -1,3 +1,3 @@ -@model Ignia.Topics.Editor.Models.Attributes.FormFieldEditorAttribute +@model Ignia.Topics.Attribute

@Model.Key (FormField)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml index 1b1c866b..e7f7ddf5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml @@ -1,3 +1,3 @@ -@model Ignia.Topics.Editor.Models.Attributes.HtmlEditorAttribute +@model Ignia.Topics.Attribute

@Model.Key (HTML)

\ No newline at end of file From 21655065c3b5cdd95c8761bd99a80ffe4b34bbfd Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 22:18:12 -0700 Subject: [PATCH 013/637] Replaced `EditorForModel` with explicit loop Calling `EditorFor()` on each instance of an `Attribute`. Also added some metadata and markup for future formatting. --- .../Areas/Editor/Views/Editor/Index.cshtml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index 45255730..c7760b40 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -8,7 +8,17 @@ @using (Html.BeginForm()) { - @Html.EditorForModel() + @foreach (var attribute in Model.ContentType.SupportedAttributes.Values) { +
+

@attribute.Title

+

@attribute.Description

+
+ @Html.EditorFor(m => attribute, attribute.Type, attribute.Key, Model.Topic) +
+
+ } + } + From 255a2f2ded2fe05d258f6635f7ad98073d9e8063 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 22:19:19 -0700 Subject: [PATCH 014/637] Set `EditorViewModel` in `Index()` --- .../Editor/Controllers/EditorController.cs | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index ebf1af06..7d1e274a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -9,6 +9,7 @@ using System.Web; using System.Web.Mvc; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Attributes; using Ignia.Topics.Repositories; namespace Ignia.Topics.Editor.Mvc.Controllers { @@ -65,6 +66,19 @@ protected Topic CurrentTopic { } } + /*========================================================================================================================== + | CURRENT CONTENT TYPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the current content type associated with the request. + /// + /// The Content Type associated with the current request. + protected ContentType CurrentContentType { + get { + return TopicRepository.GetContentTypes().Where(t => t.Key.Equals(CurrentTopic.Key)).First(); + } + } + /*========================================================================================================================== | [GET] INDEX \-------------------------------------------------------------------------------------------------------------------------*/ @@ -72,7 +86,17 @@ protected Topic CurrentTopic { /// Present an editor view bound to a specific topic. /// public ActionResult Index() { - return View(); + + /*------------------------------------------------------------------------------------------------------------------------ + | CONSTRUCT VIEW MODEL + \-----------------------------------------------------------------------------------------------------------------------*/ + var editorViewModel = new EditorViewModel(CurrentTopic, CurrentContentType); + + /*------------------------------------------------------------------------------------------------------------------------ + | RETURN VIEW + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(editorViewModel); + } [HttpPost] From 20ef0215fb1df2245494917663f4f516ac79261c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 22:20:30 -0700 Subject: [PATCH 015/637] Scaffolded `[HttpPost]` logic Basic implementation for saving a topic. Will likely need to make adjustments to properly support the querystring parameters (and, indeed, may want to bake them into the `EditorBindingModel`. --- .../Editor/Controllers/EditorController.cs | 85 ++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 7d1e274a..85ecf9a0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -99,9 +99,92 @@ public ActionResult Index() { } + /*========================================================================================================================== + | [POST] INDEX + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Handles postback from the editor, based on an . + /// + /// An instance of the constructed from the HTTP Post. [HttpPost] - public ActionResult Index(EditorBindingModel) { + public ActionResult Index(EditorBindingModel model, bool isNew = false, string contentType = null, bool isModal = false) { + + /*------------------------------------------------------------------------------------------------------------------------ + | SET TOPIC + \-----------------------------------------------------------------------------------------------------------------------*/ + var topic = CurrentTopic; + + if (isNew) { + topic = Topic.Create("NewTopic", contentType); + } + + /*------------------------------------------------------------------------------------------------------------------------ + | SET ATTRIBUTES + \-----------------------------------------------------------------------------------------------------------------------*/ + foreach (var attribute in CurrentContentType.SupportedAttributes.Values) { + + //Handle hidden attributes + if (attribute.IsHidden) { + continue; + } + + //Get reference to current instance + EditorAttribute attributeValue = model.Attributes[attribute.Key]; + + //Save value + if (attribute.Type.Equals("Relationship")) { + SetRelationships(attribute, attributeValue); + } + else if (attribute.Key.Equals("Key")) { + CurrentTopic.Key = attributeValue.Value.TrimStart(' ').TrimEnd(' ').Replace(" ", ""); + } + else if (String.IsNullOrEmpty(attributeValue.Value)) { + CurrentTopic.Attributes.Remove(attribute.Key); + } + else { + CurrentTopic.Attributes.SetValue(attribute.Key, attributeValue.Value); + } + + } + + /*------------------------------------------------------------------------------------------------------------------------ + | SET PARENT + \-----------------------------------------------------------------------------------------------------------------------*/ + if (isNew) { + topic.Parent = CurrentTopic; + } + + /*------------------------------------------------------------------------------------------------------------------------ + | SAVE VALUE + \-----------------------------------------------------------------------------------------------------------------------*/ + //TopicRepository.Save(CurrentTopic); + + /*------------------------------------------------------------------------------------------------------------------------ + | RETURN INDEX + \-----------------------------------------------------------------------------------------------------------------------*/ return Index(); + + } + + /*========================================================================================================================== + | SET RELATIONSHIP VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Private helper function that saves relationship values to the topic. + /// + private void SetRelationships(Attribute attribute, EditorAttribute attributeValue) { + List relatedTopics = attributeValue.Value.Split(',').ToList(); + CurrentTopic.Relationships.ClearTopics(attribute.Key); + foreach (string topicIdString in relatedTopics) { + Topic relatedTopic = null; + bool isTopicId = Int32.TryParse(topicIdString, out int topicIdInt); + if (isTopicId && topicIdInt > 0) { + relatedTopic = TopicRepository.Load().GetTopic(topicIdInt); + } + if (relatedTopic != null) { + CurrentTopic.Relationships.SetTopic(attribute.Key, relatedTopic); + } + } } } //Class From bfef9b305ccac292f51d6c373e1ce34b22c5dc8f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 22:42:08 -0700 Subject: [PATCH 016/637] Added logic for `?IsNew` handling Also, changed `CurrentContentType` to `GetContentType()` so it can be used for retrieving the content type associated with a `?IsNew` request. --- .../Editor/Controllers/EditorController.cs | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 85ecf9a0..0fe5f890 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -67,16 +67,14 @@ protected Topic CurrentTopic { } /*========================================================================================================================== - | CURRENT CONTENT TYPE + | GET CONTENT TYPE \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Provides a reference to the current content type associated with the request. + /// Provides a reference to the a strongly typed content type, if available. /// /// The Content Type associated with the current request. - protected ContentType CurrentContentType { - get { - return TopicRepository.GetContentTypes().Where(t => t.Key.Equals(CurrentTopic.Key)).First(); - } + protected ContentType GetContentType(string contentType) { + return TopicRepository.GetContentTypes().Where(t => t.Key.Equals(contentType)).First(); } /*========================================================================================================================== @@ -85,12 +83,18 @@ protected ContentType CurrentContentType { /// /// Present an editor view bound to a specific topic. /// - public ActionResult Index() { + public ActionResult Index(bool isNew = false, string contentType = null, bool isModal = false) { /*------------------------------------------------------------------------------------------------------------------------ | CONSTRUCT VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - var editorViewModel = new EditorViewModel(CurrentTopic, CurrentContentType); + EditorViewModel editorViewModel; + if (isNew) { + editorViewModel = new EditorViewModel(Topic.Create("NewTopic", contentType), GetContentType(contentType)); + } + else { + editorViewModel = new EditorViewModel(CurrentTopic, GetContentType(CurrentTopic.ContentType)); + } /*------------------------------------------------------------------------------------------------------------------------ | RETURN VIEW From d95e4102fd98d4243cb69bb61f67560c48463925 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 22:45:55 -0700 Subject: [PATCH 017/637] Added `ContentTypes` to `EditorViewModel` --- Ignia.Topics.Editor.Models/EditorViewModel.cs | 15 ++++++++++++++- .../Areas/Editor/Controllers/EditorController.cs | 5 +++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Models/EditorViewModel.cs b/Ignia.Topics.Editor.Models/EditorViewModel.cs index 9c1b971c..9b50173c 100644 --- a/Ignia.Topics.Editor.Models/EditorViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditorViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using System; +using Ignia.Topics.Collections; namespace Ignia.Topics.Editor.Models { @@ -28,13 +29,14 @@ public class EditorViewModel { /// /// Initializes a new instance of the class, using the specified key/value pair. /// - public EditorViewModel(Topic topic, ContentType contentType) { + public EditorViewModel(Topic topic, ContentType contentType, ContentTypeCollection contentTypes) { /*------------------------------------------------------------------------------------------------------------------------ | Set properties \-----------------------------------------------------------------------------------------------------------------------*/ Topic = topic; ContentType = contentType; + ContentTypes = contentTypes; } @@ -58,6 +60,17 @@ public ContentType ContentType { get; } + /*========================================================================================================================== + | CONTENT TYPES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Read-only reference to the full list of instances available, in order to be bound to the + /// list of new content types available. + /// + public ContentTypeCollection ContentTypes { + get; + } + } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 0fe5f890..fcecff20 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -89,11 +89,12 @@ public ActionResult Index(bool isNew = false, string contentType = null, bool is | CONSTRUCT VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ EditorViewModel editorViewModel; + var contentTypes = TopicRepository.GetContentTypes(); if (isNew) { - editorViewModel = new EditorViewModel(Topic.Create("NewTopic", contentType), GetContentType(contentType)); + editorViewModel = new EditorViewModel(Topic.Create("NewTopic", contentType), GetContentType(contentType), contentTypes); } else { - editorViewModel = new EditorViewModel(CurrentTopic, GetContentType(CurrentTopic.ContentType)); + editorViewModel = new EditorViewModel(CurrentTopic, GetContentType(CurrentTopic.ContentType), contentTypes); } /*------------------------------------------------------------------------------------------------------------------------ From 8e54b47d04de4787d21104b38aa6489a2bb5004a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 22:55:10 -0700 Subject: [PATCH 018/637] Modified `SetRelationship` to support `?IsNew` --- .../Areas/Editor/Controllers/EditorController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index fcecff20..413ec56c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -138,7 +138,7 @@ public ActionResult Index(EditorBindingModel model, bool isNew = false, string c //Save value if (attribute.Type.Equals("Relationship")) { - SetRelationships(attribute, attributeValue); + SetRelationships(topic, attribute, attributeValue); } else if (attribute.Key.Equals("Key")) { CurrentTopic.Key = attributeValue.Value.TrimStart(' ').TrimEnd(' ').Replace(" ", ""); @@ -177,9 +177,9 @@ public ActionResult Index(EditorBindingModel model, bool isNew = false, string c /// /// Private helper function that saves relationship values to the topic. /// - private void SetRelationships(Attribute attribute, EditorAttribute attributeValue) { + private void SetRelationships(Topic topic, Attribute attribute, EditorAttribute attributeValue) { List relatedTopics = attributeValue.Value.Split(',').ToList(); - CurrentTopic.Relationships.ClearTopics(attribute.Key); + topic.Relationships.ClearTopics(attribute.Key); foreach (string topicIdString in relatedTopics) { Topic relatedTopic = null; bool isTopicId = Int32.TryParse(topicIdString, out int topicIdInt); @@ -187,7 +187,7 @@ private void SetRelationships(Attribute attribute, EditorAttribute attributeValu relatedTopic = TopicRepository.Load().GetTopic(topicIdInt); } if (relatedTopic != null) { - CurrentTopic.Relationships.SetTopic(attribute.Key, relatedTopic); + topic.Relationships.SetTopic(attribute.Key, relatedTopic); } } } From d1c245a6c8ad86b513632b5a3ff37fdcfbd97cbb Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 22:56:28 -0700 Subject: [PATCH 019/637] Corrected `contentType` support for `?IsNew` --- .../Areas/Editor/Controllers/EditorController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 413ec56c..c603ab81 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -122,11 +122,14 @@ public ActionResult Index(EditorBindingModel model, bool isNew = false, string c if (isNew) { topic = Topic.Create("NewTopic", contentType); } + else { + contentType = CurrentTopic.ContentType; + } /*------------------------------------------------------------------------------------------------------------------------ | SET ATTRIBUTES \-----------------------------------------------------------------------------------------------------------------------*/ - foreach (var attribute in CurrentContentType.SupportedAttributes.Values) { + foreach (var attribute in GetContentType(contentType).SupportedAttributes.Values) { //Handle hidden attributes if (attribute.IsHidden) { From b025a02d299cab0f0461dc966df9a10c0ce29b61 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 23:13:02 -0700 Subject: [PATCH 020/637] Updated project references Had missed adding files to the `csproj` files. --- Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj | 2 ++ Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 21ccca01..e6aa6896 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -43,6 +43,8 @@
+ + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index d1e2e46f..1ef4f2fc 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -197,6 +197,9 @@ + + + From 77ffce2a497cf12faddf17b7ad2185a3e07dd965 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 23:13:50 -0700 Subject: [PATCH 021/637] Introduced `CloseModal` view When called, implements JavaScript to close the current window. --- .../Areas/Editor/Views/Shared/CloseModal.cshtml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/CloseModal.cshtml diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/CloseModal.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/CloseModal.cshtml new file mode 100644 index 00000000..e193276e --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/CloseModal.cshtml @@ -0,0 +1,7 @@ + + + + + From 94c581cb5755f80fa103cb2fe2099af32d04f265 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 23:15:30 -0700 Subject: [PATCH 022/637] Added `SetVersion` and `Delete` actions --- .../Editor/Controllers/EditorController.cs | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index c603ab81..bc46c4fc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -162,6 +162,13 @@ public ActionResult Index(EditorBindingModel model, bool isNew = false, string c topic.Parent = CurrentTopic; } + /*-------------------------------------------------------------------------------------------------------------------------- + | If the editor is in modal view, close the window; otherwise, redirect to the parent topic. + \-------------------------------------------------------------------------------------------------------------------------*/ + if (isModal) { + return View("CloseModal"); + } + /*------------------------------------------------------------------------------------------------------------------------ | SAVE VALUE \-----------------------------------------------------------------------------------------------------------------------*/ @@ -195,6 +202,72 @@ private void SetRelationships(Topic topic, Attribute attribute, EditorAttribute } } + /*============================================================================================================================ + | METHOD: SET TOPIC VERSION + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Calls Topic.Rollback() with the selected version datetime to set the data to that version and re-save the Topic. + /// + [HttpPost] + public ActionResult SetVersion(DateTime version) { + + /*-------------------------------------------------------------------------------------------------------------------------- + | Initiate rollback + \-------------------------------------------------------------------------------------------------------------------------*/ + TopicRepository.Rollback(CurrentTopic, version); + + /*-------------------------------------------------------------------------------------------------------------------------- + | Render index + \-------------------------------------------------------------------------------------------------------------------------*/ + return Index(); + + } + + /*============================================================================================================================ + | METHOD: DELETE TOPIC + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Fires when the user clicks the "Delete" button; deletes the current topic and any child attributes. + /// + [HttpPost] + public ActionResult Delete(bool isModal = false) { + + /*-------------------------------------------------------------------------------------------------------------------------- + | Define variables + \-------------------------------------------------------------------------------------------------------------------------*/ + var parent = CurrentTopic.Parent; + var deletedTopic = CurrentTopic.Title; + + /*-------------------------------------------------------------------------------------------------------------------------- + | Lock the Topic repository before executing the delete + \-------------------------------------------------------------------------------------------------------------------------*/ + lock (TopicRepository.Load()) { + TopicRepository.Delete(CurrentTopic); + } + + /*-------------------------------------------------------------------------------------------------------------------------- + | If the editor is in modal view, close the window; otherwise, redirect to the parent topic. + \-------------------------------------------------------------------------------------------------------------------------*/ + if (isModal) { + return View("CloseModal"); + } + + /*-------------------------------------------------------------------------------------------------------------------------- + | If the content type is a nested list, display parent. + \-------------------------------------------------------------------------------------------------------------------------*/ + else if (parent.Attributes.GetValue("ContentType", "") == "List") { + return Redirect("?Path=" + parent.Parent.UniqueKey + "&DeletedTopic=" + deletedTopic + "&DeletedFrom=" + parent.Title + "&Action=Deleted"); + } + + /*-------------------------------------------------------------------------------------------------------------------------- + | Redirect to parent + \-------------------------------------------------------------------------------------------------------------------------*/ + return Redirect("?Path=" + parent.UniqueKey); + + + } + + } //Class } //Namespace \ No newline at end of file From 36168642c0e3e9a041b899870154b1e09256a3b0 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 7 Oct 2017 23:21:08 -0700 Subject: [PATCH 023/637] Introduced `Move()` action --- .../Editor/Controllers/EditorController.cs | 48 +++++++++++++++++-- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index bc46c4fc..773db786 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -203,7 +203,7 @@ private void SetRelationships(Topic topic, Attribute attribute, EditorAttribute } /*============================================================================================================================ - | METHOD: SET TOPIC VERSION + | [POST] SET TOPIC VERSION \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Calls Topic.Rollback() with the selected version datetime to set the data to that version and re-save the Topic. @@ -224,7 +224,7 @@ public ActionResult SetVersion(DateTime version) { } /*============================================================================================================================ - | METHOD: DELETE TOPIC + | [POST] DELETE TOPIC \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Fires when the user clicks the "Delete" button; deletes the current topic and any child attributes. @@ -241,7 +241,7 @@ public ActionResult Delete(bool isModal = false) { /*-------------------------------------------------------------------------------------------------------------------------- | Lock the Topic repository before executing the delete \-------------------------------------------------------------------------------------------------------------------------*/ - lock (TopicRepository.Load()) { + lock (TopicRepository) { TopicRepository.Delete(CurrentTopic); } @@ -264,9 +264,49 @@ public ActionResult Delete(bool isModal = false) { \-------------------------------------------------------------------------------------------------------------------------*/ return Redirect("?Path=" + parent.UniqueKey); - } + /*============================================================================================================================ + | [POST] MOVE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// AJAX-parsable, querystring-configurable wrapper to the Ignia.Topics engine code that moves a node from one place in the + /// hierarchy to another. "true" if succeeded, Returns "false" if failure, as string values. The JS throws a generic + /// "failure" error on "false". + /// + [HttpPost] + public ActionResult Move(int topicId, int targetTopicId, int siblingId) { + + /*-------------------------------------------------------------------------------------------------------------------------- + | Retrieve the source and destination topics + \-------------------------------------------------------------------------------------------------------------------------*/ + Topic topic = TopicRepository.Load().GetTopic(topicId); + Topic target = TopicRepository.Load().GetTopic(targetTopicId); + + /*-------------------------------------------------------------------------------------------------------------------------- + | Reset the source topic's Parent + \-------------------------------------------------------------------------------------------------------------------------*/ + topic.Parent = target; + + /*-------------------------------------------------------------------------------------------------------------------------- + | Move the topic and/or reorder it with its siblings; lock the Topic repository prior to execution + \-------------------------------------------------------------------------------------------------------------------------*/ + lock (TopicRepository) { + if (siblingId > 0) { + Topic sibling = TopicRepository.Load().GetTopic(siblingId); + TopicRepository.Move(topic, target, sibling); + } + else { + TopicRepository.Move(topic, target); + } + } + + /*-------------------------------------------------------------------------------------------------------------------------- + | Return + \-------------------------------------------------------------------------------------------------------------------------*/ + return Content("true"); + + } } //Class From 42ed6a0f6b4633ea229bdbba188814c1cde0632d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 11:58:36 -0700 Subject: [PATCH 024/637] Moved `sln` file to root --- .../Ignia.Topics.Editor.Models.sln => Ignia.Topics.Editor.sln | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln => Ignia.Topics.Editor.sln (88%) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln b/Ignia.Topics.Editor.sln similarity index 88% rename from Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln rename to Ignia.Topics.Editor.sln index 94acb103..0cbf3448 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.sln +++ b/Ignia.Topics.Editor.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26730.16 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Models", "Ignia.Topics.Editor.Models.csproj", "{02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Models", "Ignia.Topics.Editor.Models\Ignia.Topics.Editor.Models.csproj", "{02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Mvc", "..\Ignia.Topics.Editor.Mvc\Ignia.Topics.Editor.Mvc.csproj", "{77022C14-28B2-4182-9F11-796E8B3C73F7}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Mvc", "Ignia.Topics.Editor.Mvc\Ignia.Topics.Editor.Mvc.csproj", "{77022C14-28B2-4182-9F11-796E8B3C73F7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution From 9364bb6fddf546f993bc854789ffdc37cbc92f29 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 11:58:51 -0700 Subject: [PATCH 025/637] Established placeholder for `ConnectionStrings.config` --- .gitignore | 4 ++++ Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 7 +++++++ Ignia.Topics.Editor.Mvc/Web.config | 1 + 3 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 940794e6..53c1350a 100644 --- a/.gitignore +++ b/.gitignore @@ -286,3 +286,7 @@ __pycache__/ *.btm.cs *.odx.cs *.xsd.cs + +# Application settings +**/connectionStrings.* +**/smtp.config \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 1ef4f2fc..740c6fe1 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -164,6 +164,12 @@ + + ConnectionStrings.config + + + ConnectionStrings.config + PreserveNewest @@ -200,6 +206,7 @@ + diff --git a/Ignia.Topics.Editor.Mvc/Web.config b/Ignia.Topics.Editor.Mvc/Web.config index f97a1bd7..e43cbec8 100644 --- a/Ignia.Topics.Editor.Mvc/Web.config +++ b/Ignia.Topics.Editor.Mvc/Web.config @@ -10,6 +10,7 @@ + From 621e2bb23c82db456d5ebbd7d9c7e0fc8b199841 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 12:15:42 -0700 Subject: [PATCH 026/637] Added `Microsoft.AspNet.Mvc` NuGet package While I was at it, also fixe the NuGet references, which had been orphaned when moving the `sln` file to the root. --- .../Ignia.Topics.Editor.Models.csproj | 25 ++++++++ Ignia.Topics.Editor.Models/packages.config | 7 +++ .../Ignia.Topics.Editor.Mvc.csproj | 60 ++++++++++--------- Ignia.Topics.Editor.Mvc/Web.config | 49 ++++++++------- Ignia.Topics.Editor.Mvc/packages.config | 14 ----- packages.config | 21 +++++++ 6 files changed, 111 insertions(+), 65 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/packages.config create mode 100644 packages.config diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index e6aa6896..186d3377 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -33,8 +33,29 @@ bin\Ignia.Topics.dll + + ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll + + + ..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll + + + ..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll + @@ -49,8 +70,12 @@ + + + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/packages.config b/Ignia.Topics.Editor.Models/packages.config new file mode 100644 index 00000000..b8f630f8 --- /dev/null +++ b/Ignia.Topics.Editor.Models/packages.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 740c6fe1..855e53f1 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -62,6 +62,10 @@ ..\Ignia.Topics.Editor.Models\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.5\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll + + ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + True + @@ -71,6 +75,30 @@ + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll + True + + + ..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll + True + + + ..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll + True + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll + True + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll + True + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll + True + @@ -80,41 +108,13 @@ - - True - ..\Ignia.Topics.Editor.Models\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll - - - True - ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll - - - True - ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll - - True - ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll - - - True - ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll - - - True - ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll - - - True - ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll - True ..\Ignia.Topics.Editor.Models\packages\WebGrease.1.5.2\lib\WebGrease.dll @@ -207,7 +207,6 @@ - @@ -215,6 +214,9 @@ Ignia.Topics.Editor.Models + + + 10.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) diff --git a/Ignia.Topics.Editor.Mvc/Web.config b/Ignia.Topics.Editor.Mvc/Web.config index e43cbec8..0dcf1a70 100644 --- a/Ignia.Topics.Editor.Mvc/Web.config +++ b/Ignia.Topics.Editor.Mvc/Web.config @@ -5,54 +5,59 @@ --> - - - - + + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - + - - + + - - + + diff --git a/Ignia.Topics.Editor.Mvc/packages.config b/Ignia.Topics.Editor.Mvc/packages.config index 7918f286..b8f630f8 100644 --- a/Ignia.Topics.Editor.Mvc/packages.config +++ b/Ignia.Topics.Editor.Mvc/packages.config @@ -1,21 +1,7 @@  - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages.config b/packages.config new file mode 100644 index 00000000..7918f286 --- /dev/null +++ b/packages.config @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 800847f0e2c029ee1047190a0f91d2ddcb17cc7f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 12:29:28 -0700 Subject: [PATCH 027/637] Added model binding for `EditorAttribute` --- .../Attributes/EditorAttributeModelBinder.cs | 46 +++++++++++++++++++ .../Ignia.Topics.Editor.Models.csproj | 2 +- Ignia.Topics.Editor.Mvc/Global.asax.cs | 12 +++-- 3 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Attributes/EditorAttributeModelBinder.cs diff --git a/Ignia.Topics.Editor.Models/Attributes/EditorAttributeModelBinder.cs b/Ignia.Topics.Editor.Models/Attributes/EditorAttributeModelBinder.cs new file mode 100644 index 00000000..46dcf63d --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/EditorAttributeModelBinder.cs @@ -0,0 +1,46 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.Mvc; +using Ignia.Topics.Editor.Models.Attributes; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: EDITOR BINDING MODEL + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides instructions to the MVC framework on how to bind postback data to a instance. + /// This is necessary to retain strongly typed instances in , which otherwise + /// exposes a collection of instances. + /// + /// + /// + class EditorAttributeModelBinder : DefaultModelBinder { + + /*========================================================================================================================== + | OVERRIDE: CREATE MODEL + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Binds the incoming post to the . + /// + /// + /// The method is called by the MVC framework, via + /// convention, when it attempts to bind a model with a corresponding name. + /// + protected override object CreateModel(ControllerContext controllerContext, ModelBindingContext bindingContext, Type modelType) { + var typeValue = bindingContext.ValueProvider.GetValue(bindingContext.ModelName + ".ModelType"); + var type = Type.GetType((string)typeValue.ConvertTo(typeof(string)), true); + var model = Activator.CreateInstance(type); + bindingContext.ModelMetadata = ModelMetadataProviders.Current.GetMetadataForType(() => model, type); + return model; + } + } +} diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 186d3377..6586ea30 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -70,7 +70,7 @@ - + diff --git a/Ignia.Topics.Editor.Mvc/Global.asax.cs b/Ignia.Topics.Editor.Mvc/Global.asax.cs index 2d28ad1e..c88484ac 100644 --- a/Ignia.Topics.Editor.Mvc/Global.asax.cs +++ b/Ignia.Topics.Editor.Mvc/Global.asax.cs @@ -10,6 +10,7 @@ using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; +using Ignia.Topics.Editor.Models.Attributes; namespace Ignia.Topics.Editor.Mvc { @@ -30,11 +31,12 @@ public class MvcApplication : System.Web.HttpApplication { /// class. /// protected void Application_Start() { - AreaRegistration.RegisterAllAreas(); - FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); - RouteConfig.RegisterRoutes(RouteTable.Routes); - BundleConfig.RegisterBundles(BundleTable.Bundles); - } + AreaRegistration.RegisterAllAreas(); + FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); + RouteConfig.RegisterRoutes(RouteTable.Routes); + BundleConfig.RegisterBundles(BundleTable.Bundles); + ModelBinders.Binders.Add(typeof(EditorAttribute), new EditorAttributeModelBinder()); + } } //Class From 9641bab36215fd4bc6d30464e30fc26022665234 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 12:30:02 -0700 Subject: [PATCH 028/637] Fixed package references Another miss from moving the `sln` to the root. --- .../Ignia.Topics.Editor.Mvc.csproj | 32 +++++++++---------- Ignia.Topics.Editor.Mvc/Web.config | 17 +++++----- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 855e53f1..2ce0fedd 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -1,7 +1,7 @@  - - + + Debug @@ -59,7 +59,7 @@ bin\Ignia.Topics.Data.Sql.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.5\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll + ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.5\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll @@ -113,41 +113,41 @@ - ..\Ignia.Topics.Editor.Models\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll + ..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll True - ..\Ignia.Topics.Editor.Models\packages\WebGrease.1.5.2\lib\WebGrease.dll + ..\packages\WebGrease.1.5.2\lib\WebGrease.dll True - ..\Ignia.Topics.Editor.Models\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll + ..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll - ..\Ignia.Topics.Editor.Models\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll + ..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.2.2.0\lib\net45\Microsoft.ApplicationInsights.dll + ..\packages\Microsoft.ApplicationInsights.2.2.0\lib\net45\Microsoft.ApplicationInsights.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll + ..\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.dll + ..\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.2.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll + ..\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.2.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll + ..\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.WindowsServer.2.2.0\lib\net45\Microsoft.AI.WindowsServer.dll + ..\packages\Microsoft.ApplicationInsights.WindowsServer.2.2.0\lib\net45\Microsoft.AI.WindowsServer.dll - ..\Ignia.Topics.Editor.Models\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web.dll + ..\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web.dll @@ -249,8 +249,8 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - + + + + + + \ No newline at end of file From efa195423d78b0f7855ed0d249d549b1efea32d3 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 14:19:50 -0700 Subject: [PATCH 035/637] Set connection string using configuration --- Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs b/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs index 0a53ff9d..d611ec02 100644 --- a/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs +++ b/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs @@ -13,6 +13,8 @@ using System.Web.Routing; using Ignia.Topics.Data.Sql; using Ignia.Topics.Editor.Mvc.Controllers; +using System.Configuration; +using Ignia.Topics.Data.Caching; namespace Ignia.Topics.Editor.Mvc { @@ -36,7 +38,9 @@ protected override IController GetControllerInstance(RequestContext requestConte /*------------------------------------------------------------------------------------------------------------------------ | Register \-----------------------------------------------------------------------------------------------------------------------*/ - var topicRepository = new SqlTopicRepository(@"Data Source=(localdb)\ProjectsV13;Initial Catalog=OnTopic;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"); + var topicRepository = new CachedTopicRepository( + new SqlTopicRepository(ConfigurationManager.ConnectionStrings["TopicsServer"].ConnectionString) + ); var rootTopic = topicRepository.Load(); var topicRoutingService = new TopicRoutingService(topicRepository, requestContext); From 8fc1d1d4ef94bc4b5cb5822e86cd6462b74498fa Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 17:05:12 -0700 Subject: [PATCH 036/637] Set `RouteArea` attribute This allows an area route to be called without a prefix matching that area. Without this, MVC will fail to find the correct views, as it will inadvertently look in the main `~/Views/` folder. --- .../Areas/Editor/Controllers/EditorController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 773db786..97ad4a52 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -20,6 +20,7 @@ namespace Ignia.Topics.Editor.Mvc.Controllers { /// /// Provides data access and processing for editor related functions. /// + [RouteArea("Editor", AreaPrefix = "")] public class EditorController : Controller { /*========================================================================================================================== From bf95dc2b5520d527d0a770fcd8e76682eeca690e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 17:06:44 -0700 Subject: [PATCH 037/637] Changed route prefix (temporary) Ultimately, the editor needs to respond to requests going to `/Edit`. This is not currently possible, however, due to a bug in `TopicRoutingService`, which is unaware of prefixes or namespaces, and assumes the entire path is the Topic path. Until this is fixed, the route is being set to `Web` to continue development. --- .../Areas/Editor/EditorAreaRegistration.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs index bd869f61..77d2039a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs @@ -44,9 +44,9 @@ public override void RegisterArea(AreaRegistrationContext context) { \-----------------------------------------------------------------------------------------------------------------------*/ context.Routes.MapRoute( name: "TopicEditor", - url: "Edit/{*path}", - defaults: new { controller = "Editor", action = "Index", id = UrlParameter.Optional } - ); + url: "Web/{*path}", + defaults: new { controller = "Editor", action = "Index", id = UrlParameter.Optional, } + ).DataTokens.Add("area", "Editor"); ; } From d69fc8286a1cf6b730ede002a28a4c27f1081c00 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 17:08:20 -0700 Subject: [PATCH 038/637] Established placeholders for all attribute types Includes both `EditorTemplates` as well as `EditorAttribute` derived classes (though the latter are not strictly necessary unless the base `GetValue()` method is insufficient). --- .../DateTimeSelectorEditorAttribute.cs | 43 +++++++++++++++++++ .../DisplayOptionsEditorAttribute.cs | 43 +++++++++++++++++++ .../Attributes/FileEditorAttribute.cs | 43 +++++++++++++++++++ .../Attributes/FilePathEditorAttribute.cs | 43 +++++++++++++++++++ .../Attributes/FileUploadEditorAttribute.cs | 43 +++++++++++++++++++ .../LastModifiedByEditorAttribute.cs | 43 +++++++++++++++++++ .../Attributes/LastModifiedEditorAttribute.cs | 43 +++++++++++++++++++ .../RelationshipsEditorAttribute.cs | 43 +++++++++++++++++++ .../TokenizedTopicListEditorAttribute.cs | 43 +++++++++++++++++++ .../Attributes/TopicListEditorAttribute.cs | 43 +++++++++++++++++++ .../Attributes/TopicLookupEditorAttribute.cs | 43 +++++++++++++++++++ .../Attributes/TopicPointerEditorAttribute.cs | 43 +++++++++++++++++++ .../Attributes/WysiwygEditorAttribute.cs | 43 +++++++++++++++++++ .../HtmlEditor.cshtml => Html.cshtml} | 2 +- .../EditorTemplates/DateTimeSelector.cshtml | 3 ++ .../EditorTemplates/DisplayOptions.cshtml | 3 ++ .../Views/Editor/EditorTemplates/File.cshtml | 3 ++ .../Editor/EditorTemplates/FilePath.cshtml | 3 ++ .../Editor/EditorTemplates/FileUpload.cshtml | 3 ++ .../Views/Editor/EditorTemplates/Html.cshtml | 3 ++ .../EditorTemplates/LastModified.cshtml | 3 ++ .../EditorTemplates/LastModifiedBy.cshtml | 3 ++ .../EditorTemplates/Relationships.cshtml | 3 ++ .../EditorTemplates/TokenizedTopicList.cshtml | 3 ++ .../Editor/EditorTemplates/TopicList.cshtml | 3 ++ .../Editor/EditorTemplates/TopicLookup.cshtml | 3 ++ .../EditorTemplates/TopicPointer.cshtml | 3 ++ .../Editor/EditorTemplates/WYSIWYG.cshtml | 3 ++ .../Areas/Editor/Views/Editor/Index.cshtml | 4 +- .../Areas/Editor/Views/Shared/_Layout.cshtml | 1 - .../EditorControllerFactory.cs | 24 ++++++++--- .../Ignia.Topics.Editor.Mvc.csproj | 2 +- 32 files changed, 623 insertions(+), 11 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Attributes/DateTimeSelectorEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/DisplayOptionsEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/FileEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/FilePathEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/FileUploadEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/LastModifiedByEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/LastModifiedEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/RelationshipsEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/TokenizedTopicListEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/TopicListEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/TopicLookupEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/TopicPointerEditorAttribute.cs create mode 100644 Ignia.Topics.Editor.Models/Attributes/WysiwygEditorAttribute.cs rename Ignia.Topics.Editor.Mvc/Areas/Editor/{Views/Editor/EditorTemplates/HtmlEditor.cshtml => Html.cshtml} (56%) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml diff --git a/Ignia.Topics.Editor.Models/Attributes/DateTimeSelectorEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/DateTimeSelectorEditorAttribute.cs new file mode 100644 index 00000000..95adef5e --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/DateTimeSelectorEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: DATE TIME SELECTOR EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of an HTML attribute in the Topic Editor. + /// + /// + /// + public class DateTimeSelectorEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public DateTimeSelectorEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/DisplayOptionsEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/DisplayOptionsEditorAttribute.cs new file mode 100644 index 00000000..b7b84332 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/DisplayOptionsEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: DISPLAY OPTIONS EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of an HTML attribute in the Topic Editor. + /// + /// + /// + public class DisplayOptionsEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public DisplayOptionsEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/FileEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/FileEditorAttribute.cs new file mode 100644 index 00000000..5d34f099 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/FileEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: FILE EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a file editor attribute in the Topic Editor. + /// + /// + /// + public class FileEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public FileEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/FilePathEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/FilePathEditorAttribute.cs new file mode 100644 index 00000000..d1b0cbae --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/FilePathEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: FILE PATH EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a file path attribute in the Topic Editor. + /// + /// + /// + public class FilePathEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public FilePathEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/FileUploadEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/FileUploadEditorAttribute.cs new file mode 100644 index 00000000..54e9398f --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/FileUploadEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: FILE UPLOAD EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a file upload attribute in the Topic Editor. + /// + /// + /// + public class FileUploadEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public FileUploadEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/LastModifiedByEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/LastModifiedByEditorAttribute.cs new file mode 100644 index 00000000..c08e56f0 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/LastModifiedByEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: LAST MODIFIED BY EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a last modified by attribute in the Topic Editor. + /// + /// + /// + public class LastModifiedByEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public LastModifiedByEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/LastModifiedEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/LastModifiedEditorAttribute.cs new file mode 100644 index 00000000..50f8534f --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/LastModifiedEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: LAST MODIFIED EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a last modified attribute in the Topic Editor. + /// + /// + /// + public class LastModifiedEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public LastModifiedEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/RelationshipsEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/RelationshipsEditorAttribute.cs new file mode 100644 index 00000000..8f7be652 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/RelationshipsEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: RELATIONSHIPS EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a relationships attribute in the Topic Editor. + /// + /// + /// + public class RelationshipsEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public RelationshipsEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/TokenizedTopicListEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/TokenizedTopicListEditorAttribute.cs new file mode 100644 index 00000000..725bc98a --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/TokenizedTopicListEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: TOKENIZED TOPIC LIST EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a tokenized topic list attribute in the Topic Editor. + /// + /// + /// + public class TokenizedTopicListEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public TokenizedTopicListEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/TopicListEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/TopicListEditorAttribute.cs new file mode 100644 index 00000000..9fa71cce --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/TopicListEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: TOPIC LIST EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a topic list attribute in the Topic Editor. + /// + /// + /// + public class TopicListEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public TopicListEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/TopicLookupEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/TopicLookupEditorAttribute.cs new file mode 100644 index 00000000..8f8c465b --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/TopicLookupEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: TOPIC LOOKUP EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a topic lookup attribute in the Topic Editor. + /// + /// + /// + public class TopicLookupEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public TopicLookupEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/TopicPointerEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/TopicPointerEditorAttribute.cs new file mode 100644 index 00000000..8d0d546a --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/TopicPointerEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: TOPIC POINTER EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a topic pointer attribute in the Topic Editor. + /// + /// + /// + public class TopicPointerEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public TopicPointerEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/Attributes/WysiwygEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/WysiwygEditorAttribute.cs new file mode 100644 index 00000000..86314cd9 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/WysiwygEditorAttribute.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: WYSIWYG EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a WYSIWYG attribute in the Topic Editor. + /// + /// + /// + public class WysiwygEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public WysiwygEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Html.cshtml similarity index 56% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Html.cshtml index e7f7ddf5..c14d9c95 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/HtmlEditor.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Html.cshtml @@ -1,3 +1,3 @@ @model Ignia.Topics.Attribute -

@Model.Key (HTML)

\ No newline at end of file +

@Model.Key (HTML)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml new file mode 100644 index 00000000..710ec4f8 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (DateTimeSelector)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml new file mode 100644 index 00000000..16af89dc --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (DisplayOptions)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml new file mode 100644 index 00000000..f97526d7 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (File)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml new file mode 100644 index 00000000..9c56810b --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (FilePath)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml new file mode 100644 index 00000000..f61abdaa --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (FileUpload)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml new file mode 100644 index 00000000..c14d9c95 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (HTML)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml new file mode 100644 index 00000000..73e9a47d --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (LastModified)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml new file mode 100644 index 00000000..4bc637f6 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (LastModifiedBy)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml new file mode 100644 index 00000000..5d3beb82 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (Relationships)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml new file mode 100644 index 00000000..a00fd602 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (TokenizedTopicList)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml new file mode 100644 index 00000000..707713ec --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (TopicList)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml new file mode 100644 index 00000000..47453d5e --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (TopicLookup)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml new file mode 100644 index 00000000..1233f34c --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (TopicPointer)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml new file mode 100644 index 00000000..e71abc0f --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml @@ -0,0 +1,3 @@ +@model Ignia.Topics.Attribute + +

@Model.Key (WYSIWYG)

\ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index be3a9ec4..edb91dd6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -10,10 +10,10 @@ foreach (var attribute in Model.ContentType.SupportedAttributes.Values) {
-

@attribute.Title

+

@attribute.Title

@attribute.Description

- @Html.EditorFor(m => attribute, attribute.Type, attribute.Key, Model.Topic) + @Html.EditorFor(m => attribute, "Html", attribute.Key, Model.Topic)
} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index b38f9984..264682dc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -4,7 +4,6 @@ @ViewBag.Title - Ignia OnTopic - @Styles.Render("~/Shared/Styles") diff --git a/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs b/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs index d611ec02..15c8aada 100644 --- a/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs +++ b/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs @@ -15,6 +15,7 @@ using Ignia.Topics.Editor.Mvc.Controllers; using System.Configuration; using Ignia.Topics.Data.Caching; +using Ignia.Topics.Repositories; namespace Ignia.Topics.Editor.Mvc { @@ -26,6 +27,11 @@ namespace Ignia.Topics.Editor.Mvc { ///
class EditorControllerFactory : DefaultControllerFactory { + /*========================================================================================================================== + | DEFINE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + static ITopicRepository _topicRepository = null; + /*========================================================================================================================== | GET CONTROLLER INSTANCE \-------------------------------------------------------------------------------------------------------------------------*/ @@ -35,20 +41,26 @@ class EditorControllerFactory : DefaultControllerFactory { /// A concrete instance of an . protected override IController GetControllerInstance(RequestContext requestContext, Type controllerType) { + /*------------------------------------------------------------------------------------------------------------------------ + | Establish repository cache + \-----------------------------------------------------------------------------------------------------------------------*/ + if (_topicRepository == null) { + _topicRepository = new CachedTopicRepository( + new SqlTopicRepository(ConfigurationManager.ConnectionStrings["TopicsServer"].ConnectionString) + ); + } + /*------------------------------------------------------------------------------------------------------------------------ | Register \-----------------------------------------------------------------------------------------------------------------------*/ - var topicRepository = new CachedTopicRepository( - new SqlTopicRepository(ConfigurationManager.ConnectionStrings["TopicsServer"].ConnectionString) - ); - var rootTopic = topicRepository.Load(); - var topicRoutingService = new TopicRoutingService(topicRepository, requestContext); + var rootTopic = _topicRepository.Load(); + var topicRoutingService = new TopicRoutingService(_topicRepository, requestContext); /*------------------------------------------------------------------------------------------------------------------------ | Resolve \-----------------------------------------------------------------------------------------------------------------------*/ if (controllerType == typeof(EditorController)) { - return new EditorController(topicRepository, topicRoutingService.Topic); + return new EditorController(_topicRepository, topicRoutingService.Topic); } return base.GetControllerInstance(requestContext, controllerType); diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 06191fad..ccd915b6 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -205,7 +205,7 @@ - + From a1b09dabe164c1734db77ac3415b1f460cf2c34c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 17:09:06 -0700 Subject: [PATCH 039/637] Updated project references --- .../Ignia.Topics.Editor.Models.csproj | 13 +++++++++++++ .../Ignia.Topics.Editor.Mvc.csproj | 14 ++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 6586ea30..40fcfbdd 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -64,8 +64,21 @@
+ + + + + + + + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index ccd915b6..83ab3845 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -220,6 +220,20 @@ + + + + + + + + + + + + + + From 4da1b3570a7dc772a1620be768ba203944d35b81 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 17:13:25 -0700 Subject: [PATCH 040/637] Reintroduced dynamic type Temporarily need to strip `.ascx` extension from value, since that is currently hard-coded into the database. (This will likely be replaced with `.cshtml` when migrating to MVC, unless we update `File.cshtml` to optionally strip the filename.) --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index edb91dd6..ea21e297 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -13,7 +13,7 @@

@attribute.Title

@attribute.Description

- @Html.EditorFor(m => attribute, "Html", attribute.Key, Model.Topic) + @Html.EditorFor(m => attribute, attribute.Type.Replace(".ascx", ""), attribute.Key, Model.Topic)
} From 2c10c8e6cd8ad3a1981daab1e13ce17ae2076b1e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 17:54:06 -0700 Subject: [PATCH 041/637] Added support for content type restrictions The `EditorViewModel.ContentTypes` collection is intended to support binding to the new topic dropdown list, and should thus only show content types permitted to be created under the current content type. Added this functionality. If `?IsNew` then it uses the `CurrentContentType`. --- .../Editor/Controllers/EditorController.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 97ad4a52..b13f5634 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -8,6 +8,7 @@ using System.Linq; using System.Web; using System.Web.Mvc; +using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Attributes; using Ignia.Topics.Repositories; @@ -86,11 +87,25 @@ protected ContentType GetContentType(string contentType) { /// public ActionResult Index(bool isNew = false, string contentType = null, bool isModal = false) { + /*------------------------------------------------------------------------------------------------------------------------ + | FILTER CONTENT TYPES + \-----------------------------------------------------------------------------------------------------------------------*/ + var contentTypes = new ContentTypeCollection(); + var currentContentType = GetContentType(CurrentTopic.ContentType); + + if (currentContentType.PermittedContentTypes.Count >= 0) { + foreach (var permittedContentType in currentContentType.PermittedContentTypes) { + contentTypes.Add(permittedContentType); + } + } + else { + contentTypes = TopicRepository.GetContentTypes(); + } + /*------------------------------------------------------------------------------------------------------------------------ | CONSTRUCT VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ EditorViewModel editorViewModel; - var contentTypes = TopicRepository.GetContentTypes(); if (isNew) { editorViewModel = new EditorViewModel(Topic.Create("NewTopic", contentType), GetContentType(contentType), contentTypes); } From d500850f890ebb2ab8871c333cb34f5be2f43b76 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 22:24:46 -0700 Subject: [PATCH 042/637] Updated to support new `TopicCollection` --- Ignia.Topics.Editor.Models/EditorViewModel.cs | 4 ++-- .../Areas/Editor/Controllers/EditorController.cs | 2 +- .../Areas/Editor/Views/Editor/Index.cshtml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Models/EditorViewModel.cs b/Ignia.Topics.Editor.Models/EditorViewModel.cs index 9b50173c..253069d8 100644 --- a/Ignia.Topics.Editor.Models/EditorViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditorViewModel.cs @@ -29,7 +29,7 @@ public class EditorViewModel { /// /// Initializes a new instance of the class, using the specified key/value pair. /// - public EditorViewModel(Topic topic, ContentType contentType, ContentTypeCollection contentTypes) { + public EditorViewModel(Topic topic, ContentType contentType, TopicCollection contentTypes) { /*------------------------------------------------------------------------------------------------------------------------ | Set properties @@ -67,7 +67,7 @@ public ContentType ContentType { /// Read-only reference to the full list of instances available, in order to be bound to the /// list of new content types available. /// - public ContentTypeCollection ContentTypes { + public TopicCollection ContentTypes { get; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index b13f5634..225e9506 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -90,7 +90,7 @@ public ActionResult Index(bool isNew = false, string contentType = null, bool is /*------------------------------------------------------------------------------------------------------------------------ | FILTER CONTENT TYPES \-----------------------------------------------------------------------------------------------------------------------*/ - var contentTypes = new ContentTypeCollection(); + var contentTypes = new TopicCollection(); var currentContentType = GetContentType(CurrentTopic.ContentType); if (currentContentType.PermittedContentTypes.Count >= 0) { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index ea21e297..c3d75f69 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -8,7 +8,7 @@ @using (Html.BeginForm()) { - foreach (var attribute in Model.ContentType.SupportedAttributes.Values) { + foreach (var attribute in Model.ContentType.SupportedAttributes) {

@attribute.Title

@attribute.Description

From bd2a472010889596f01e0c15a3bf54aaa9d43c67 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 8 Oct 2017 22:26:01 -0700 Subject: [PATCH 043/637] Ensured use of implicit variable declarations --- .../Areas/Editor/Controllers/EditorController.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 225e9506..c71b8c6b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -145,7 +145,7 @@ public ActionResult Index(EditorBindingModel model, bool isNew = false, string c /*------------------------------------------------------------------------------------------------------------------------ | SET ATTRIBUTES \-----------------------------------------------------------------------------------------------------------------------*/ - foreach (var attribute in GetContentType(contentType).SupportedAttributes.Values) { + foreach (var attribute in GetContentType(contentType).SupportedAttributes) { //Handle hidden attributes if (attribute.IsHidden) { @@ -153,7 +153,7 @@ public ActionResult Index(EditorBindingModel model, bool isNew = false, string c } //Get reference to current instance - EditorAttribute attributeValue = model.Attributes[attribute.Key]; + var attributeValue = model.Attributes[attribute.Key]; //Save value if (attribute.Type.Equals("Relationship")) { @@ -204,11 +204,11 @@ public ActionResult Index(EditorBindingModel model, bool isNew = false, string c /// Private helper function that saves relationship values to the topic. /// private void SetRelationships(Topic topic, Attribute attribute, EditorAttribute attributeValue) { - List relatedTopics = attributeValue.Value.Split(',').ToList(); + var relatedTopics = attributeValue.Value.Split(',').ToList(); topic.Relationships.ClearTopics(attribute.Key); - foreach (string topicIdString in relatedTopics) { + foreach (var topicIdString in relatedTopics) { Topic relatedTopic = null; - bool isTopicId = Int32.TryParse(topicIdString, out int topicIdInt); + var isTopicId = Int32.TryParse(topicIdString, out int topicIdInt); if (isTopicId && topicIdInt > 0) { relatedTopic = TopicRepository.Load().GetTopic(topicIdInt); } @@ -296,8 +296,8 @@ public ActionResult Move(int topicId, int targetTopicId, int siblingId) { /*-------------------------------------------------------------------------------------------------------------------------- | Retrieve the source and destination topics \-------------------------------------------------------------------------------------------------------------------------*/ - Topic topic = TopicRepository.Load().GetTopic(topicId); - Topic target = TopicRepository.Load().GetTopic(targetTopicId); + var topic = TopicRepository.Load().GetTopic(topicId); + var target = TopicRepository.Load().GetTopic(targetTopicId); /*-------------------------------------------------------------------------------------------------------------------------- | Reset the source topic's Parent @@ -309,7 +309,7 @@ public ActionResult Move(int topicId, int targetTopicId, int siblingId) { \-------------------------------------------------------------------------------------------------------------------------*/ lock (TopicRepository) { if (siblingId > 0) { - Topic sibling = TopicRepository.Load().GetTopic(siblingId); + var sibling = TopicRepository.Load().GetTopic(siblingId); TopicRepository.Move(topic, target, sibling); } else { From d2edb05aab4aa14cf26363903552399c27d4b56d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 9 Oct 2017 10:47:53 -0700 Subject: [PATCH 044/637] Explicitly added Application Insights It had been part of the original template, but was apparently partially removed from the package manifest (by accident?). Explicitly reintroducing. Also removed orphaned references to e.g. Antlr, WebGrease. --- .../ApplicationInsights.config | 18 +++++- .../Ignia.Topics.Editor.Mvc.csproj | 56 +++++++++---------- Ignia.Topics.Editor.Mvc/Web.config | 21 ++++--- Ignia.Topics.Editor.Mvc/packages.config | 9 +++ 4 files changed, 66 insertions(+), 38 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/ApplicationInsights.config b/Ignia.Topics.Editor.Mvc/ApplicationInsights.config index 2e0a49ad..5c67ae03 100644 --- a/Ignia.Topics.Editor.Mvc/ApplicationInsights.config +++ b/Ignia.Topics.Editor.Mvc/ApplicationInsights.config @@ -63,14 +63,30 @@ + 5 + + + 5 + Event + + + 5 + Event + - + + -@Html.CheckBox("Value", false) \ No newline at end of file +@Html.CheckBox("Value", Model.Value?.Equals("1")?? false) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml index 1c1a50aa..9dd14f31 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (DateTimeSelector)

+ -@Html.TextBox("Value", new { type="date" }) \ No newline at end of file +@Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml index c9a89cb6..823f3607 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml @@ -1,3 +1,3 @@ @model AttributeViewModel -

@Model.Attribute.Key (DisplayOptions)

\ No newline at end of file + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml index b44baa3b..b286e460 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml @@ -1,3 +1,3 @@ -@model AttributeViewModel +@model Ignia.Topics.Attribute -

@Model.Attribute.Key (File)

\ No newline at end of file + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml index b647f2ea..65f5d2be 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (FilePath)

+ -@Html.TextBox("Value") \ No newline at end of file +@Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml index a1475d0c..56088d70 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml @@ -1,3 +1,3 @@ @model AttributeViewModel -

@Model.Attribute.Key (FileUpload)

\ No newline at end of file + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml index f9d4943f..cd900198 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (FormField)

+ -@Html.TextBox("Value", "Test") \ No newline at end of file +@Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml index a284bca5..4d80c946 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (HTML)

+ -@Html.TextArea("Value", "TextArea") \ No newline at end of file +@Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml index ef3d28e3..9a7865f8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (LastModified)

+ -@Model.Topic.Attributes.GetValue(Model.Attribute.Key) \ No newline at end of file +@Model.Value \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml index a9b6dc36..11325a6d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (LastModifiedBy)

+ -@Model.Topic.Attributes.GetValue(Model.Attribute.Key) +@Model.Value \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml index b89f0822..07792548 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml @@ -1,3 +1,3 @@ @model AttributeViewModel -

@Model.Attribute.Key (Relationships)

\ No newline at end of file + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml index 09dda59b..a141466e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (TokenizedTopicList)

+ -@Html.TextArea("Value") \ No newline at end of file +@Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml index 55dbb40f..bf3184db 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml @@ -1,3 +1,3 @@ @model AttributeViewModel -

@Model.Attribute.Key (TopicList)

\ No newline at end of file + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml index 366de89a..9b151350 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (TopicLookup)

+ -@* Html.DropDownListFor(m => m.Key, …) *@ \ No newline at end of file +@* Html.DropDownListFor(m => m.Value, …) *@ \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml index d7060dba..56d7d971 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (TopicPointer)

+ -@Html.TextArea("Value") \ No newline at end of file +@Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml index f888e7cc..e54c21c8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml @@ -1,5 +1,5 @@ @model AttributeViewModel -

@Model.Attribute.Key (WYSIWYG)

+ -@Html.TextArea("Value", "") \ No newline at end of file +@Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index 27d73200..25c38b64 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -18,12 +18,11 @@ }
-

@attribute.Title

+

@Html.Label("Attributes[" + i + "].Value", attribute.Title)

@attribute.Description

@Html.Hidden("Attributes[" + i + "].Type", type) @Html.Hidden("Attributes[" + i + "].Key", attribute.Key) - @Html.Label("Attributes[" + i + "].Value", attribute.Title) @Html.EditorFor(m => attributeViewModel, type, "Attributes[" + i + "]")
From 8631d3bc691a5d835a68bdb456660a1332050a12 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 9 Oct 2017 18:53:07 -0700 Subject: [PATCH 073/637] Enabled HTML in `Value` property This is necessary to avoid security errors when HTML is posted back to the server for these fields. --- Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs index 688da5e7..8fd72a72 100644 --- a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs @@ -70,6 +70,7 @@ public string Type { /// /// The value associated with the attribute. /// + [AllowHtml] public string Value { get; set; From 45496a2d6035c935454e3a789581764c925e44b3 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 9 Oct 2017 18:53:50 -0700 Subject: [PATCH 074/637] Included necessary `using` statement --- Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs index 8fd72a72..6cba555e 100644 --- a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using System; +using System.Web.Mvc; namespace Ignia.Topics.Editor.Models.Attributes { From 10f518916b0ed6af170eaf9825f54f3326854c4b Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 10:01:56 -0700 Subject: [PATCH 075/637] Added Gulp and configuration files to .gitignore --- .gitignore | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 53c1350a..ffedd3b9 100644 --- a/.gitignore +++ b/.gitignore @@ -289,4 +289,17 @@ __pycache__/ # Application settings **/connectionStrings.* -**/smtp.config \ No newline at end of file +**/smtp.config + +# Gulp build process files +/node_modules +/bower_components +**/*/.sass-cache +*.sass-cache* +gulpFile.js + +# Custom +config.yml +/_site +compilerconfig.json +compilerconfig.json.defaults From 694ed73ea897d28cd3b87711b05799bde2a7ba97 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 10:03:00 -0700 Subject: [PATCH 076/637] Incorporated current Sass stylesheet --- .../Areas/Editor/Shared/Styles/Style.scss | 7971 +++++++++++++++++ .../Areas/Editor/Shared/Styles/Stylesheet.css | 2 - 2 files changed, 7971 insertions(+), 2 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss delete mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss new file mode 100644 index 00000000..baa50ea0 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss @@ -0,0 +1,7971 @@ +@import "Vendor/TokenInput/token-input.css"; + +/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ + +html { + font-family: sans-serif; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} + +body { + margin: 0; +} + +article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { + display: block; +} + +audio, canvas, progress, video { + display: inline-block; + vertical-align: baseline; +} + +audio:not([controls]) { + display: none; + height: 0; +} + +[hidden], template { + display: none; +} + +a { + background: transparent; + &:active, &:hover { + outline: 0; + } +} + +abbr[title] { + border-bottom: 1px dotted; +} + +b, strong { + font-weight: bold; +} + +dfn { + font-style: italic; +} + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +mark { + background: #ff0; + color: #000; +} + +small { + font-size: 80%; +} + +sub { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +img { + border: 0; +} + +svg:not(:root) { + overflow: hidden; +} + +figure { + margin: 1em 40px; +} + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +pre { + overflow: auto; +} + +code, kbd, pre, samp { + font-family: monospace, monospace; + font-size: 1em; +} + +button, input, optgroup, select, textarea { + color: inherit; + font: inherit; + margin: 0; +} + +button { + overflow: visible; + text-transform: none; +} + +select { + text-transform: none; +} + +button, html input[type="button"] { + -webkit-appearance: button; + cursor: pointer; +} + +input { + &[type="reset"], &[type="submit"] { + -webkit-appearance: button; + cursor: pointer; + } +} + +button[disabled], html input[disabled] { + cursor: default; +} + +button::-moz-focus-inner { + border: 0; + padding: 0; +} + +input { + &::-moz-focus-inner { + border: 0; + padding: 0; + } + line-height: normal; + &[type="checkbox"], &[type="radio"] { + box-sizing: border-box; + padding: 0; + } + &[type="number"] { + &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { + height: auto; + } + } + &[type="search"] { + -webkit-appearance: textfield; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; + &::-webkit-search-cancel-button, &::-webkit-search-decoration { + -webkit-appearance: none; + } + } +} + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +legend { + border: 0; + padding: 0; +} + +textarea { + overflow: auto; +} + +optgroup { + font-weight: bold; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, th { + padding: 0; +} + +@media print { + * { + text-shadow: none !important; + color: #000 !important; + background: transparent !important; + box-shadow: none !important; + } + a { + text-decoration: underline; + &:visited { + text-decoration: underline; + } + &[href]:after { + content: " (" attr(href) ")"; + } + } + abbr[title]:after { + content: " (" attr(title) ")"; + } + a { + &[href^="javascript:"]:after, &[href^="#"]:after { + content: ""; + } + } + pre, blockquote { + border: 1px solid #999; + page-break-inside: avoid; + } + thead { + display: table-header-group; + } + tr { + page-break-inside: avoid; + } + img { + page-break-inside: avoid; + max-width: 100% !important; + } + p, h2, h3 { + orphans: 3; + widows: 3; + } + h2, h3 { + page-break-after: avoid; + } + select { + background: #fff !important; + } + .navbar { + display: none; + } + .table { + td, th { + background-color: #fff !important; + } + } + .btn > .caret, .dropup > .btn > .caret { + border-top-color: #000 !important; + } + .label { + border: 1px solid #000; + } + .table { + border-collapse: collapse !important; + } + .table-bordered { + th, td { + border: 1px solid #ddd !important; + } + } +} + +@font-face { + font-family: 'Glyphicons Halflings'; + src: url('../fonts/glyphicons-halflings-regular.eot'); + src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format("embedded-opentype"), url('../fonts/glyphicons-halflings-regular.woff') format("woff"), url('../fonts/glyphicons-halflings-regular.ttf') format("truetype"), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format("svg"); +} + + +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.glyphicon-asterisk:before { + content: "\2a"; +} + +.glyphicon-plus:before { + content: "\2b"; +} + +.glyphicon-euro:before { + content: "\20ac"; +} + +.glyphicon-minus:before { + content: "\2212"; +} + +.glyphicon-cloud:before { + content: "\2601"; +} + +.glyphicon-envelope:before { + content: "\2709"; +} + +.glyphicon-pencil:before { + content: "\270f"; +} + +.glyphicon-glass:before { + content: "\e001"; +} + +.glyphicon-music:before { + content: "\e002"; +} + +.glyphicon-search:before { + content: "\e003"; +} + +.glyphicon-heart:before { + content: "\e005"; +} + +.glyphicon-star:before { + content: "\e006"; +} + +.glyphicon-star-empty:before { + content: "\e007"; +} + +.glyphicon-user:before { + content: "\e008"; +} + +.glyphicon-film:before { + content: "\e009"; +} + +.glyphicon-th-large:before { + content: "\e010"; +} + +.glyphicon-th:before { + content: "\e011"; +} + +.glyphicon-th-list:before { + content: "\e012"; +} + +.glyphicon-ok:before { + content: "\e013"; +} + +.glyphicon-remove:before { + content: "\e014"; +} + +.glyphicon-zoom-in:before { + content: "\e015"; +} + +.glyphicon-zoom-out:before { + content: "\e016"; +} + +.glyphicon-off:before { + content: "\e017"; +} + +.glyphicon-signal:before { + content: "\e018"; +} + +.glyphicon-cog:before { + content: "\e019"; +} + +.glyphicon-trash:before { + content: "\e020"; +} + +.glyphicon-home:before { + content: "\e021"; +} + +.glyphicon-file:before { + content: "\e022"; +} + +.glyphicon-time:before { + content: "\e023"; +} + +.glyphicon-road:before { + content: "\e024"; +} + +.glyphicon-download-alt:before { + content: "\e025"; +} + +.glyphicon-download:before { + content: "\e026"; +} + +.glyphicon-upload:before { + content: "\e027"; +} + +.glyphicon-inbox:before { + content: "\e028"; +} + +.glyphicon-play-circle:before { + content: "\e029"; +} + +.glyphicon-repeat:before { + content: "\e030"; +} + +.glyphicon-refresh:before { + content: "\e031"; +} + +.glyphicon-list-alt:before { + content: "\e032"; +} + +.glyphicon-lock:before { + content: "\e033"; +} + +.glyphicon-flag:before { + content: "\e034"; +} + +.glyphicon-headphones:before { + content: "\e035"; +} + +.glyphicon-volume-off:before { + content: "\e036"; +} + +.glyphicon-volume-down:before { + content: "\e037"; +} + +.glyphicon-volume-up:before { + content: "\e038"; +} + +.glyphicon-qrcode:before { + content: "\e039"; +} + +.glyphicon-barcode:before { + content: "\e040"; +} + +.glyphicon-tag:before { + content: "\e041"; +} + +.glyphicon-tags:before { + content: "\e042"; +} + +.glyphicon-book:before { + content: "\e043"; +} + +.glyphicon-bookmark:before { + content: "\e044"; +} + +.glyphicon-print:before { + content: "\e045"; +} + +.glyphicon-camera:before { + content: "\e046"; +} + +.glyphicon-font:before { + content: "\e047"; +} + +.glyphicon-bold:before { + content: "\e048"; +} + +.glyphicon-italic:before { + content: "\e049"; +} + +.glyphicon-text-height:before { + content: "\e050"; +} + +.glyphicon-text-width:before { + content: "\e051"; +} + +.glyphicon-align-left:before { + content: "\e052"; +} + +.glyphicon-align-center:before { + content: "\e053"; +} + +.glyphicon-align-right:before { + content: "\e054"; +} + +.glyphicon-align-justify:before { + content: "\e055"; +} + +.glyphicon-list:before { + content: "\e056"; +} + +.glyphicon-indent-left:before { + content: "\e057"; +} + +.glyphicon-indent-right:before { + content: "\e058"; +} + +.glyphicon-facetime-video:before { + content: "\e059"; +} + +.glyphicon-picture:before { + content: "\e060"; +} + +.glyphicon-map-marker:before { + content: "\e062"; +} + +.glyphicon-adjust:before { + content: "\e063"; +} + +.glyphicon-tint:before { + content: "\e064"; +} + +.glyphicon-edit:before { + content: "\e065"; +} + +.glyphicon-share:before { + content: "\e066"; +} + +.glyphicon-check:before { + content: "\e067"; +} + +.glyphicon-move:before { + content: "\e068"; +} + +.glyphicon-step-backward:before { + content: "\e069"; +} + +.glyphicon-fast-backward:before { + content: "\e070"; +} + +.glyphicon-backward:before { + content: "\e071"; +} + +.glyphicon-play:before { + content: "\e072"; +} + +.glyphicon-pause:before { + content: "\e073"; +} + +.glyphicon-stop:before { + content: "\e074"; +} + +.glyphicon-forward:before { + content: "\e075"; +} + +.glyphicon-fast-forward:before { + content: "\e076"; +} + +.glyphicon-step-forward:before { + content: "\e077"; +} + +.glyphicon-eject:before { + content: "\e078"; +} + +.glyphicon-chevron-left:before { + content: "\e079"; +} + +.glyphicon-chevron-right:before { + content: "\e080"; +} + +.glyphicon-plus-sign:before { + content: "\e081"; +} + +.glyphicon-minus-sign:before { + content: "\e082"; +} + +.glyphicon-remove-sign:before { + content: "\e083"; +} + +.glyphicon-ok-sign:before { + content: "\e084"; +} + +.glyphicon-question-sign:before { + content: "\e085"; +} + +.glyphicon-info-sign:before { + content: "\e086"; +} + +.glyphicon-screenshot:before { + content: "\e087"; +} + +.glyphicon-remove-circle:before { + content: "\e088"; +} + +.glyphicon-ok-circle:before { + content: "\e089"; +} + +.glyphicon-ban-circle:before { + content: "\e090"; +} + +.glyphicon-arrow-left:before { + content: "\e091"; +} + +.glyphicon-arrow-right:before { + content: "\e092"; +} + +.glyphicon-arrow-up:before { + content: "\e093"; +} + +.glyphicon-arrow-down:before { + content: "\e094"; +} + +.glyphicon-share-alt:before { + content: "\e095"; +} + +.glyphicon-resize-full:before { + content: "\e096"; +} + +.glyphicon-resize-small:before { + content: "\e097"; +} + +.glyphicon-exclamation-sign:before { + content: "\e101"; +} + +.glyphicon-gift:before { + content: "\e102"; +} + +.glyphicon-leaf:before { + content: "\e103"; +} + +.glyphicon-fire:before { + content: "\e104"; +} + +.glyphicon-eye-open:before { + content: "\e105"; +} + +.glyphicon-eye-close:before { + content: "\e106"; +} + +.glyphicon-warning-sign:before { + content: "\e107"; +} + +.glyphicon-plane:before { + content: "\e108"; +} + +.glyphicon-calendar:before { + content: "\e109"; +} + +.glyphicon-random:before { + content: "\e110"; +} + +.glyphicon-comment:before { + content: "\e111"; +} + +.glyphicon-magnet:before { + content: "\e112"; +} + +.glyphicon-chevron-up:before { + content: "\e113"; +} + +.glyphicon-chevron-down:before { + content: "\e114"; +} + +.glyphicon-retweet:before { + content: "\e115"; +} + +.glyphicon-shopping-cart:before { + content: "\e116"; +} + +.glyphicon-folder-close:before { + content: "\e117"; +} + +.glyphicon-folder-open:before { + content: "\e118"; +} + +.glyphicon-resize-vertical:before { + content: "\e119"; +} + +.glyphicon-resize-horizontal:before { + content: "\e120"; +} + +.glyphicon-hdd:before { + content: "\e121"; +} + +.glyphicon-bullhorn:before { + content: "\e122"; +} + +.glyphicon-bell:before { + content: "\e123"; +} + +.glyphicon-certificate:before { + content: "\e124"; +} + +.glyphicon-thumbs-up:before { + content: "\e125"; +} + +.glyphicon-thumbs-down:before { + content: "\e126"; +} + +.glyphicon-hand-right:before { + content: "\e127"; +} + +.glyphicon-hand-left:before { + content: "\e128"; +} + +.glyphicon-hand-up:before { + content: "\e129"; +} + +.glyphicon-hand-down:before { + content: "\e130"; +} + +.glyphicon-circle-arrow-right:before { + content: "\e131"; +} + +.glyphicon-circle-arrow-left:before { + content: "\e132"; +} + +.glyphicon-circle-arrow-up:before { + content: "\e133"; +} + +.glyphicon-circle-arrow-down:before { + content: "\e134"; +} + +.glyphicon-globe:before { + content: "\e135"; +} + +.glyphicon-wrench:before { + content: "\e136"; +} + +.glyphicon-tasks:before { + content: "\e137"; +} + +.glyphicon-filter:before { + content: "\e138"; +} + +.glyphicon-briefcase:before { + content: "\e139"; +} + +.glyphicon-fullscreen:before { + content: "\e140"; +} + +.glyphicon-dashboard:before { + content: "\e141"; +} + +.glyphicon-paperclip:before { + content: "\e142"; +} + +.glyphicon-heart-empty:before { + content: "\e143"; +} + +.glyphicon-link:before { + content: "\e144"; +} + +.glyphicon-phone:before { + content: "\e145"; +} + +.glyphicon-pushpin:before { + content: "\e146"; +} + +.glyphicon-usd:before { + content: "\e148"; +} + +.glyphicon-gbp:before { + content: "\e149"; +} + +.glyphicon-sort:before { + content: "\e150"; +} + +.glyphicon-sort-by-alphabet:before { + content: "\e151"; +} + +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152"; +} + +.glyphicon-sort-by-order:before { + content: "\e153"; +} + +.glyphicon-sort-by-order-alt:before { + content: "\e154"; +} + +.glyphicon-sort-by-attributes:before { + content: "\e155"; +} + +.glyphicon-sort-by-attributes-alt:before { + content: "\e156"; +} + +.glyphicon-unchecked:before { + content: "\e157"; +} + +.glyphicon-expand:before { + content: "\e158"; +} + +.glyphicon-collapse-down:before { + content: "\e159"; +} + +.glyphicon-collapse-up:before { + content: "\e160"; +} + +.glyphicon-log-in:before { + content: "\e161"; +} + +.glyphicon-flash:before { + content: "\e162"; +} + +.glyphicon-log-out:before { + content: "\e163"; +} + +.glyphicon-new-window:before { + content: "\e164"; +} + +.glyphicon-record:before { + content: "\e165"; +} + +.glyphicon-save:before { + content: "\e166"; +} + +.glyphicon-open:before { + content: "\e167"; +} + +.glyphicon-saved:before { + content: "\e168"; +} + +.glyphicon-import:before { + content: "\e169"; +} + +.glyphicon-export:before { + content: "\e170"; +} + +.glyphicon-send:before { + content: "\e171"; +} + +.glyphicon-floppy-disk:before { + content: "\e172"; +} + +.glyphicon-floppy-saved:before { + content: "\e173"; +} + +.glyphicon-floppy-remove:before { + content: "\e174"; +} + +.glyphicon-floppy-save:before { + content: "\e175"; +} + +.glyphicon-floppy-open:before { + content: "\e176"; +} + +.glyphicon-credit-card:before { + content: "\e177"; +} + +.glyphicon-transfer:before { + content: "\e178"; +} + +.glyphicon-cutlery:before { + content: "\e179"; +} + +.glyphicon-header:before { + content: "\e180"; +} + +.glyphicon-compressed:before { + content: "\e181"; +} + +.glyphicon-earphone:before { + content: "\e182"; +} + +.glyphicon-phone-alt:before { + content: "\e183"; +} + +.glyphicon-tower:before { + content: "\e184"; +} + +.glyphicon-stats:before { + content: "\e185"; +} + +.glyphicon-sd-video:before { + content: "\e186"; +} + +.glyphicon-hd-video:before { + content: "\e187"; +} + +.glyphicon-subtitles:before { + content: "\e188"; +} + +.glyphicon-sound-stereo:before { + content: "\e189"; +} + +.glyphicon-sound-dolby:before { + content: "\e190"; +} + +.glyphicon-sound-5-1:before { + content: "\e191"; +} + +.glyphicon-sound-6-1:before { + content: "\e192"; +} + +.glyphicon-sound-7-1:before { + content: "\e193"; +} + +.glyphicon-copyright-mark:before { + content: "\e194"; +} + +.glyphicon-registration-mark:before { + content: "\e195"; +} + +.glyphicon-cloud-download:before { + content: "\e197"; +} + +.glyphicon-cloud-upload:before { + content: "\e198"; +} + +.glyphicon-tree-conifer:before { + content: "\e199"; +} + +.glyphicon-tree-deciduous:before { + content: "\e200"; +} + +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + &:before, &:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } +} + +html { + font-size: 10px; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +body { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 1.42857143; + color: #ffffff; + background-color: #333333; +} + +input, button, select, textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit; +} + +a { + color: #0a94d4; + text-decoration: none; + &:hover { + color: #07618b; + text-decoration: underline; + } + &:focus { + color: #07618b; + text-decoration: underline; + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; + } +} + +figure { + margin: 0; +} + +img { + vertical-align: middle; +} + +.img-responsive { + display: block; + width: 100% \9; + max-width: 100%; + height: auto; +} + +.thumbnail { + > img, a > img { + display: block; + width: 100% \9; + max-width: 100%; + height: auto; + } +} + +.carousel-inner > .item > { + img, a > img { + display: block; + width: 100% \9; + max-width: 100%; + height: auto; + } +} + +.img-rounded { + border-radius: 2px; +} + +.img-thumbnail { + padding: 4px; + line-height: 1.42857143; + background-color: #333333; + border: 1px solid #dddddd; + border-radius: 1px; + -webkit-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + display: inline-block; + width: 100% \9; + max-width: 100%; + height: auto; +} + +.img-circle { + border-radius: 50%; +} + +hr { + margin-top: 22px; + margin-bottom: 22px; + border: 0; + border-top: 1px solid #cccccc; +} + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} + +.sr-only-focusable { + &:active, &:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; + } +} + +h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit; +} + +h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { + font-weight: normal; + line-height: 1; + color: #666666; +} + +h1, .h1, h2, .h2, h3, .h3 { + margin-top: 22px; + margin-bottom: 11px; +} + +h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { + font-size: 65%; +} + +h4, .h4, h5, .h5, h6, .h6 { + margin-top: 11px; + margin-bottom: 11px; +} + +h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { + font-size: 75%; +} + +h1, .h1 { + font-size: 41px; +} + +h2, .h2 { + font-size: 34px; +} + +h3, .h3 { + font-size: 28px; +} + +h4, .h4 { + font-size: 20px; +} + +h5, .h5 { + font-size: 16px; +} + +h6, .h6 { + font-size: 14px; +} + +p { + margin: 0 0 11px; +} + +.lead { + margin-bottom: 22px; + font-size: 18px; + font-weight: 300; + line-height: 1.4; +} + +@media (min-width: 768px) { + .lead { + font-size: 24px; + } +} + +small, .small { + font-size: 87%; +} + +cite { + font-style: normal; +} + +mark, .mark { + background-color: #fcf8e3; + padding: .2em; +} + +.text-left { + text-align: left; +} + +.text-right { + text-align: right; +} + +.text-center { + text-align: center; +} + +.text-justify { + text-align: justify; +} + +.text-nowrap { + white-space: nowrap; +} + +.text-lowercase { + text-transform: lowercase; +} + +.text-uppercase { + text-transform: uppercase; +} + +.text-capitalize { + text-transform: capitalize; +} + +.text-muted { + color: #666666; +} + +.text-primary { + color: #4d4d4d; +} + +a.text-primary:hover { + color: #333333; +} + +.text-success { + color: #125204; +} + +a.text-success:hover { + color: #072102; +} + +.text-info { + color: #0872a3; +} + +a.text-info:hover { + color: #055073; +} + +.text-warning { + color: #8a6d3b; +} + +a.text-warning:hover { + color: #66512c; +} + +.text-danger { + color: #d63510; +} + +a.text-danger:hover { + color: #a6290c; +} + +.bg-primary { + color: #fff; + background-color: #4d4d4d; +} + +a.bg-primary:hover { + background-color: #333333; +} + +.bg-success { + background-color: #d3e5cf; +} + +a.bg-success:hover { + background-color: #b5d3ae; +} + +.bg-info { + background-color: #daebf2; +} + +a.bg-info:hover { + background-color: #b4d7e5; +} + +.bg-warning { + background-color: #fcf8e3; +} + +a.bg-warning:hover { + background-color: #f7ecb5; +} + +.bg-danger { + background-color: #f0dcd8; +} + +a.bg-danger:hover { + background-color: #e2bbb3; +} + +.page-header { + padding-bottom: 10px; + margin: 44px 0 22px; + border-bottom: 1px solid #cccccc; +} + +ul, ol { + margin-top: 0; + margin-bottom: 11px; +} + +ul ul, ol ul, ul ol, ol ol { + margin-bottom: 0; +} + +.list-unstyled { + padding-left: 0; + list-style: none; +} + +.list-inline { + padding-left: 0; + list-style: none; + margin-left: -5px; + > li { + display: inline-block; + padding-left: 5px; + padding-right: 5px; + } +} + +dl { + margin-top: 0; + margin-bottom: 22px; +} + +dt, dd { + line-height: 1.42857143; +} + +dt { + font-weight: bold; +} + +dd { + margin-left: 0; +} + +@media (min-width: 768px) { + .dl-horizontal { + dt { + float: left; + width: 160px; + clear: left; + text-align: right; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + dd { + margin-left: 180px; + } + } +} + +abbr { + &[title], &[data-original-title] { + cursor: help; + border-bottom: 1px dotted #666666; + } +} + +.initialism { + font-size: 90%; + text-transform: uppercase; +} + +blockquote { + padding: 11px 22px; + margin: 0 0 22px; + font-size: 20px; + border-left: 5px solid #cccccc; + p:last-child, ul:last-child, ol:last-child { + margin-bottom: 0; + } + footer, small, .small { + display: block; + font-size: 80%; + line-height: 1.42857143; + color: #666666; + } + footer:before, small:before, .small:before { + content: '\2014 \00A0'; + } +} + +.blockquote-reverse, blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + border-right: 5px solid #cccccc; + border-left: 0; + text-align: right; +} + +.blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { + content: ''; +} + +.blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after { + content: '\00A0 \2014'; +} + +blockquote { + &.pull-right .small:after { + content: '\00A0 \2014'; + } + &:before, &:after { + content: ""; + } +} + +address { + margin-bottom: 22px; + font-style: normal; + line-height: 1.42857143; +} + +code, kbd, pre, samp { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; +} + +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 1px; +} + +kbd { + padding: 2px 4px; + font-size: 90%; + color: #ffffff; + background-color: #333333; + border-radius: 0; + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); + kbd { + padding: 0; + font-size: 100%; + box-shadow: none; + } +} + +pre { + display: block; + padding: 10.5px; + margin: 0 0 11px; + font-size: 15px; + line-height: 1.42857143; + word-break: break-all; + word-wrap: break-word; + color: #333333; + background-color: #f5f5f5; + border: 1px solid #cccccc; + border-radius: 1px; + code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0; + } +} + +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} + +.container, .container-fluid { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px; +} + +@media (min-width: 768px) { + .container { + width: 750px; + } +} + +@media (min-width: 992px) { + .container { + width: 990px; + } +} + +@media (min-width: 1240px) { + .container { + width: 1220px; + } +} + +.row { + margin-left: -15px; + margin-right: -15px; +} + +.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { + position: relative; + min-height: 1px; + padding-left: 15px; + padding-right: 15px; +} + +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11 { + float: left; +} + +.col-xs-12 { + float: left; + width: 100%; +} + +.col-xs-11 { + width: 91.66666667%; +} + +.col-xs-10 { + width: 83.33333333%; +} + +.col-xs-9 { + width: 75%; +} + +.col-xs-8 { + width: 66.66666667%; +} + +.col-xs-7 { + width: 58.33333333%; +} + +.col-xs-6 { + width: 50%; +} + +.col-xs-5 { + width: 41.66666667%; +} + +.col-xs-4 { + width: 33.33333333%; +} + +.col-xs-3 { + width: 25%; +} + +.col-xs-2 { + width: 16.66666667%; +} + +.col-xs-1 { + width: 8.33333333%; +} + +.col-xs-pull-12 { + right: 100%; +} + +.col-xs-pull-11 { + right: 91.66666667%; +} + +.col-xs-pull-10 { + right: 83.33333333%; +} + +.col-xs-pull-9 { + right: 75%; +} + +.col-xs-pull-8 { + right: 66.66666667%; +} + +.col-xs-pull-7 { + right: 58.33333333%; +} + +.col-xs-pull-6 { + right: 50%; +} + +.col-xs-pull-5 { + right: 41.66666667%; +} + +.col-xs-pull-4 { + right: 33.33333333%; +} + +.col-xs-pull-3 { + right: 25%; +} + +.col-xs-pull-2 { + right: 16.66666667%; +} + +.col-xs-pull-1 { + right: 8.33333333%; +} + +.col-xs-pull-0 { + right: auto; +} + +.col-xs-push-12 { + left: 100%; +} + +.col-xs-push-11 { + left: 91.66666667%; +} + +.col-xs-push-10 { + left: 83.33333333%; +} + +.col-xs-push-9 { + left: 75%; +} + +.col-xs-push-8 { + left: 66.66666667%; +} + +.col-xs-push-7 { + left: 58.33333333%; +} + +.col-xs-push-6 { + left: 50%; +} + +.col-xs-push-5 { + left: 41.66666667%; +} + +.col-xs-push-4 { + left: 33.33333333%; +} + +.col-xs-push-3 { + left: 25%; +} + +.col-xs-push-2 { + left: 16.66666667%; +} + +.col-xs-push-1 { + left: 8.33333333%; +} + +.col-xs-push-0 { + left: auto; +} + +.col-xs-offset-12 { + margin-left: 100%; +} + +.col-xs-offset-11 { + margin-left: 91.66666667%; +} + +.col-xs-offset-10 { + margin-left: 83.33333333%; +} + +.col-xs-offset-9 { + margin-left: 75%; +} + +.col-xs-offset-8 { + margin-left: 66.66666667%; +} + +.col-xs-offset-7 { + margin-left: 58.33333333%; +} + +.col-xs-offset-6 { + margin-left: 50%; +} + +.col-xs-offset-5 { + margin-left: 41.66666667%; +} + +.col-xs-offset-4 { + margin-left: 33.33333333%; +} + +.col-xs-offset-3 { + margin-left: 25%; +} + +.col-xs-offset-2 { + margin-left: 16.66666667%; +} + +.col-xs-offset-1 { + margin-left: 8.33333333%; +} + +.col-xs-offset-0 { + margin-left: 0%; +} + +@media (min-width: 768px) { + .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11 { + float: left; + } + .col-sm-12 { + float: left; + width: 100%; + } + .col-sm-11 { + width: 91.66666667%; + } + .col-sm-10 { + width: 83.33333333%; + } + .col-sm-9 { + width: 75%; + } + .col-sm-8 { + width: 66.66666667%; + } + .col-sm-7 { + width: 58.33333333%; + } + .col-sm-6 { + width: 50%; + } + .col-sm-5 { + width: 41.66666667%; + } + .col-sm-4 { + width: 33.33333333%; + } + .col-sm-3 { + width: 25%; + } + .col-sm-2 { + width: 16.66666667%; + } + .col-sm-1 { + width: 8.33333333%; + } + .col-sm-pull-12 { + right: 100%; + } + .col-sm-pull-11 { + right: 91.66666667%; + } + .col-sm-pull-10 { + right: 83.33333333%; + } + .col-sm-pull-9 { + right: 75%; + } + .col-sm-pull-8 { + right: 66.66666667%; + } + .col-sm-pull-7 { + right: 58.33333333%; + } + .col-sm-pull-6 { + right: 50%; + } + .col-sm-pull-5 { + right: 41.66666667%; + } + .col-sm-pull-4 { + right: 33.33333333%; + } + .col-sm-pull-3 { + right: 25%; + } + .col-sm-pull-2 { + right: 16.66666667%; + } + .col-sm-pull-1 { + right: 8.33333333%; + } + .col-sm-pull-0 { + right: auto; + } + .col-sm-push-12 { + left: 100%; + } + .col-sm-push-11 { + left: 91.66666667%; + } + .col-sm-push-10 { + left: 83.33333333%; + } + .col-sm-push-9 { + left: 75%; + } + .col-sm-push-8 { + left: 66.66666667%; + } + .col-sm-push-7 { + left: 58.33333333%; + } + .col-sm-push-6 { + left: 50%; + } + .col-sm-push-5 { + left: 41.66666667%; + } + .col-sm-push-4 { + left: 33.33333333%; + } + .col-sm-push-3 { + left: 25%; + } + .col-sm-push-2 { + left: 16.66666667%; + } + .col-sm-push-1 { + left: 8.33333333%; + } + .col-sm-push-0 { + left: auto; + } + .col-sm-offset-12 { + margin-left: 100%; + } + .col-sm-offset-11 { + margin-left: 91.66666667%; + } + .col-sm-offset-10 { + margin-left: 83.33333333%; + } + .col-sm-offset-9 { + margin-left: 75%; + } + .col-sm-offset-8 { + margin-left: 66.66666667%; + } + .col-sm-offset-7 { + margin-left: 58.33333333%; + } + .col-sm-offset-6 { + margin-left: 50%; + } + .col-sm-offset-5 { + margin-left: 41.66666667%; + } + .col-sm-offset-4 { + margin-left: 33.33333333%; + } + .col-sm-offset-3 { + margin-left: 25%; + } + .col-sm-offset-2 { + margin-left: 16.66666667%; + } + .col-sm-offset-1 { + margin-left: 8.33333333%; + } + .col-sm-offset-0 { + margin-left: 0%; + } +} + +@media (min-width: 992px) { + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11 { + float: left; + } + .col-md-12 { + float: left; + width: 100%; + } + .col-md-11 { + width: 91.66666667%; + } + .col-md-10 { + width: 83.33333333%; + } + .col-md-9 { + width: 75%; + } + .col-md-8 { + width: 66.66666667%; + } + .col-md-7 { + width: 58.33333333%; + } + .col-md-6 { + width: 50%; + } + .col-md-5 { + width: 41.66666667%; + } + .col-md-4 { + width: 33.33333333%; + } + .col-md-3 { + width: 25%; + } + .col-md-2 { + width: 16.66666667%; + } + .col-md-1 { + width: 8.33333333%; + } + .col-md-pull-12 { + right: 100%; + } + .col-md-pull-11 { + right: 91.66666667%; + } + .col-md-pull-10 { + right: 83.33333333%; + } + .col-md-pull-9 { + right: 75%; + } + .col-md-pull-8 { + right: 66.66666667%; + } + .col-md-pull-7 { + right: 58.33333333%; + } + .col-md-pull-6 { + right: 50%; + } + .col-md-pull-5 { + right: 41.66666667%; + } + .col-md-pull-4 { + right: 33.33333333%; + } + .col-md-pull-3 { + right: 25%; + } + .col-md-pull-2 { + right: 16.66666667%; + } + .col-md-pull-1 { + right: 8.33333333%; + } + .col-md-pull-0 { + right: auto; + } + .col-md-push-12 { + left: 100%; + } + .col-md-push-11 { + left: 91.66666667%; + } + .col-md-push-10 { + left: 83.33333333%; + } + .col-md-push-9 { + left: 75%; + } + .col-md-push-8 { + left: 66.66666667%; + } + .col-md-push-7 { + left: 58.33333333%; + } + .col-md-push-6 { + left: 50%; + } + .col-md-push-5 { + left: 41.66666667%; + } + .col-md-push-4 { + left: 33.33333333%; + } + .col-md-push-3 { + left: 25%; + } + .col-md-push-2 { + left: 16.66666667%; + } + .col-md-push-1 { + left: 8.33333333%; + } + .col-md-push-0 { + left: auto; + } + .col-md-offset-12 { + margin-left: 100%; + } + .col-md-offset-11 { + margin-left: 91.66666667%; + } + .col-md-offset-10 { + margin-left: 83.33333333%; + } + .col-md-offset-9 { + margin-left: 75%; + } + .col-md-offset-8 { + margin-left: 66.66666667%; + } + .col-md-offset-7 { + margin-left: 58.33333333%; + } + .col-md-offset-6 { + margin-left: 50%; + } + .col-md-offset-5 { + margin-left: 41.66666667%; + } + .col-md-offset-4 { + margin-left: 33.33333333%; + } + .col-md-offset-3 { + margin-left: 25%; + } + .col-md-offset-2 { + margin-left: 16.66666667%; + } + .col-md-offset-1 { + margin-left: 8.33333333%; + } + .col-md-offset-0 { + margin-left: 0%; + } +} + +@media (min-width: 1240px) { + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11 { + float: left; + } + .col-lg-12 { + float: left; + width: 100%; + } + .col-lg-11 { + width: 91.66666667%; + } + .col-lg-10 { + width: 83.33333333%; + } + .col-lg-9 { + width: 75%; + } + .col-lg-8 { + width: 66.66666667%; + } + .col-lg-7 { + width: 58.33333333%; + } + .col-lg-6 { + width: 50%; + } + .col-lg-5 { + width: 41.66666667%; + } + .col-lg-4 { + width: 33.33333333%; + } + .col-lg-3 { + width: 25%; + } + .col-lg-2 { + width: 16.66666667%; + } + .col-lg-1 { + width: 8.33333333%; + } + .col-lg-pull-12 { + right: 100%; + } + .col-lg-pull-11 { + right: 91.66666667%; + } + .col-lg-pull-10 { + right: 83.33333333%; + } + .col-lg-pull-9 { + right: 75%; + } + .col-lg-pull-8 { + right: 66.66666667%; + } + .col-lg-pull-7 { + right: 58.33333333%; + } + .col-lg-pull-6 { + right: 50%; + } + .col-lg-pull-5 { + right: 41.66666667%; + } + .col-lg-pull-4 { + right: 33.33333333%; + } + .col-lg-pull-3 { + right: 25%; + } + .col-lg-pull-2 { + right: 16.66666667%; + } + .col-lg-pull-1 { + right: 8.33333333%; + } + .col-lg-pull-0 { + right: auto; + } + .col-lg-push-12 { + left: 100%; + } + .col-lg-push-11 { + left: 91.66666667%; + } + .col-lg-push-10 { + left: 83.33333333%; + } + .col-lg-push-9 { + left: 75%; + } + .col-lg-push-8 { + left: 66.66666667%; + } + .col-lg-push-7 { + left: 58.33333333%; + } + .col-lg-push-6 { + left: 50%; + } + .col-lg-push-5 { + left: 41.66666667%; + } + .col-lg-push-4 { + left: 33.33333333%; + } + .col-lg-push-3 { + left: 25%; + } + .col-lg-push-2 { + left: 16.66666667%; + } + .col-lg-push-1 { + left: 8.33333333%; + } + .col-lg-push-0 { + left: auto; + } + .col-lg-offset-12 { + margin-left: 100%; + } + .col-lg-offset-11 { + margin-left: 91.66666667%; + } + .col-lg-offset-10 { + margin-left: 83.33333333%; + } + .col-lg-offset-9 { + margin-left: 75%; + } + .col-lg-offset-8 { + margin-left: 66.66666667%; + } + .col-lg-offset-7 { + margin-left: 58.33333333%; + } + .col-lg-offset-6 { + margin-left: 50%; + } + .col-lg-offset-5 { + margin-left: 41.66666667%; + } + .col-lg-offset-4 { + margin-left: 33.33333333%; + } + .col-lg-offset-3 { + margin-left: 25%; + } + .col-lg-offset-2 { + margin-left: 16.66666667%; + } + .col-lg-offset-1 { + margin-left: 8.33333333%; + } + .col-lg-offset-0 { + margin-left: 0%; + } +} + +table { + background-color: transparent; +} + +th { + text-align: left; +} + +.table { + width: 100%; + max-width: 100%; + margin-bottom: 22px; + > { + thead > tr > th, tbody > tr > th, tfoot > tr > th, thead > tr > td, tbody > tr > td, tfoot > tr > td { + padding: 8px; + line-height: 1.42857143; + vertical-align: top; + border-top: 1px solid #dddddd; + } + thead > tr > th { + vertical-align: bottom; + border-bottom: 2px solid #dddddd; + } + caption + thead > tr:first-child > th, colgroup + thead > tr:first-child > th, thead:first-child > tr:first-child > th, caption + thead > tr:first-child > td, colgroup + thead > tr:first-child > td, thead:first-child > tr:first-child > td { + border-top: 0; + } + tbody + tbody { + border-top: 2px solid #dddddd; + } + } + .table { + background-color: #333333; + } +} + +.table-condensed > { + thead > tr > th, tbody > tr > th, tfoot > tr > th, thead > tr > td, tbody > tr > td, tfoot > tr > td { + padding: 5px; + } +} + +.table-bordered { + border: 1px solid #dddddd; + > { + thead > tr > th, tbody > tr > th, tfoot > tr > th, thead > tr > td, tbody > tr > td, tfoot > tr > td { + border: 1px solid #dddddd; + } + thead > tr > { + th, td { + border-bottom-width: 2px; + } + } + } +} + +.table-striped > tbody > tr:nth-child(odd) > { + td, th { + background-color: #f9f9f9; + } +} + +.table-hover > tbody > tr:hover > { + td, th { + background-color: #f5f5f5; + } +} + +table { + col[class*="col-"] { + position: static; + float: none; + display: table-column; + } + td[class*="col-"], th[class*="col-"] { + position: static; + float: none; + display: table-cell; + } +} + +.table > { + thead > tr > td.active, tbody > tr > td.active, tfoot > tr > td.active, thead > tr > th.active, tbody > tr > th.active, tfoot > tr > th.active, thead > tr.active > td, tbody > tr.active > td, tfoot > tr.active > td, thead > tr.active > th, tbody > tr.active > th, tfoot > tr.active > th { + background-color: #f5f5f5; + } +} + +.table-hover > tbody > tr { + > { + td.active:hover, th.active:hover { + background-color: #e8e8e8; + } + } + &.active:hover > td, &:hover > .active, &.active:hover > th { + background-color: #e8e8e8; + } +} + +.table > { + thead > tr > td.success, tbody > tr > td.success, tfoot > tr > td.success, thead > tr > th.success, tbody > tr > th.success, tfoot > tr > th.success, thead > tr.success > td, tbody > tr.success > td, tfoot > tr.success > td, thead > tr.success > th, tbody > tr.success > th, tfoot > tr.success > th { + background-color: #d3e5cf; + } +} + +.table-hover > tbody > tr { + > { + td.success:hover, th.success:hover { + background-color: #c4dcbe; + } + } + &.success:hover > td, &:hover > .success, &.success:hover > th { + background-color: #c4dcbe; + } +} + +.table > { + thead > tr > td.info, tbody > tr > td.info, tfoot > tr > td.info, thead > tr > th.info, tbody > tr > th.info, tfoot > tr > th.info, thead > tr.info > td, tbody > tr.info > td, tfoot > tr.info > td, thead > tr.info > th, tbody > tr.info > th, tfoot > tr.info > th { + background-color: #daebf2; + } +} + +.table-hover > tbody > tr { + > { + td.info:hover, th.info:hover { + background-color: #c7e1eb; + } + } + &.info:hover > td, &:hover > .info, &.info:hover > th { + background-color: #c7e1eb; + } +} + +.table > { + thead > tr > td.warning, tbody > tr > td.warning, tfoot > tr > td.warning, thead > tr > th.warning, tbody > tr > th.warning, tfoot > tr > th.warning, thead > tr.warning > td, tbody > tr.warning > td, tfoot > tr.warning > td, thead > tr.warning > th, tbody > tr.warning > th, tfoot > tr.warning > th { + background-color: #fcf8e3; + } +} + +.table-hover > tbody > tr { + > { + td.warning:hover, th.warning:hover { + background-color: #faf2cc; + } + } + &.warning:hover > td, &:hover > .warning, &.warning:hover > th { + background-color: #faf2cc; + } +} + +.table > { + thead > tr > td.danger, tbody > tr > td.danger, tfoot > tr > td.danger, thead > tr > th.danger, tbody > tr > th.danger, tfoot > tr > th.danger, thead > tr.danger > td, tbody > tr.danger > td, tfoot > tr.danger > td, thead > tr.danger > th, tbody > tr.danger > th, tfoot > tr.danger > th { + background-color: #f0dcd8; + } +} + +.table-hover > tbody > tr { + > { + td.danger:hover, th.danger:hover { + background-color: #e9cbc6; + } + } + &.danger:hover > td, &:hover > .danger, &.danger:hover > th { + background-color: #e9cbc6; + } +} + +@media screen and (max-width: 767px) { + .table-responsive { + width: 100%; + margin-bottom: 16.5px; + overflow-y: hidden; + overflow-x: auto; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #dddddd; + -webkit-overflow-scrolling: touch; + > { + .table { + margin-bottom: 0; + > { + thead > tr > th, tbody > tr > th, tfoot > tr > th, thead > tr > td, tbody > tr > td, tfoot > tr > td { + white-space: nowrap; + } + } + } + .table-bordered { + border: 0; + > { + thead > tr > th:first-child, tbody > tr > th:first-child, tfoot > tr > th:first-child, thead > tr > td:first-child, tbody > tr > td:first-child, tfoot > tr > td:first-child { + border-left: 0; + } + thead > tr > th:last-child, tbody > tr > th:last-child, tfoot > tr > th:last-child, thead > tr > td:last-child, tbody > tr > td:last-child, tfoot > tr > td:last-child { + border-right: 0; + } + tbody > tr:last-child > th, tfoot > tr:last-child > th, tbody > tr:last-child > td, tfoot > tr:last-child > td { + border-bottom: 0; + } + } + } + } + } +} + +fieldset { + padding: 0; + margin: 0; + border: 0; + min-width: 0; +} + +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 22px; + font-size: 24px; + line-height: inherit; + color: #333333; + border: 0; + border-bottom: 1px solid #e5e5e5; +} + +label { + display: inline-block; + max-width: 100%; + margin-bottom: 5px; + font-weight: bold; +} + +input { + &[type="search"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + &[type="radio"], &[type="checkbox"] { + margin: 4px 0 0; + margin-top: 1px \9; + line-height: normal; + } + &[type="file"] { + display: block; + } + &[type="range"] { + display: block; + width: 100%; + } +} + +select { + &[multiple], &[size] { + height: auto; + } +} + +input { + &[type="file"]:focus, &[type="radio"]:focus, &[type="checkbox"]:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; + } +} + +output { + display: block; + padding-top: 7px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; +} + +.form-control { + display: block; + width: 100%; + height: 36px; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; + background-color: #ffffff; + background-image: none; + border: 1px solid #cccccc; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + &:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); + } + &::-moz-placeholder { + color: #666666; + opacity: 1; + } + &:-ms-input-placeholder, &::-webkit-input-placeholder { + color: #666666; + } + &[disabled], &[readonly] { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; + } +} + +fieldset[disabled] .form-control { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; +} + +textarea.form-control { + height: auto; +} + +input { + &[type="search"] { + -webkit-appearance: none; + } + &[type="date"], &[type="time"], &[type="datetime-local"], &[type="month"] { + line-height: 36px; + line-height: 1.42857143 \0; + } + &[type="date"].input-sm, &[type="time"].input-sm, &[type="datetime-local"].input-sm, &[type="month"].input-sm { + line-height: 33px; + } + &[type="date"].input-lg, &[type="time"].input-lg, &[type="datetime-local"].input-lg, &[type="month"].input-lg { + line-height: 49px; + } +} + +.form-group { + margin-bottom: 15px; +} + +.radio, .checkbox { + position: relative; + display: block; + min-height: 22px; + margin-top: 10px; + margin-bottom: 10px; +} + +.radio label, .checkbox label { + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + cursor: pointer; +} + +.radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { + position: absolute; + margin-left: -20px; + margin-top: 4px \9; +} + +.radio + .radio, .checkbox + .checkbox { + margin-top: -5px; +} + +.radio-inline, .checkbox-inline { + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + vertical-align: middle; + font-weight: normal; + cursor: pointer; +} + +.radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { + margin-top: 0; + margin-left: 10px; +} + +input { + &[type="radio"][disabled], &[type="checkbox"][disabled], &[type="radio"].disabled, &[type="checkbox"].disabled { + cursor: not-allowed; + } +} + +fieldset[disabled] input { + &[type="radio"], &[type="checkbox"] { + cursor: not-allowed; + } +} + +.radio-inline.disabled, .checkbox-inline.disabled { + cursor: not-allowed; +} + +fieldset[disabled] { + .radio-inline, .checkbox-inline { + cursor: not-allowed; + } +} + +.radio.disabled label, .checkbox.disabled label { + cursor: not-allowed; +} + +fieldset[disabled] { + .radio label, .checkbox label { + cursor: not-allowed; + } +} + +.form-control-static { + padding-top: 7px; + padding-bottom: 7px; + margin-bottom: 0; + &.input-lg, &.input-sm { + padding-left: 0; + padding-right: 0; + } +} + +.input-sm, .form-horizontal .form-group-sm .form-control { + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; +} + +select.input-sm { + height: 33px; + line-height: 33px; +} + +textarea.input-sm, select[multiple].input-sm { + height: auto; +} + +.input-lg, .form-horizontal .form-group-lg .form-control { + height: 49px; + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; +} + +select.input-lg { + height: 49px; + line-height: 49px; +} + +textarea.input-lg, select[multiple].input-lg { + height: auto; +} + +.has-feedback { + position: relative; + .form-control { + padding-right: 45px; + } +} + +.form-control-feedback { + position: absolute; + top: 27px; + right: 0; + z-index: 2; + display: block; + width: 36px; + height: 36px; + line-height: 36px; + text-align: center; +} + +.input-lg + .form-control-feedback { + width: 49px; + height: 49px; + line-height: 49px; +} + +.input-sm + .form-control-feedback { + width: 33px; + height: 33px; + line-height: 33px; +} + +.has-success { + .help-block, .control-label, .radio, .checkbox, .radio-inline, .checkbox-inline { + color: #125204; + } + .form-control { + border-color: #125204; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + &:focus { + border-color: #072102; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; + } + } + .input-group-addon { + color: #125204; + border-color: #125204; + background-color: #d3e5cf; + } + .form-control-feedback { + color: #125204; + } +} + +.has-warning { + .help-block, .control-label, .radio, .checkbox, .radio-inline, .checkbox-inline { + color: #8a6d3b; + } + .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + &:focus { + border-color: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; + } + } + .input-group-addon { + color: #8a6d3b; + border-color: #8a6d3b; + background-color: #fcf8e3; + } + .form-control-feedback { + color: #8a6d3b; + } +} + +.has-error { + .help-block, .control-label, .radio, .checkbox, .radio-inline, .checkbox-inline { + color: #d63510; + } + .form-control { + border-color: #d63510; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + &:focus { + border-color: #a6290c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; + } + } + .input-group-addon { + color: #d63510; + border-color: #d63510; + background-color: #f0dcd8; + } + .form-control-feedback { + color: #d63510; + } +} + +.has-feedback label.sr-only ~ .form-control-feedback { + top: 0; +} + +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: #ffffff; +} + +@media (min-width: 768px) { + .form-inline { + .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .input-group { + display: inline-table; + vertical-align: middle; + .input-group-addon, .input-group-btn, .form-control { + width: auto; + } + > .form-control { + width: 100%; + } + } + .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .radio, .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .radio label, .checkbox label { + padding-left: 0; + } + .radio input[type="radio"], .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .has-feedback .form-control-feedback { + top: 0; + } + } +} + +.form-horizontal { + .radio, .checkbox, .radio-inline, .checkbox-inline { + margin-top: 0; + margin-bottom: 0; + padding-top: 7px; + } + .radio, .checkbox { + min-height: 29px; + } + .form-group { + margin-left: -15px; + margin-right: -15px; + } + .has-feedback .form-control-feedback { + top: 0; + right: 15px; + } +} + +@media (min-width: 768px) { + .form-horizontal .control-label { + text-align: right; + margin-bottom: 0; + padding-top: 7px; + } +} + +@media (min-width: 768px) { + .form-horizontal .form-group-lg .control-label { + padding-top: 14.3px; + } +} + +@media (min-width: 768px) { + .form-horizontal .form-group-sm .control-label { + padding-top: 6px; + } +} + +.btn { + display: inline-block; + margin-bottom: 0; + font-weight: normal; + text-align: center; + vertical-align: middle; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + border-radius: 1px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + &:focus, &:active:focus, &.active:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; + } + &:hover, &:focus { + color: #ffffff; + text-decoration: none; + } + &:active, &.active { + outline: 0; + background-image: none; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + } + &.disabled, &[disabled] { + cursor: not-allowed; + pointer-events: none; + opacity: 0.65; + filter: alpha(opacity = 65); + -webkit-box-shadow: none; + box-shadow: none; + } +} + +fieldset[disabled] .btn { + cursor: not-allowed; + pointer-events: none; + opacity: 0.65; + filter: alpha(opacity = 65); + -webkit-box-shadow: none; + box-shadow: none; +} + +.btn-default { + color: #ffffff; + background-color: #959595; + border-color: #959595; + &:hover, &:focus, &:active, &.active { + color: #ffffff; + background-color: #7c7c7c; + border-color: #767676; + } +} + +.open > .dropdown-toggle.btn-default { + color: #ffffff; + background-color: #7c7c7c; + border-color: #767676; +} + +.btn-default { + &:active, &.active { + background-image: none; + } +} + +.open > .dropdown-toggle.btn-default { + background-image: none; +} + +.btn-default { + &.disabled, &[disabled] { + background-color: #959595; + border-color: #959595; + } +} + +fieldset[disabled] .btn-default { + background-color: #959595; + border-color: #959595; +} + +.btn-default { + &.disabled:hover, &[disabled]:hover { + background-color: #959595; + border-color: #959595; + } +} + +fieldset[disabled] .btn-default:hover { + background-color: #959595; + border-color: #959595; +} + +.btn-default { + &.disabled:focus, &[disabled]:focus { + background-color: #959595; + border-color: #959595; + } +} + +fieldset[disabled] .btn-default:focus { + background-color: #959595; + border-color: #959595; +} + +.btn-default { + &.disabled:active, &[disabled]:active { + background-color: #959595; + border-color: #959595; + } +} + +fieldset[disabled] .btn-default:active { + background-color: #959595; + border-color: #959595; +} + +.btn-default { + &.disabled.active, &[disabled].active { + background-color: #959595; + border-color: #959595; + } +} + +fieldset[disabled] .btn-default.active { + background-color: #959595; + border-color: #959595; +} + +.btn-default .badge { + color: #959595; + background-color: #ffffff; +} + +.btn-primary { + color: #ffffff; + background-color: #0a94d4; + border-color: #0a94d4; + &:hover, &:focus, &:active, &.active { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; + } +} + +.open > .dropdown-toggle.btn-primary { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; +} + +.btn-primary { + &:active, &.active { + background-image: none; + } +} + +.open > .dropdown-toggle.btn-primary { + background-image: none; +} + +.btn-primary { + &.disabled, &[disabled] { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-primary { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-primary { + &.disabled:hover, &[disabled]:hover { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-primary:hover { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-primary { + &.disabled:focus, &[disabled]:focus { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-primary:focus { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-primary { + &.disabled:active, &[disabled]:active { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-primary:active { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-primary { + &.disabled.active, &[disabled].active { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-primary.active { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-primary .badge { + color: #0a94d4; + background-color: #ffffff; +} + +.btn-success { + color: #ffffff; + background-color: #28b309; + border-color: #28b309; + &:hover, &:focus, &:active, &.active { + color: #ffffff; + background-color: #1d8207; + border-color: #1b7906; + } +} + +.open > .dropdown-toggle.btn-success { + color: #ffffff; + background-color: #1d8207; + border-color: #1b7906; +} + +.btn-success { + &:active, &.active { + background-image: none; + } +} + +.open > .dropdown-toggle.btn-success { + background-image: none; +} + +.btn-success { + &.disabled, &[disabled] { + background-color: #28b309; + border-color: #28b309; + } +} + +fieldset[disabled] .btn-success { + background-color: #28b309; + border-color: #28b309; +} + +.btn-success { + &.disabled:hover, &[disabled]:hover { + background-color: #28b309; + border-color: #28b309; + } +} + +fieldset[disabled] .btn-success:hover { + background-color: #28b309; + border-color: #28b309; +} + +.btn-success { + &.disabled:focus, &[disabled]:focus { + background-color: #28b309; + border-color: #28b309; + } +} + +fieldset[disabled] .btn-success:focus { + background-color: #28b309; + border-color: #28b309; +} + +.btn-success { + &.disabled:active, &[disabled]:active { + background-color: #28b309; + border-color: #28b309; + } +} + +fieldset[disabled] .btn-success:active { + background-color: #28b309; + border-color: #28b309; +} + +.btn-success { + &.disabled.active, &[disabled].active { + background-color: #28b309; + border-color: #28b309; + } +} + +fieldset[disabled] .btn-success.active { + background-color: #28b309; + border-color: #28b309; +} + +.btn-success .badge { + color: #28b309; + background-color: #ffffff; +} + +.btn-info { + color: #ffffff; + background-color: #0a94d4; + border-color: #0a94d4; + &:hover, &:focus, &:active, &.active { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; + } +} + +.open > .dropdown-toggle.btn-info { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; +} + +.btn-info { + &:active, &.active { + background-image: none; + } +} + +.open > .dropdown-toggle.btn-info { + background-image: none; +} + +.btn-info { + &.disabled, &[disabled] { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-info { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-info { + &.disabled:hover, &[disabled]:hover { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-info:hover { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-info { + &.disabled:focus, &[disabled]:focus { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-info:focus { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-info { + &.disabled:active, &[disabled]:active { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-info:active { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-info { + &.disabled.active, &[disabled].active { + background-color: #0a94d4; + border-color: #0a94d4; + } +} + +fieldset[disabled] .btn-info.active { + background-color: #0a94d4; + border-color: #0a94d4; +} + +.btn-info .badge { + color: #0a94d4; + background-color: #ffffff; +} + +.btn-warning { + color: #ffffff; + background-color: #f0ad20; + border-color: #f0ad20; + &:hover, &:focus, &:active, &.active { + color: #ffffff; + background-color: #cf910e; + border-color: #c68a0d; + } +} + +.open > .dropdown-toggle.btn-warning { + color: #ffffff; + background-color: #cf910e; + border-color: #c68a0d; +} + +.btn-warning { + &:active, &.active { + background-image: none; + } +} + +.open > .dropdown-toggle.btn-warning { + background-image: none; +} + +.btn-warning { + &.disabled, &[disabled] { + background-color: #f0ad20; + border-color: #f0ad20; + } +} + +fieldset[disabled] .btn-warning { + background-color: #f0ad20; + border-color: #f0ad20; +} + +.btn-warning { + &.disabled:hover, &[disabled]:hover { + background-color: #f0ad20; + border-color: #f0ad20; + } +} + +fieldset[disabled] .btn-warning:hover { + background-color: #f0ad20; + border-color: #f0ad20; +} + +.btn-warning { + &.disabled:focus, &[disabled]:focus { + background-color: #f0ad20; + border-color: #f0ad20; + } +} + +fieldset[disabled] .btn-warning:focus { + background-color: #f0ad20; + border-color: #f0ad20; +} + +.btn-warning { + &.disabled:active, &[disabled]:active { + background-color: #f0ad20; + border-color: #f0ad20; + } +} + +fieldset[disabled] .btn-warning:active { + background-color: #f0ad20; + border-color: #f0ad20; +} + +.btn-warning { + &.disabled.active, &[disabled].active { + background-color: #f0ad20; + border-color: #f0ad20; + } +} + +fieldset[disabled] .btn-warning.active { + background-color: #f0ad20; + border-color: #f0ad20; +} + +.btn-warning .badge { + color: #f0ad20; + background-color: #ffffff; +} + +.btn-danger { + color: #ffffff; + background-color: #ef4a24; + border-color: #ef4a24; + &:hover, &:focus, &:active, &.active { + color: #ffffff; + background-color: #d1330f; + border-color: #c7310f; + } +} + +.open > .dropdown-toggle.btn-danger { + color: #ffffff; + background-color: #d1330f; + border-color: #c7310f; +} + +.btn-danger { + &:active, &.active { + background-image: none; + } +} + +.open > .dropdown-toggle.btn-danger { + background-image: none; +} + +.btn-danger { + &.disabled, &[disabled] { + background-color: #ef4a24; + border-color: #ef4a24; + } +} + +fieldset[disabled] .btn-danger { + background-color: #ef4a24; + border-color: #ef4a24; +} + +.btn-danger { + &.disabled:hover, &[disabled]:hover { + background-color: #ef4a24; + border-color: #ef4a24; + } +} + +fieldset[disabled] .btn-danger:hover { + background-color: #ef4a24; + border-color: #ef4a24; +} + +.btn-danger { + &.disabled:focus, &[disabled]:focus { + background-color: #ef4a24; + border-color: #ef4a24; + } +} + +fieldset[disabled] .btn-danger:focus { + background-color: #ef4a24; + border-color: #ef4a24; +} + +.btn-danger { + &.disabled:active, &[disabled]:active { + background-color: #ef4a24; + border-color: #ef4a24; + } +} + +fieldset[disabled] .btn-danger:active { + background-color: #ef4a24; + border-color: #ef4a24; +} + +.btn-danger { + &.disabled.active, &[disabled].active { + background-color: #ef4a24; + border-color: #ef4a24; + } +} + +fieldset[disabled] .btn-danger.active { + background-color: #ef4a24; + border-color: #ef4a24; +} + +.btn-danger .badge { + color: #ef4a24; + background-color: #ffffff; +} + +.btn-link { + color: #0a94d4; + font-weight: normal; + cursor: pointer; + border-radius: 0; + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; + &:active, &[disabled] { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; + } +} + +fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; +} + +.btn-link { + border-color: transparent; + &:hover, &:focus, &:active { + border-color: transparent; + } + &:hover, &:focus { + color: #07618b; + text-decoration: underline; + background-color: transparent; + } + &[disabled]:hover { + color: #666666; + text-decoration: none; + } +} + +fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { + color: #666666; + text-decoration: none; +} + +.btn-lg, .btn-group-lg > .btn { + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; +} + +.btn-sm, .btn-group-sm > .btn { + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; +} + +.btn-xs, .btn-group-xs > .btn { + padding: 1px 5px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; +} + +.btn-block { + display: block; + width: 100%; + + .btn-block { + margin-top: 5px; + } +} + +input { + &[type="submit"].btn-block, &[type="reset"].btn-block, &[type="button"].btn-block { + width: 100%; + } +} + +.fade { + opacity: 0; + -webkit-transition: opacity 0.15s linear; + -o-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; + &.in { + opacity: 1; + } +} + +.collapse { + display: none; + &.in { + display: block; + } +} + +tr.collapse.in { + display: table-row; +} + +tbody.collapse.in { + display: table-row-group; +} + +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition: height 0.35s ease; + -o-transition: height 0.35s ease; + transition: height 0.35s ease; +} + +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px solid; + border-right: 4px solid transparent; + border-left: 4px solid transparent; +} + +.dropdown { + position: relative; +} + +.dropdown-toggle:focus { + outline: 0; +} + +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + list-style: none; + font-size: 16px; + text-align: left; + background-color: #ffffff; + border: 1px solid #cccccc; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 1px; + -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); + background-clip: padding-box; + &.pull-right { + right: 0; + left: auto; + } + .divider { + height: 1px; + margin: 10px 0; + overflow: hidden; + background-color: #e5e5e5; + } + > { + li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.42857143; + color: #333333; + white-space: nowrap; + &:hover, &:focus { + text-decoration: none; + color: #262626; + background-color: #f5f5f5; + } + } + .active > a { + color: #ffffff; + text-decoration: none; + outline: 0; + background-color: #4d4d4d; + &:hover, &:focus { + color: #ffffff; + text-decoration: none; + outline: 0; + background-color: #4d4d4d; + } + } + .disabled > a { + color: #666666; + &:hover, &:focus { + color: #666666; + } + &:hover, &:focus { + text-decoration: none; + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + cursor: not-allowed; + } + } + } +} + +.open > { + .dropdown-menu { + display: block; + } + a { + outline: 0; + } +} + +.dropdown-menu-right { + left: auto; + right: 0; +} + +.dropdown-menu-left { + left: 0; + right: auto; +} + +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 14px; + line-height: 1.42857143; + color: #666666; + white-space: nowrap; +} + +.dropdown-backdrop { + position: fixed; + left: 0; + right: 0; + bottom: 0; + top: 0; + z-index: 990; +} + +.pull-right > .dropdown-menu { + right: 0; + left: auto; +} + +.dropup .caret, .navbar-fixed-bottom .dropdown .caret { + border-top: 0; + border-bottom: 4px solid; + content: ""; +} + +.dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 1px; +} + +@media (min-width: 768px) { + .navbar-right { + .dropdown-menu { + left: auto; + right: 0; + } + .dropdown-menu-left { + left: 0; + right: auto; + } + } +} + +.btn-group, .btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle; +} + +.btn-group > .btn, .btn-group-vertical > .btn { + position: relative; + float: left; +} + +.btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { + z-index: 2; +} + +.btn-group > .btn:focus, .btn-group-vertical > .btn:focus { + outline: 0; +} + +.btn-group { + .btn + { + .btn, .btn-group { + margin-left: -1px; + } + } + .btn-group + { + .btn, .btn-group { + margin-left: -1px; + } + } +} + +.btn-toolbar { + margin-left: -5px; + .btn-group, .input-group { + float: left; + } + > { + .btn, .btn-group, .input-group { + margin-left: 5px; + } + } +} + +.btn-group { + > { + .btn { + &:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0; + } + &:first-child { + margin-left: 0; + &:not(:last-child):not(.dropdown-toggle) { + border-bottom-right-radius: 0; + border-top-right-radius: 0; + } + } + &:last-child:not(:first-child) { + border-bottom-left-radius: 0; + border-top-left-radius: 0; + } + } + .dropdown-toggle:not(:first-child) { + border-bottom-left-radius: 0; + border-top-left-radius: 0; + } + .btn-group { + float: left; + &:not(:first-child):not(:last-child) > .btn { + border-radius: 0; + } + &:first-child > { + .btn:last-child, .dropdown-toggle { + border-bottom-right-radius: 0; + border-top-right-radius: 0; + } + } + &:last-child > .btn:first-child { + border-bottom-left-radius: 0; + border-top-left-radius: 0; + } + } + } + .dropdown-toggle:active { + outline: 0; + } + &.open .dropdown-toggle { + outline: 0; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + &.btn-link { + -webkit-box-shadow: none; + box-shadow: none; + } + } + > { + .btn + .dropdown-toggle { + padding-left: 8px; + padding-right: 8px; + } + .btn-lg + .dropdown-toggle { + padding-left: 12px; + padding-right: 12px; + } + } +} + +.btn .caret { + margin-left: 0; +} + +.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0; +} + +.dropup .btn-lg .caret { + border-width: 0 5px 5px; +} + +.btn-group-vertical > { + .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; + } + .btn-group { + display: block; + float: none; + width: 100%; + max-width: 100%; + > .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; + float: none; + } + } + .btn + { + .btn, .btn-group { + margin-top: -1px; + margin-left: 0; + } + } + .btn-group + { + .btn, .btn-group { + margin-top: -1px; + margin-left: 0; + } + } + .btn { + &:not(:first-child):not(:last-child) { + border-radius: 0; + } + &:first-child:not(:last-child) { + border-top-right-radius: 1px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + } + &:last-child:not(:first-child) { + border-bottom-left-radius: 1px; + border-top-right-radius: 0; + border-top-left-radius: 0; + } + } + .btn-group { + &:not(:first-child):not(:last-child) > .btn { + border-radius: 0; + } + &:first-child:not(:last-child) > { + .btn:last-child, .dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + } + } + &:last-child:not(:first-child) > .btn:first-child { + border-top-right-radius: 0; + border-top-left-radius: 0; + } + } +} + +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate; + > { + .btn { + float: none; + display: table-cell; + width: 1%; + } + .btn-group { + float: none; + display: table-cell; + width: 1%; + .btn { + width: 100%; + } + .dropdown-menu { + left: auto; + } + } + } +} + +[data-toggle="buttons"] > .btn > input { + &[type="radio"], &[type="checkbox"] { + position: absolute; + z-index: -1; + opacity: 0; + filter: alpha(opacity = 0); + } +} + +.input-group { + position: relative; + display: table; + border-collapse: separate; + &[class*="col-"] { + float: none; + padding-left: 0; + padding-right: 0; + } + .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0; + } +} + +.input-group-lg > { + .form-control, .input-group-addon, .input-group-btn > .btn { + height: 49px; + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; + } +} + +select.input-group-lg > { + .form-control, .input-group-addon, .input-group-btn > .btn { + height: 49px; + line-height: 49px; + } +} + +textarea.input-group-lg > { + .form-control, .input-group-addon, .input-group-btn > .btn { + height: auto; + } +} + +select[multiple].input-group-lg > { + .form-control, .input-group-addon, .input-group-btn > .btn { + height: auto; + } +} + +.input-group-sm > { + .form-control, .input-group-addon, .input-group-btn > .btn { + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; + } +} + +select.input-group-sm > { + .form-control, .input-group-addon, .input-group-btn > .btn { + height: 33px; + line-height: 33px; + } +} + +textarea.input-group-sm > { + .form-control, .input-group-addon, .input-group-btn > .btn { + height: auto; + } +} + +select[multiple].input-group-sm > { + .form-control, .input-group-addon, .input-group-btn > .btn { + height: auto; + } +} + +.input-group-addon, .input-group-btn, .input-group .form-control { + display: table-cell; +} + +.input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { + border-radius: 0; +} + +.input-group-addon, .input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle; +} + +.input-group-addon { + padding: 6px 12px; + font-size: 16px; + font-weight: normal; + line-height: 1; + color: #4d4d4d; + text-align: center; + background-color: #cccccc; + border: 1px solid #cccccc; + border-radius: 1px; + &.input-sm { + padding: 5px 10px; + font-size: 14px; + border-radius: 0; + } + &.input-lg { + padding: 10px 16px; + font-size: 20px; + border-radius: 2px; + } + input { + &[type="radio"], &[type="checkbox"] { + margin-top: 0; + } + } +} + +.input-group .form-control:first-child, .input-group-addon:first-child { + border-bottom-right-radius: 0; + border-top-right-radius: 0; +} + +.input-group-btn { + &:first-child > { + .btn, .btn-group > .btn, .dropdown-toggle { + border-bottom-right-radius: 0; + border-top-right-radius: 0; + } + } + &:last-child > { + .btn:not(:last-child):not(.dropdown-toggle), .btn-group:not(:last-child) > .btn { + border-bottom-right-radius: 0; + border-top-right-radius: 0; + } + } +} + +.input-group-addon:first-child { + border-right: 0; +} + +.input-group .form-control:last-child, .input-group-addon:last-child { + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} + +.input-group-btn { + &:last-child > { + .btn, .btn-group > .btn, .dropdown-toggle { + border-bottom-left-radius: 0; + border-top-left-radius: 0; + } + } + &:first-child > { + .btn:not(:first-child), .btn-group:not(:first-child) > .btn { + border-bottom-left-radius: 0; + border-top-left-radius: 0; + } + } +} + +.input-group-addon:last-child { + border-left: 0; +} + +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap; + > .btn { + position: relative; + + .btn { + margin-left: -1px; + } + &:hover, &:focus, &:active { + z-index: 2; + } + } + &:first-child > { + .btn, .btn-group { + margin-right: -1px; + } + } + &:last-child > { + .btn, .btn-group { + margin-left: -1px; + } + } +} + +.nav { + margin-bottom: 0; + padding-left: 0; + list-style: none; + > li { + position: relative; + display: block; + > a { + position: relative; + display: block; + padding: 5px 5px; + &:hover, &:focus { + text-decoration: none; + background-color: transparent; + } + } + &.disabled > a { + color: #666666; + &:hover, &:focus { + color: #666666; + text-decoration: none; + background-color: transparent; + cursor: not-allowed; + } + } + } + .open > a { + background-color: transparent; + border-color: #0a94d4; + &:hover, &:focus { + background-color: transparent; + border-color: #0a94d4; + } + } + .nav-divider { + height: 1px; + margin: 10px 0; + overflow: hidden; + background-color: #e5e5e5; + } + > li > a > img { + max-width: none; + } +} + +.nav-tabs { + border-bottom: 1px solid #dddddd; + > li { + float: left; + margin-bottom: -1px; + > a { + margin-right: 2px; + line-height: 1.42857143; + border: 1px solid transparent; + border-radius: 1px 1px 0 0; + &:hover { + border-color: #cccccc #cccccc #dddddd; + } + } + &.active > a { + color: #4d4d4d; + background-color: #333333; + border: 1px solid #dddddd; + border-bottom-color: transparent; + cursor: default; + &:hover, &:focus { + color: #4d4d4d; + background-color: #333333; + border: 1px solid #dddddd; + border-bottom-color: transparent; + cursor: default; + } + } + } + &.nav-justified { + width: 100%; + border-bottom: 0; + > { + li { + float: none; + > a { + text-align: center; + margin-bottom: 5px; + } + } + .dropdown .dropdown-menu { + top: auto; + left: auto; + } + li > a { + margin-right: 0; + border-radius: 1px; + } + .active > a { + border: 1px solid #dddddd; + &:hover, &:focus { + border: 1px solid #dddddd; + } + } + } + } +} + +@media (min-width: 768px) { + .nav-tabs.nav-justified > li { + display: table-cell; + width: 1%; + > a { + margin-bottom: 0; + } + } +} + +@media (min-width: 768px) { + .nav-tabs.nav-justified > { + li > a { + border-bottom: 1px solid #dddddd; + border-radius: 1px 1px 0 0; + } + .active > a { + border-bottom-color: #333333; + &:hover, &:focus { + border-bottom-color: #333333; + } + } + } +} + +.nav-pills > li { + float: left; + > a { + border-radius: 1px; + } + + li { + margin-left: 2px; + } + &.active > a { + color: #ffffff; + background-color: #4d4d4d; + &:hover, &:focus { + color: #ffffff; + background-color: #4d4d4d; + } + } +} + +.nav-stacked > li { + float: none; + + li { + margin-top: 2px; + margin-left: 0; + } +} + +.nav-justified { + width: 100%; + > { + li { + float: none; + > a { + text-align: center; + margin-bottom: 5px; + } + } + .dropdown .dropdown-menu { + top: auto; + left: auto; + } + } +} + +@media (min-width: 768px) { + .nav-justified > li { + display: table-cell; + width: 1%; + > a { + margin-bottom: 0; + } + } +} + +.nav-tabs-justified { + border-bottom: 0; + > { + li > a { + margin-right: 0; + border-radius: 1px; + } + .active > a { + border: 1px solid #dddddd; + &:hover, &:focus { + border: 1px solid #dddddd; + } + } + } +} + +@media (min-width: 768px) { + .nav-tabs-justified > { + li > a { + border-bottom: 1px solid #dddddd; + border-radius: 1px 1px 0 0; + } + .active > a { + border-bottom-color: #333333; + &:hover, &:focus { + border-bottom-color: #333333; + } + } + } +} + +.tab-content > { + .tab-pane { + display: none; + } + .active { + display: block; + } +} + +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-right-radius: 0; + border-top-left-radius: 0; +} + +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 22px; + border: 1px solid transparent; +} + +@media (min-width: 768px) { + .navbar { + border-radius: 1px; + } +} + +@media (min-width: 768px) { + .navbar-header { + float: left; + } +} + +.navbar-collapse { + overflow-x: visible; + padding-right: 15px; + padding-left: 15px; + border-top: 1px solid transparent; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); + -webkit-overflow-scrolling: touch; + &.in { + overflow-y: auto; + } +} + +@media (min-width: 768px) { + .navbar-collapse { + width: auto; + border-top: 0; + box-shadow: none; + &.collapse { + display: block !important; + height: auto !important; + padding-bottom: 0; + overflow: visible !important; + } + &.in { + overflow-y: visible; + } + } + .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { + padding-left: 0; + padding-right: 0; + } +} + +.navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { + max-height: 340px; +} + +@media (max-width: 480px) and (orientation: landscape) { + .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { + max-height: 200px; + } +} + +.container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { + margin-right: -15px; + margin-left: -15px; +} + +@media (min-width: 768px) { + .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { + margin-right: 0; + margin-left: 0; + } +} + +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px; +} + +@media (min-width: 768px) { + .navbar-static-top { + border-radius: 0; + } +} + +.navbar-fixed-top, .navbar-fixed-bottom { + position: fixed; + right: 0; + left: 0; + z-index: 1030; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} + +@media (min-width: 768px) { + .navbar-fixed-top, .navbar-fixed-bottom { + border-radius: 0; + } +} + +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px; +} + +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0; +} + +.navbar-brand { + float: left; + padding: 14px 15px; + font-size: 20px; + line-height: 22px; + height: 50px; + &:hover, &:focus { + text-decoration: none; + } +} + +@media (min-width: 768px) { + .navbar > { + .container .navbar-brand, .container-fluid .navbar-brand { + margin-left: -15px; + } + } +} + +.navbar-toggle { + position: relative; + float: right; + margin-right: 15px; + padding: 9px 10px; + margin-top: 8px; + margin-bottom: 8px; + background-color: transparent; + background-image: none; + border: 1px solid transparent; + border-radius: 1px; + &:focus { + outline: 0; + } + .icon-bar { + display: block; + width: 22px; + height: 2px; + border-radius: 1px; + + .icon-bar { + margin-top: 4px; + } + } +} + +@media (min-width: 768px) { + .navbar-toggle { + display: none; + } +} + +.navbar-nav { + margin: 7px -15px; + > li > a { + padding-top: 10px; + padding-bottom: 10px; + line-height: 22px; + } +} + +@media (max-width: 767px) { + .navbar-nav .open .dropdown-menu { + position: static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + box-shadow: none; + > li > a, .dropdown-header { + padding: 5px 15px 5px 25px; + } + > li > a { + line-height: 22px; + &:hover, &:focus { + background-image: none; + } + } + } +} + +@media (min-width: 768px) { + .navbar-nav { + float: left; + margin: 0; + > li { + float: left; + > a { + padding-top: 14px; + padding-bottom: 14px; + } + } + &.navbar-right:last-child { + margin-right: -15px; + } + } +} + +@media (min-width: 768px) { + .navbar-left { + float: left !important; + } + .navbar-right { + float: right !important; + } +} + +.navbar-form { + margin-left: -15px; + margin-right: -15px; + padding: 10px 15px; + border-top: 1px solid transparent; + border-bottom: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); + margin-top: 7px; + margin-bottom: 7px; +} + +@media (min-width: 768px) { + .navbar-form { + .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .input-group { + display: inline-table; + vertical-align: middle; + .input-group-addon, .input-group-btn, .form-control { + width: auto; + } + > .form-control { + width: 100%; + } + } + .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .radio, .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .radio label, .checkbox label { + padding-left: 0; + } + .radio input[type="radio"], .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .has-feedback .form-control-feedback { + top: 0; + } + } +} + +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 5px; + } +} + +@media (min-width: 768px) { + .navbar-form { + width: auto; + border: 0; + margin-left: 0; + margin-right: 0; + padding-top: 0; + padding-bottom: 0; + -webkit-box-shadow: none; + box-shadow: none; + &.navbar-right:last-child { + margin-right: -15px; + } + } +} + +.navbar-nav > li > .dropdown-menu { + margin-top: 0; + border-top-right-radius: 0; + border-top-left-radius: 0; +} + +.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} + +.navbar-btn { + margin-top: 7px; + margin-bottom: 7px; + &.btn-sm { + margin-top: 8.5px; + margin-bottom: 8.5px; + } + &.btn-xs { + margin-top: 14px; + margin-bottom: 14px; + } +} + +.navbar-text { + margin-top: 14px; + margin-bottom: 14px; +} + +@media (min-width: 768px) { + .navbar-text { + float: left; + margin-left: 15px; + margin-right: 15px; + &.navbar-right:last-child { + margin-right: 0; + } + } +} + +.navbar-default { + background-color: #f8f8f8; + border-color: #e7e7e7; + .navbar-brand { + color: #777777; + &:hover, &:focus { + color: #5e5e5e; + background-color: transparent; + } + } + .navbar-text { + color: #777777; + } + .navbar-nav > { + li > a { + color: #777777; + &:hover, &:focus { + color: #333333; + background-color: transparent; + } + } + .active > a { + color: #555555; + background-color: #e7e7e7; + &:hover, &:focus { + color: #555555; + background-color: #e7e7e7; + } + } + .disabled > a { + color: #cccccc; + background-color: transparent; + &:hover, &:focus { + color: #cccccc; + background-color: transparent; + } + } + } + .navbar-toggle { + border-color: #dddddd; + &:hover, &:focus { + background-color: #dddddd; + } + .icon-bar { + background-color: #888888; + } + } + .navbar-collapse, .navbar-form { + border-color: #e7e7e7; + } + .navbar-nav > .open > a { + background-color: #e7e7e7; + color: #555555; + &:hover, &:focus { + background-color: #e7e7e7; + color: #555555; + } + } + .navbar-link { + color: #777777; + &:hover { + color: #333333; + } + } + .btn-link { + color: #777777; + &:hover, &:focus { + color: #333333; + } + &[disabled]:hover { + color: #cccccc; + } + } +} + +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu > { + li > a { + color: #777777; + &:hover, &:focus { + color: #333333; + background-color: transparent; + } + } + .active > a { + color: #555555; + background-color: #e7e7e7; + &:hover, &:focus { + color: #555555; + background-color: #e7e7e7; + } + } + .disabled > a { + color: #cccccc; + background-color: transparent; + &:hover, &:focus { + color: #cccccc; + background-color: transparent; + } + } + } +} + +fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { + color: #cccccc; +} + +.navbar-inverse { + background-color: #222222; + border-color: #080808; + .navbar-brand { + color: #666666; + &:hover, &:focus { + color: #ffffff; + background-color: transparent; + } + } + .navbar-text { + color: #666666; + } + .navbar-nav > { + li > a { + color: #666666; + &:hover, &:focus { + color: #ffffff; + background-color: transparent; + } + } + .active > a { + color: #ffffff; + background-color: #080808; + &:hover, &:focus { + color: #ffffff; + background-color: #080808; + } + } + .disabled > a { + color: #444444; + background-color: transparent; + &:hover, &:focus { + color: #444444; + background-color: transparent; + } + } + } + .navbar-toggle { + border-color: #333333; + &:hover, &:focus { + background-color: #333333; + } + .icon-bar { + background-color: #ffffff; + } + } + .navbar-collapse, .navbar-form { + border-color: #101010; + } + .navbar-nav > .open > a { + background-color: #080808; + color: #ffffff; + &:hover, &:focus { + background-color: #080808; + color: #ffffff; + } + } + .navbar-link { + color: #666666; + &:hover { + color: #ffffff; + } + } + .btn-link { + color: #666666; + &:hover, &:focus { + color: #ffffff; + } + &[disabled]:hover { + color: #444444; + } + } +} + +@media (max-width: 767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu { + > .dropdown-header { + border-color: #080808; + } + .divider { + background-color: #080808; + } + > { + li > a { + color: #666666; + &:hover, &:focus { + color: #ffffff; + background-color: transparent; + } + } + .active > a { + color: #ffffff; + background-color: #080808; + &:hover, &:focus { + color: #ffffff; + background-color: #080808; + } + } + .disabled > a { + color: #444444; + background-color: transparent; + &:hover, &:focus { + color: #444444; + background-color: transparent; + } + } + } + } +} + +fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:focus { + color: #444444; +} + +.breadcrumb { + padding: 8px 15px; + margin-bottom: 22px; + list-style: none; + background-color: #f5f5f5; + border-radius: 1px; + > { + li { + display: inline-block; + + li:before { + content: "/\00a0"; + padding: 0 5px; + color: #cccccc; + } + } + .active { + color: #666666; + } + } +} + +.pagination { + display: inline-block; + padding-left: 0; + margin: 22px 0; + border-radius: 1px; + > { + li { + display: inline; + > { + a, span { + position: relative; + float: left; + padding: 6px 12px; + line-height: 1.42857143; + text-decoration: none; + color: #0a94d4; + background-color: #ffffff; + border: 1px solid #dddddd; + margin-left: -1px; + } + } + &:first-child > { + a, span { + margin-left: 0; + border-bottom-left-radius: 1px; + border-top-left-radius: 1px; + } + } + &:last-child > { + a, span { + border-bottom-right-radius: 1px; + border-top-right-radius: 1px; + } + } + > { + a:hover, span:hover, a:focus, span:focus { + color: #07618b; + background-color: #cccccc; + border-color: #dddddd; + } + } + } + .active > { + a, span, a:hover, span:hover, a:focus, span:focus { + z-index: 2; + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; + cursor: default; + } + } + .disabled > { + span { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; + &:hover, &:focus { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; + } + } + a { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; + &:hover, &:focus { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; + } + } + } + } +} + +.pagination-lg > li { + > { + a, span { + padding: 10px 16px; + font-size: 20px; + } + } + &:first-child > { + a, span { + border-bottom-left-radius: 2px; + border-top-left-radius: 2px; + } + } + &:last-child > { + a, span { + border-bottom-right-radius: 2px; + border-top-right-radius: 2px; + } + } +} + +.pagination-sm > li { + > { + a, span { + padding: 5px 10px; + font-size: 14px; + } + } + &:first-child > { + a, span { + border-bottom-left-radius: 0; + border-top-left-radius: 0; + } + } + &:last-child > { + a, span { + border-bottom-right-radius: 0; + border-top-right-radius: 0; + } + } +} + +.pager { + padding-left: 0; + margin: 22px 0; + list-style: none; + text-align: center; + li { + display: inline; + > { + a, span { + display: inline-block; + padding: 5px 14px; + background-color: #ffffff; + border: 1px solid #dddddd; + border-radius: 15px; + } + a { + &:hover, &:focus { + text-decoration: none; + background-color: #cccccc; + } + } + } + } + .next > { + a, span { + float: right; + } + } + .previous > { + a, span { + float: left; + } + } + .disabled > { + a { + color: #666666; + background-color: #ffffff; + cursor: not-allowed; + &:hover, &:focus { + color: #666666; + background-color: #ffffff; + cursor: not-allowed; + } + } + span { + color: #666666; + background-color: #ffffff; + cursor: not-allowed; + } + } +} + +.label { + display: inline; + padding: .2em .6em .3em; + font-size: 75%; + font-weight: bold; + line-height: 1; + color: #ffffff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25em; +} + +a.label { + &:hover, &:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; + } +} + +.label:empty { + display: none; +} + +.btn .label { + position: relative; + top: -1px; +} + +.label-default { + background-color: #666666; + &[href] { + &:hover, &:focus { + background-color: #4d4d4d; + } + } +} + +.label-primary { + background-color: #4d4d4d; + &[href] { + &:hover, &:focus { + background-color: #333333; + } + } +} + +.label-success { + background-color: #28b309; + &[href] { + &:hover, &:focus { + background-color: #1d8207; + } + } +} + +.label-info { + background-color: #0a94d4; + &[href] { + &:hover, &:focus { + background-color: #0872a3; + } + } +} + +.label-warning { + background-color: #f0ad20; + &[href] { + &:hover, &:focus { + background-color: #cf910e; + } + } +} + +.label-danger { + background-color: #ef4a24; + &[href] { + &:hover, &:focus { + background-color: #d1330f; + } + } +} + +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 14px; + font-weight: bold; + color: #ffffff; + line-height: 1; + vertical-align: baseline; + white-space: nowrap; + text-align: center; + background-color: #666666; + border-radius: 10px; + &:empty { + display: none; + } +} + +.btn .badge { + position: relative; + top: -1px; +} + +.btn-xs .badge { + top: 0; + padding: 1px 5px; +} + +a { + &.badge { + &:hover, &:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; + } + } + &.list-group-item.active > .badge { + color: #0a94d4; + background-color: #ffffff; + } +} + +.nav-pills > { + .active > a > .badge { + color: #0a94d4; + background-color: #ffffff; + } + li > a > .badge { + margin-left: 3px; + } +} + +.jumbotron { + padding: 30px; + margin-bottom: 30px; + color: inherit; + background-color: #cccccc; + h1, .h1 { + color: inherit; + } + p { + margin-bottom: 15px; + font-size: 24px; + font-weight: 200; + } + > hr { + border-top-color: #b3b3b3; + } +} + +.container .jumbotron { + border-radius: 2px; +} + +.jumbotron .container { + max-width: 100%; +} + +@media screen and (min-width: 768px) { + .jumbotron { + padding-top: 48px; + padding-bottom: 48px; + } + .container .jumbotron { + padding-left: 60px; + padding-right: 60px; + } + .jumbotron { + h1, .h1 { + font-size: 72px; + } + } +} + +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 22px; + line-height: 1.42857143; + background-color: #333333; + border: 1px solid #dddddd; + border-radius: 1px; + -webkit-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + > img, a > img { + margin-left: auto; + margin-right: auto; + } +} + +a.thumbnail { + &:hover, &:focus, &.active { + border-color: #0a94d4; + } +} + +.thumbnail .caption { + padding: 9px; + color: #ffffff; +} + +.alert { + padding: 15px; + margin-bottom: 22px; + border: 1px solid transparent; + border-radius: 1px; + h4 { + margin-top: 0; + color: inherit; + } + .alert-link { + font-weight: bold; + } + > { + p, ul { + margin-bottom: 0; + } + p + p { + margin-top: 5px; + } + } +} + +.alert-dismissable, .alert-dismissible { + padding-right: 35px; +} + +.alert-dismissable .close, .alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; +} + +.alert-success { + background-color: #d3e5cf; + border-color: #c9dcbe; + color: #125204; + hr { + border-top-color: #bbd3ae; + } + .alert-link { + color: #072102; + } +} + +.alert-info { + background-color: #daebf2; + border-color: #c0e4e9; + color: #0872a3; + hr { + border-top-color: #addbe2; + } + .alert-link { + color: #055073; + } +} + +.alert-warning { + background-color: #fcf8e3; + border-color: #faebcc; + color: #8a6d3b; + hr { + border-top-color: #f7e1b5; + } + .alert-link { + color: #66512c; + } +} + +.alert-danger { + background-color: #f0dcd8; + border-color: #e9c6c6; + color: #d63510; + hr { + border-top-color: #e2b3b3; + } + .alert-link { + color: #a6290c; + } +} + +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + + to { + background-position: 0 0; + } +} + + +@keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + + to { + background-position: 0 0; + } +} + + +.progress { + overflow: hidden; + height: 22px; + margin-bottom: 22px; + background-color: #f5f5f5; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); +} + +.progress-bar { + float: left; + width: 0%; + height: 100%; + font-size: 14px; + line-height: 22px; + color: #ffffff; + text-align: center; + background-color: #4d4d4d; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + -webkit-transition: width 0.6s ease; + -o-transition: width 0.6s ease; + transition: width 0.6s ease; +} + +.progress-striped .progress-bar, .progress-bar-striped { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-size: 40px 40px; +} + +.progress.active .progress-bar { + -webkit-animation: progress-bar-stripes 2s linear infinite; + -o-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; +} + +.progress-bar { + &.active { + -webkit-animation: progress-bar-stripes 2s linear infinite; + -o-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; + } + &[aria-valuenow="1"], &[aria-valuenow="2"] { + min-width: 30px; + } + &[aria-valuenow="0"] { + color: #666666; + min-width: 30px; + background-color: transparent; + background-image: none; + box-shadow: none; + } +} + +.progress-bar-success { + background-color: #28b309; +} + +.progress-striped .progress-bar-success { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} + +.progress-bar-info { + background-color: #0a94d4; +} + +.progress-striped .progress-bar-info { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} + +.progress-bar-warning { + background-color: #f0ad20; +} + +.progress-striped .progress-bar-warning { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} + +.progress-bar-danger { + background-color: #ef4a24; +} + +.progress-striped .progress-bar-danger { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} + +.media, .media-body { + overflow: hidden; + zoom: 1; +} + +.media { + margin-top: 15px; + .media { + margin-top: 15px; + } + &:first-child { + margin-top: 0; + } +} + +.media-object { + display: block; +} + +.media-heading { + margin: 0 0 5px; +} + +.media > { + .pull-left { + margin-right: 10px; + } + .pull-right { + margin-left: 10px; + } +} + +.media-list { + padding-left: 0; + list-style: none; +} + +.list-group { + margin-bottom: 20px; + padding-left: 0; +} + +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #ffffff; + border: 1px solid #dddddd; + &:first-child { + border-top-right-radius: 1px; + border-top-left-radius: 1px; + } + &:last-child { + margin-bottom: 0; + border-bottom-right-radius: 1px; + border-bottom-left-radius: 1px; + } + > .badge { + float: right; + + .badge { + margin-right: 5px; + } + } +} + +a.list-group-item { + color: #555555; + .list-group-item-heading { + color: #333333; + } + &:hover, &:focus { + text-decoration: none; + color: #555555; + background-color: #f5f5f5; + } +} + +.list-group-item { + &.disabled { + background-color: #cccccc; + color: #666666; + &:hover, &:focus { + background-color: #cccccc; + color: #666666; + } + .list-group-item-heading, &:hover .list-group-item-heading, &:focus .list-group-item-heading { + color: inherit; + } + .list-group-item-text, &:hover .list-group-item-text, &:focus .list-group-item-text { + color: #666666; + } + } + &.active { + z-index: 2; + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; + &:hover, &:focus { + z-index: 2; + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; + } + .list-group-item-heading, &:hover .list-group-item-heading, &:focus .list-group-item-heading, .list-group-item-heading > small, &:hover .list-group-item-heading > small, &:focus .list-group-item-heading > small, .list-group-item-heading > .small, &:hover .list-group-item-heading > .small, &:focus .list-group-item-heading > .small { + color: inherit; + } + .list-group-item-text, &:hover .list-group-item-text, &:focus .list-group-item-text { + color: #b3b3b3; + } + } +} + +.list-group-item-success { + color: #125204; + background-color: #d3e5cf; +} + +a.list-group-item-success { + color: #125204; + .list-group-item-heading { + color: inherit; + } + &:hover, &:focus { + color: #125204; + background-color: #c4dcbe; + } + &.active { + color: #fff; + background-color: #125204; + border-color: #125204; + &:hover, &:focus { + color: #fff; + background-color: #125204; + border-color: #125204; + } + } +} + +.list-group-item-info { + color: #0872a3; + background-color: #daebf2; +} + +a.list-group-item-info { + color: #0872a3; + .list-group-item-heading { + color: inherit; + } + &:hover, &:focus { + color: #0872a3; + background-color: #c7e1eb; + } + &.active { + color: #fff; + background-color: #0872a3; + border-color: #0872a3; + &:hover, &:focus { + color: #fff; + background-color: #0872a3; + border-color: #0872a3; + } + } +} + +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3; +} + +a.list-group-item-warning { + color: #8a6d3b; + .list-group-item-heading { + color: inherit; + } + &:hover, &:focus { + color: #8a6d3b; + background-color: #faf2cc; + } + &.active { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; + &:hover, &:focus { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; + } + } +} + +.list-group-item-danger { + color: #d63510; + background-color: #f0dcd8; +} + +a.list-group-item-danger { + color: #d63510; + .list-group-item-heading { + color: inherit; + } + &:hover, &:focus { + color: #d63510; + background-color: #e9cbc6; + } + &.active { + color: #fff; + background-color: #d63510; + border-color: #d63510; + &:hover, &:focus { + color: #fff; + background-color: #d63510; + border-color: #d63510; + } + } +} + +.list-group-item-heading { + margin-top: 0; + margin-bottom: 5px; +} + +.list-group-item-text { + margin-bottom: 0; + line-height: 1.3; +} + +.panel { + margin-bottom: 22px; + background-color: #ffffff; + border: 1px solid transparent; + border-radius: 1px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); +} + +.panel-body { + padding: 15px; +} + +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-right-radius: 0px; + border-top-left-radius: 0px; + > .dropdown .dropdown-toggle { + color: inherit; + } +} + +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 18px; + color: inherit; + > a { + color: inherit; + } +} + +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #dddddd; + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; +} + +.panel > .list-group { + margin-bottom: 0; + .list-group-item { + border-width: 1px 0; + border-radius: 0; + } + &:first-child .list-group-item:first-child { + border-top: 0; + border-top-right-radius: 0px; + border-top-left-radius: 0px; + } + &:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; + } +} + +.panel-heading + .list-group .list-group-item:first-child, .list-group + .panel-footer { + border-top-width: 0; +} + +.panel > { + .table, .table-responsive > .table, .panel-collapse > .table { + margin-bottom: 0; + } + .table:first-child, .table-responsive:first-child > .table:first-child { + border-top-right-radius: 0px; + border-top-left-radius: 0px; + } + .table:first-child > thead:first-child > tr:first-child td:first-child, .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .table:first-child > tbody:first-child > tr:first-child td:first-child, .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .table:first-child > thead:first-child > tr:first-child th:first-child, .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .table:first-child > tbody:first-child > tr:first-child th:first-child, .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { + border-top-left-radius: 0px; + } + .table:first-child > thead:first-child > tr:first-child td:last-child, .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .table:first-child > tbody:first-child > tr:first-child td:last-child, .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .table:first-child > thead:first-child > tr:first-child th:last-child, .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .table:first-child > tbody:first-child > tr:first-child th:last-child, .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { + border-top-right-radius: 0px; + } + .table:last-child, .table-responsive:last-child > .table:last-child { + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; + } + .table:last-child > tbody:last-child > tr:last-child td:first-child, .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .table:last-child > tfoot:last-child > tr:last-child td:first-child, .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .table:last-child > tbody:last-child > tr:last-child th:first-child, .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .table:last-child > tfoot:last-child > tr:last-child th:first-child, .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { + border-bottom-left-radius: 0px; + } + .table:last-child > tbody:last-child > tr:last-child td:last-child, .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .table:last-child > tfoot:last-child > tr:last-child td:last-child, .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .table:last-child > tbody:last-child > tr:last-child th:last-child, .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .table:last-child > tfoot:last-child > tr:last-child th:last-child, .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { + border-bottom-right-radius: 0px; + } + .panel-body + { + .table, .table-responsive { + border-top: 1px solid #dddddd; + } + } + .table > tbody:first-child > tr:first-child { + th, td { + border-top: 0; + } + } + .table-bordered, .table-responsive > .table-bordered { + border: 0; + } + .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > th:first-child, .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-bordered > tfoot > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; + } + .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > th:last-child, .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-bordered > tfoot > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; + } + .table-bordered > thead > tr:first-child > td, .table-responsive > .table-bordered > thead > tr:first-child > td, .table-bordered > tbody > tr:first-child > td, .table-responsive > .table-bordered > tbody > tr:first-child > td, .table-bordered > thead > tr:first-child > th, .table-responsive > .table-bordered > thead > tr:first-child > th, .table-bordered > tbody > tr:first-child > th, .table-responsive > .table-bordered > tbody > tr:first-child > th, .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-bordered > tfoot > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td, .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; + } + .table-responsive { + > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; + } + border: 0; + margin-bottom: 0; + } +} + +.panel-group { + margin-bottom: 22px; + .panel { + margin-bottom: 0; + border-radius: 1px; + + .panel { + margin-top: 5px; + } + } + .panel-heading { + border-bottom: 0; + + .panel-collapse > .panel-body { + border-top: 1px solid #dddddd; + } + } + .panel-footer { + border-top: 0; + + .panel-collapse .panel-body { + border-bottom: 1px solid #dddddd; + } + } +} + +.panel-default { + border-color: #dddddd; + > { + .panel-heading { + color: #333333; + background-color: #f5f5f5; + border-color: #dddddd; + + .panel-collapse > .panel-body { + border-top-color: #dddddd; + } + .badge { + color: #f5f5f5; + background-color: #333333; + } + } + .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #dddddd; + } + } +} + +.panel-primary { + border-color: #4d4d4d; + > { + .panel-heading { + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; + + .panel-collapse > .panel-body { + border-top-color: #4d4d4d; + } + .badge { + color: #4d4d4d; + background-color: #ffffff; + } + } + .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #4d4d4d; + } + } +} + +.panel-success { + border-color: #c9dcbe; + > { + .panel-heading { + color: #125204; + background-color: #d3e5cf; + border-color: #c9dcbe; + + .panel-collapse > .panel-body { + border-top-color: #c9dcbe; + } + .badge { + color: #d3e5cf; + background-color: #125204; + } + } + .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #c9dcbe; + } + } +} + +.panel-info { + border-color: #c0e4e9; + > { + .panel-heading { + color: #0872a3; + background-color: #daebf2; + border-color: #c0e4e9; + + .panel-collapse > .panel-body { + border-top-color: #c0e4e9; + } + .badge { + color: #daebf2; + background-color: #0872a3; + } + } + .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #c0e4e9; + } + } +} + +.panel-warning { + border-color: #faebcc; + > { + .panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; + + .panel-collapse > .panel-body { + border-top-color: #faebcc; + } + .badge { + color: #fcf8e3; + background-color: #8a6d3b; + } + } + .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #faebcc; + } + } +} + +.panel-danger { + border-color: #e9c6c6; + > { + .panel-heading { + color: #d63510; + background-color: #f0dcd8; + border-color: #e9c6c6; + + .panel-collapse > .panel-body { + border-top-color: #e9c6c6; + } + .badge { + color: #f0dcd8; + background-color: #d63510; + } + } + .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #e9c6c6; + } + } +} + +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden; + .embed-responsive-item, iframe, embed, object { + position: absolute; + top: 0; + left: 0; + bottom: 0; + height: 100%; + width: 100%; + border: 0; + } + &.embed-responsive-16by9 { + padding-bottom: 56.25%; + } + &.embed-responsive-4by3 { + padding-bottom: 75%; + } +} + +.well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, 0.15); + } +} + +.well-lg { + padding: 24px; + border-radius: 2px; +} + +.well-sm { + padding: 9px; + border-radius: 0; +} + +.close { + float: right; + font-size: 24px; + font-weight: bold; + line-height: 1; + color: #000000; + text-shadow: 0 1px 0 #ffffff; + opacity: 0.2; + filter: alpha(opacity = 20); + &:hover, &:focus { + color: #000000; + text-decoration: none; + cursor: pointer; + opacity: 0.5; + filter: alpha(opacity = 50); + } +} + +button.close { + padding: 0; + cursor: pointer; + background: transparent; + border: 0; + -webkit-appearance: none; +} + +.modal-open { + overflow: hidden; +} + +.modal { + display: none; + overflow: hidden; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + -webkit-overflow-scrolling: touch; + outline: 0; + &.fade .modal-dialog { + -webkit-transform: translate3d(0, -25%, 0); + transform: translate3d(0, -25%, 0); + -webkit-transition: -webkit-transform 0.3s ease-out; + -moz-transition: -moz-transform 0.3s ease-out; + -o-transition: -o-transform 0.3s ease-out; + transition: transform 0.3s ease-out; + } + &.in .modal-dialog { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + } +} + +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto; +} + +.modal-dialog { + position: relative; + width: auto; + margin: 10px; +} + +.modal-content { + position: relative; + background-color: #ffffff; + border: 1px solid #999999; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 2px; + -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + background-clip: padding-box; + outline: 0; +} + +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000000; + &.fade { + opacity: 0; + filter: alpha(opacity = 0); + } + &.in { + opacity: 0.5; + filter: alpha(opacity = 50); + } +} + +.modal-header { + padding: 15px; + border-bottom: 1px solid #e5e5e5; + min-height: 16.42857143px; + .close { + margin-top: -2px; + } +} + +.modal-title { + margin: 0; + line-height: 1.42857143; +} + +.modal-body { + position: relative; + padding: 15px; +} + +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5; + .btn + .btn { + margin-left: 5px; + margin-bottom: 0; + } + .btn-group .btn + .btn { + margin-left: -1px; + } + .btn-block + .btn-block { + margin-left: 0; + } +} + +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll; +} + +@media (min-width: 768px) { + .modal-dialog { + width: 600px; + margin: 30px auto; + } + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); + } + .modal-sm { + width: 300px; + } +} + +@media (min-width: 992px) { + .modal-lg { + width: 900px; + } +} + +.tooltip { + position: absolute; + z-index: 1070; + display: block; + visibility: visible; + font-size: 14px; + line-height: 1.4; + opacity: 0; + filter: alpha(opacity = 0); + &.in { + opacity: 0.9; + filter: alpha(opacity = 90); + } + &.top { + margin-top: -3px; + padding: 5px 0; + } + &.right { + margin-left: 3px; + padding: 0 5px; + } + &.bottom { + margin-top: 3px; + padding: 5px 0; + } + &.left { + margin-left: -3px; + padding: 0 5px; + } +} + +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #ffffff; + text-align: center; + text-decoration: none; + background-color: #000000; + border-radius: 1px; +} + +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} + +.tooltip { + &.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000000; + } + &.top-left .tooltip-arrow { + bottom: 0; + left: 5px; + border-width: 5px 5px 0; + border-top-color: #000000; + } + &.top-right .tooltip-arrow { + bottom: 0; + right: 5px; + border-width: 5px 5px 0; + border-top-color: #000000; + } + &.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000000; + } + &.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000000; + } + &.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; + } + &.bottom-left .tooltip-arrow { + top: 0; + left: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; + } + &.bottom-right .tooltip-arrow { + top: 0; + right: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; + } +} + +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: none; + max-width: 276px; + padding: 1px; + text-align: left; + background-color: #ffffff; + background-clip: padding-box; + border: 1px solid #cccccc; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 2px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + white-space: normal; + &.top { + margin-top: -10px; + } + &.right { + margin-left: 10px; + } + &.bottom { + margin-top: 10px; + } + &.left { + margin-left: -10px; + } +} + +.popover-title { + margin: 0; + padding: 8px 14px; + font-size: 16px; + font-weight: normal; + line-height: 18px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + border-radius: 1px 1px 0 0; +} + +.popover-content { + padding: 9px 14px; +} + +.popover { + > .arrow { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; + &:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; + border-width: 10px; + content: ""; + } + border-width: 11px; + } + &.top > .arrow { + left: 50%; + margin-left: -11px; + border-bottom-width: 0; + border-top-color: #999999; + border-top-color: rgba(0, 0, 0, 0.25); + bottom: -11px; + &:after { + content: " "; + bottom: 1px; + margin-left: -10px; + border-bottom-width: 0; + border-top-color: #ffffff; + } + } + &.right > .arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-left-width: 0; + border-right-color: #999999; + border-right-color: rgba(0, 0, 0, 0.25); + &:after { + content: " "; + left: 1px; + bottom: -10px; + border-left-width: 0; + border-right-color: #ffffff; + } + } + &.bottom > .arrow { + left: 50%; + margin-left: -11px; + border-top-width: 0; + border-bottom-color: #999999; + border-bottom-color: rgba(0, 0, 0, 0.25); + top: -11px; + &:after { + content: " "; + top: 1px; + margin-left: -10px; + border-top-width: 0; + border-bottom-color: #ffffff; + } + } + &.left > .arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-right-width: 0; + border-left-color: #999999; + border-left-color: rgba(0, 0, 0, 0.25); + &:after { + content: " "; + right: 1px; + border-right-width: 0; + border-left-color: #ffffff; + bottom: -10px; + } + } +} + +.carousel { + position: relative; +} + +.carousel-inner { + position: relative; + overflow: hidden; + width: 100%; + > { + .item { + display: none; + position: relative; + -webkit-transition: 0.6s ease-in-out left; + -o-transition: 0.6s ease-in-out left; + transition: 0.6s ease-in-out left; + > { + img, a > img { + line-height: 1; + } + } + } + .active, .next, .prev { + display: block; + } + .active { + left: 0; + } + .next, .prev { + position: absolute; + top: 0; + width: 100%; + } + .next { + left: 100%; + } + .prev { + left: -100%; + } + .next.left, .prev.right { + left: 0; + } + .active { + &.left { + left: -100%; + } + &.right { + left: 100%; + } + } + } +} + +.carousel-control { + position: absolute; + top: 0; + left: 0; + bottom: 0; + width: 15%; + opacity: 0.5; + filter: alpha(opacity = 50); + font-size: 20px; + color: #ffffff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); + &.left { + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); + background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); + } + &.right { + left: auto; + right: 0; + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); + background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); + } + &:hover, &:focus { + outline: 0; + color: #ffffff; + text-decoration: none; + opacity: 0.9; + filter: alpha(opacity = 90); + } + .icon-prev, .icon-next, .glyphicon-chevron-left, .glyphicon-chevron-right { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; + } + .icon-prev, .glyphicon-chevron-left { + left: 50%; + margin-left: -10px; + } + .icon-next, .glyphicon-chevron-right { + right: 50%; + margin-right: -10px; + } + .icon-prev, .icon-next { + width: 20px; + height: 20px; + margin-top: -10px; + font-family: serif; + } + .icon-prev:before { + content: '\2039'; + } + .icon-next:before { + content: '\203a'; + } +} + +.carousel-indicators { + position: absolute; + bottom: 10px; + left: 50%; + z-index: 15; + width: 60%; + margin-left: -30%; + padding-left: 0; + list-style: none; + text-align: center; + li { + display: inline-block; + width: 10px; + height: 10px; + margin: 1px; + text-indent: -999px; + border: 1px solid #ffffff; + border-radius: 10px; + cursor: pointer; + background-color: #000 \9; + background-color: rgba(0, 0, 0, 0); + } + .active { + margin: 0; + width: 12px; + height: 12px; + background-color: #ffffff; + } +} + +.carousel-caption { + position: absolute; + left: 15%; + right: 15%; + bottom: 20px; + z-index: 10; + padding-top: 20px; + padding-bottom: 20px; + color: #ffffff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); + .btn { + text-shadow: none; + } +} + +@media screen and (min-width: 768px) { + .carousel-control { + .glyphicon-chevron-left, .glyphicon-chevron-right, .icon-prev, .icon-next { + width: 30px; + height: 30px; + margin-top: -15px; + font-size: 30px; + } + .glyphicon-chevron-left, .icon-prev { + margin-left: -15px; + } + .glyphicon-chevron-right, .icon-next { + margin-right: -15px; + } + } + .carousel-caption { + left: 20%; + right: 20%; + padding-bottom: 30px; + } + .carousel-indicators { + bottom: 20px; + } +} + +.clearfix { + &:before, &:after { + content: " "; + display: table; + } +} + +.dl-horizontal dd { + &:before, &:after { + content: " "; + display: table; + } +} + +.container { + &:before, &:after { + content: " "; + display: table; + } +} + +.container-fluid { + &:before, &:after { + content: " "; + display: table; + } +} + +.row { + &:before, &:after { + content: " "; + display: table; + } +} + +.form-horizontal .form-group { + &:before, &:after { + content: " "; + display: table; + } +} + +.btn-toolbar { + &:before, &:after { + content: " "; + display: table; + } +} + +.btn-group-vertical > .btn-group { + &:before, &:after { + content: " "; + display: table; + } +} + +.nav { + &:before, &:after { + content: " "; + display: table; + } +} + +.navbar { + &:before, &:after { + content: " "; + display: table; + } +} + +.navbar-header { + &:before, &:after { + content: " "; + display: table; + } +} + +.navbar-collapse { + &:before, &:after { + content: " "; + display: table; + } +} + +.pager { + &:before, &:after { + content: " "; + display: table; + } +} + +.panel-body { + &:before, &:after { + content: " "; + display: table; + } +} + +.modal-footer { + &:before, &:after { + content: " "; + display: table; + } +} + +.clearfix:after, .dl-horizontal dd:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-footer:after { + clear: both; +} + +.center-block { + display: block; + margin-left: auto; + margin-right: auto; +} + +.pull-right { + float: right !important; +} + +.pull-left { + float: left !important; +} + +.hide { + display: none !important; +} + +.show { + display: block !important; +} + +.invisible { + visibility: hidden; +} + +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} + +.hidden { + display: none !important; + visibility: hidden !important; +} + +.affix { + position: fixed; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} + +@-ms-viewport { + width: device-width; +} + + +.visible-xs, .visible-sm, .visible-md, .visible-lg, .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-lg-block, .visible-lg-inline, .visible-lg-inline-block, .visible-print, .visible-print-block, .visible-print-inline, .visible-print-inline-block { + display: none !important; +} + +@media (max-width: 767px) { + .visible-xs { + display: block !important; + } + table.visible-xs { + display: table; + } + tr.visible-xs { + display: table-row !important; + } + th.visible-xs, td.visible-xs { + display: table-cell !important; + } +} + +@media (max-width: 767px) { + .visible-xs-block { + display: block !important; + } +} + +@media (max-width: 767px) { + .visible-xs-inline { + display: inline !important; + } +} + +@media (max-width: 767px) { + .visible-xs-inline-block { + display: inline-block !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm { + display: block !important; + } + table.visible-sm { + display: table; + } + tr.visible-sm { + display: table-row !important; + } + th.visible-sm, td.visible-sm { + display: table-cell !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-block { + display: block !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline { + display: inline !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline-block { + display: inline-block !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md { + display: block !important; + } + table.visible-md { + display: table; + } + tr.visible-md { + display: table-row !important; + } + th.visible-md, td.visible-md { + display: table-cell !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-block { + display: block !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-inline { + display: inline !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-inline-block { + display: inline-block !important; + } +} + +@media (min-width: 1240px) { + .visible-lg { + display: block !important; + } + table.visible-lg { + display: table; + } + tr.visible-lg { + display: table-row !important; + } + th.visible-lg, td.visible-lg { + display: table-cell !important; + } +} + +@media (min-width: 1240px) { + .visible-lg-block { + display: block !important; + } +} + +@media (min-width: 1240px) { + .visible-lg-inline { + display: inline !important; + } +} + +@media (min-width: 1240px) { + .visible-lg-inline-block { + display: inline-block !important; + } +} + +@media (max-width: 767px) { + .hidden-xs { + display: none !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .hidden-sm { + display: none !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .hidden-md { + display: none !important; + } +} + +@media (min-width: 1240px) { + .hidden-lg { + display: none !important; + } +} + +@media print { + .visible-print { + display: block !important; + } + table.visible-print { + display: table; + } + tr.visible-print { + display: table-row !important; + } + th.visible-print, td.visible-print { + display: table-cell !important; + } +} + +@media print { + .visible-print-block { + display: block !important; + } +} + +@media print { + .visible-print-inline { + display: inline !important; + } +} + +@media print { + .visible-print-inline-block { + display: inline-block !important; + } +} + +@media print { + .hidden-print { + display: none !important; + } +} + +@font-face { + font-family: 'Lato Light'; + src: url('../Fonts/lato-light-webfont.eot'); + src: url('../Fonts/lato-light-webfont.eot?#iefix') format("embedded-opentype"), url('../Fonts/lato-light-webfont.woff') format("woff"), url('../Fonts/lato-light-webfont.ttf') format("truetype"), url('../Fonts/lato-light-webfont.svg#latolight') format("svg"); + font-weight: normal; + font-style: normal; +} + + +@font-face { + font-family: 'Lato'; + src: url('../Fonts/lato-regular-webfont.eot'); + src: url('../Fonts/lato-regular-webfont.eot?#iefix') format("embedded-opentype"), url('../Fonts/lato-regular-webfont.woff') format("woff"), url('../Fonts/lato-regular-webfont.ttf') format("truetype"), url('../Fonts/lato-regular-webfont.svg#latoregular') format("svg"); + font-weight: normal; + font-style: normal; +} + + +.btn-ancillary { + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; + &:hover, &:focus, &:active, &.active { + color: #ffffff; + background-color: #333333; + border-color: #2e2e2e; + } +} + +.open > .dropdown-toggle.btn-ancillary { + color: #ffffff; + background-color: #333333; + border-color: #2e2e2e; +} + +.btn-ancillary { + &:active, &.active { + background-image: none; + } +} + +.open > .dropdown-toggle.btn-ancillary { + background-image: none; +} + +.btn-ancillary { + &.disabled, &[disabled] { + background-color: #4d4d4d; + border-color: #4d4d4d; + } +} + +fieldset[disabled] .btn-ancillary { + background-color: #4d4d4d; + border-color: #4d4d4d; +} + +.btn-ancillary { + &.disabled:hover, &[disabled]:hover { + background-color: #4d4d4d; + border-color: #4d4d4d; + } +} + +fieldset[disabled] .btn-ancillary:hover { + background-color: #4d4d4d; + border-color: #4d4d4d; +} + +.btn-ancillary { + &.disabled:focus, &[disabled]:focus { + background-color: #4d4d4d; + border-color: #4d4d4d; + } +} + +fieldset[disabled] .btn-ancillary:focus { + background-color: #4d4d4d; + border-color: #4d4d4d; +} + +.btn-ancillary { + &.disabled:active, &[disabled]:active { + background-color: #4d4d4d; + border-color: #4d4d4d; + } +} + +fieldset[disabled] .btn-ancillary:active { + background-color: #4d4d4d; + border-color: #4d4d4d; +} + +.btn-ancillary { + &.disabled.active, &[disabled].active { + background-color: #4d4d4d; + border-color: #4d4d4d; + } +} + +fieldset[disabled] .btn-ancillary.active { + background-color: #4d4d4d; + border-color: #4d4d4d; +} + +.btn-ancillary { + .badge { + color: #4d4d4d; + background-color: #ffffff; + } + &:hover, &:focus, &:active, &.active { + background-color: #262626; + border-color: #262626; + } +} + +body.Modal { + background-color: #ffffff; + /* width: 98%; */ +} + +#HeaderArea, #HeaderContainer { + background-color: #1a1a1a; + min-height: 85px; +} + +#HeaderArea { + border-bottom: 1px solid #cccccc; + .Site-Name, .Page-Title-Area { + min-height: 84px; + } + .Site-Name h1, .Page-Title-Area h1, .Site-Name h2, .Page-Title-Area h2, .Site-Name h3, .Page-Title-Area h3, .Site-Name h4, .Page-Title-Area h4, .Site-Name h5, .Page-Title-Area h5, .Site-Name h6, .Page-Title-Area h6 { + line-height: 41px; + margin: 0; + } + .Site-Name { + background-color: #ef4a24; + min-height: 95px; + border: 1px solid #cccccc; + border-top: 0 none transparent; + margin-bottom: -9px; + } + .Page-Title-Area { + background-color: #1a1a1a; + .Breadcrumbs { + font-size: 13px; + font-style: italic; + letter-spacing: 0.02em; + color: #cccccc; + padding-top: 9px; + margin-bottom: -3px; + margin-left: 3px; + } + } + .Site-Name h1, h2.Page-Title { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + font-size: 34px; + color: #ffffff; + padding-top: 25px; + } + .Site-Name h1 { + margin-left: -2px; + } + h2.Page-Title { + margin-left: 3px; + } +} + +select { + font-size: 14px; + color: #666666; + padding: 3px 5px; + option { + margin-bottom: 3px; + } +} + +.Sidebar { + padding-right: 0; + padding-left: 0; + #TreeView { + margin: 45px 1px 0 -1px; + &:before { + content: " "; + display: table; + } + &:after { + content: " "; + display: table; + clear: both; + } + &:before { + content: " "; + display: table; + } + &:after { + content: " "; + display: table; + clear: both; + } + } + .AddTopic, .Add-Topic { + margin-left: 1.3em; + } + select { + background-color: #eeeeee; + width: 95%; + border-radius: 2px; + } +} + +.Content-Container .Content { + &[class*="col-"] { + padding-right: 0; + padding-left: 0; + } + .Page-Content.Primary { + position: relative; + color: #333333; + } +} + +[id*="DynamicForm"] { + background-color: #333333; + padding-top: 50px; + .row { + &.Messages-Area, &.Form-Area { + margin: 0; + } + } + .Editor-Navbar { + width: 100%; + height: 50px; + background-color: #333333; + } + &#Modal_DynamicForm { + padding-top: 49px; + .row { + &.Toolbar-Area { + margin: 0; + } + &.Messages-Area { + padding-right: 5px; + padding-left: 5px; + } + } + div[class*="col-"] { + padding-right: 0; + padding-left: 0; + &.Form-Body { + padding-right: 15px; + padding-left: 15px; + } + } + .Editor-Navbar { + top: 0; + } + .Messages-Area { + .close, .alert-dismissable .close { + right: 0; + } + } + } + .Messages-Area, .Form-Area { + background-color: #ffffff; + } + .Messages-Area { + div { + &[class*="Error"], &[class*="alert"] { + font-size: 13px; + letter-spacing: 0.02em; + } + &[class*="Error"] { + margin: 10px 5px 0; + } + } + .alert { + margin: 10px 5px 0; + } + .Error.Messaging font { + margin: 10px 5px 0; + background-color: #f0dcd8; + border-color: #e9c6c6; + color: #d63510; + display: block; + color: #d63510 !important; + padding: 10px; + border: 1px solid #e9c6c6; + margin: 0; + a { + cursor: pointer; + } + hr { + border-top-color: #e2b3b3; + } + .alert-link { + color: #a6290c; + } + ul { + list-style-type: square; + padding-left: 25px; + } + } + .alert { + padding: 10px; + a { + cursor: pointer; + } + } + .alert-dismissable .close { + right: 0; + font-size: 20px; + margin-top: 0; + } + } + .Actions.Top { + float: right; + padding: 0 8px; + margin-top: -2px; + button, input { + margin-left: 4px; + } + #VersionsDropdown { + .glyphicon { + margin-right: 2px; + } + .caret { + margin-left: 2px; + } + } + } + ul.nav-tabs { + padding-left: 15px; + border-bottom: 0 none transparent; + } + .nav-tabs > li { + margin-bottom: 0; + > a { + color: #cccccc; + border: 0 none transparent; + border-bottom: 8px solid transparent; + margin-right: 10px; + &:hover, &:active, &:focus { + color: #ffffff; + border-bottom-color: #cccccc; + } + } + &.active > a { + color: #ffffff; + border: 0 none transparent; + border-bottom: 8px solid #cccccc; + &:hover, &:focus { + color: #ffffff; + border: 0 none transparent; + border-bottom: 8px solid #cccccc; + } + } + } + label { + font-weight: normal; + } + input[type="text"] { + width: 100%; + max-width: 960px; + &.form-control { + border-radius: 2px; + } + } + ::-webkit-input-placeholder, :-moz-placeholder, ::-moz-placeholder, :-ms-input-placeholder { + color: #999; + } + input[type="radio"] + label { + font-size: 14px; + margin: 0 3px; + } + select { + padding: 3px 5px; + border-radius: 2px; + option { + font-size: 14px; + margin-bottom: 3px; + } + } + .Radio-Buttons li { + display: inline-block; + } + input[class*="Error"] { + border-color: #ef4a24; + &:focus { + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; + } + } + .Last-Modified { + font-size: 14px; + color: #4d4d4d; + } + [id*="DisplayGroupTabsContent"] { + width: 100%; + padding: 0; + .Group-Item { + margin-bottom: 20px; + } + .Content-Heading { + margin-bottom: 5px; + .Content-Description { + position: relative; + font-size: 16px; + color: #959595; + text-decoration: none; + top: 2px; + left: 3px; + padding: 2px 5.5px 1px; + cursor: pointer; + } + .tooltip { + .tooltip-arrow { + border-right-color: #1a1a1a; + } + .tooltip-inner { + background-color: #1a1a1a; + max-width: 550px; + font-size: 14px; + color: #eeeeee; + text-align: left; + padding: 5px 10px; + } + } + } + .tab-pane { + background-color: #ffffff; + padding: 20px 5px; + overflow: auto; + } + } + .Callout-Area { + background-color: #ffffff; + padding: 20px 5px 20px 0; + #FixedCallouts { + position: absolute; + background-color: transparent; + width: 100%; + right: -20px; + } + .Callout { + width: 100%; + &.Page-Info { + position: fixed; + background-color: #ffffff; + width: 16%; + max-width: 214px; + padding: 15px; + border: 1px solid #cccccc; + z-index: 0; + h3, dt, dd { + color: #666666; + } + h3 { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + margin-top: 0; + } + dl { + font-size: 13px; + line-height: 18px; + margin-bottom: -13px; + dt { + font-weight: normal; + .fa { + width: 1em; + margin-right: 5px; + } + } + dd { + margin-left: 1.7em; + margin-bottom: 8px; + } + } + } + } + } +} + +[id*="EditorModal"] { + .modal-header { + background-color: #1a1a1a; + padding: 20px; + border-bottom-color: #cccccc; + .Page-Title { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + color: #ffffff; + margin: 0; + } + } + .modal-content { + background-color: #333333; + } + iframe { + display: block; + vertical-align: bottom; + } +} + +select[id*="ThemeColor"] option { + &[value*="ThemeColor"], &[selected="selected"] { + color: #ffffff; + line-height: 1.6em; + } + &[value*="ThemeColor"][value*="Blue"], &[selected="selected"][value*="Blue"] { + background-color: #02A3E0; + } + &[value*="ThemeColor"][value*="Orange"], &[selected="selected"][value*="Orange"] { + background-color: #FF9E1A; + } + &[value*="ThemeColor"][value*="Green"], &[selected="selected"][value*="Green"] { + background-color: #029A17; + } + &[value*="ThemeColor"][value*="Purple"], &[selected="selected"][value*="Purple"] { + background-color: #9F5EB5; + } + &[value*="ThemeColor"][value*="Red"], &[selected="selected"][value*="Red"] { + background-color: #E30046; + } +} + +@media screen and (max-width: 1024px) { + .Sidebar { + .AddTopic, .Add-Topic { + margin-left: 0.5em; + } + } +} + +@media (min-width: 768px) { + .modal-dialog { + min-width: 700px; + width: 720px; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + [id*="DynamicForm"] .Callout-Area #FixedCallouts { + position: relative; + right: 0; + .Callout.Page-Info { + position: relative; + top: -30px; + left: 20px; + width: 50%; + } + } +} + +/* OVERRIDE NON-SELECTABLE NAV LINKS FOR IE9 */ + +.x-tree-arrows { + .x-tree-elbow-plus, .x-tree-elbow-minus { + -moz-user-select: all !important; + -khtml-user-select: all !important; + -webkit-user-select: all !important; + -ms-user-select: all !important; + } +} + +.x-unselectable { + -moz-user-select: all !important; + -khtml-user-select: all !important; + -webkit-user-select: all !important; + -ms-user-select: all !important; + * { + -moz-user-select: all !important; + -khtml-user-select: all !important; + -webkit-user-select: all !important; + -ms-user-select: all !important; + } +} + +.x-tree-arrows { + .x-tree-elbow-minus, .x-tree-elbow-plus, .x-tree-elbow-end-plus, .x-tree-elbow-end-minus { + background-image: url('/!Admin/Topics/Images/Navigation/Arrows.png'); + background-repeat: no-repeat; + background-position: 4px 0; + } + .x-tree-elbow, .x-tree-elbow-end { + background-image: url('/!Admin/Topics/Images/Navigation/Dashes.png'); + background-repeat: no-repeat; + background-position: 3px 4px; + } +} + +.x-tree-node-collapsed .x-tree-node-icon, .x-tree-node-expanded .x-tree-node-icon, .x-tree-node-leaf .x-tree-node-icon { + display: none; + background-image: none; +} + +.x-tree-root-node > .x-tree-node { + padding-left: 3px; +} + +.x-tree-node { + font-size: 14px; + white-space: normal; + padding: 1px 0; + x-tree-selected, .x-tree-node-over { + background-color: transparent; + } + .x-tree-node-el { + overflow: hidden; + white-space: nowrap; + line-height: normal; + color: #cccccc; + text-overflow: ellipsis; + padding: 0 5px 0 3px; + border: 1px solid transparent; + .x-tree-node-indent { + display: inline-block; + margin-right: 5px; + margin-left: 0; + } + &.x-tree-node-expanded { + .x-tree-elbow-minus, .x-tree-elbow-end-minus { + background-position: -50px 0; + margin-right: -2px; + margin-left: 1px; + } + } + &.x-tree-selected .x-tree-elbow-plus, &.x-tree-node-over .x-tree-elbow-plus { + background-position: -31px 0; + } + &.x-tree-selected .x-tree-elbow-minus, &.x-tree-node-over .x-tree-elbow-minus, &.x-tree-selected .x-tree-elbow-end-minus, &.x-tree-node-over .x-tree-elbow-end-minus { + background-position: -16px 0; + } + &.x-tree-selected .x-tree-elbow, &.x-tree-node-over .x-tree-elbow, &.x-tree-selected .x-tree-elbow-end, &.x-tree-node-over .x-tree-elbow-end { + background-position: -11px 4px; + } + &.x-tree-selected a, &.x-tree-node-over a { + text-decoration: none !important; + } + &.x-tree-selected a span, &.x-tree-node-over a span { + color: #ffffff; + } + &.x-tree-selected { + background-color: transparent; + } + .x-tree-node-ct { + display: block; + overflow: visible; + padding: 1px 0; + margin-left: 0; + .x-tree-ec-icon .x-tree-elbow-plus { + background-position: 4px 0; + } + } + a { + &.x-tree-node-anchor { + padding-right: 5px; + padding-left: 5px; + } + span { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-size: 13px; + letter-spacing: 0.02em; + color: #cccccc; + } + } + } +} + +#DisplayGroupTabsContent, +#Modal_DisplayGroupTabsContent { + .x-tree-root-ct { + margin: 0 0 5px; + .x-tree-node-indent:before { + color: #666666; + } + .x-tree-node .x-tree-node-el { + padding: 0 0 5px 0; + &.x-tree-selected, &.x-tree-node-over { + background-color: transparent; + border-color: transparent; + } + &.x-tree-selected .x-tree-node-indent:before, &.x-tree-node-over .x-tree-node-indent:before { + color: #ef4a24; + } + &.x-tree-selected a span, &.x-tree-node-over a span, a span { + color: #333333; + } + input[type="checkbox"] { + margin: 0 0 0 3px; + } + } + } + .cke_chrome { + width: 100%; + max-width: 960px; + padding: 0; + border: 0 none transparent; + .cke_inner { + background: #DEDEDE; + border-radius: 0; + } + .cke_editable { + font-size: 14px; + padding: 10px; + ul, ol { + padding-left: 25px; + } + ul { + list-style-type: square; + } + ol { + list-style-type: decimal; + } + } + } +} + +ul.token-input-list { + display: block; + width: 100%; + height: 36px; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; + background-color: #ffffff; + background-image: none; + border: 1px solid #cccccc; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; + position: relative; + line-height: 115%; + padding: 2px 0; + border-radius: 2px; + &:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); + } + &::-moz-placeholder { + color: #666666; + opacity: 1; + } + &:-ms-input-placeholder, &::-webkit-input-placeholder { + color: #666666; + } + &[disabled], &[readonly] { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; + } +} + +fieldset[disabled] ul.token-input-list { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; +} + +textarea ul.token-input-list { + height: auto; +} + +select ul.token-input-list { + height: 33px; + line-height: 33px; +} + +textarea ul.token-input-list, select[multiple] { + height: auto; +} + +ul.token-input-list { + height: auto; + &.token-input-focused { + border-color: #66afe9; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; + } + li { + display: inline-block; + padding: 3px 7px; + margin: 3px 1px 0 4px; + input[type="text"] { + font-family: 'Lato', Helvetica, Arial, sans-serif; + height: 19px; + line-height: 21px; + padding: 0; + } + &.token-input-token { + background-color: #CEE7F2; + p, span { + display: inline-block; + } + p { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-weight: normal; + color: #4d4d4d; + margin-right: 5px; + } + span.token-input-delete-token { + position: relative; + top: -1px; + color: #959595; + } + ~ li.token-input-input-token { + position: absolute; + bottom: 2px; + padding-top: 1px; + padding-bottom: 4px; + margin-left: -1px; + } + } + } +} + +div.token-input-dropdown { + p { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-weight: normal; + } + ul li { + color: #4d4d4d; + &.token-input-dropdown-item { + background-color: #EEE; + } + &.token-input-selected-dropdown-item { + background-color: #D4EFFA; + } + .Breadcrumbs { + color: #666666; + } + em { + font-weight: normal; + } + } +} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css deleted file mode 100644 index 46800d16..00000000 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css +++ /dev/null @@ -1,2 +0,0 @@ -body { -} From 3333879d4d37508863d5a4c93884bd8533b4813a Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 10:03:24 -0700 Subject: [PATCH 077/637] Synced misplaced view deletion --- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index d6710426..d4f742e5 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -218,7 +218,6 @@ - From c4c884e4a11e5e3673cdaa8dbb31ccc714f2013f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 10:38:44 -0700 Subject: [PATCH 078/637] Introduced new `EditorTemplates/_Layout.cshtml` Allows a wrapper around each individual view for centralizing the definition of the title, markup, metadata (e.g., `Key` and `Type` fields), &c. Implemented on each of the `EditorTemplates`, and removed duplicate content from the `Index.cshtml`'s `for` loop. --- .../Views/Editor/EditorTemplates/Boolean.cshtml | 4 ++++ .../EditorTemplates/DateTimeSelector.cshtml | 4 ++++ .../EditorTemplates/DisplayOptions.cshtml | 4 ++++ .../Views/Editor/EditorTemplates/File.cshtml | 4 ++++ .../Editor/EditorTemplates/FilePath.cshtml | 4 ++++ .../Editor/EditorTemplates/FileUpload.cshtml | 4 ++++ .../Editor/EditorTemplates/FormField.cshtml | 4 ++++ .../Views/Editor/EditorTemplates/Html.cshtml | 4 ++++ .../Editor/EditorTemplates/LastModified.cshtml | 4 ++++ .../EditorTemplates/LastModifiedBy.cshtml | 4 ++++ .../Editor/EditorTemplates/Relationships.cshtml | 4 ++++ .../EditorTemplates/TokenizedTopicList.cshtml | 4 ++++ .../Editor/EditorTemplates/TopicList.cshtml | 4 ++++ .../Editor/EditorTemplates/TopicLookup.cshtml | 4 ++++ .../Editor/EditorTemplates/TopicPointer.cshtml | 4 ++++ .../Views/Editor/EditorTemplates/WYSIWYG.cshtml | 4 ++++ .../Views/Editor/EditorTemplates/_Layout.cshtml | 17 +++++++++++++++++ .../Areas/Editor/Views/Editor/Index.cshtml | 10 +--------- .../Ignia.Topics.Editor.Mvc.csproj | 1 + 19 files changed, 83 insertions(+), 9 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml index 9419d3a2..07982fea 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Html.CheckBox("Value", Model.Value?.Equals("1")?? false) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml index 9dd14f31..470bbf67 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml index 823f3607..ccb46b64 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml @@ -1,3 +1,7 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml index b286e460..2d790b45 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml @@ -1,3 +1,7 @@ @model Ignia.Topics.Attribute +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml index 65f5d2be..43302f3e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml index 56088d70..eb59c866 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml @@ -1,3 +1,7 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml index cd900198..40d368f9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml index 4d80c946..8eef7bca 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml index 9a7865f8..14d85691 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Model.Value \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml index 11325a6d..fae84b67 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Model.Value \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml index 07792548..e19edbae 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml @@ -1,3 +1,7 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml index a141466e..76f9dd2c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml index bf3184db..3fb974db 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml @@ -1,3 +1,7 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml index 9b151350..cf035f15 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @* Html.DropDownListFor(m => m.Value, …) *@ \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml index 56d7d971..2823fa58 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml index e54c21c8..543a421f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml @@ -1,5 +1,9 @@ @model AttributeViewModel +@{ + Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; +} + @Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml new file mode 100644 index 00000000..d6c484d0 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml @@ -0,0 +1,17 @@ +@model Ignia.Topics.Editor.Models.AttributeViewModel + +
+ +

@Html.LabelFor(m => m.Value, Model.Definition.Title)

+

@Model.Definition.Description

+ +
+ + @Html.HiddenFor(m => m.Definition.Type) + @Html.HiddenFor(m => m.Key) + + @RenderBody() + +
+ +
diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index 25c38b64..5f364237 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -17,15 +17,7 @@ continue; } -
-

@Html.Label("Attributes[" + i + "].Value", attribute.Title)

-

@attribute.Description

-
- @Html.Hidden("Attributes[" + i + "].Type", type) - @Html.Hidden("Attributes[" + i + "].Key", attribute.Key) - @Html.EditorFor(m => attributeViewModel, type, "Attributes[" + i + "]") -
-
+ @Html.EditorFor(m => attributeViewModel, type, "Attributes[" + i + "]") } diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index d4f742e5..7850c76f 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -217,6 +217,7 @@
+ From 6b7a8824b4b380d66ec8076a6e2542b5525cccd6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 10:43:36 -0700 Subject: [PATCH 079/637] Moved commented filename to `_Layout.cshtml` This centralizes the definition and makes it dynamic. --- .../Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml | 2 -- .../Views/Editor/EditorTemplates/DateTimeSelector.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml | 2 -- .../Areas/Editor/Views/Editor/EditorTemplates/File.cshtml | 2 -- .../Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/FileUpload.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/FormField.cshtml | 2 -- .../Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/LastModified.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/Relationships.cshtml | 2 -- .../Views/Editor/EditorTemplates/TokenizedTopicList.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/TopicList.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml | 2 -- .../Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml | 2 -- .../Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml | 2 -- .../Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml | 4 ++++ 17 files changed, 4 insertions(+), 32 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml index 07982fea..2b06a367 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Html.CheckBox("Value", Model.Value?.Equals("1")?? false) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml index 470bbf67..6c2f8adc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml index ccb46b64..fecfe137 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml @@ -3,5 +3,3 @@ @{ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml index 2d790b45..031a69d8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml @@ -3,5 +3,3 @@ @{ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml index 43302f3e..6c2f8adc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FilePath.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml index eb59c866..fecfe137 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml @@ -3,5 +3,3 @@ @{ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml index 40d368f9..6c2f8adc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FormField.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml index 8eef7bca..72cefd3b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml index 14d85691..9c732b9c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Model.Value \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml index fae84b67..9c732b9c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Model.Value \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml index e19edbae..fecfe137 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Relationships.cshtml @@ -3,5 +3,3 @@ @{ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml index 76f9dd2c..72cefd3b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TokenizedTopicList.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml index 3fb974db..fecfe137 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicList.cshtml @@ -3,5 +3,3 @@ @{ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml index cf035f15..b4b45bc7 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicLookup.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @* Html.DropDownListFor(m => m.Value, …) *@ \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml index 2823fa58..6c2f8adc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/TopicPointer.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Html.TextBoxFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml index 543a421f..72cefd3b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml @@ -4,6 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } - - @Html.TextAreaFor(m => m.Value) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml index d6c484d0..655ee4ec 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml @@ -1,5 +1,7 @@ @model Ignia.Topics.Editor.Models.AttributeViewModel + +

@Html.LabelFor(m => m.Value, Model.Definition.Title)

@@ -15,3 +17,5 @@
+ + From 400bcba2c719a3e4002f36951f2a2b99d4509449 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 10:49:53 -0700 Subject: [PATCH 080/637] Applied date format to `DateTimeSelector` --- .../Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml index 6c2f8adc..a43b2db6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DateTimeSelector.cshtml @@ -4,4 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } -@Html.TextBoxFor(m => m.Value) \ No newline at end of file +@Html.TextBoxFor(m => m.Value, "{0:d MMM yyyy}", new { type = "date" }) \ No newline at end of file From 783ce648a7fce1e69ee78e8bda213b27d2508a59 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 10:53:31 -0700 Subject: [PATCH 081/637] Set `File` as a `type="File"` --- .../Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml index fecfe137..c55edb7e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/FileUpload.cshtml @@ -3,3 +3,5 @@ @{ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } + +@Html.TextBoxFor(m => m.Value, new { type = "file" }) \ No newline at end of file From 64856094a96c4dbf474088021984d11f8a013cb7 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 10:53:42 -0700 Subject: [PATCH 082/637] Fixed model binding --- .../Areas/Editor/Views/Editor/EditorTemplates/File.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml index 031a69d8..8919d357 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml @@ -1,5 +1,6 @@ -@model Ignia.Topics.Attribute +@model AttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } + From b02ec309bf731ca19e7d1a5ca7db4db46e057ba1 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 10:55:44 -0700 Subject: [PATCH 083/637] Set `columns` and `rows` for `TextAreaFor()` --- .../Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml | 2 +- .../Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml index 72cefd3b..ad77f2e8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Html.cshtml @@ -4,4 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } -@Html.TextAreaFor(m => m.Value) \ No newline at end of file +@Html.TextAreaFor(m => m.Value, 15, 100, null) \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml index 72cefd3b..ad77f2e8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml @@ -4,4 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } -@Html.TextAreaFor(m => m.Value) \ No newline at end of file +@Html.TextAreaFor(m => m.Value, 15, 100, null) \ No newline at end of file From 90440f8fd3fa85853017c894cdf9b74f0b01ac42 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 10:56:33 -0700 Subject: [PATCH 084/637] Placeholder for dropdown list --- .../Areas/Editor/Views/Editor/EditorTemplates/File.cshtml | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml index 8919d357..b4b45bc7 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/File.cshtml @@ -4,3 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } +@* Html.DropDownListFor(m => m.Value, …) *@ \ No newline at end of file From 3570983c5b0038c9cb1842e218a1aec5eb50580b Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 11:03:09 -0700 Subject: [PATCH 085/637] Added current Sass stylesheet --- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index d4f742e5..1361a62a 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -172,7 +172,6 @@ PreserveNewest - Designer @@ -230,6 +229,7 @@ +
From da985a33dd9e1377038a04a0a184d974c0a91feb Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 11:03:29 -0700 Subject: [PATCH 086/637] Added Node package configuration --- Ignia.Topics.Editor.Mvc/package-lock.json | 8577 +++++++++++++++++++++ Ignia.Topics.Editor.Mvc/package.json | 54 + 2 files changed, 8631 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/package-lock.json create mode 100644 Ignia.Topics.Editor.Mvc/package.json diff --git a/Ignia.Topics.Editor.Mvc/package-lock.json b/Ignia.Topics.Editor.Mvc/package-lock.json new file mode 100644 index 00000000..29ca580d --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/package-lock.json @@ -0,0 +1,8577 @@ +{ + "name": "gulp-workflow", + "version": "0.0.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@gulp-sourcemaps/identity-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-1.0.1.tgz", + "integrity": "sha1-z6I7xYQPkQTOMqZedNt+epdLvuE=", + "dev": true, + "requires": { + "acorn": "5.1.2", + "css": "2.2.1", + "normalize-path": "2.1.1", + "source-map": "0.5.7", + "through2": "2.0.3" + }, + "dependencies": { + "acorn": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.1.2.tgz", + "integrity": "sha512-o96FZLJBPY1lvTuJylGA9Bk3t/GKPPJG8H0ydQQl01crzwJgspa4AEIq/pVTXigmK0PHVQhiAtn8WMBLL9D2WA==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "@gulp-sourcemaps/map-sources": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/map-sources/-/map-sources-1.0.0.tgz", + "integrity": "sha1-iQrnxdjId/bThIYCFazp1+yUW9o=", + "dev": true, + "requires": { + "normalize-path": "2.1.1", + "through2": "2.0.3" + } + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "accepts": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.2.13.tgz", + "integrity": "sha1-5fHzkoxtlf2WVYw27D2dDeSm7Oo=", + "dev": true, + "requires": { + "mime-types": "2.1.17", + "negotiator": "0.5.3" + } + }, + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "dev": true + }, + "ajv": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.2.3.tgz", + "integrity": "sha1-wG9Zh3jETGsWGrr+NGa4GtGBTtI=", + "dev": true, + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.0.0", + "json-schema-traverse": "0.3.1", + "json-stable-stringify": "1.0.1" + }, + "dependencies": { + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + } + } + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "archive-type": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-3.2.0.tgz", + "integrity": "sha1-nNnABpV+vpX62tW9YJiUKoE3N/Y=", + "dev": true, + "requires": { + "file-type": "3.9.0" + }, + "dependencies": { + "file-type": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", + "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=", + "dev": true + } + } + }, + "archy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", + "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", + "dev": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", + "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", + "dev": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "argh": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/argh/-/argh-0.1.4.tgz", + "integrity": "sha1-PrTWEpc/xrbcbvM49W91nyrFw6Y=", + "dev": true + }, + "argparse": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", + "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", + "dev": true, + "optional": true, + "requires": { + "sprintf-js": "1.0.3" + } + }, + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "1.1.0" + } + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "array-differ": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", + "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", + "dev": true + }, + "array-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", + "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", + "dev": true + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "dev": true + }, + "array-slice": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.0.0.tgz", + "integrity": "sha1-5zA08A3MH0CHYAj9IP6ud71LfC8=", + "dev": true + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "1.0.3" + } + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "asn1": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", + "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", + "dev": true + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + }, + "async-each-series": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/async-each-series/-/async-each-series-1.1.0.tgz", + "integrity": "sha1-9C/YFV048hpbjqB8KOBj7RcAsTg=", + "dev": true + }, + "async-foreach": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", + "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "atob": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/atob/-/atob-1.1.3.tgz", + "integrity": "sha1-lfE2KbEsOlGl0hWr3OKqnzL4B3M=", + "dev": true + }, + "autoprefixer": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.1.5.tgz", + "integrity": "sha512-sMN453qIm8Z+tunzYWW+Y490wWkICHhCYm/VohLjjl+N7ARSFuF5au7E6tr7oEbeeXj8mNjpSw2kxjJaO6YCOw==", + "dev": true, + "requires": { + "browserslist": "2.5.1", + "caniuse-lite": "1.0.30000745", + "normalize-range": "0.1.2", + "num2fraction": "1.2.2", + "postcss": "6.0.13", + "postcss-value-parser": "3.3.0" + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", + "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", + "dev": true + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "babel-core": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", + "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-generator": "6.26.0", + "babel-helpers": "6.24.1", + "babel-messages": "6.23.0", + "babel-register": "6.26.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "convert-source-map": "1.5.0", + "debug": "2.6.9", + "json5": "0.5.1", + "lodash": "4.17.4", + "minimatch": "3.0.4", + "path-is-absolute": "1.0.1", + "private": "0.1.7", + "slash": "1.0.0", + "source-map": "0.5.7" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "babel-generator": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.0.tgz", + "integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.4", + "source-map": "0.5.7", + "trim-right": "1.0.1" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "dev": true, + "requires": { + "babel-core": "6.26.0", + "babel-runtime": "6.26.0", + "core-js": "2.5.1", + "home-or-tmp": "2.0.0", + "lodash": "4.17.4", + "mkdirp": "0.5.1", + "source-map-support": "0.4.18" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + } + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "2.5.1", + "regenerator-runtime": "0.11.0" + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.4" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + } + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.2", + "lodash": "4.17.4" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.4", + "to-fast-properties": "1.0.3" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + } + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base64-url": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/base64-url/-/base64-url-1.2.1.tgz", + "integrity": "sha1-GZ/WYXAqDnt9yubgaYuwicUvbXg=", + "dev": true + }, + "basic-auth": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.0.4.tgz", + "integrity": "sha1-Awk1sB3nyblKgksp8/zLdQ06UpA=", + "dev": true + }, + "basic-auth-connect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/basic-auth-connect/-/basic-auth-connect-1.0.0.tgz", + "integrity": "sha1-/bC0OWLKe0BFanwrtI/hc9otISI=", + "dev": true + }, + "batch": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.5.3.tgz", + "integrity": "sha1-PzQU84AyF0O/wQQvmoP/HVgk1GQ=", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", + "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "dev": true, + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "beeper": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz", + "integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=", + "dev": true + }, + "bin-build": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/bin-build/-/bin-build-2.2.0.tgz", + "integrity": "sha1-EfjdYfcP/Por3KpbRvXo/t1CIcw=", + "dev": true, + "requires": { + "archive-type": "3.2.0", + "decompress": "3.0.0", + "download": "4.4.3", + "exec-series": "1.0.3", + "rimraf": "2.6.2", + "tempfile": "1.1.1", + "url-regex": "3.2.0" + }, + "dependencies": { + "tempfile": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-1.1.1.tgz", + "integrity": "sha1-W8xOrsxKsscH2LwR2ZzMmiyyh/I=", + "dev": true, + "requires": { + "os-tmpdir": "1.0.2", + "uuid": "2.0.3" + } + }, + "uuid": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz", + "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=", + "dev": true + } + } + }, + "bin-check": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/bin-check/-/bin-check-2.0.0.tgz", + "integrity": "sha1-hvjm9CU4k99g3DFpV/WvAqywWTA=", + "dev": true, + "requires": { + "executable": "1.1.0" + } + }, + "bin-version": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/bin-version/-/bin-version-1.0.4.tgz", + "integrity": "sha1-nrSY7m/Xb3q5p8FgQ2+JV5Q1144=", + "dev": true, + "requires": { + "find-versions": "1.2.1" + } + }, + "bin-version-check": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-2.1.0.tgz", + "integrity": "sha1-5OXfKQuQaffRETJAMe/BP90RpbA=", + "dev": true, + "requires": { + "bin-version": "1.0.4", + "minimist": "1.2.0", + "semver": "4.3.6", + "semver-truncate": "1.1.2" + } + }, + "bin-wrapper": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/bin-wrapper/-/bin-wrapper-3.0.2.tgz", + "integrity": "sha1-Z9MwYmLksaXy+I7iNGT2plVneus=", + "dev": true, + "requires": { + "bin-check": "2.0.0", + "bin-version-check": "2.1.0", + "download": "4.4.3", + "each-async": "1.1.1", + "lazy-req": "1.1.0", + "os-filter-obj": "1.0.3" + } + }, + "bl": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.1.tgz", + "integrity": "sha1-ysMo977kVzDUBLaSID/LWQ4XLV4=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "block-stream": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", + "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "body-parser": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.13.3.tgz", + "integrity": "sha1-wIzzMMM1jhUQFqBXRvE/ApyX+pc=", + "dev": true, + "requires": { + "bytes": "2.1.0", + "content-type": "1.0.4", + "debug": "2.2.0", + "depd": "1.0.1", + "http-errors": "1.3.1", + "iconv-lite": "0.4.11", + "on-finished": "2.3.0", + "qs": "4.0.0", + "raw-body": "2.1.7", + "type-is": "1.6.15" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + } + } + }, + "boom": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", + "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", + "dev": true, + "requires": { + "hoek": "4.2.0" + } + }, + "bower": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/bower/-/bower-1.8.2.tgz", + "integrity": "sha1-rfU1KcjUrwLvJPuNU0HBQZ0z4vc=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", + "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "1.8.2", + "preserve": "0.2.0", + "repeat-element": "1.1.2" + } + }, + "browserslist": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.5.1.tgz", + "integrity": "sha512-jAvM2ku7YDJ+leAq3bFH1DE0Ylw+F+EQDq4GkqZfgPEqpWYw9ofQH85uKSB9r3Tv7XDbfqVtE+sdvKJW7IlPJA==", + "dev": true, + "requires": { + "caniuse-lite": "1.0.30000745", + "electron-to-chromium": "1.3.24" + } + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "dev": true + }, + "buffer-to-vinyl": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-to-vinyl/-/buffer-to-vinyl-1.1.0.tgz", + "integrity": "sha1-APFfruOreh3aLN5tkSG//dB7ImI=", + "dev": true, + "requires": { + "file-type": "3.9.0", + "readable-stream": "2.3.3", + "uuid": "2.0.3", + "vinyl": "1.2.0" + }, + "dependencies": { + "file-type": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", + "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "uuid": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz", + "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=", + "dev": true + }, + "vinyl": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", + "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", + "dev": true, + "requires": { + "clone": "1.0.2", + "clone-stats": "0.0.1", + "replace-ext": "0.0.1" + } + } + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "bytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.1.0.tgz", + "integrity": "sha1-rJPEEOL/ycx89LRks4KJBn9eR7Q=", + "dev": true + }, + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", + "dev": true + }, + "camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", + "dev": true, + "requires": { + "camelcase": "2.1.1", + "map-obj": "1.0.1" + } + }, + "caniuse-lite": { + "version": "1.0.30000745", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000745.tgz", + "integrity": "sha1-INb+3hFXpJNRM1ApRvx+DmuIDaU=", + "dev": true + }, + "capture-stack-trace": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz", + "integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "caw": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/caw/-/caw-1.2.0.tgz", + "integrity": "sha1-/7Im/n78VHKI3GLuPpcHPCEtEDQ=", + "dev": true, + "requires": { + "get-proxy": "1.1.0", + "is-obj": "1.0.1", + "object-assign": "3.0.0", + "tunnel-agent": "0.4.3" + } + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "clap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/clap/-/clap-1.2.3.tgz", + "integrity": "sha512-4CoL/A3hf90V3VIEjeuhSvlGFEHKzOz+Wfc2IVZc+FaUgU0ZQafJTP49fvnULipOPcAfqhyI2duwQyns6xqjYA==", + "dev": true, + "optional": true, + "requires": { + "chalk": "1.1.3" + } + }, + "clean-css": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.9.tgz", + "integrity": "sha1-Nc7ornaHpJuYA09w3gDE7dOCYwE=", + "dev": true, + "requires": { + "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "cli": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz", + "integrity": "sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=", + "dev": true, + "requires": { + "exit": "0.1.2", + "glob": "7.1.2" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.3.3", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + } + } + }, + "cli-color": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-1.1.0.tgz", + "integrity": "sha1-3hiM3Ekp2DtnrqBBEPvtQP2/Z3U=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1", + "d": "0.1.1", + "es5-ext": "0.10.31", + "es6-iterator": "2.0.1", + "memoizee": "0.3.10", + "timers-ext": "0.1.2" + } + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" + } + }, + "clone": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.2.tgz", + "integrity": "sha1-Jgt6meux7f4kdTgXX3gyQ8sZ0Uk=", + "dev": true + }, + "clone-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", + "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", + "dev": true + }, + "clone-stats": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", + "integrity": "sha1-uI+UqCzzi4eR1YBG6kAprYjKmdE=", + "dev": true + }, + "cloneable-readable": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.0.0.tgz", + "integrity": "sha1-pikNQT8hemEjL5XkWP84QYz7ARc=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "process-nextick-args": "1.0.7", + "through2": "2.0.3" + } + }, + "co": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/co/-/co-3.1.0.tgz", + "integrity": "sha1-TqVOpaCJOBUxheFSEMaNkJK8G3g=", + "dev": true + }, + "coa": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/coa/-/coa-1.0.4.tgz", + "integrity": "sha1-qe8VNmDWqGqL3sAomlxoTSF0Mv0=", + "dev": true, + "optional": true, + "requires": { + "q": "1.5.0" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/color/-/color-0.8.0.tgz", + "integrity": "sha1-iQwHw/1OZJU3Y4kRz2keVFi2/KU=", + "dev": true, + "requires": { + "color-convert": "0.5.3", + "color-string": "0.3.0" + }, + "dependencies": { + "color-convert": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-0.5.3.tgz", + "integrity": "sha1-vbbGnOZg+t/+CwAHzER+G59ygr0=", + "dev": true + } + } + }, + "color-convert": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.0.tgz", + "integrity": "sha1-Gsz5fdc5uYO/mU1W/sj5WFNkG3o=", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "color-string": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz", + "integrity": "sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE=", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "colornames": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/colornames/-/colornames-0.0.2.tgz", + "integrity": "sha1-2BH9bIT1kClJmorEQ2ICk1uSvjE=", + "dev": true + }, + "colors": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "dev": true, + "optional": true + }, + "colorspace": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.0.1.tgz", + "integrity": "sha1-yZx5btMRKLmHalLh7l7gOkpxl0k=", + "dev": true, + "requires": { + "color": "0.8.0", + "text-hex": "0.0.0" + } + }, + "combined-stream": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", + "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "dev": true, + "requires": { + "delayed-stream": "1.0.0" + } + }, + "commander": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", + "integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", + "dev": true, + "requires": { + "graceful-readlink": "1.0.1" + } + }, + "compressible": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.11.tgz", + "integrity": "sha1-FnGKdd4oPtjmBAQWJaIGRYZ5fYo=", + "dev": true, + "requires": { + "mime-db": "1.30.0" + } + }, + "compression": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.5.2.tgz", + "integrity": "sha1-sDuNhub4rSloPLqN+R3cb/x3s5U=", + "dev": true, + "requires": { + "accepts": "1.2.13", + "bytes": "2.1.0", + "compressible": "2.0.11", + "debug": "2.2.0", + "on-headers": "1.0.1", + "vary": "1.0.1" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + } + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "concat-stream": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz", + "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.3", + "typedarray": "0.0.6" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "concat-with-sourcemaps": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", + "integrity": "sha1-9Vs74q60dgGxCi1SWcz7cP0vHdY=", + "dev": true, + "requires": { + "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "connect": { + "version": "2.30.2", + "resolved": "https://registry.npmjs.org/connect/-/connect-2.30.2.tgz", + "integrity": "sha1-jam8vooFTT0xjXTf7JA7XDmhtgk=", + "dev": true, + "requires": { + "basic-auth-connect": "1.0.0", + "body-parser": "1.13.3", + "bytes": "2.1.0", + "compression": "1.5.2", + "connect-timeout": "1.6.2", + "content-type": "1.0.4", + "cookie": "0.1.3", + "cookie-parser": "1.3.5", + "cookie-signature": "1.0.6", + "csurf": "1.8.3", + "debug": "2.2.0", + "depd": "1.0.1", + "errorhandler": "1.4.3", + "express-session": "1.11.3", + "finalhandler": "0.4.0", + "fresh": "0.3.0", + "http-errors": "1.3.1", + "method-override": "2.3.10", + "morgan": "1.6.1", + "multiparty": "3.3.2", + "on-headers": "1.0.1", + "parseurl": "1.3.2", + "pause": "0.1.0", + "qs": "4.0.0", + "response-time": "2.3.2", + "serve-favicon": "2.3.2", + "serve-index": "1.7.3", + "serve-static": "1.10.3", + "type-is": "1.6.15", + "utils-merge": "1.0.0", + "vhost": "3.0.2" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + } + } + }, + "connect-livereload": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/connect-livereload/-/connect-livereload-0.5.4.tgz", + "integrity": "sha1-gBV9E3HJ83zBQDmrGJWXDRGdw7w=", + "dev": true + }, + "connect-timeout": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/connect-timeout/-/connect-timeout-1.6.2.tgz", + "integrity": "sha1-3ppexh4zoStu2qt7XwYumMWZuI4=", + "dev": true, + "requires": { + "debug": "2.2.0", + "http-errors": "1.3.1", + "ms": "0.7.1", + "on-headers": "1.0.1" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + } + } + }, + "console-browserify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", + "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", + "dev": true, + "requires": { + "date-now": "0.1.4" + } + }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true + }, + "console-stream": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/console-stream/-/console-stream-0.1.1.tgz", + "integrity": "sha1-oJX+B7IEZZVfL6/Si11yvM2UnUQ=", + "dev": true + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "dev": true + }, + "convert-source-map": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.0.tgz", + "integrity": "sha1-ms1whRxtXf3ZPZKC5e35SgP/RrU=", + "dev": true + }, + "cookie": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.3.tgz", + "integrity": "sha1-5zSlwUF/zkctWu+Cw4HKu2TRpDU=", + "dev": true + }, + "cookie-parser": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.3.5.tgz", + "integrity": "sha1-nXVVcPtdF4kHcSJ6AjFNm+fPg1Y=", + "dev": true, + "requires": { + "cookie": "0.1.3", + "cookie-signature": "1.0.6" + } + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", + "dev": true + }, + "core-js": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.1.tgz", + "integrity": "sha1-rmh03GaTd4m4B1T/VCjfZoGcpQs=", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "crc": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/crc/-/crc-3.3.0.tgz", + "integrity": "sha1-+mIuG8OIvyVzCQgta2UgDOZwkLo=", + "dev": true + }, + "create-error-class": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", + "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", + "dev": true, + "requires": { + "capture-stack-trace": "1.0.0" + } + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "4.1.1", + "shebang-command": "1.2.0", + "which": "1.3.0" + }, + "dependencies": { + "lru-cache": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", + "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + } + } + }, + "cryptiles": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", + "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", + "dev": true, + "requires": { + "boom": "5.2.0" + }, + "dependencies": { + "boom": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", + "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", + "dev": true, + "requires": { + "hoek": "4.2.0" + } + } + } + }, + "csrf": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/csrf/-/csrf-3.0.6.tgz", + "integrity": "sha1-thEg3c7q/JHnbtUxO7XAsmZ7cQo=", + "dev": true, + "requires": { + "rndm": "1.2.0", + "tsscmp": "1.0.5", + "uid-safe": "2.1.4" + } + }, + "css": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.1.tgz", + "integrity": "sha1-c6TIHehdtmTU7mdPfUcIXjstVdw=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "source-map": "0.1.43", + "source-map-resolve": "0.3.1", + "urix": "0.1.0" + }, + "dependencies": { + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "csso": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/csso/-/csso-2.3.2.tgz", + "integrity": "sha1-3dUsWHAz9J6Utx/FVWnyUuj/X4U=", + "dev": true, + "optional": true, + "requires": { + "clap": "1.2.3", + "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "optional": true + } + } + }, + "csurf": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/csurf/-/csurf-1.8.3.tgz", + "integrity": "sha1-I/KhO/HY/OHQyZZYg5RELLqGpWo=", + "dev": true, + "requires": { + "cookie": "0.1.3", + "cookie-signature": "1.0.6", + "csrf": "3.0.6", + "http-errors": "1.3.1" + } + }, + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "dev": true, + "requires": { + "array-find-index": "1.0.2" + } + }, + "d": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/d/-/d-0.1.1.tgz", + "integrity": "sha1-2hhMU10Y2O57oqoim5FACfrhEwk=", + "dev": true, + "requires": { + "es5-ext": "0.10.31" + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "1.0.0" + } + }, + "date-now": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", + "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", + "dev": true + }, + "dateformat": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", + "integrity": "sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "debug-fabulous": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/debug-fabulous/-/debug-fabulous-0.2.1.tgz", + "integrity": "sha512-u0TV6HcfLsZ03xLBhdhSViQMldaiQ2o+8/nSILaXkuNSWvxkx66vYJUAam0Eu7gAilJRX/69J4kKdqajQPaPyw==", + "dev": true, + "requires": { + "debug": "3.1.0", + "memoizee": "0.4.11", + "object-assign": "4.1.1" + }, + "dependencies": { + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.31" + } + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "es6-weak-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", + "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.31", + "es6-iterator": "2.0.1", + "es6-symbol": "3.1.1" + } + }, + "memoizee": { + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.11.tgz", + "integrity": "sha1-vemBdmPJ5A/bKk6hw2cpYIeujI8=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.31", + "es6-weak-map": "2.0.2", + "event-emitter": "0.3.5", + "is-promise": "2.1.0", + "lru-queue": "0.1.0", + "next-tick": "1.0.0", + "timers-ext": "0.1.2" + } + }, + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + } + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "decompress": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/decompress/-/decompress-3.0.0.tgz", + "integrity": "sha1-rx3VDQbjv8QyRh033hGzjA2ZG+0=", + "dev": true, + "requires": { + "buffer-to-vinyl": "1.1.0", + "concat-stream": "1.6.0", + "decompress-tar": "3.1.0", + "decompress-tarbz2": "3.1.0", + "decompress-targz": "3.1.0", + "decompress-unzip": "3.4.0", + "stream-combiner2": "1.1.1", + "vinyl-assign": "1.2.1", + "vinyl-fs": "2.4.4" + }, + "dependencies": { + "glob": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "2.0.10", + "once": "1.3.3", + "path-is-absolute": "1.0.1" + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "requires": { + "is-glob": "3.1.0", + "path-dirname": "1.0.2" + } + }, + "glob-stream": { + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-5.3.5.tgz", + "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", + "dev": true, + "requires": { + "extend": "3.0.1", + "glob": "5.0.15", + "glob-parent": "3.1.0", + "micromatch": "2.3.11", + "ordered-read-streams": "0.3.0", + "through2": "0.6.5", + "to-absolute-glob": "0.1.1", + "unique-stream": "2.2.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + } + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "gulp-sourcemaps": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.6.0.tgz", + "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", + "dev": true, + "requires": { + "convert-source-map": "1.5.0", + "graceful-fs": "4.1.11", + "strip-bom": "2.0.0", + "through2": "2.0.3", + "vinyl": "1.2.0" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "ordered-read-streams": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.3.0.tgz", + "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", + "dev": true, + "requires": { + "is-stream": "1.1.0", + "readable-stream": "2.3.3" + } + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + }, + "unique-stream": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.2.1.tgz", + "integrity": "sha1-WqADz76Uxf+GbE59ZouxxNuts2k=", + "dev": true, + "requires": { + "json-stable-stringify": "1.0.1", + "through2-filter": "2.0.0" + } + }, + "vinyl": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", + "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", + "dev": true, + "requires": { + "clone": "1.0.2", + "clone-stats": "0.0.1", + "replace-ext": "0.0.1" + } + }, + "vinyl-fs": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-2.4.4.tgz", + "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", + "dev": true, + "requires": { + "duplexify": "3.5.1", + "glob-stream": "5.3.5", + "graceful-fs": "4.1.11", + "gulp-sourcemaps": "1.6.0", + "is-valid-glob": "0.3.0", + "lazystream": "1.0.0", + "lodash.isequal": "4.5.0", + "merge-stream": "1.0.1", + "mkdirp": "0.5.1", + "object-assign": "4.1.1", + "readable-stream": "2.3.3", + "strip-bom": "2.0.0", + "strip-bom-stream": "1.0.0", + "through2": "2.0.3", + "through2-filter": "2.0.0", + "vali-date": "1.0.0", + "vinyl": "1.2.0" + } + } + } + }, + "decompress-tar": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-3.1.0.tgz", + "integrity": "sha1-IXx4n5uURQ76rcXF5TeXj8MzxGY=", + "dev": true, + "requires": { + "is-tar": "1.0.0", + "object-assign": "2.1.1", + "strip-dirs": "1.1.1", + "tar-stream": "1.5.4", + "through2": "0.6.5", + "vinyl": "0.4.6" + }, + "dependencies": { + "clone": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", + "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", + "dev": true + }, + "object-assign": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", + "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + }, + "vinyl": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", + "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", + "dev": true, + "requires": { + "clone": "0.2.0", + "clone-stats": "0.0.1" + } + } + } + }, + "decompress-tarbz2": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-3.1.0.tgz", + "integrity": "sha1-iyOTVoE1X58YnYclag+L3ZbZZm0=", + "dev": true, + "requires": { + "is-bzip2": "1.0.0", + "object-assign": "2.1.1", + "seek-bzip": "1.0.5", + "strip-dirs": "1.1.1", + "tar-stream": "1.5.4", + "through2": "0.6.5", + "vinyl": "0.4.6" + }, + "dependencies": { + "clone": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", + "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", + "dev": true + }, + "object-assign": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", + "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + }, + "vinyl": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", + "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", + "dev": true, + "requires": { + "clone": "0.2.0", + "clone-stats": "0.0.1" + } + } + } + }, + "decompress-targz": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-3.1.0.tgz", + "integrity": "sha1-ssE9+YFmJomRtxXWRH9kLpaW9aA=", + "dev": true, + "requires": { + "is-gzip": "1.0.0", + "object-assign": "2.1.1", + "strip-dirs": "1.1.1", + "tar-stream": "1.5.4", + "through2": "0.6.5", + "vinyl": "0.4.6" + }, + "dependencies": { + "clone": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", + "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", + "dev": true + }, + "object-assign": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", + "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + }, + "vinyl": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", + "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", + "dev": true, + "requires": { + "clone": "0.2.0", + "clone-stats": "0.0.1" + } + } + } + }, + "decompress-unzip": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-3.4.0.tgz", + "integrity": "sha1-YUdbQVIGa74/7hL51inRX+ZHjus=", + "dev": true, + "requires": { + "is-zip": "1.0.0", + "read-all-stream": "3.1.0", + "stat-mode": "0.2.2", + "strip-dirs": "1.1.1", + "through2": "2.0.3", + "vinyl": "1.2.0", + "yauzl": "2.8.0" + }, + "dependencies": { + "vinyl": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", + "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", + "dev": true, + "requires": { + "clone": "1.0.2", + "clone-stats": "0.0.1", + "replace-ext": "0.0.1" + } + } + } + }, + "deep-extend": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", + "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=", + "dev": true + }, + "defaults": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", + "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "dev": true, + "requires": { + "clone": "1.0.2" + } + }, + "del": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/del/-/del-3.0.0.tgz", + "integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=", + "dev": true, + "requires": { + "globby": "6.1.0", + "is-path-cwd": "1.0.0", + "is-path-in-cwd": "1.0.0", + "p-map": "1.2.0", + "pify": "3.0.0", + "rimraf": "2.6.2" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true + }, + "depd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.0.1.tgz", + "integrity": "sha1-gK7GTJ1tl+ZcwqnKqTwKpqv3Oqo=", + "dev": true + }, + "deprecated": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/deprecated/-/deprecated-0.0.1.tgz", + "integrity": "sha1-+cmvVGSvoeepcUWKi97yqpTVuxk=", + "dev": true + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", + "dev": true + }, + "detect-file": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-0.1.0.tgz", + "integrity": "sha1-STXe39lIhkjgBrASlWbpOGcR6mM=", + "dev": true, + "requires": { + "fs-exists-sync": "0.1.0" + } + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "detect-newline": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", + "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", + "dev": true + }, + "diagnostics": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/diagnostics/-/diagnostics-1.0.1.tgz", + "integrity": "sha1-rM2wgMgrsl0N1zQwqeaof7tDFUE=", + "dev": true, + "requires": { + "colorspace": "1.0.1", + "enabled": "1.0.2", + "kuler": "0.0.0" + } + }, + "dom-serializer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", + "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", + "dev": true, + "requires": { + "domelementtype": "1.1.3", + "entities": "1.1.1" + }, + "dependencies": { + "domelementtype": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", + "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", + "dev": true + } + } + }, + "domelementtype": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", + "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=", + "dev": true + }, + "domhandler": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.1.tgz", + "integrity": "sha1-iS5HAAqZvlW783dP/qBWHYh5wlk=", + "dev": true, + "requires": { + "domelementtype": "1.3.0" + } + }, + "domutils": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.6.2.tgz", + "integrity": "sha1-GVjMC0yUJuntNn+xyOhUiRsPo/8=", + "dev": true, + "requires": { + "dom-serializer": "0.1.0", + "domelementtype": "1.3.0" + } + }, + "download": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/download/-/download-4.4.3.tgz", + "integrity": "sha1-qlX9rTktldS2jowr4D4MKqIbqaw=", + "dev": true, + "requires": { + "caw": "1.2.0", + "concat-stream": "1.6.0", + "each-async": "1.1.1", + "filenamify": "1.2.1", + "got": "5.7.1", + "gulp-decompress": "1.2.0", + "gulp-rename": "1.2.2", + "is-url": "1.2.2", + "object-assign": "4.1.1", + "read-all-stream": "3.1.0", + "readable-stream": "2.3.3", + "stream-combiner2": "1.1.1", + "vinyl": "1.2.0", + "vinyl-fs": "2.4.4", + "ware": "1.3.0" + }, + "dependencies": { + "glob": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "2.0.10", + "once": "1.3.3", + "path-is-absolute": "1.0.1" + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "requires": { + "is-glob": "3.1.0", + "path-dirname": "1.0.2" + } + }, + "glob-stream": { + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-5.3.5.tgz", + "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", + "dev": true, + "requires": { + "extend": "3.0.1", + "glob": "5.0.15", + "glob-parent": "3.1.0", + "micromatch": "2.3.11", + "ordered-read-streams": "0.3.0", + "through2": "0.6.5", + "to-absolute-glob": "0.1.1", + "unique-stream": "2.2.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + } + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "gulp-sourcemaps": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.6.0.tgz", + "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", + "dev": true, + "requires": { + "convert-source-map": "1.5.0", + "graceful-fs": "4.1.11", + "strip-bom": "2.0.0", + "through2": "2.0.3", + "vinyl": "1.2.0" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "ordered-read-streams": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.3.0.tgz", + "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", + "dev": true, + "requires": { + "is-stream": "1.1.0", + "readable-stream": "2.3.3" + } + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + }, + "unique-stream": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.2.1.tgz", + "integrity": "sha1-WqADz76Uxf+GbE59ZouxxNuts2k=", + "dev": true, + "requires": { + "json-stable-stringify": "1.0.1", + "through2-filter": "2.0.0" + } + }, + "vinyl": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", + "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", + "dev": true, + "requires": { + "clone": "1.0.2", + "clone-stats": "0.0.1", + "replace-ext": "0.0.1" + } + }, + "vinyl-fs": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-2.4.4.tgz", + "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", + "dev": true, + "requires": { + "duplexify": "3.5.1", + "glob-stream": "5.3.5", + "graceful-fs": "4.1.11", + "gulp-sourcemaps": "1.6.0", + "is-valid-glob": "0.3.0", + "lazystream": "1.0.0", + "lodash.isequal": "4.5.0", + "merge-stream": "1.0.1", + "mkdirp": "0.5.1", + "object-assign": "4.1.1", + "readable-stream": "2.3.3", + "strip-bom": "2.0.0", + "strip-bom-stream": "1.0.0", + "through2": "2.0.3", + "through2-filter": "2.0.0", + "vali-date": "1.0.0", + "vinyl": "1.2.0" + } + } + } + }, + "duplexer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", + "dev": true + }, + "duplexer2": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", + "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", + "dev": true, + "requires": { + "readable-stream": "1.1.14" + } + }, + "duplexify": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.1.tgz", + "integrity": "sha512-j5goxHTwVED1Fpe5hh3q9R93Kip0Bg2KVAt4f8CEYM3UEwYcPSvWbXaUQOzdX/HtiNomipv+gU7ASQPDbV7pGQ==", + "dev": true, + "requires": { + "end-of-stream": "1.4.0", + "inherits": "2.0.3", + "readable-stream": "2.3.3", + "stream-shift": "1.0.0" + }, + "dependencies": { + "end-of-stream": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.0.tgz", + "integrity": "sha1-epDYM+/abPpurA9JSduw+tOmMgY=", + "dev": true, + "requires": { + "once": "1.4.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "each-async": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/each-async/-/each-async-1.1.1.tgz", + "integrity": "sha1-3uUim98KtrogEqOV4bhpq/iBNHM=", + "dev": true, + "requires": { + "onetime": "1.1.0", + "set-immediate-shim": "1.0.1" + } + }, + "ecc-jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", + "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.24", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.24.tgz", + "integrity": "sha1-m3uIuwXOufoBahd4M8wt3jiPIbY=", + "dev": true + }, + "emits": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emits/-/emits-3.0.0.tgz", + "integrity": "sha1-MnUrupXhcHshlWI4Srm7ix/WL3A=", + "dev": true + }, + "enabled": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-1.0.2.tgz", + "integrity": "sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M=", + "dev": true, + "requires": { + "env-variable": "0.0.3" + } + }, + "end-of-stream": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz", + "integrity": "sha1-jhdyBsPICDfYVjLouTWd/osvbq8=", + "dev": true, + "requires": { + "once": "1.3.3" + } + }, + "entities": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", + "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=", + "dev": true + }, + "env-variable": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/env-variable/-/env-variable-0.0.3.tgz", + "integrity": "sha1-uGwWQb5WECZ9UG8YBx6nbXBwl8s=", + "dev": true + }, + "error-ex": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", + "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "dev": true, + "requires": { + "is-arrayish": "0.2.1" + } + }, + "errorhandler": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.4.3.tgz", + "integrity": "sha1-t7cO2PNZ6duICS8tIMD4MUIK2D8=", + "dev": true, + "requires": { + "accepts": "1.3.4", + "escape-html": "1.0.3" + }, + "dependencies": { + "accepts": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz", + "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=", + "dev": true, + "requires": { + "mime-types": "2.1.17", + "negotiator": "0.6.1" + } + }, + "negotiator": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", + "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", + "dev": true + } + } + }, + "es5-ext": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.31.tgz", + "integrity": "sha1-e7k4yVp/G59ygJLcCcQe3MOY7v4=", + "dev": true, + "requires": { + "es6-iterator": "2.0.1", + "es6-symbol": "3.1.1" + } + }, + "es6-iterator": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.1.tgz", + "integrity": "sha1-jjGcnwRTv1ddN0lAplWSDlnKVRI=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.31", + "es6-symbol": "3.1.1" + }, + "dependencies": { + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.31" + } + } + } + }, + "es6-symbol": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", + "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.31" + }, + "dependencies": { + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.31" + } + } + } + }, + "es6-weak-map": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-0.1.4.tgz", + "integrity": "sha1-cGzvnpmqI2undmwjnIueKG6n0ig=", + "dev": true, + "requires": { + "d": "0.1.1", + "es5-ext": "0.10.31", + "es6-iterator": "0.1.3", + "es6-symbol": "2.0.1" + }, + "dependencies": { + "es6-iterator": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-0.1.3.tgz", + "integrity": "sha1-1vWLjE/EE8JJtLqhl2j45NfIlE4=", + "dev": true, + "requires": { + "d": "0.1.1", + "es5-ext": "0.10.31", + "es6-symbol": "2.0.1" + } + }, + "es6-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-2.0.1.tgz", + "integrity": "sha1-dhtcZ8/U8dGK+yNPaR1nhoLLO/M=", + "dev": true, + "requires": { + "d": "0.1.1", + "es5-ext": "0.10.31" + } + } + } + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", + "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", + "dev": true, + "optional": true + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "etag": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.7.0.tgz", + "integrity": "sha1-A9MLX2fdbmMtKUXTDWZScxo01dg=", + "dev": true + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.31" + }, + "dependencies": { + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.31" + } + } + } + }, + "event-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", + "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", + "dev": true, + "requires": { + "duplexer": "0.1.1", + "from": "0.1.7", + "map-stream": "0.1.0", + "pause-stream": "0.0.11", + "split": "0.3.3", + "stream-combiner": "0.0.4", + "through": "2.3.8" + } + }, + "exec-buffer": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/exec-buffer/-/exec-buffer-3.2.0.tgz", + "integrity": "sha512-wsiD+2Tp6BWHoVv3B+5Dcx6E7u5zky+hUwOHjuH2hKSLR3dvRmX8fk8UD8uqQixHs4Wk6eDmiegVrMPjKj7wpA==", + "dev": true, + "requires": { + "execa": "0.7.0", + "p-finally": "1.0.0", + "pify": "3.0.0", + "rimraf": "2.6.2", + "tempfile": "2.0.0" + } + }, + "exec-series": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/exec-series/-/exec-series-1.0.3.tgz", + "integrity": "sha1-bSV6m+rEgqhyx3g7yGFYOfx3FDo=", + "dev": true, + "requires": { + "async-each-series": "1.1.0", + "object-assign": "4.1.1" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + } + } + }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, + "executable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/executable/-/executable-1.1.0.tgz", + "integrity": "sha1-h3mA6REvM5EGbaNyZd562ENKtNk=", + "dev": true, + "requires": { + "meow": "3.7.0" + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "0.1.1" + } + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "requires": { + "fill-range": "2.2.3" + } + }, + "expand-tilde": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-1.2.2.tgz", + "integrity": "sha1-C4HrqJflo9MdHD0QL48BRB5VlEk=", + "dev": true, + "requires": { + "os-homedir": "1.0.2" + } + }, + "express-session": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.11.3.tgz", + "integrity": "sha1-XMmPP1/4Ttg1+Ry/CqvQxxB0AK8=", + "dev": true, + "requires": { + "cookie": "0.1.3", + "cookie-signature": "1.0.6", + "crc": "3.3.0", + "debug": "2.2.0", + "depd": "1.0.1", + "on-headers": "1.0.1", + "parseurl": "1.3.2", + "uid-safe": "2.0.0", + "utils-merge": "1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + }, + "uid-safe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.0.0.tgz", + "integrity": "sha1-p/PGymSh9qXQTsDvPkw9U2cxcTc=", + "dev": true, + "requires": { + "base64-url": "1.2.1" + } + } + } + }, + "extend": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", + "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", + "dev": true + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "fancy-log": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.0.tgz", + "integrity": "sha1-Rb4X0Cu5kX1gzP/UmVyZnmyMmUg=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "time-stamp": "1.1.0" + } + }, + "fast-deep-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz", + "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=", + "dev": true + }, + "faye-websocket": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", + "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", + "dev": true, + "requires": { + "websocket-driver": "0.7.0" + } + }, + "fd-slicer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", + "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", + "dev": true, + "requires": { + "pend": "1.2.0" + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "1.0.5", + "object-assign": "4.1.1" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + } + } + }, + "file-type": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-4.4.0.tgz", + "integrity": "sha1-G2AOX8ofvcboDApwxxyNul95BsU=", + "dev": true + }, + "filename-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", + "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", + "dev": true + }, + "filename-reserved-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-1.0.0.tgz", + "integrity": "sha1-5hz4BfDeHJhFZ9A4bcXfUO5a9+Q=", + "dev": true + }, + "filenamify": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-1.2.1.tgz", + "integrity": "sha1-qfL/0RxQO+0wABUCknI3jx8TZaU=", + "dev": true, + "requires": { + "filename-reserved-regex": "1.0.0", + "strip-outer": "1.0.0", + "trim-repeated": "1.0.0" + } + }, + "fill-range": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", + "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", + "dev": true, + "requires": { + "is-number": "2.1.0", + "isobject": "2.1.0", + "randomatic": "1.1.7", + "repeat-element": "1.1.2", + "repeat-string": "1.6.1" + } + }, + "finalhandler": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.4.0.tgz", + "integrity": "sha1-llpS2ejQXSuFdUhUH7ibU6JJfZs=", + "dev": true, + "requires": { + "debug": "2.2.0", + "escape-html": "1.0.2", + "on-finished": "2.3.0", + "unpipe": "1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "escape-html": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.2.tgz", + "integrity": "sha1-130y+pjjjC9BroXpJ44ODmuhAiw=", + "dev": true + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + } + } + }, + "find-index": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", + "integrity": "sha1-Z101iyyjiS15Whq0cjL4tuLg3eQ=", + "dev": true + }, + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + }, + "find-versions": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-1.2.1.tgz", + "integrity": "sha1-y96fEuOFdaCvG+G5osXV/Y8Ya2I=", + "dev": true, + "requires": { + "array-uniq": "1.0.3", + "get-stdin": "4.0.1", + "meow": "3.7.0", + "semver-regex": "1.0.0" + } + }, + "findup-sync": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.4.3.tgz", + "integrity": "sha1-QAQ5Kee8YK3wt/SCfExudaDeyhI=", + "dev": true, + "requires": { + "detect-file": "0.1.0", + "is-glob": "2.0.1", + "micromatch": "2.3.11", + "resolve-dir": "0.1.1" + } + }, + "fined": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fined/-/fined-1.1.0.tgz", + "integrity": "sha1-s33IRLdqL15wgeiE98CuNE8VNHY=", + "dev": true, + "requires": { + "expand-tilde": "2.0.2", + "is-plain-object": "2.0.4", + "object.defaults": "1.1.0", + "object.pick": "1.3.0", + "parse-filepath": "1.0.1" + }, + "dependencies": { + "expand-tilde": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", + "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", + "dev": true, + "requires": { + "homedir-polyfill": "1.0.1" + } + } + } + }, + "first-chunk-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz", + "integrity": "sha1-Wb+1DNkF9g18OUzT2ayqtOatk04=", + "dev": true + }, + "flagged-respawn": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-0.3.2.tgz", + "integrity": "sha1-/xke3c1wiKZ1smEP/8l2vpuAdLU=", + "dev": true + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true + }, + "for-own": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", + "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", + "dev": true, + "requires": { + "for-in": "1.0.2" + } + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "fork-stream": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz", + "integrity": "sha1-24Sfznf2cIpfjzhq5TOgkHtUrnA=", + "dev": true + }, + "form-data": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.1.tgz", + "integrity": "sha1-b7lPvXGIUwbXPRXMSX/kzE7NRL8=", + "dev": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + }, + "fresh": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz", + "integrity": "sha1-ZR+DjiJCTnVm3hYdg1jKoZn4PU8=", + "dev": true + }, + "from": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", + "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", + "dev": true + }, + "fs-exists-sync": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz", + "integrity": "sha1-mC1ok6+RjnLQjeyehnP/K1qNat0=", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fstream": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", + "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.2" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + } + } + }, + "gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dev": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + } + } + }, + "gaze": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", + "integrity": "sha1-QLcJU30k0dRXZ9takIaJ3+aaxE8=", + "dev": true, + "requires": { + "globule": "0.1.0" + } + }, + "get-caller-file": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", + "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "dev": true + }, + "get-proxy": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-proxy/-/get-proxy-1.1.0.tgz", + "integrity": "sha1-iUhUSRvFkbDxR9euVw9cZ4tyVus=", + "dev": true, + "requires": { + "rc": "1.2.1" + } + }, + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true + }, + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "1.0.0" + } + }, + "gifsicle": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/gifsicle/-/gifsicle-3.0.4.tgz", + "integrity": "sha1-9Fy17RAWW2ZdySng6TKLbIId+js=", + "dev": true, + "optional": true, + "requires": { + "bin-build": "2.2.0", + "bin-wrapper": "3.0.2", + "logalot": "2.1.0" + } + }, + "glob": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-4.5.3.tgz", + "integrity": "sha1-xstz0yJsHv7wTePFbQEvAzd+4V8=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "2.0.10", + "once": "1.3.3" + } + }, + "glob-base": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", + "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "dev": true, + "requires": { + "glob-parent": "2.0.0", + "is-glob": "2.0.1" + } + }, + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "dev": true, + "requires": { + "is-glob": "2.0.1" + } + }, + "glob-stream": { + "version": "3.1.18", + "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-3.1.18.tgz", + "integrity": "sha1-kXCl8St5Awb9/lmPMT+PeVT9FDs=", + "dev": true, + "requires": { + "glob": "4.5.3", + "glob2base": "0.0.12", + "minimatch": "2.0.10", + "ordered-read-streams": "0.1.0", + "through2": "0.6.5", + "unique-stream": "1.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + } + } + }, + "glob-watcher": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-0.0.6.tgz", + "integrity": "sha1-uVtKjfdLOcgymLDAXJeLTZo7cQs=", + "dev": true, + "requires": { + "gaze": "0.5.2" + } + }, + "glob2base": { + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/glob2base/-/glob2base-0.0.12.tgz", + "integrity": "sha1-nUGbPijxLoOjYhZKJ3BVkiycDVY=", + "dev": true, + "requires": { + "find-index": "0.1.1" + } + }, + "global-modules": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz", + "integrity": "sha1-6lo77ULG1s6ZWk+KEmm12uIjgo0=", + "dev": true, + "requires": { + "global-prefix": "0.1.5", + "is-windows": "0.2.0" + } + }, + "global-prefix": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-0.1.5.tgz", + "integrity": "sha1-jTvGuNo8qBEqFg2NSW/wRiv+948=", + "dev": true, + "requires": { + "homedir-polyfill": "1.0.1", + "ini": "1.3.4", + "is-windows": "0.2.0", + "which": "1.3.0" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "requires": { + "array-union": "1.0.2", + "glob": "7.1.2", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.3.3", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "globule": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/globule/-/globule-0.1.0.tgz", + "integrity": "sha1-2cjt3h2nnRJaFRt5UzuXhnY0auU=", + "dev": true, + "requires": { + "glob": "3.1.21", + "lodash": "1.0.2", + "minimatch": "0.2.14" + }, + "dependencies": { + "glob": { + "version": "3.1.21", + "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", + "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", + "dev": true, + "requires": { + "graceful-fs": "1.2.3", + "inherits": "1.0.2", + "minimatch": "0.2.14" + } + }, + "graceful-fs": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", + "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", + "dev": true + }, + "inherits": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", + "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", + "dev": true + }, + "minimatch": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", + "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", + "dev": true, + "requires": { + "lru-cache": "2.7.3", + "sigmund": "1.0.1" + } + } + } + }, + "glogg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.0.tgz", + "integrity": "sha1-f+DxmfV6yQbPUS/urY+Q7kooT8U=", + "dev": true, + "requires": { + "sparkles": "1.0.0" + } + }, + "got": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/got/-/got-5.7.1.tgz", + "integrity": "sha1-X4FjWmHkplifGAVp6k44FoClHzU=", + "dev": true, + "requires": { + "create-error-class": "3.0.2", + "duplexer2": "0.1.4", + "is-redirect": "1.0.0", + "is-retry-allowed": "1.1.0", + "is-stream": "1.1.0", + "lowercase-keys": "1.0.0", + "node-status-codes": "1.0.0", + "object-assign": "4.1.1", + "parse-json": "2.2.0", + "pinkie-promise": "2.0.1", + "read-all-stream": "3.1.0", + "readable-stream": "2.3.3", + "timed-out": "3.1.3", + "unzip-response": "1.0.2", + "url-parse-lax": "1.0.0" + }, + "dependencies": { + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "graceful-fs": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.11.tgz", + "integrity": "sha1-dhPHeKGv6mLyXGMKCG1/Osu92Bg=", + "dev": true, + "requires": { + "natives": "1.1.0" + } + }, + "graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", + "dev": true + }, + "growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "dev": true + }, + "gulp": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/gulp/-/gulp-3.9.1.tgz", + "integrity": "sha1-VxzkWSjdQK9lFPxAEYZgFsE4RbQ=", + "dev": true, + "requires": { + "archy": "1.0.0", + "chalk": "1.1.3", + "deprecated": "0.0.1", + "gulp-util": "3.0.8", + "interpret": "1.0.4", + "liftoff": "2.3.0", + "minimist": "1.2.0", + "orchestrator": "0.3.8", + "pretty-hrtime": "1.0.3", + "semver": "4.3.6", + "tildify": "1.2.0", + "v8flags": "2.1.1", + "vinyl-fs": "0.3.14" + } + }, + "gulp-autoprefixer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/gulp-autoprefixer/-/gulp-autoprefixer-4.0.0.tgz", + "integrity": "sha1-4AqMVxuF0GUWrCY0G+kN/Z/B6rA=", + "dev": true, + "requires": { + "autoprefixer": "7.1.5", + "gulp-util": "3.0.8", + "postcss": "6.0.13", + "through2": "2.0.3", + "vinyl-sourcemaps-apply": "0.2.1" + } + }, + "gulp-babel": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/gulp-babel/-/gulp-babel-6.1.2.tgz", + "integrity": "sha1-fAF25Lo/JExgWIoMSzIKRdGt784=", + "dev": true, + "requires": { + "babel-core": "6.26.0", + "gulp-util": "3.0.8", + "object-assign": "4.1.1", + "replace-ext": "0.0.1", + "through2": "2.0.3", + "vinyl-sourcemaps-apply": "0.2.1" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + } + } + }, + "gulp-clean-css": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-3.9.0.tgz", + "integrity": "sha512-CsqaSO2ZTMQI/WwbWloZWBudhsRMKgxBthzxt4bbcbWrjOY4pRFziyK9IH6YbTpaWAPKEwWpopPkpiAEoDofxw==", + "dev": true, + "requires": { + "clean-css": "4.1.9", + "gulp-util": "3.0.8", + "through2": "2.0.3", + "vinyl-sourcemaps-apply": "0.2.1" + } + }, + "gulp-concat": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/gulp-concat/-/gulp-concat-2.6.1.tgz", + "integrity": "sha1-Yz0WyV2IUEYorQJmVmPO5aR5M1M=", + "dev": true, + "requires": { + "concat-with-sourcemaps": "1.0.4", + "through2": "2.0.3", + "vinyl": "2.1.0" + }, + "dependencies": { + "clone": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.1.tgz", + "integrity": "sha1-0hfR6WERjjrJpLi7oyhVU79kfNs=", + "dev": true + }, + "clone-stats": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", + "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", + "dev": true + }, + "replace-ext": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "dev": true + }, + "vinyl": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.1.0.tgz", + "integrity": "sha1-Ah+cLPlR1rk5lDyJ617lrdT9kkw=", + "dev": true, + "requires": { + "clone": "2.1.1", + "clone-buffer": "1.0.0", + "clone-stats": "1.0.0", + "cloneable-readable": "1.0.0", + "remove-trailing-separator": "1.1.0", + "replace-ext": "1.0.0" + } + } + } + }, + "gulp-connect": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/gulp-connect/-/gulp-connect-5.0.0.tgz", + "integrity": "sha1-8v3zBq6RFGg2jCKF8teC8T7dr04=", + "dev": true, + "requires": { + "connect": "2.30.2", + "connect-livereload": "0.5.4", + "event-stream": "3.3.4", + "gulp-util": "3.0.8", + "tiny-lr": "0.2.1" + } + }, + "gulp-decompress": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gulp-decompress/-/gulp-decompress-1.2.0.tgz", + "integrity": "sha1-jutlpeAV+O2FMsr+KEVJYGJvDcc=", + "dev": true, + "requires": { + "archive-type": "3.2.0", + "decompress": "3.0.0", + "gulp-util": "3.0.8", + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "gulp-if": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/gulp-if/-/gulp-if-2.0.2.tgz", + "integrity": "sha1-pJe351cwBQQcqivIt92jyARE1ik=", + "dev": true, + "requires": { + "gulp-match": "1.0.3", + "ternary-stream": "2.0.1", + "through2": "2.0.3" + } + }, + "gulp-imagemin": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/gulp-imagemin/-/gulp-imagemin-3.4.0.tgz", + "integrity": "sha1-I6jUxRM/UKKnCKyofKSy1ut8RAM=", + "dev": true, + "requires": { + "chalk": "2.1.0", + "gulp-util": "3.0.8", + "imagemin": "5.3.1", + "imagemin-gifsicle": "5.2.0", + "imagemin-jpegtran": "5.0.2", + "imagemin-optipng": "5.2.1", + "imagemin-svgo": "5.2.2", + "plur": "2.1.2", + "pretty-bytes": "4.0.2", + "through2-concurrent": "1.1.1" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", + "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "dev": true, + "requires": { + "color-convert": "1.9.0" + } + }, + "chalk": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz", + "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.0", + "escape-string-regexp": "1.0.5", + "supports-color": "4.4.0" + } + }, + "supports-color": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", + "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "gulp-jshint": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/gulp-jshint/-/gulp-jshint-2.0.4.tgz", + "integrity": "sha1-84KxhWSxBy3vDJqvdTwUba208Og=", + "dev": true, + "requires": { + "gulp-util": "3.0.8", + "lodash": "4.17.4", + "minimatch": "3.0.4", + "rcloader": "0.2.2", + "through2": "2.0.3" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + } + } + }, + "gulp-jsonminify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gulp-jsonminify/-/gulp-jsonminify-1.0.0.tgz", + "integrity": "sha1-xCtogSxlfm4KEuk8KqIXs+s4xwo=", + "dev": true, + "requires": { + "gulp-util": "3.0.8", + "jsonminify": "0.2.3", + "through2": "0.6.5" + }, + "dependencies": { + "jsonminify": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/jsonminify/-/jsonminify-0.2.3.tgz", + "integrity": "sha1-S4Qsij/l1qpIsvj5Whz5qAwBnY4=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + } + } + }, + "gulp-livereload": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/gulp-livereload/-/gulp-livereload-3.8.1.tgz", + "integrity": "sha1-APdEstdJ0+njdGWJyKRKysd5tQ8=", + "dev": true, + "requires": { + "chalk": "0.5.1", + "debug": "2.6.9", + "event-stream": "3.3.4", + "gulp-util": "3.0.8", + "lodash.assign": "3.2.0", + "mini-lr": "0.1.9" + }, + "dependencies": { + "ansi-regex": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz", + "integrity": "sha1-DY6UaWej2BQ/k+JOKYUl/BsiNfk=", + "dev": true + }, + "ansi-styles": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz", + "integrity": "sha1-6uy/Zs1waIJ2Cy9GkVgrj1XXp94=", + "dev": true + }, + "chalk": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz", + "integrity": "sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ=", + "dev": true, + "requires": { + "ansi-styles": "1.1.0", + "escape-string-regexp": "1.0.5", + "has-ansi": "0.1.0", + "strip-ansi": "0.3.0", + "supports-color": "0.2.0" + } + }, + "has-ansi": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz", + "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=", + "dev": true, + "requires": { + "ansi-regex": "0.2.1" + } + }, + "lodash.assign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-3.2.0.tgz", + "integrity": "sha1-POnwI0tLIiPilrj6CsH+6OvKZPo=", + "dev": true, + "requires": { + "lodash._baseassign": "3.2.0", + "lodash._createassigner": "3.1.1", + "lodash.keys": "3.1.2" + } + }, + "strip-ansi": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz", + "integrity": "sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA=", + "dev": true, + "requires": { + "ansi-regex": "0.2.1" + } + }, + "supports-color": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz", + "integrity": "sha1-2S3iaU6z9nMjlz1649i1W0wiGQo=", + "dev": true + } + } + }, + "gulp-match": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/gulp-match/-/gulp-match-1.0.3.tgz", + "integrity": "sha1-kcfA1/Kb7NZgbVfYCn+Hdqh6uo4=", + "dev": true, + "requires": { + "minimatch": "3.0.4" + }, + "dependencies": { + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + } + } + }, + "gulp-minify-html": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/gulp-minify-html/-/gulp-minify-html-1.0.6.tgz", + "integrity": "sha1-+Ufz8TlHW74bCP/+cUxHKfH/Bwo=", + "dev": true, + "requires": { + "gulp-util": "3.0.8", + "minimize": "1.8.1", + "through2": "0.6.5" + }, + "dependencies": { + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + } + } + }, + "gulp-notify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/gulp-notify/-/gulp-notify-3.0.0.tgz", + "integrity": "sha1-oEuK+azb5OY8hFZ4zgw9MGlMWaM=", + "dev": true, + "requires": { + "gulp-util": "3.0.8", + "lodash.template": "4.4.0", + "node-notifier": "5.1.2", + "node.extend": "1.1.6", + "through2": "2.0.3" + }, + "dependencies": { + "lodash.template": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.4.0.tgz", + "integrity": "sha1-5zoDhcg1VZF0bgILmWecaQ5o+6A=", + "dev": true, + "requires": { + "lodash._reinterpolate": "3.0.0", + "lodash.templatesettings": "4.1.0" + } + }, + "lodash.templatesettings": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz", + "integrity": "sha1-K01OlbpEDZFf8IvImeRVNmZxMxY=", + "dev": true, + "requires": { + "lodash._reinterpolate": "3.0.0" + } + } + } + }, + "gulp-rename": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-1.2.2.tgz", + "integrity": "sha1-OtRCh2PwXidk3sHGfYaNsnVoeBc=", + "dev": true + }, + "gulp-sass": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/gulp-sass/-/gulp-sass-3.1.0.tgz", + "integrity": "sha1-U9xLaKH13f5EJKtMJHZVJpqLdLc=", + "dev": true, + "requires": { + "gulp-util": "3.0.8", + "lodash.clonedeep": "4.5.0", + "node-sass": "4.5.3", + "through2": "2.0.3", + "vinyl-sourcemaps-apply": "0.2.1" + } + }, + "gulp-sass-unicode": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gulp-sass-unicode/-/gulp-sass-unicode-1.0.1.tgz", + "integrity": "sha1-shE5l7U+x0Fj43bEy6Rjtogh1CY=", + "dev": true, + "requires": { + "gulp-util": "3.0.8", + "through2": "2.0.3" + } + }, + "gulp-sourcemaps": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-2.6.1.tgz", + "integrity": "sha512-1qHCI3hdmsMdq/SUotxwUh/L8YzlI6J9zQ5ifNOtx4Y6KV5y5sGuORv1KZzWhuKtz/mXNh5xLESUtwC4EndCjA==", + "dev": true, + "requires": { + "@gulp-sourcemaps/identity-map": "1.0.1", + "@gulp-sourcemaps/map-sources": "1.0.0", + "acorn": "4.0.13", + "convert-source-map": "1.5.0", + "css": "2.2.1", + "debug-fabulous": "0.2.1", + "detect-newline": "2.1.0", + "graceful-fs": "4.1.11", + "source-map": "0.6.1", + "strip-bom-string": "1.0.0", + "through2": "2.0.3", + "vinyl": "1.2.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "vinyl": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", + "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", + "dev": true, + "requires": { + "clone": "1.0.2", + "clone-stats": "0.0.1", + "replace-ext": "0.0.1" + } + } + } + }, + "gulp-uglify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/gulp-uglify/-/gulp-uglify-3.0.0.tgz", + "integrity": "sha1-DfAzHXKg0wLj434QlIXd3zPG0co=", + "dev": true, + "requires": { + "gulplog": "1.0.0", + "has-gulplog": "0.1.0", + "lodash": "4.17.4", + "make-error-cause": "1.2.2", + "through2": "2.0.3", + "uglify-js": "3.1.3", + "vinyl-sourcemaps-apply": "0.2.1" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + } + } + }, + "gulp-util": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", + "integrity": "sha1-AFTh50RQLifATBh8PsxQXdVLu08=", + "dev": true, + "requires": { + "array-differ": "1.0.0", + "array-uniq": "1.0.3", + "beeper": "1.1.1", + "chalk": "1.1.3", + "dateformat": "2.2.0", + "fancy-log": "1.3.0", + "gulplog": "1.0.0", + "has-gulplog": "0.1.0", + "lodash._reescape": "3.0.0", + "lodash._reevaluate": "3.0.0", + "lodash._reinterpolate": "3.0.0", + "lodash.template": "3.6.2", + "minimist": "1.2.0", + "multipipe": "0.1.2", + "object-assign": "3.0.0", + "replace-ext": "0.0.1", + "through2": "2.0.3", + "vinyl": "0.5.3" + } + }, + "gulplog": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz", + "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", + "dev": true, + "requires": { + "glogg": "1.0.0" + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", + "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", + "dev": true, + "requires": { + "ajv": "5.2.3", + "har-schema": "2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-flag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", + "dev": true + }, + "has-gulplog": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz", + "integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=", + "dev": true, + "requires": { + "sparkles": "1.0.0" + } + }, + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "dev": true + }, + "hawk": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", + "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", + "dev": true, + "requires": { + "boom": "4.3.1", + "cryptiles": "3.1.2", + "hoek": "4.2.0", + "sntp": "2.0.2" + } + }, + "hoek": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.0.tgz", + "integrity": "sha512-v0XCLxICi9nPfYrS9RL8HbYnXi9obYAeLbSP00BmnZwCK9+Ih9WOjoZ8YoHCoav2csqn4FOz4Orldsy2dmDwmQ==", + "dev": true + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "dev": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "homedir-polyfill": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz", + "integrity": "sha1-TCu8inWJmP7r9e1oWA921GdotLw=", + "dev": true, + "requires": { + "parse-passwd": "1.0.0" + } + }, + "hosted-git-info": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", + "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", + "dev": true + }, + "html-comment-regex": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.1.tgz", + "integrity": "sha1-ZouTd26q5V696POtRkswekljYl4=", + "dev": true, + "optional": true + }, + "htmlparser2": { + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz", + "integrity": "sha1-G9+HrMoPP55T+k/M6w9LTLsAszg=", + "dev": true, + "requires": { + "domelementtype": "1.3.0", + "domhandler": "2.4.1", + "domutils": "1.6.2", + "entities": "1.1.1", + "inherits": "2.0.3", + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "http-errors": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz", + "integrity": "sha1-GX4izevUGYWF6GlO9nhhl7ke2UI=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "statuses": "1.3.1" + } + }, + "http-parser-js": { + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.9.tgz", + "integrity": "sha1-6hoE+2St/wJC6ZdPKX3Uw8rSceE=", + "dev": true + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.13.1" + } + }, + "iconv-lite": { + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.11.tgz", + "integrity": "sha1-LstC/SlHRJIiCaLnxATayHk9it4=", + "dev": true + }, + "imagemin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/imagemin/-/imagemin-5.3.1.tgz", + "integrity": "sha1-8Zwu7h5xumxlWMUV+fyWaAGJptQ=", + "dev": true, + "requires": { + "file-type": "4.4.0", + "globby": "6.1.0", + "make-dir": "1.0.0", + "p-pipe": "1.2.0", + "pify": "2.3.0", + "replace-ext": "1.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "replace-ext": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "dev": true + } + } + }, + "imagemin-gifsicle": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/imagemin-gifsicle/-/imagemin-gifsicle-5.2.0.tgz", + "integrity": "sha512-K01m5QuPK+0en8oVhiOOAicF7KjrHlCZxS++mfLI2mV/Ksfq/Y9nCXCWDz6jRv13wwlqe5T7hXT+ji2DnLc2yQ==", + "dev": true, + "optional": true, + "requires": { + "exec-buffer": "3.2.0", + "gifsicle": "3.0.4", + "is-gif": "1.0.0" + } + }, + "imagemin-jpegtran": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/imagemin-jpegtran/-/imagemin-jpegtran-5.0.2.tgz", + "integrity": "sha1-5ogiY7j3kW/duABkDPddLpcNKtY=", + "dev": true, + "optional": true, + "requires": { + "exec-buffer": "3.2.0", + "is-jpg": "1.0.0", + "jpegtran-bin": "3.2.0" + } + }, + "imagemin-optipng": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/imagemin-optipng/-/imagemin-optipng-5.2.1.tgz", + "integrity": "sha1-0i2kEsCfX/AKQzmWC5ioix2+hpU=", + "dev": true, + "optional": true, + "requires": { + "exec-buffer": "3.2.0", + "is-png": "1.1.0", + "optipng-bin": "3.1.4" + } + }, + "imagemin-pngcrush": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/imagemin-pngcrush/-/imagemin-pngcrush-5.1.0.tgz", + "integrity": "sha1-gbTP5JSuvY4d0162MMsy9d8reM8=", + "dev": true, + "requires": { + "exec-buffer": "3.2.0", + "is-png": "1.1.0", + "pngcrush-bin": "3.1.1" + } + }, + "imagemin-svgo": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/imagemin-svgo/-/imagemin-svgo-5.2.2.tgz", + "integrity": "sha1-UBaZ9XiXMKV5IrhzbqFcU/e1WDg=", + "dev": true, + "optional": true, + "requires": { + "is-svg": "2.1.0", + "svgo": "0.7.2" + } + }, + "in-publish": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz", + "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=", + "dev": true + }, + "indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "1.3.3", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "ini": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz", + "integrity": "sha1-BTfLedr1m1mhpRff9wbIbsA5Fi4=", + "dev": true + }, + "interpret": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.4.tgz", + "integrity": "sha1-ggzdWIuGj/sZGoCVBtbJyPISsbA=", + "dev": true + }, + "invariant": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz", + "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "dev": true + }, + "ip-regex": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-1.0.3.tgz", + "integrity": "sha1-3FiQdvZZ9BnCIgOaMzFvHHOH7/0=", + "dev": true + }, + "irregular-plurals": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.3.0.tgz", + "integrity": "sha512-njf5A+Mxb3kojuHd1DzISjjIl+XhyzovXEOyPPSzdQozq/Lf2tN27mOrAAsxEPZxpn6I4MGzs1oo9TxXxPFpaA==", + "dev": true + }, + "is": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is/-/is-3.2.1.tgz", + "integrity": "sha1-0Kwq1V63sL7JJqUmb2xmKqqD3KU=", + "dev": true + }, + "is-absolute": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", + "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", + "dev": true, + "requires": { + "is-relative": "0.2.1", + "is-windows": "0.2.0" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-buffer": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.5.tgz", + "integrity": "sha1-Hzsm72E7IUuIy8ojzGwB2Hlh7sw=", + "dev": true + }, + "is-builtin-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", + "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "dev": true, + "requires": { + "builtin-modules": "1.1.1" + } + }, + "is-bzip2": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-bzip2/-/is-bzip2-1.0.0.tgz", + "integrity": "sha1-XuWOqlounIDiFAe+3yOuWsCRs/w=", + "dev": true + }, + "is-dotfile": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", + "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", + "dev": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", + "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "dev": true, + "requires": { + "is-primitive": "2.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-gif": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-gif/-/is-gif-1.0.0.tgz", + "integrity": "sha1-ptKumIkwB7/6l6HYwB1jIFgyCX4=", + "dev": true, + "optional": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "is-gzip": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-gzip/-/is-gzip-1.0.0.tgz", + "integrity": "sha1-bKiwe5nHeZgCWQDlVc7Y7YCHmoM=", + "dev": true + }, + "is-jpg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-jpg/-/is-jpg-1.0.0.tgz", + "integrity": "sha1-KVnBfnNDDbOCZNp1uQ3VTy2G2hw=", + "dev": true, + "optional": true + }, + "is-natural-number": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-2.1.1.tgz", + "integrity": "sha1-fUxXKDd+84bD4ZSpkRv1fG3DNec=", + "dev": true + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true + }, + "is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", + "dev": true + }, + "is-path-in-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", + "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", + "dev": true, + "requires": { + "is-path-inside": "1.0.0" + } + }, + "is-path-inside": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz", + "integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=", + "dev": true, + "requires": { + "path-is-inside": "1.0.2" + } + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "is-png": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-png/-/is-png-1.1.0.tgz", + "integrity": "sha1-1XSxK/J1wDUEVVcLDltXqwYgd84=", + "dev": true + }, + "is-posix-bracket": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", + "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", + "dev": true + }, + "is-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", + "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", + "dev": true + }, + "is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", + "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", + "dev": true + }, + "is-redirect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", + "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", + "dev": true + }, + "is-relative": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", + "integrity": "sha1-0n9MfVFtF1+2ENuEu+7yPDvJeqU=", + "dev": true, + "requires": { + "is-unc-path": "0.1.2" + } + }, + "is-retry-allowed": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", + "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-svg": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-2.1.0.tgz", + "integrity": "sha1-z2EJDaDZ77yrhyLeum8DIgjbsOk=", + "dev": true, + "optional": true, + "requires": { + "html-comment-regex": "1.1.1" + } + }, + "is-tar": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-tar/-/is-tar-1.0.0.tgz", + "integrity": "sha1-L2suF5LB9bs2UZrKqdZcDSb+hT0=", + "dev": true + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "is-unc-path": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-0.1.2.tgz", + "integrity": "sha1-arBTpyVzwQJQ/0FqOBTDUXivObk=", + "dev": true, + "requires": { + "unc-path-regex": "0.1.2" + } + }, + "is-url": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.2.tgz", + "integrity": "sha1-SYkFpZO/R8wtnn9zg3K792lsfyY=", + "dev": true + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true + }, + "is-valid-glob": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-0.3.0.tgz", + "integrity": "sha1-1LVcafUYhvm2XHDWwmItN+KfSP4=", + "dev": true + }, + "is-windows": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz", + "integrity": "sha1-3hqm1j6indJIc3tp8f+LgALSEIw=", + "dev": true + }, + "is-zip": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-zip/-/is-zip-1.0.0.tgz", + "integrity": "sha1-R7Co/004p2QxzP2ZqOFaTIa6IyU=", + "dev": true + }, + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + } + } + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "jpegtran-bin": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jpegtran-bin/-/jpegtran-bin-3.2.0.tgz", + "integrity": "sha1-9g7PSumZwL2tLp+83ytvCYHnops=", + "dev": true, + "optional": true, + "requires": { + "bin-build": "2.2.0", + "bin-wrapper": "3.0.2", + "logalot": "2.1.0" + } + }, + "js-base64": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.3.2.tgz", + "integrity": "sha512-Y2/+DnfJJXT1/FCwUebUhLWb3QihxiSC42+ctHLGogmW2jPY6LCapMdFZXRvVP2z6qyKW7s6qncE/9gSqZiArw==", + "dev": true + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "js-yaml": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz", + "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=", + "dev": true, + "optional": true, + "requires": { + "argparse": "1.0.9", + "esprima": "2.7.3" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true, + "optional": true + }, + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "dev": true + }, + "jshint": { + "version": "2.9.5", + "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.9.5.tgz", + "integrity": "sha1-HnJSkVzmgbQIJ+4UJIxG006apiw=", + "dev": true, + "requires": { + "cli": "1.0.1", + "console-browserify": "1.1.0", + "exit": "0.1.2", + "htmlparser2": "3.8.3", + "lodash": "3.7.0", + "minimatch": "3.0.4", + "shelljs": "0.3.0", + "strip-json-comments": "1.0.4" + }, + "dependencies": { + "domhandler": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", + "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", + "dev": true, + "requires": { + "domelementtype": "1.3.0" + } + }, + "domutils": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", + "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", + "dev": true, + "requires": { + "dom-serializer": "0.1.0", + "domelementtype": "1.3.0" + } + }, + "entities": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", + "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", + "dev": true + }, + "htmlparser2": { + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", + "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", + "dev": true, + "requires": { + "domelementtype": "1.3.0", + "domhandler": "2.3.0", + "domutils": "1.5.1", + "entities": "1.0.0", + "readable-stream": "1.1.14" + } + }, + "lodash": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.7.0.tgz", + "integrity": "sha1-Nni9irmVBXwHreg27S7wh9qBHUU=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "strip-json-comments": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", + "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", + "dev": true + } + } + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", + "dev": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", + "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "dev": true, + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", + "dev": true + }, + "jsonminify": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/jsonminify/-/jsonminify-0.4.1.tgz", + "integrity": "sha1-gF2vuzk5UYjO6atYLIHvlZ1+cQw=", + "dev": true + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.5" + } + }, + "kuler": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/kuler/-/kuler-0.0.0.tgz", + "integrity": "sha1-tmu0a5NOVQ9Z2BiEjgq7pPf1VTw=", + "dev": true, + "requires": { + "colornames": "0.0.2" + } + }, + "lazy-req": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/lazy-req/-/lazy-req-1.1.0.tgz", + "integrity": "sha1-va6+rTD42CQDnODOFJ1Nqge6H6w=", + "dev": true + }, + "lazystream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", + "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "dev": true, + "requires": { + "invert-kv": "1.0.0" + } + }, + "liftoff": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz", + "integrity": "sha1-qY8v9nGD2Lp8+soQVIvX/wVQs4U=", + "dev": true, + "requires": { + "extend": "3.0.1", + "findup-sync": "0.4.3", + "fined": "1.1.0", + "flagged-respawn": "0.3.2", + "lodash.isplainobject": "4.0.6", + "lodash.isstring": "4.0.1", + "lodash.mapvalues": "4.6.0", + "rechoir": "0.6.2", + "resolve": "1.4.0" + } + }, + "livereload-js": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-2.2.2.tgz", + "integrity": "sha1-bIclfmSKtHW8JOoldFftzB+NC8I=", + "dev": true + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "strip-bom": "2.0.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + } + } + }, + "lodash": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz", + "integrity": "sha1-j1dWDIO1n8JwvT1WG2kAQ0MOJVE=", + "dev": true + }, + "lodash._baseassign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", + "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", + "dev": true, + "requires": { + "lodash._basecopy": "3.0.1", + "lodash.keys": "3.1.2" + } + }, + "lodash._basecopy": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", + "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", + "dev": true + }, + "lodash._basetostring": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", + "integrity": "sha1-0YYdh3+CSlL2aYMtyvPuFVZqB9U=", + "dev": true + }, + "lodash._basevalues": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", + "integrity": "sha1-W3dXYoAr3j0yl1A+JjAIIP32Ybc=", + "dev": true + }, + "lodash._bindcallback": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz", + "integrity": "sha1-5THCdkTPi1epnhftlbNcdIeJOS4=", + "dev": true + }, + "lodash._createassigner": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz", + "integrity": "sha1-g4pbri/aymOsIt7o4Z+k5taXCxE=", + "dev": true, + "requires": { + "lodash._bindcallback": "3.0.1", + "lodash._isiterateecall": "3.0.9", + "lodash.restparam": "3.6.1" + } + }, + "lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", + "dev": true + }, + "lodash._isiterateecall": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", + "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", + "dev": true + }, + "lodash._reescape": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", + "integrity": "sha1-Kx1vXf4HyKNVdT5fJ/rH8c3hYWo=", + "dev": true + }, + "lodash._reevaluate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", + "integrity": "sha1-WLx0xAZklTrgsSTYBpltrKQx4u0=", + "dev": true + }, + "lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", + "dev": true + }, + "lodash._root": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", + "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", + "dev": true + }, + "lodash.assign": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", + "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", + "dev": true + }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, + "lodash.escape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", + "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", + "dev": true, + "requires": { + "lodash._root": "3.0.1" + } + }, + "lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", + "dev": true + }, + "lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", + "dev": true + }, + "lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", + "dev": true + }, + "lodash.isobject": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-3.0.2.tgz", + "integrity": "sha1-PI+41bW/S/kK4G4U8qUwpO2TXh0=", + "dev": true + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", + "dev": true + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", + "dev": true + }, + "lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", + "dev": true, + "requires": { + "lodash._getnative": "3.9.1", + "lodash.isarguments": "3.1.0", + "lodash.isarray": "3.0.4" + } + }, + "lodash.mapvalues": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz", + "integrity": "sha1-G6+lAF3p3W9PJmaMMMo3IwzJaJw=", + "dev": true + }, + "lodash.merge": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.0.tgz", + "integrity": "sha1-aYhLoUSsM/5plzemCG3v+t0PicU=", + "dev": true + }, + "lodash.mergewith": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz", + "integrity": "sha1-FQzwoWeR9ZA7iJHqsVRgknS96lU=", + "dev": true + }, + "lodash.restparam": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", + "integrity": "sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=", + "dev": true + }, + "lodash.template": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", + "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", + "dev": true, + "requires": { + "lodash._basecopy": "3.0.1", + "lodash._basetostring": "3.0.1", + "lodash._basevalues": "3.0.0", + "lodash._isiterateecall": "3.0.9", + "lodash._reinterpolate": "3.0.0", + "lodash.escape": "3.2.0", + "lodash.keys": "3.1.2", + "lodash.restparam": "3.6.1", + "lodash.templatesettings": "3.1.1" + } + }, + "lodash.templatesettings": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", + "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", + "dev": true, + "requires": { + "lodash._reinterpolate": "3.0.0", + "lodash.escape": "3.2.0" + } + }, + "logalot": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/logalot/-/logalot-2.1.0.tgz", + "integrity": "sha1-X46MkNME7fElMJUaVVSruMXj9VI=", + "dev": true, + "requires": { + "figures": "1.7.0", + "squeak": "1.3.0" + } + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "loose-envify": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", + "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "dev": true, + "requires": { + "js-tokens": "3.0.2" + } + }, + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "dev": true, + "requires": { + "currently-unhandled": "0.4.1", + "signal-exit": "3.0.2" + } + }, + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "dev": true + }, + "lpad-align": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/lpad-align/-/lpad-align-1.1.2.tgz", + "integrity": "sha1-IfYArBwwlcPG5JfuZyce4ISB/p4=", + "dev": true, + "requires": { + "get-stdin": "4.0.1", + "indent-string": "2.1.0", + "longest": "1.0.1", + "meow": "3.7.0" + } + }, + "lru-cache": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", + "dev": true + }, + "lru-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", + "integrity": "sha1-Jzi9nw089PhEkMVzbEhpmsYyzaM=", + "dev": true, + "requires": { + "es5-ext": "0.10.31" + } + }, + "make-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.0.0.tgz", + "integrity": "sha1-l6ARdR6R3YfPre9Ygy67BJNt6Xg=", + "dev": true, + "requires": { + "pify": "2.3.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "make-error": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz", + "integrity": "sha1-Uq06M5zPEM5itAQLcI/nByRLi5Y=", + "dev": true + }, + "make-error-cause": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/make-error-cause/-/make-error-cause-1.2.2.tgz", + "integrity": "sha1-3wOI/NCzeBbf8KX7gQiTl3fcvJ0=", + "dev": true, + "requires": { + "make-error": "1.3.0" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + }, + "map-stream": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", + "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", + "dev": true + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "dev": true + }, + "memoizee": { + "version": "0.3.10", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.3.10.tgz", + "integrity": "sha1-TsoNiu057J0Bf0xcLy9kMvQuXI8=", + "dev": true, + "requires": { + "d": "0.1.1", + "es5-ext": "0.10.31", + "es6-weak-map": "0.1.4", + "event-emitter": "0.3.5", + "lru-queue": "0.1.0", + "next-tick": "0.2.2", + "timers-ext": "0.1.2" + } + }, + "meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", + "dev": true, + "requires": { + "camelcase-keys": "2.1.0", + "decamelize": "1.2.0", + "loud-rejection": "1.6.0", + "map-obj": "1.0.1", + "minimist": "1.2.0", + "normalize-package-data": "2.4.0", + "object-assign": "4.1.1", + "read-pkg-up": "1.0.1", + "redent": "1.0.0", + "trim-newlines": "1.0.0" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + } + } + }, + "merge-stream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", + "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "method-override": { + "version": "2.3.10", + "resolved": "https://registry.npmjs.org/method-override/-/method-override-2.3.10.tgz", + "integrity": "sha1-49r41d7hDdLc59SuiNYrvud0drQ=", + "dev": true, + "requires": { + "debug": "2.6.9", + "methods": "1.1.2", + "parseurl": "1.3.2", + "vary": "1.1.2" + }, + "dependencies": { + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "dev": true + } + } + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" + } + }, + "mime": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", + "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=", + "dev": true + }, + "mime-db": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", + "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=", + "dev": true + }, + "mime-types": { + "version": "2.1.17", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", + "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", + "dev": true, + "requires": { + "mime-db": "1.30.0" + } + }, + "mini-lr": { + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/mini-lr/-/mini-lr-0.1.9.tgz", + "integrity": "sha1-AhmdJzR5U9H9HW297UJh8Yey0PY=", + "dev": true, + "requires": { + "body-parser": "1.14.2", + "debug": "2.6.9", + "faye-websocket": "0.7.3", + "livereload-js": "2.2.2", + "parseurl": "1.3.2", + "qs": "2.2.5" + }, + "dependencies": { + "body-parser": { + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.14.2.tgz", + "integrity": "sha1-EBXLH+LEQ4WCWVgdtTMy+NDPUPk=", + "dev": true, + "requires": { + "bytes": "2.2.0", + "content-type": "1.0.4", + "debug": "2.2.0", + "depd": "1.1.1", + "http-errors": "1.3.1", + "iconv-lite": "0.4.13", + "on-finished": "2.3.0", + "qs": "5.2.0", + "raw-body": "2.1.7", + "type-is": "1.6.15" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "qs": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-5.2.0.tgz", + "integrity": "sha1-qfMRQq9GjLcrJbMBNrokVoNJFr4=", + "dev": true + } + } + }, + "bytes": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz", + "integrity": "sha1-/TVGSkA/b5EXwt42Cez/nK4ABYg=", + "dev": true + }, + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "dev": true + }, + "faye-websocket": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.7.3.tgz", + "integrity": "sha1-zEB0x/Sk39A69U3WXDVLE1EyzhE=", + "dev": true, + "requires": { + "websocket-driver": "0.7.0" + } + }, + "iconv-lite": { + "version": "0.4.13", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", + "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", + "dev": true + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + }, + "qs": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/qs/-/qs-2.2.5.tgz", + "integrity": "sha1-EIirr53MCuWuRbcJ5sa1iIsjkjw=", + "dev": true + } + } + }, + "minimatch": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz", + "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "minimize": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/minimize/-/minimize-1.8.1.tgz", + "integrity": "sha1-o2dK3pPyinX/ojuODzZc3CPWnYs=", + "dev": true, + "requires": { + "argh": "0.1.4", + "async": "1.5.2", + "cli-color": "1.1.0", + "diagnostics": "1.0.1", + "emits": "3.0.0", + "htmlparser2": "3.9.2", + "node-uuid": "1.4.8" + }, + "dependencies": { + "node-uuid": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", + "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=", + "dev": true + } + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + } + } + }, + "morgan": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.6.1.tgz", + "integrity": "sha1-X9gYOYxoGcuiinzWZk8pL+HAu/I=", + "dev": true, + "requires": { + "basic-auth": "1.0.4", + "debug": "2.2.0", + "depd": "1.0.1", + "on-finished": "2.3.0", + "on-headers": "1.0.1" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + } + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "multiparty": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/multiparty/-/multiparty-3.3.2.tgz", + "integrity": "sha1-Nd5oBNwZZD5SSfPT473GyM4wHT8=", + "dev": true, + "requires": { + "readable-stream": "1.1.14", + "stream-counter": "0.2.0" + } + }, + "multipipe": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", + "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", + "dev": true, + "requires": { + "duplexer2": "0.0.2" + } + }, + "nan": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz", + "integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=", + "dev": true + }, + "natives": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz", + "integrity": "sha1-6f+EFBimsux6SV6TmYT3jxY+bjE=", + "dev": true + }, + "negotiator": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.5.3.tgz", + "integrity": "sha1-Jp1cR2gQ7JLtvntsLygxY4T5p+g=", + "dev": true + }, + "next-tick": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-0.2.2.tgz", + "integrity": "sha1-ddpKkn7liH45BliABltzNkE7MQ0=", + "dev": true + }, + "node-gyp": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.6.2.tgz", + "integrity": "sha1-m/vlRWIoYoSDjnUOrAUpWFP6HGA=", + "dev": true, + "requires": { + "fstream": "1.0.11", + "glob": "7.1.2", + "graceful-fs": "4.1.11", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "nopt": "3.0.6", + "npmlog": "4.1.2", + "osenv": "0.1.4", + "request": "2.83.0", + "rimraf": "2.6.2", + "semver": "5.3.0", + "tar": "2.2.1", + "which": "1.3.0" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.3.3", + "path-is-absolute": "1.0.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "semver": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", + "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "dev": true + } + } + }, + "node-notifier": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.1.2.tgz", + "integrity": "sha1-L6nhJgX6EACdRFSdb82KY93g5P8=", + "dev": true, + "requires": { + "growly": "1.3.0", + "semver": "5.4.1", + "shellwords": "0.1.1", + "which": "1.3.0" + }, + "dependencies": { + "semver": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", + "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "dev": true + } + } + }, + "node-sass": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.5.3.tgz", + "integrity": "sha1-0JydEXlkEjnRuX/8YjH9zsU+FWg=", + "dev": true, + "requires": { + "async-foreach": "0.1.3", + "chalk": "1.1.3", + "cross-spawn": "3.0.1", + "gaze": "1.1.2", + "get-stdin": "4.0.1", + "glob": "7.1.2", + "in-publish": "2.0.0", + "lodash.assign": "4.2.0", + "lodash.clonedeep": "4.5.0", + "lodash.mergewith": "4.6.0", + "meow": "3.7.0", + "mkdirp": "0.5.1", + "nan": "2.7.0", + "node-gyp": "3.6.2", + "npmlog": "4.1.2", + "request": "2.83.0", + "sass-graph": "2.2.4", + "stdout-stream": "1.4.0" + }, + "dependencies": { + "cross-spawn": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", + "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", + "dev": true, + "requires": { + "lru-cache": "4.1.1", + "which": "1.3.0" + } + }, + "gaze": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.2.tgz", + "integrity": "sha1-hHIkZ3rbiHDWeSV+0ziP22HkAQU=", + "dev": true, + "requires": { + "globule": "1.2.0" + } + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.3.3", + "path-is-absolute": "1.0.1" + } + }, + "globule": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.0.tgz", + "integrity": "sha1-HcScaCLdnoovoAuiopUAboZkvQk=", + "dev": true, + "requires": { + "glob": "7.1.2", + "lodash": "4.17.4", + "minimatch": "3.0.4" + } + }, + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + }, + "lru-cache": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", + "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + } + } + }, + "node-status-codes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-status-codes/-/node-status-codes-1.0.0.tgz", + "integrity": "sha1-WuVUHQJGRdMqWPzdyc7s6nrjrC8=", + "dev": true + }, + "node.extend": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/node.extend/-/node.extend-1.1.6.tgz", + "integrity": "sha1-p7iCyC1sk6SGOlUEvV3o7IYli5Y=", + "dev": true, + "requires": { + "is": "3.2.1" + } + }, + "nopt": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", + "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "dev": true, + "requires": { + "abbrev": "1.1.1" + } + }, + "normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "dev": true, + "requires": { + "hosted-git-info": "2.5.0", + "is-builtin-module": "1.0.0", + "semver": "4.3.6", + "validate-npm-package-license": "3.0.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "1.1.0" + } + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "dev": true + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "2.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dev": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "num2fraction": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", + "dev": true + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "oauth-sign": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", + "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", + "dev": true + }, + "object-assign": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", + "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", + "dev": true + }, + "object.defaults": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", + "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=", + "dev": true, + "requires": { + "array-each": "1.0.1", + "array-slice": "1.0.0", + "for-own": "1.0.0", + "isobject": "3.0.1" + }, + "dependencies": { + "for-own": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", + "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", + "dev": true, + "requires": { + "for-in": "1.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "object.omit": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "dev": true, + "requires": { + "for-own": "0.1.5", + "is-extendable": "0.1.1" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "dev": true, + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", + "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=", + "dev": true + }, + "once": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", + "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA=", + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "onetime": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", + "dev": true + }, + "optipng-bin": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/optipng-bin/-/optipng-bin-3.1.4.tgz", + "integrity": "sha1-ldNPLEiHBPb9cGBr/qDGWfHZXYQ=", + "dev": true, + "optional": true, + "requires": { + "bin-build": "2.2.0", + "bin-wrapper": "3.0.2", + "logalot": "2.1.0" + } + }, + "orchestrator": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz", + "integrity": "sha1-FOfp4nZPcxX7rBhOUGx6pt+UrX4=", + "dev": true, + "requires": { + "end-of-stream": "0.1.5", + "sequencify": "0.0.7", + "stream-consume": "0.1.0" + } + }, + "ordered-read-streams": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz", + "integrity": "sha1-/VZamvjrRHO6abbtijQ1LLVS8SY=", + "dev": true + }, + "os-filter-obj": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/os-filter-obj/-/os-filter-obj-1.0.3.tgz", + "integrity": "sha1-WRUzDZDs7VV9LZOKMcbdIU2cY60=", + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "dev": true, + "requires": { + "lcid": "1.0.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "osenv": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz", + "integrity": "sha1-Qv5tWVPfBsgGS+bxdsPQWqqjRkQ=", + "dev": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-map": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", + "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==", + "dev": true + }, + "p-pipe": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-pipe/-/p-pipe-1.2.0.tgz", + "integrity": "sha1-SxoROZoRUgpneQ7loMHViB1r7+k=", + "dev": true + }, + "parse-filepath": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.1.tgz", + "integrity": "sha1-FZ1hVdQ5BNFsEO9piRHaHpGWm3M=", + "dev": true, + "requires": { + "is-absolute": "0.2.6", + "map-cache": "0.2.2", + "path-root": "0.1.1" + } + }, + "parse-glob": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", + "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "dev": true, + "requires": { + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" + } + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "1.3.1" + } + }, + "parse-passwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", + "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", + "dev": true + }, + "parseurl": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", + "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=", + "dev": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "dev": true + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, + "requires": { + "pinkie-promise": "2.0.1" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "dev": true + }, + "path-root": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", + "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", + "dev": true, + "requires": { + "path-root-regex": "0.1.2" + } + }, + "path-root-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", + "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=", + "dev": true + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "pause": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/pause/-/pause-0.1.0.tgz", + "integrity": "sha1-68ikqGGf8LioGsFRPDQ0/0af23Q=", + "dev": true + }, + "pause-stream": { + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", + "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", + "dev": true, + "requires": { + "through": "2.3.8" + } + }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", + "dev": true + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "2.0.4" + } + }, + "plur": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", + "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", + "dev": true, + "requires": { + "irregular-plurals": "1.3.0" + } + }, + "pngcrush-bin": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/pngcrush-bin/-/pngcrush-bin-3.1.1.tgz", + "integrity": "sha512-Sb60BVQpIKYRaVVCQ7ZIMAuA4kOFJKj4AeC8KSyVcgSCRNszh+pc87sCTi30WyvxVKsKtSXJNQP4K9sONGxr7Q==", + "dev": true, + "requires": { + "bin-build": "2.2.0", + "bin-wrapper": "3.0.2", + "logalot": "2.1.0" + } + }, + "postcss": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.13.tgz", + "integrity": "sha512-nHsrD1PPTMSJDfU+osVsLtPkSP9YGeoOz4FDLN4r1DW4N5vqL1J+gACzTQHsfwIiWG/0/nV4yCzjTMo1zD8U1g==", + "dev": true, + "requires": { + "chalk": "2.1.0", + "source-map": "0.6.1", + "supports-color": "4.4.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", + "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "dev": true, + "requires": { + "color-convert": "1.9.0" + } + }, + "chalk": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz", + "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.0", + "escape-string-regexp": "1.0.5", + "supports-color": "4.4.0" + } + }, + "supports-color": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", + "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "postcss-value-parser": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", + "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", + "dev": true + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", + "dev": true + }, + "preserve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "dev": true + }, + "pretty-bytes": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-4.0.2.tgz", + "integrity": "sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk=", + "dev": true + }, + "pretty-hrtime": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", + "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", + "dev": true + }, + "private": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.7.tgz", + "integrity": "sha1-aM5eih7woju1cMwoU3tTMqumPvE=", + "dev": true + }, + "process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "dev": true + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + }, + "q": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.0.tgz", + "integrity": "sha1-3QG6ydBtMObyGa7LglPunr3DCPE=", + "dev": true, + "optional": true + }, + "qs": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-4.0.0.tgz", + "integrity": "sha1-wx2bdOwn33XlQ6hseHKO2NRiNgc=", + "dev": true + }, + "random-bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", + "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=", + "dev": true + }, + "randomatic": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", + "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.5" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "1.1.5" + } + } + } + }, + "range-parser": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.3.tgz", + "integrity": "sha1-aHKCNTXGkuLCoBA4Jq/YLC4P8XU=", + "dev": true + }, + "raw-body": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.1.7.tgz", + "integrity": "sha1-rf6s4uT7MJgFgBTQjActzFl1h3Q=", + "dev": true, + "requires": { + "bytes": "2.4.0", + "iconv-lite": "0.4.13", + "unpipe": "1.0.0" + }, + "dependencies": { + "bytes": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.4.0.tgz", + "integrity": "sha1-fZcZb51br39pNeJZhVSe3SpsIzk=", + "dev": true + }, + "iconv-lite": { + "version": "0.4.13", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", + "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", + "dev": true + } + } + }, + "rc": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.1.tgz", + "integrity": "sha1-LgPo5C7kULjLPc5lvhv4l04d/ZU=", + "dev": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.4", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + } + }, + "rcfinder": { + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.9.tgz", + "integrity": "sha1-8+gPOH3fmugK4wpBADKWQuroERU=", + "dev": true, + "requires": { + "lodash.clonedeep": "4.5.0" + } + }, + "rcloader": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/rcloader/-/rcloader-0.2.2.tgz", + "integrity": "sha1-WNIpi0YtC5v9ITPSoex0+9cFxxc=", + "dev": true, + "requires": { + "lodash.assign": "4.2.0", + "lodash.isobject": "3.0.2", + "lodash.merge": "4.6.0", + "rcfinder": "0.1.9" + } + }, + "read-all-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/read-all-stream/-/read-all-stream-3.1.0.tgz", + "integrity": "sha1-NcPhd/IHjveJ7kv6+kNzB06u9Po=", + "dev": true, + "requires": { + "pinkie-promise": "2.0.1", + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, + "requires": { + "load-json-file": "1.1.0", + "normalize-package-data": "2.4.0", + "path-type": "1.1.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, + "requires": { + "find-up": "1.1.2", + "read-pkg": "1.1.0" + } + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "dev": true, + "requires": { + "resolve": "1.4.0" + } + }, + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", + "dev": true, + "requires": { + "indent-string": "2.1.0", + "strip-indent": "1.0.1" + } + }, + "regenerator-runtime": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz", + "integrity": "sha512-/aA0kLeRb5N9K0d4fw7ooEbI+xDe+DKD499EQqygGqeS8N3xto15p09uY2xj7ixP81sNPXvRLnAQIqdVStgb1A==", + "dev": true + }, + "regex-cache": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", + "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "dev": true, + "requires": { + "is-equal-shallow": "0.1.3" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "1.0.2" + } + }, + "replace-ext": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", + "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", + "dev": true + }, + "request": { + "version": "2.83.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz", + "integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==", + "dev": true, + "requires": { + "aws-sign2": "0.7.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.3.1", + "har-validator": "5.0.3", + "hawk": "6.0.2", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "oauth-sign": "0.8.2", + "performance-now": "2.1.0", + "qs": "6.5.1", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.3", + "tunnel-agent": "0.6.0", + "uuid": "3.1.0" + }, + "dependencies": { + "qs": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "resolve": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz", + "integrity": "sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==", + "dev": true, + "requires": { + "path-parse": "1.0.5" + } + }, + "resolve-dir": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz", + "integrity": "sha1-shklmlYC+sXFxJatiUpujMQwJh4=", + "dev": true, + "requires": { + "expand-tilde": "1.2.2", + "global-modules": "0.2.3" + } + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true + }, + "response-time": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/response-time/-/response-time-2.3.2.tgz", + "integrity": "sha1-/6cbq5UtYvfB1Jt0NDVfvGjf/Fo=", + "dev": true, + "requires": { + "depd": "1.1.1", + "on-headers": "1.0.1" + }, + "dependencies": { + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "dev": true + } + } + }, + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "dev": true, + "requires": { + "glob": "7.1.2" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.3.3", + "path-is-absolute": "1.0.1" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + } + } + }, + "rndm": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/rndm/-/rndm-1.2.0.tgz", + "integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w=", + "dev": true + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", + "dev": true + }, + "sass-graph": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", + "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", + "dev": true, + "requires": { + "glob": "7.1.2", + "lodash": "4.17.4", + "scss-tokenizer": "0.2.3", + "yargs": "7.1.0" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.3.3", + "path-is-absolute": "1.0.1" + } + }, + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + } + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true, + "optional": true + }, + "scss-tokenizer": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", + "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", + "dev": true, + "requires": { + "js-base64": "2.3.2", + "source-map": "0.4.4" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "seek-bzip": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz", + "integrity": "sha1-z+kXyz0nS8/6x5J1ivUxc+sfq9w=", + "dev": true, + "requires": { + "commander": "2.8.1" + } + }, + "semver": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", + "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", + "dev": true + }, + "semver-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-1.0.0.tgz", + "integrity": "sha1-kqSWkGX5xwxpR1PVUkj8aPj2Usk=", + "dev": true + }, + "semver-truncate": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-1.1.2.tgz", + "integrity": "sha1-V/Qd5pcHpicJp+AQS6IRcQnqR+g=", + "dev": true, + "requires": { + "semver": "5.4.1" + }, + "dependencies": { + "semver": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", + "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "dev": true + } + } + }, + "send": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.13.2.tgz", + "integrity": "sha1-dl52B8gFVFK7pvCwUllTUJhgNt4=", + "dev": true, + "requires": { + "debug": "2.2.0", + "depd": "1.1.1", + "destroy": "1.0.4", + "escape-html": "1.0.3", + "etag": "1.7.0", + "fresh": "0.3.0", + "http-errors": "1.3.1", + "mime": "1.3.4", + "ms": "0.7.1", + "on-finished": "2.3.0", + "range-parser": "1.0.3", + "statuses": "1.2.1" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "dev": true + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + }, + "statuses": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz", + "integrity": "sha1-3e1FzBglbVHtQK7BQkidXGECbSg=", + "dev": true + } + } + }, + "sequencify": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz", + "integrity": "sha1-kM/xnQLgcCf9dn9erT57ldHnOAw=", + "dev": true + }, + "serve-favicon": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.3.2.tgz", + "integrity": "sha1-3UGeJo3gEqtysxnTN/IQUBP5OB8=", + "dev": true, + "requires": { + "etag": "1.7.0", + "fresh": "0.3.0", + "ms": "0.7.2", + "parseurl": "1.3.2" + }, + "dependencies": { + "ms": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", + "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "dev": true + } + } + }, + "serve-index": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.7.3.tgz", + "integrity": "sha1-egV/xu4o3GP2RWbl+lexEahq7NI=", + "dev": true, + "requires": { + "accepts": "1.2.13", + "batch": "0.5.3", + "debug": "2.2.0", + "escape-html": "1.0.3", + "http-errors": "1.3.1", + "mime-types": "2.1.17", + "parseurl": "1.3.2" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + } + } + }, + "serve-static": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.10.3.tgz", + "integrity": "sha1-zlpuzTEB/tXsCYJ9rCKpwpv7BTU=", + "dev": true, + "requires": { + "escape-html": "1.0.3", + "parseurl": "1.3.2", + "send": "0.13.2" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-immediate-shim": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", + "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "shelljs": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", + "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=", + "dev": true + }, + "shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true + }, + "sigmund": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", + "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", + "dev": true + }, + "sntp": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.0.2.tgz", + "integrity": "sha1-UGQRDwr4X3z9t9a2ekACjOUrSys=", + "dev": true, + "requires": { + "hoek": "4.2.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-resolve": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.3.1.tgz", + "integrity": "sha1-YQ9hIqRFuN1RU1oqcbeD38Ekh2E=", + "dev": true, + "requires": { + "atob": "1.1.3", + "resolve-url": "0.2.1", + "source-map-url": "0.3.0", + "urix": "0.1.0" + } + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "source-map-url": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.3.0.tgz", + "integrity": "sha1-fsrxO1e80J2opAxdJp2zN5nUqvk=", + "dev": true + }, + "sparkles": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.0.tgz", + "integrity": "sha1-Gsu/tZJDbRC76PeFt8xvgoFQEsM=", + "dev": true + }, + "spdx-correct": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", + "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", + "dev": true, + "requires": { + "spdx-license-ids": "1.2.2" + } + }, + "spdx-expression-parse": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", + "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", + "dev": true + }, + "spdx-license-ids": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", + "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", + "dev": true + }, + "split": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", + "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", + "dev": true, + "requires": { + "through": "2.3.8" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true, + "optional": true + }, + "squeak": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/squeak/-/squeak-1.3.0.tgz", + "integrity": "sha1-MwRQN7ZDiLVnZ0uEMiplIQc5FsM=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "console-stream": "0.1.1", + "lpad-align": "1.1.2" + } + }, + "sshpk": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", + "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", + "dev": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + } + }, + "stat-mode": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-0.2.2.tgz", + "integrity": "sha1-5sgLYjEj19gM8TLOU480YokHJQI=", + "dev": true + }, + "statuses": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", + "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", + "dev": true + }, + "stdout-stream": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz", + "integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "stream-combiner": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", + "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", + "dev": true, + "requires": { + "duplexer": "0.1.1" + } + }, + "stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", + "dev": true, + "requires": { + "duplexer2": "0.1.4", + "readable-stream": "2.3.3" + }, + "dependencies": { + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "stream-consume": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz", + "integrity": "sha1-pB6tGm1ggc63n2WwYZAbbY89HQ8=", + "dev": true + }, + "stream-counter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/stream-counter/-/stream-counter-0.2.0.tgz", + "integrity": "sha1-3tJmVWMZyLDiIoErnPOyb6fZR94=", + "dev": true, + "requires": { + "readable-stream": "1.1.14" + } + }, + "stream-shift": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "dev": true + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + }, + "stringstream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", + "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-bom": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-1.0.0.tgz", + "integrity": "sha1-hbiGLzhEtabV7IRnqTWYFzo295Q=", + "dev": true, + "requires": { + "first-chunk-stream": "1.0.0", + "is-utf8": "0.2.1" + } + }, + "strip-bom-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz", + "integrity": "sha1-5xRDmFd9Uaa+0PoZlPoF9D/ZiO4=", + "dev": true, + "requires": { + "first-chunk-stream": "1.0.0", + "strip-bom": "2.0.0" + }, + "dependencies": { + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + } + } + }, + "strip-bom-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", + "integrity": "sha1-5SEekiQ2n7uB1jOi8ABE3IztrZI=", + "dev": true + }, + "strip-dirs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-1.1.1.tgz", + "integrity": "sha1-lgu9EoeETzl1pFWKoQOoJV4kVqA=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "get-stdin": "4.0.1", + "is-absolute": "0.1.7", + "is-natural-number": "2.1.1", + "minimist": "1.2.0", + "sum-up": "1.0.3" + }, + "dependencies": { + "is-absolute": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz", + "integrity": "sha1-hHSREZ/MtftDYhfMc39/qtUPYD8=", + "dev": true, + "requires": { + "is-relative": "0.1.3" + } + }, + "is-relative": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.1.3.tgz", + "integrity": "sha1-kF/uiuhvRbPsYUvDwVyGnfCHboI=", + "dev": true + } + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", + "dev": true, + "requires": { + "get-stdin": "4.0.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "strip-outer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.0.tgz", + "integrity": "sha1-qsC6YNLpDF1PJ1/Yhp/ZotMQ/7g=", + "dev": true, + "requires": { + "escape-string-regexp": "1.0.5" + } + }, + "sum-up": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sum-up/-/sum-up-1.0.3.tgz", + "integrity": "sha1-HGYfZnBX9jvLeHWqFDi8FiUlFW4=", + "dev": true, + "requires": { + "chalk": "1.1.3" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + }, + "svgo": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-0.7.2.tgz", + "integrity": "sha1-n1dyQTlSE1xv779Ar+ak+qiLS7U=", + "dev": true, + "optional": true, + "requires": { + "coa": "1.0.4", + "colors": "1.1.2", + "csso": "2.3.2", + "js-yaml": "3.7.0", + "mkdirp": "0.5.1", + "sax": "1.2.4", + "whet.extend": "0.9.9" + } + }, + "tar": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", + "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "dev": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + } + }, + "tar-stream": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.5.4.tgz", + "integrity": "sha1-NlSc8E7RrumyowwBQyUiONr5QBY=", + "dev": true, + "requires": { + "bl": "1.2.1", + "end-of-stream": "1.4.0", + "readable-stream": "2.3.3", + "xtend": "4.0.1" + }, + "dependencies": { + "end-of-stream": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.0.tgz", + "integrity": "sha1-epDYM+/abPpurA9JSduw+tOmMgY=", + "dev": true, + "requires": { + "once": "1.4.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "temp-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-1.0.0.tgz", + "integrity": "sha1-CnwOom06Oa+n4OvqnB/AvE2qAR0=", + "dev": true + }, + "tempfile": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-2.0.0.tgz", + "integrity": "sha1-awRGhWqbERTRhW/8vlCczLCXcmU=", + "dev": true, + "requires": { + "temp-dir": "1.0.0", + "uuid": "3.1.0" + } + }, + "ternary-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ternary-stream/-/ternary-stream-2.0.1.tgz", + "integrity": "sha1-Bk5Im0tb9gumpre8fy9cJ07Pgmk=", + "dev": true, + "requires": { + "duplexify": "3.5.1", + "fork-stream": "0.0.4", + "merge-stream": "1.0.1", + "through2": "2.0.3" + } + }, + "text-hex": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-0.0.0.tgz", + "integrity": "sha1-V4+8haapJjbkLdF7QdAhjM6esrM=", + "dev": true + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "through2": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", + "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "dev": true, + "requires": { + "readable-stream": "2.3.3", + "xtend": "4.0.1" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "through2-concurrent": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/through2-concurrent/-/through2-concurrent-1.1.1.tgz", + "integrity": "sha1-EctOpMnjG8puTB5tukjRxyjDUks=", + "dev": true, + "requires": { + "through2": "2.0.3" + } + }, + "through2-filter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-2.0.0.tgz", + "integrity": "sha1-YLxVoNrLdghdsfna6Zq0P4PWIuw=", + "dev": true, + "requires": { + "through2": "2.0.3", + "xtend": "4.0.1" + } + }, + "tildify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz", + "integrity": "sha1-3OwD9V3Km3qj5bBPIYF+tW5jWIo=", + "dev": true, + "requires": { + "os-homedir": "1.0.2" + } + }, + "time-stamp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", + "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", + "dev": true + }, + "timed-out": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-3.1.3.tgz", + "integrity": "sha1-lYYL/MXHbCd/j4Mm/Q9bLiDrohc=", + "dev": true + }, + "timers-ext": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.2.tgz", + "integrity": "sha1-YcxHp2wavTGV8UUn+XjViulMUgQ=", + "dev": true, + "requires": { + "es5-ext": "0.10.31", + "next-tick": "1.0.0" + }, + "dependencies": { + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "dev": true + } + } + }, + "tiny-lr": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-0.2.1.tgz", + "integrity": "sha1-s/26gC5dVqM8L28QeUsy5Hescp0=", + "dev": true, + "requires": { + "body-parser": "1.14.2", + "debug": "2.2.0", + "faye-websocket": "0.10.0", + "livereload-js": "2.2.2", + "parseurl": "1.3.2", + "qs": "5.1.0" + }, + "dependencies": { + "body-parser": { + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.14.2.tgz", + "integrity": "sha1-EBXLH+LEQ4WCWVgdtTMy+NDPUPk=", + "dev": true, + "requires": { + "bytes": "2.2.0", + "content-type": "1.0.4", + "debug": "2.2.0", + "depd": "1.1.1", + "http-errors": "1.3.1", + "iconv-lite": "0.4.13", + "on-finished": "2.3.0", + "qs": "5.2.0", + "raw-body": "2.1.7", + "type-is": "1.6.15" + }, + "dependencies": { + "qs": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-5.2.0.tgz", + "integrity": "sha1-qfMRQq9GjLcrJbMBNrokVoNJFr4=", + "dev": true + } + } + }, + "bytes": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz", + "integrity": "sha1-/TVGSkA/b5EXwt42Cez/nK4ABYg=", + "dev": true + }, + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "dev": true + }, + "iconv-lite": { + "version": "0.4.13", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", + "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", + "dev": true + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true + }, + "qs": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-5.1.0.tgz", + "integrity": "sha1-TZMuXH6kEcynajEtOaYGIA/VDNk=", + "dev": true + } + } + }, + "to-absolute-glob": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-0.1.1.tgz", + "integrity": "sha1-HN+kcqnvUMI57maZm2YsoOs5k38=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1" + } + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + }, + "tough-cookie": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", + "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", + "dev": true, + "requires": { + "punycode": "1.4.1" + } + }, + "trim-newlines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", + "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", + "dev": true + }, + "trim-repeated": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", + "integrity": "sha1-42RqLqTokTEr9+rObPsFOAvAHCE=", + "dev": true, + "requires": { + "escape-string-regexp": "1.0.5" + } + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "tsscmp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", + "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", + "dev": true + }, + "tunnel-agent": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", + "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", + "dev": true + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true, + "optional": true + }, + "type-is": { + "version": "1.6.15", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", + "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", + "dev": true, + "requires": { + "media-typer": "0.3.0", + "mime-types": "2.1.17" + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "uglify-js": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.1.3.tgz", + "integrity": "sha512-5ZUOgufCHjN2mBBLfz63UtWTP6va2sSzBpNCM+/iqI6RnPzEhANmB0EKiKBYdQbc3v7KeomXJ2DJx0Xq9gvUvA==", + "dev": true, + "requires": { + "commander": "2.11.0", + "source-map": "0.5.7" + }, + "dependencies": { + "commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "uid-safe": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.4.tgz", + "integrity": "sha1-Otbzg2jG1MjHXsF2I/t5qh0HHYE=", + "dev": true, + "requires": { + "random-bytes": "1.0.0" + } + }, + "unc-path-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", + "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=", + "dev": true + }, + "unique-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-1.0.0.tgz", + "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", + "dev": true + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "dev": true + }, + "unzip-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-1.0.2.tgz", + "integrity": "sha1-uYTwh3/AqJwsdzzB73tbIytbBv4=", + "dev": true + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true + }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "dev": true, + "requires": { + "prepend-http": "1.0.4" + } + }, + "url-regex": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/url-regex/-/url-regex-3.2.0.tgz", + "integrity": "sha1-260eDJ4p4QXdCx8J9oYvf9tIJyQ=", + "dev": true, + "requires": { + "ip-regex": "1.0.3" + } + }, + "user-home": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", + "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=", + "dev": true + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "utils-merge": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz", + "integrity": "sha1-ApT7kiu5N1FTVBxPcJYjHyh8ivg=", + "dev": true + }, + "uuid": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", + "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==", + "dev": true + }, + "v8flags": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", + "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", + "dev": true, + "requires": { + "user-home": "1.1.1" + } + }, + "vali-date": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/vali-date/-/vali-date-1.0.0.tgz", + "integrity": "sha1-G5BKWWCfsyjvB4E4Qgk09rhnCaY=", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", + "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", + "dev": true, + "requires": { + "spdx-correct": "1.0.2", + "spdx-expression-parse": "1.0.4" + } + }, + "vary": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.0.1.tgz", + "integrity": "sha1-meSYFWaihhGN+yuBc1ffeZM3bRA=", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + } + }, + "vhost": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/vhost/-/vhost-3.0.2.tgz", + "integrity": "sha1-L7HezUxGaqiLD5NBrzPcGv8keNU=", + "dev": true + }, + "vinyl": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", + "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", + "dev": true, + "requires": { + "clone": "1.0.2", + "clone-stats": "0.0.1", + "replace-ext": "0.0.1" + } + }, + "vinyl-assign": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/vinyl-assign/-/vinyl-assign-1.2.1.tgz", + "integrity": "sha1-TRmIkbVRWRHXcajNnFSApGoHSkU=", + "dev": true, + "requires": { + "object-assign": "4.1.1", + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "vinyl-fs": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-0.3.14.tgz", + "integrity": "sha1-mmhRzhysHBzqX+hsCTHWIMLPqeY=", + "dev": true, + "requires": { + "defaults": "1.0.3", + "glob-stream": "3.1.18", + "glob-watcher": "0.0.6", + "graceful-fs": "3.0.11", + "mkdirp": "0.5.1", + "strip-bom": "1.0.0", + "through2": "0.6.5", + "vinyl": "0.4.6" + }, + "dependencies": { + "clone": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", + "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "4.0.1" + } + }, + "vinyl": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", + "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", + "dev": true, + "requires": { + "clone": "0.2.0", + "clone-stats": "0.0.1" + } + } + } + }, + "vinyl-sourcemaps-apply": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz", + "integrity": "sha1-q2VJ1h0XLCsbh75cUI0jnI74dwU=", + "dev": true, + "requires": { + "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "ware": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ware/-/ware-1.3.0.tgz", + "integrity": "sha1-0bFPOdLiy0q4xAmPdW/ksWTkc9Q=", + "dev": true, + "requires": { + "wrap-fn": "0.1.5" + } + }, + "websocket-driver": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz", + "integrity": "sha1-DK+dLXVdk67gSdS90NP+LMoqJOs=", + "dev": true, + "requires": { + "http-parser-js": "0.4.9", + "websocket-extensions": "0.1.2" + } + }, + "websocket-extensions": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.2.tgz", + "integrity": "sha1-Dhh4HeYpoYMIzhSBZQ9n/6JpOl0=", + "dev": true + }, + "whet.extend": { + "version": "0.9.9", + "resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz", + "integrity": "sha1-+HfVv2SMl+WqVC+twW1qJZucEaE=", + "dev": true, + "optional": true + }, + "which": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", + "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "dev": true, + "requires": { + "isexe": "2.0.0" + } + }, + "which-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", + "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", + "dev": true + }, + "wide-align": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", + "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", + "dev": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1" + } + }, + "wrap-fn": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/wrap-fn/-/wrap-fn-0.1.5.tgz", + "integrity": "sha1-8htuQQFv9KfjFyDbxjoJAWvfmEU=", + "dev": true, + "requires": { + "co": "3.1.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true + }, + "yargs": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", + "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", + "dev": true, + "requires": { + "camelcase": "3.0.0", + "cliui": "3.2.0", + "decamelize": "1.2.0", + "get-caller-file": "1.0.2", + "os-locale": "1.4.0", + "read-pkg-up": "1.0.1", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "1.0.2", + "which-module": "1.0.0", + "y18n": "3.2.1", + "yargs-parser": "5.0.0" + }, + "dependencies": { + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "dev": true + } + } + }, + "yargs-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", + "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "dev": true, + "requires": { + "camelcase": "3.0.0" + }, + "dependencies": { + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "dev": true + } + } + }, + "yauzl": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.8.0.tgz", + "integrity": "sha1-eUUK/yKyqcWkHvVOAtuQfM+/nuI=", + "dev": true, + "requires": { + "buffer-crc32": "0.2.13", + "fd-slicer": "1.0.1" + } + } + } +} diff --git a/Ignia.Topics.Editor.Mvc/package.json b/Ignia.Topics.Editor.Mvc/package.json new file mode 100644 index 00000000..66f2d3cf --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/package.json @@ -0,0 +1,54 @@ +{ + "name": "gulp-workflow", + "version": "0.0.1", + "description": "Ignia's default front-end workflow using Gulp, Bower, and Sass", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/Ignia/gulp-workflow.git" + }, + "keywords": [ + "Gulp", + "Bower", + "Sass", + "workflow", + "build", + "process", + "boilerplate", + "Ignia" + ], + "author": "Ignia, LLC", + "license": "MIT", + "bugs": { + "url": "https://github.com/Ignia/gulp-workflow/issues" + }, + "homepage": "https://github.com/Ignia/gulp-workflow", + "devDependencies": { + "bower": "^1.8.0", + "del": "^3.0.0", + "gulp": "^3.9.1", + "gulp-autoprefixer": "^4.0.0", + "gulp-babel": "^6.1.2", + "gulp-clean-css": "^3.7.0", + "gulp-concat": "^2.6.1", + "gulp-connect": "^5.0.0", + "gulp-if": "^2.0.2", + "gulp-imagemin": "^3.1.1", + "gulp-jshint": "^2.0.4", + "gulp-jsonminify": "^1.0.0", + "gulp-livereload": "^3.8.1", + "gulp-minify-html": "^1.0.6", + "gulp-notify": "^3.0.0", + "gulp-sass": "^3.1.0", + "gulp-sass-unicode": "^1.0.1", + "gulp-sourcemaps": "^2.4.1", + "gulp-uglify": "^3.0.0", + "gulp-util": "^3.0.8", + "imagemin-pngcrush": "^5.0.0", + "jshint": "^2.9.5", + "jsonminify": "^0.4.1" + } +} From 074ab9547f096d1af2eee7471e2aea34c72ee41e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 11:06:15 -0700 Subject: [PATCH 087/637] Implemented basic stylesheet --- .../Areas/Editor/Shared/Styles/Stylesheet.css | 11 +++++++++++ .../Views/Editor/EditorTemplates/_Layout.cshtml | 2 +- .../Areas/Editor/Views/Shared/_Layout.cshtml | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css new file mode 100644 index 00000000..de9eb5b8 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css @@ -0,0 +1,11 @@ +body { + font-family: sans-serif; + font-size: 14px; +} + +.attribute label { + display: block; + margin-top: 15px; + font-size: 1.2em; +} + diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml index 655ee4ec..6bc10fa8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml @@ -4,7 +4,7 @@
-

@Html.LabelFor(m => m.Value, Model.Definition.Title)

+ @Html.LabelFor(m => m.Value, Model.Definition.Title)

@Model.Definition.Description

diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 264682dc..9a844f43 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -4,6 +4,7 @@ @ViewBag.Title - Ignia OnTopic + From 5358bd8bb167a4283859289a2fed9d65ceeb874a Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 12:27:25 -0700 Subject: [PATCH 088/637] Incorporated primary JavaScripts --- .../Editor/Shared/Scripts/Common.Functions.js | 103 ++++++++++++++++++ .../Areas/Editor/Shared/Scripts/Modal.js | 49 +++++++++ .../Shared/Scripts/TokenizedTopicList.js | 94 ++++++++++++++++ .../Areas/Editor/Shared/Scripts/TopicList.js | 49 +++++++++ .../Areas/Editor/Shared/Scripts/TreeView.js | 102 +++++++++++++++++ .../Scripts/Window.Primary.Functions.js | 46 ++++++++ 6 files changed, 443 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Common.Functions.js create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Modal.js create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TokenizedTopicList.js create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TopicList.js create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TreeView.js create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Common.Functions.js b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Common.Functions.js new file mode 100644 index 00000000..be21eee5 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Common.Functions.js @@ -0,0 +1,103 @@ +(function($) { + 'use strict'; + + // Decorate sidebar form fields (e.g., the add topic selection) so that Are-You-Sure will ignore them + $('.Sidebar select').addClass('ays-ignore'); + + // Enable dirty form checking; warn users if navigating away from page without saving + $('form').areYouSure({ + 'message' : 'You have made changes to this topic without saving.' + }); + + // Make sure hidden WYSIWYG textarea fields trigger the form check, but only if not submitting + var isFormSubmitting = false; + $('form').submit(function() { + isFormSubmitting = true; + }); + $(window).on('beforeunload', function() { + if (!isFormSubmitting) { + for (var i in CKEDITOR.instances) { + if(CKEDITOR.instances[i].checkDirty()) { + $('form').trigger('checkform.areYouSure'); + return 'You have made changes to this topic without saving.'; + } + } + } + }); + + // Modal close triggers (needed for closing the modal from within the iframe) + window.closeModal = function(action, key) { + $('#EditorModal').modal('hide'); + }; + $('#ModalCloseButton').on('click', function(e) { + window.parent.closeModal('canceled', ''); + }); + + // Set initial Display Groups tab content pane as active tab + $('.tab-content div.tab-pane:first-child').addClass('active'); + $('[id*="EditorModal"]').on('shown.bs.modal', function(e) { + $('.tab-content div.tab-pane:first-child').addClass('active'); + }); + + // Confirm version rollback + $('#VersionsDropdown ul li a').on('click', function(e) { + var selectedVersion = $(this).text(); + if (!confirmRollback(selectedVersion)) return false; + }); + + // Modal close button handling + $('#ModalCloseButton').on('click', function(e) { + $('[id*="EditorModal"]').modal('hide'); + }); + + // Initialize tooltips for field descriptions + $('.Content-Description').tooltip({ + placement : 'right', + //delay : { 'show': 25, 'hide': 100 }, + viewport : '#DisplayGroupTabsContent' + }); + + // Initialize tooltip for inherited topic note + $('a.alert-link').tooltip({ + placement : 'bottom' + }); + +})(jQuery); + +// Set modal properties and open the modal +function initEditorModal(title, targetUrl, onCloseFunction) { + + var + $editorModal = $('#EditorModal'), + $modalTitle = $('#ModalTitle'), + $editorFrame = $('#EditorFrame'); + + // Set modal title + if ($modalTitle && title.length > 0) { + $modalTitle.html(title); + } + + // Set modal iframe source + if ($editorFrame && targetUrl.length > 0) { + $editorFrame.attr('src', targetUrl); + } + + // Open modal + if ($editorModal) { + $editorModal.modal({ + backdrop : 'static', + keyboard : false + }); + }; + +}; + +// Passthrough function for evaluating/setting the Topic Key value based on the Title value +function getKeyValue(input) { + return input.replace(/[^A-Za-z0-9]+/g, ""); +} + +// Confirm version rollback +function confirmRollback(versionText) { + return confirm('Are you sure you roll back this Topic to its ' + versionText + ' version? All data entered for this Topic will be reverted to their state as of this version.'); +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Modal.js b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Modal.js new file mode 100644 index 00000000..91d3cf15 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Modal.js @@ -0,0 +1,49 @@ +(function($) { + +//Set modal properties and open the modal + initEditorModal = function(namespace, title, targetUrl, onCloseFunction) { + + alert('initEditorModal fired:'); + console.log('namespace: ' + namespace + ' - title: ' + title + ' - targetUrl: ' + targetUrl + ' - onCloseFunction: ' + onCloseFunction); + + var $editorModal = $('#EditorModal' + namespace), + $modalTitle = $('#ModalTitle' + namespace), + $editorFrame = $('#EditorFrame' + namespace); + //Set modal title + if ($modalTitle && title.length > 0) { + $modalTitle.html(title); + } + //Set modal iframe source + if ($editorFrame && targetUrl.length > 0) { + $editorFrame.attr('src', targetUrl); + } + //Open modal + if ($editorModal) { + $editorModal.modal({ + backdrop : 'static', + keyboard : false + }); + }; + + }; + +//Modal close triggers (needed for closing the modal from within the iframe) + window.closeModal = function(action, key) { + $('#EditorModal' + key).modal('hide'); + }; + $('#ModalCloseButton').on('click', function(e) { + window.parent.closeModal('canceled', ''); + }); + +//Set initial Display Groups tab content pane as active tab + $('.tab-content div.tab-pane:first-child').addClass('active'); + $('[id*="EditorModal"]').on('shown.bs.modal', function(e) { + $('.tab-content div.tab-pane:first-child').addClass('active'); + }); + +//Modal close button handling + $('#ModalCloseButton').on('click', function(e) { + $('[id*="EditorModal"]').modal('hide'); + }); + + })(jQuery); \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TokenizedTopicList.js b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TokenizedTopicList.js new file mode 100644 index 00000000..16c3077c --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TokenizedTopicList.js @@ -0,0 +1,94 @@ +/*============================================================================================================================== +| TOKENIZED TOPIC LIST +| +| Author Katherine Trunkey, Ignia LLC (Katherine.Trunkey@ignia.com) +| Client Ignia +| Project Topics Editor +| +| Purpose Provides a "class" wrapper with associated properties set as part of its constructor, as well the +| getTokenizedTopics() prototypical extension method, used for instantiating the Token-Input plugin. +| +>=============================================================================================================================== +| Revisions Date Author Comments +| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +| 04.11.15 Katherine Trunkey Moved Token-Input instantiation out of inline client-side code +| 04.14.15 Katherine Trunkey Refactored to TokenizedTopics class structure +\-----------------------------------------------------------------------------------------------------------------------------*/ + + 'use strict'; + +/*============================================================================================================================== +| TOKENIZED TOPICS CLASS +\-----------------------------------------------------------------------------------------------------------------------------*/ + var TokenizedTopics = function() { + + /*---------------------------------------------------------------------------------------------------------------------------- + | Constructor/internal properties + \---------------------------------------------------------------------------------------------------------------------------*/ + this.selector = ''; + this.scope = ''; + this.attributeName = ''; + this.attributeValue = ''; + this.searchProperty = ''; + this.queryParameter = ''; + this.selectedTopics = ''; + this.resultLimit = ''; + this.tokenLimit = 100; + this.isAutoPostBack = false; + + }; + +/*============================================================================================================================== +| GET TOKENIZED TOPICS (TOKENIZED TOPICS EXTENSION METHOD) +\-----------------------------------------------------------------------------------------------------------------------------*/ + TokenizedTopics.prototype.getTokenizedTopics = function() { + + /*---------------------------------------------------------------------------------------------------------------------------- + | Scope TokenizedTopics properties to local variable + \---------------------------------------------------------------------------------------------------------------------------*/ + var self = this; + + /*---------------------------------------------------------------------------------------------------------------------------- + | Build Topics.Json.aspx call URL + \---------------------------------------------------------------------------------------------------------------------------*/ + var topicsUrl = '/!Admin/Topics/Client/Topics.Json.aspx' + + '?ShowRoot=true' + + '&FlattenStructure=true' + + '&UsePartialMatch=true' + + '&AttributeName=' + self.attributeName + + '&AttributeValue=' + self.attributeValue + + '&Scope=' + self.scope + + '&ResultLimit=' + self.resultLimit; + + /*---------------------------------------------------------------------------------------------------------------------------- + | Initialize Token-Input with options set on TokenizedTopics + \---------------------------------------------------------------------------------------------------------------------------*/ + $(self.selector).tokenInput(topicsUrl, { + propertyToSearch : self.searchProperty, + queryParam : self.queryParameter, + minChars : 3, + enableHTML : true, + tokenLimit : self.tokenLimit, + preventDuplicates : true, + prePopulate : self.selectedTopics, + onAdd : function(item) { + var eventTarget = self.selector.substring(1); + var eventArgument = $(self.selector).val(); + if (self.isAutoPostBack) __doPostBack(eventTarget, eventArgument); + }, + resultsFormatter : function(item) { + var breadcrumbs = item.path; + breadcrumbs = breadcrumbs.substring(0, breadcrumbs.indexOf(item.key)).replace(new RegExp(':', 'g'), ': '); + breadcrumbs = breadcrumbs.replace(new RegExp('([a-z])([A-Z])', 'g'), '$1 $2'); + if (breadcrumbs.indexOf('Root:') >= 0) { + breadcrumbs = breadcrumbs.substring(breadcrumbs.indexOf('Root:') + 5); + } + return '' + + '
  • ' + + ' ' + breadcrumbs + '' + + '
    ' + item.text + '
    ' + + '
  • '; + } + }); + + }; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TopicList.js new file mode 100644 index 00000000..75b4715b --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TopicList.js @@ -0,0 +1,49 @@ +(function($) { + +//Set modal properties and open the modal + initEditorModal = function(namespace, title, targetUrl, onCloseFunction) { + + console.log('initEditorModal fired:'); + console.log('namespace: ' + namespace + ' - title: ' + title + ' - targetUrl: ' + targetUrl + ' - onCloseFunction: ' + onCloseFunction); + + var $editorModal = $('#EditorModal' + namespace), + $modalTitle = $('#ModalTitle' + namespace), + $editorFrame = $('#EditorFrame' + namespace); + //Set modal title + if ($modalTitle && title.length > 0) { + $modalTitle.html(title); + } + //Set modal iframe source + if ($editorFrame && targetUrl.length > 0) { + $editorFrame.attr('src', targetUrl); + } + //Open modal + if ($editorModal) { + $editorModal.modal({ + backdrop : 'static', + keyboard : false + }); + }; + + }; + +//Modal close triggers (needed for closing the modal from within the iframe) + window.closeModal = function(action, key) { + $('#EditorModal' + key).modal('hide'); + }; + $('#ModalCloseButton').on('click', function(e) { + window.parent.closeModal('canceled', ''); + }); + +//Set initial Display Groups tab content pane as active tab + $('.tab-content div.tab-pane:first-child').addClass('active'); + $('[id*="EditorModal"]').on('shown.bs.modal', function(e) { + $('.tab-content div.tab-pane:first-child').addClass('active'); + }); + +//Modal close button handling + $('#ModalCloseButton').on('click', function(e) { + $('[id*="EditorModal"]').modal('hide'); + }); + + })(jQuery); \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TreeView.js b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TreeView.js new file mode 100644 index 00000000..e4586dc3 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TreeView.js @@ -0,0 +1,102 @@ +var tree; +var rootTopicId = ''; + +Ext.onReady(function(){ + var Tree = Ext.tree; + + var currentTopic = "<%= PageTopic.FullName %>"; + var currentPosition = currentTopic.indexOf(":", 11); + +//track what nodes are moved + var oldPosition = null; + var oldNextSibling = null; + + tree = new Tree.TreePanel({ + useArrows : true, + autoScroll : true, + animate : true, + enableDD : true, + containerScroll : true, + border : false, + baseCls : 'TreeView', + dataUrl : 'Topics.Json.aspx?ShowRoot=false', + root : new Ext.tree.AsyncTreeNode({ + text : 'Web', + draggable : false, + id : rootTopicId + }), + rootVisible : false, + listeners : { + click : function(n) { + //location.href = n.attributes.path.replace(/:/g, "/").replace(RootTopic + "/", "/Edit/"); + location.href = "?Path=" + n.attributes.path; + }, + load : function(n) { + if (!n) return; + if (currentPosition < 0) { + currentPosition = currentTopic.length; + } + var currentNode = n; + if (currentPosition <= currentTopic.length && currentPosition >= 0) { + currentNode = currentNode.findChild("path", currentTopic.substring(0, currentPosition)); + if (currentPosition == currentTopic.length) { + currentPosition++; + } + else { + currentPosition = currentTopic.indexOf(":", currentNode.attributes.path.length + 1); + } + if (currentPosition < 0) { + currentPosition = currentTopic.length; + } + if (currentNode.hasChildNodes() && !currentNode.isExpanded()) { + currentNode.expand(false); + return; + } + } + tree.selectPath(currentNode.getPath()); + currentNode.ensureVisible(); + }, + startdrag : function(tree, node, event){ + oldPosition = node.parentNode.indexOf(node); + oldNextSibling = node.nextSibling; + }, + movenode : function(tree, node, oldParent, newParent, position) { + if (oldParent == newParent){ + var params = {'node':node.id, 'delta':(position-oldPosition)}; + } + else { + var params = {'node':node.id, 'parent':newParent.id, 'position':position}; + //### REM JJC081410: Temporarily disabled moving between nodes until core bug can be identified and resolved. + //Ext.Msg.alert("Disabled", "Moving between nodes is currently not supported. This functionality is currently being redeveloped."); + //return; + } + + //Determine sibling ID to place node after, based off position + var siblingId = -1; + if (position > 0) { + siblingId = newParent.childNodes[position-1].id; // TODO: double check indexing here + } + + //Ext.Msg.alert("Debugging", "Node: " + node.attributes.id + ", Parent: " + newParent.attributes.id + ", Sibling: " + siblingId); + + PageMethods.MoveNode( + node.attributes.id, + newParent.attributes.id, + siblingId, + function(result) { + if (siblingId > 0) { + //Ext.Msg.alert('Moved', 'The ' + node.attributes.id + ' node has been moved from ' + oldParent.attributes.id + ' to ' + newParent.attributes.id + '. SiblingId is: ' + siblingId); + } + else { + //Ext.Msg.alert('Moved', 'The ' + node.attributes.id + ' node has been moved from ' + oldParent.attributes.id + ' to ' + newParent.attributes.id + '.'); + } + } + ); + + } + } + }); + + tree.render('TreeView'); + }); + diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js new file mode 100644 index 00000000..641fe2cd --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js @@ -0,0 +1,46 @@ +$(function() { + + 'use strict'; + + // Get header container height + var $windowHeight = $(window).height(); + var $topBarHeight = $('#HeaderContainer').height(); + + // Set body top padding (compensation for fixed top bar) based on initial screen size or adjustment + $('body').css('padding-top', $topBarHeight + 'px'); + $(window).resize(function() { + setTimeout(function() { + $topBarHeight = $('#HeaderContainer').height(); + $('body').css('padding-top', $topBarHeight + 'px'); + }, 50); + }); + + // Set editor tabs bar width (tabs + action buttons) + var $dynamicFormWidth = $('div[id*="FormArea"]').width(); + var $editorNavBar = $('#DynamicForm div.Editor-Navbar'); + if ($editorNavBar) { + $editorNavBar.css('width', $dynamicFormWidth + 'px').css('top', ($topBarHeight + 1) + 'px'); + } + + // Set body top padding (compensation for fixed top bar) based on initial screen size or adjustment + $(window).resize(function() { + setTimeout(function() { + $dynamicFormWidth = $('div[id*="DynamicForm"]').width(); + $editorNavBar.css('width', $dynamicFormWidth + 'px').css('top', ($topBarHeight + 1) + 'px'); + }, 50); + }); + + // Editor modal height + var $percentageHeight = ($windowHeight * 0.785); + $('[id*="EditorModal"]').on('show.bs.modal', function(e) { + $('div[id*="EditorModal"] iframe').attr('height', $percentageHeight + 'px'); + }); + + // Set height for form area + var $formAreaOffset = $('#FormArea').offset(); + if ($formAreaOffset) { + $('#FormArea').css('min-height', ($windowHeight - $formAreaOffset.top) + 'px'); + }; + +}); + From 26c47c83da9a8bd308bb6ad86103cae96e0d1958 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 12:27:54 -0700 Subject: [PATCH 089/637] Incorporated vendor CSS --- .../TokenInput/token-input-facebook.css | 122 +++++++++++ .../Vendor/TokenInput/token-input-mac.css | 204 ++++++++++++++++++ .../Styles/Vendor/TokenInput/token-input.css | 127 +++++++++++ 3 files changed, 453 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-facebook.css create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-mac.css create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-facebook.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-facebook.css new file mode 100644 index 00000000..b4d8e922 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-facebook.css @@ -0,0 +1,122 @@ +/* Example tokeninput style #2: Facebook style */ +ul.token-input-list-facebook { + overflow: hidden; + height: auto !important; + height: 1%; + width: 400px; + border: 1px solid #8496ba; + cursor: text; + font-size: 12px; + font-family: Verdana; + min-height: 1px; + z-index: 999; + margin: 0; + padding: 0; + background-color: #fff; + list-style-type: none; + clear: left; +} + +ul.token-input-list-facebook li input { + border: 0; + width: 100px; + padding: 3px 8px; + background-color: white; + margin: 2px 0; + -webkit-appearance: caret; +} + +li.token-input-token-facebook { + overflow: hidden; + height: auto !important; + height: 15px; + margin: 3px; + padding: 1px 3px; + background-color: #eff2f7; + color: #000; + cursor: default; + border: 1px solid #ccd5e4; + font-size: 11px; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + float: left; + white-space: nowrap; +} + +li.token-input-token-facebook p { + display: inline; + padding: 0; + margin: 0; +} + +li.token-input-token-facebook span { + color: #a6b3cf; + margin-left: 5px; + font-weight: bold; + cursor: pointer; +} + +li.token-input-selected-token-facebook { + background-color: #5670a6; + border: 1px solid #3b5998; + color: #fff; +} + +li.token-input-input-token-facebook { + float: left; + margin: 0; + padding: 0; + list-style-type: none; +} + +div.token-input-dropdown-facebook { + position: absolute; + width: 400px; + background-color: #fff; + overflow: hidden; + border-left: 1px solid #ccc; + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + cursor: default; + font-size: 11px; + font-family: Verdana; + z-index: 1; +} + +div.token-input-dropdown-facebook p { + margin: 0; + padding: 5px; + font-weight: bold; + color: #777; +} + +div.token-input-dropdown-facebook ul { + margin: 0; + padding: 0; +} + +div.token-input-dropdown-facebook ul li { + background-color: #fff; + padding: 3px; + margin: 0; + list-style-type: none; +} + +div.token-input-dropdown-facebook ul li.token-input-dropdown-item-facebook { + background-color: #fff; +} + +div.token-input-dropdown-facebook ul li.token-input-dropdown-item2-facebook { + background-color: #fff; +} + +div.token-input-dropdown-facebook ul li em { + font-weight: bold; + font-style: normal; +} + +div.token-input-dropdown-facebook ul li.token-input-selected-dropdown-item-facebook { + background-color: #3b5998; + color: #fff; +} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-mac.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-mac.css new file mode 100644 index 00000000..18522f05 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-mac.css @@ -0,0 +1,204 @@ +/* Example tokeninput style #2: Mac Style */ +fieldset.token-input-mac { + position: relative; + padding: 0; + margin: 5px 0; + background: #fff; + width: 400px; + border: 1px solid #A4BDEC; + border-radius: 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 10px; +} + +fieldset.token-input-mac.token-input-dropdown-mac { + border-radius: 10px 10px 0 0; + -moz-border-radius: 10px 10px 0 0; + -webkit-border-radius: 10px 10px 0 0; + box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); + -moz-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); + -webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); +} + +ul.token-input-list-mac { + overflow: hidden; + height: auto !important; + height: 1%; + cursor: text; + font-size: 12px; + font-family: Verdana; + min-height: 1px; + z-index: 999; + margin: 0; + padding: 3px; + background: transparent; +} + +ul.token-input-list-mac.error { + border: 1px solid #C52020; +} + +ul.token-input-list-mac li { + list-style-type: none; +} + +li.token-input-token-mac p { + display: inline; + padding: 0; + margin: 0; +} + +li.token-input-token-mac span { + color: #a6b3cf; + margin-left: 5px; + font-weight: bold; + cursor: pointer; +} + +/* TOKENS */ + +li.token-input-token-mac { + font-family: "Lucida Grande", Arial, serif; + font-size: 9pt; + line-height: 12pt; + overflow: hidden; + height: 16px; + margin: 3px; + padding: 0 10px; + background: none; + background-color: #dee7f8; + color: #000; + cursor: default; + border: 1px solid #a4bdec; + border-radius: 15px; + -moz-border-radius: 15px; + -webkit-border-radius: 15px; + float: left; +} + +li.token-input-highlighted-token-mac { + background-color: #bbcef1; + border: 1px solid #598bec; + color: #000; +} + +li.token-input-selected-token-mac { + background-color: #598bec; + border: 1px solid transparent; + color: #fff; +} + +li.token-input-highlighted-token-mac span.token-input-delete-token-mac { + color: #000; +} + +li.token-input-selected-token-mac span.token-input-delete-token-mac { + color: #fff; +} + +li.token-input-input-token-mac { + border: none; + background: transparent; + float: left; + padding: 0; + margin: 0; +} + +li.token-input-input-token-mac input { + border: 0; + width: 100px; + padding: 3px; + background-color: transparent; + margin: 0; +} + +div.token-input-dropdown-mac { + position: absolute; + border: 1px solid #A4BDEC; + border-top: none; + left: -1px; + right: -1px; + background-color: #fff; + overflow: hidden; + cursor: default; + font-size: 10pt; + font-family: "Lucida Grande", Arial, serif; + padding: 5px; + border-radius: 0 0 10px 10px; + -moz-border-radius: 0 0 10px 10px; + -webkit-border-radius: 0 0 10px 10px; + box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); + -moz-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); + -webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); + clip:rect(0px, 1000px, 1000px, -10px); +} + +div.token-input-dropdown-mac p { + font-size: 8pt; + margin: 0; + padding: 0 5px; + font-style: italic; + color: #aaa; +} + +div.token-input-dropdown-mac h3.token-input-dropdown-category-mac { + font-family: "Lucida Grande", Arial, serif; + font-size: 10pt; + font-weight: bold; + border: none; + padding: 0 5px; + margin: 0; +} + +div.token-input-dropdown-mac ul { + margin: 0; + padding: 0; +} + +div.token-input-dropdown-mac ul li { + list-style-type: none; + cursor: pointer; + background: none; + background-color: #fff; + margin: 0; + padding: 0 0 0 25px; +} + +div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac { + background-color: #fff; +} + +div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac.odd { + background-color: #ECF4F9; + border-radius: 15px; + -moz-border-radius: 15px; + -webkit-border-radius: 15px; +} + +div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac span.token-input-dropdown-item-description-mac { + float: right; + font-size: 8pt; + font-style: italic; + padding: 0 10px 0 0; + color: #999; +} + +div.token-input-dropdown-mac ul li strong { + font-weight: bold; + text-decoration: underline; + font-style: none; +} + +div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac, +div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac.odd { + background-color: #598bec; + color: #fff; + border-radius: 15px; + -moz-border-radius: 15px; + -webkit-border-radius: 15px; +} + +div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac span.token-input-dropdown-item-description-mac, +div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac.odd span.token-input-dropdown-item-description-mac { + color: #fff; +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input.css new file mode 100644 index 00000000..cea0ed56 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input.css @@ -0,0 +1,127 @@ +/* Example tokeninput style #1: Token vertical list*/ +ul.token-input-list { + overflow: hidden; + height: auto !important; + height: 1%; + width: 400px; + border: 1px solid #999; + cursor: text; + font-size: 12px; + font-family: Verdana, sans-serif; + z-index: 999; + margin: 0; + padding: 0; + background-color: #fff; + list-style-type: none; + clear: left; +} + +ul.token-input-list li { + list-style-type: none; +} + +ul.token-input-list li input { + border: 0; + width: 350px; + padding: 3px 8px; + background-color: white; + -webkit-appearance: caret; +} + +ul.token-input-disabled, +ul.token-input-disabled li input { + background-color: #E8E8E8; +} + +ul.token-input-disabled li.token-input-token { + background-color: #D9E3CA; + color: #7D7D7D +} + +ul.token-input-disabled li.token-input-token span { + color: #CFCFCF; + cursor: default; +} + +li.token-input-token { + overflow: hidden; + height: auto !important; + height: 1%; + margin: 3px; + padding: 3px 5px; + background-color: #d0efa0; + color: #000; + font-weight: bold; + cursor: default; + display: block; +} + +li.token-input-token p { + float: left; + padding: 0; + margin: 0; +} + +li.token-input-token span { + float: right; + color: #777; + cursor: pointer; +} + +li.token-input-selected-token { + background-color: #08844e; + color: #fff; +} + +li.token-input-selected-token span { + color: #bbb; +} + +div.token-input-dropdown { + position: absolute; + width: 400px; + background-color: #fff; + overflow: hidden; + border-left: 1px solid #ccc; + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + cursor: default; + font-size: 12px; + font-family: Verdana, sans-serif; + z-index: 1; +} + +div.token-input-dropdown p { + margin: 0; + padding: 5px; + font-weight: bold; + color: #777; +} + +div.token-input-dropdown ul { + margin: 0; + padding: 0; +} + +div.token-input-dropdown ul li { + background-color: #fff; + padding: 3px; + list-style-type: none; +} + +div.token-input-dropdown ul li.token-input-dropdown-item { + background-color: #fafafa; +} + +div.token-input-dropdown ul li.token-input-dropdown-item2 { + background-color: #fff; +} + +div.token-input-dropdown ul li em { + font-weight: bold; + font-style: normal; +} + +div.token-input-dropdown ul li.token-input-selected-dropdown-item { + background-color: #d0efa0; +} \ No newline at end of file From 9a61589088e95ccaab02fab1b2131c9898aa2f6c Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 12:28:23 -0700 Subject: [PATCH 090/637] Incorporated customized CKE CSS --- .../Areas/Editor/Shared/Styles/CKEditor.css | 46 +++++++++++++++++++ .../Editor/Shared/Styles/CKEditor.min.css | 1 + 2 files changed, 47 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.css create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.min.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.css new file mode 100644 index 00000000..828faca9 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.css @@ -0,0 +1,46 @@ +@font-face { + font-family: 'Lato Light'; + src: url('../Fonts/lato-light-webfont.eot'); + src: url('../Fonts/lato-light-webfont.eot?#iefix') format('embedded-opentype'), url('../Fonts/lato-light-webfont.woff') format('woff'), url('../Fonts/lato-light-webfont.ttf') format('truetype'), url('../Fonts/lato-light-webfont.svg#latolight') format('svg'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'Lato'; + src: url('../Fonts/lato-regular-webfont.eot'); + src: url('../Fonts/lato-regular-webfont.eot?#iefix') format('embedded-opentype'), url('../Fonts/lato-regular-webfont.woff') format('woff'), url('../Fonts/lato-regular-webfont.ttf') format('truetype'), url('../Fonts/lato-regular-webfont.svg#latoregular') format('svg'); + font-weight: normal; + font-style: normal; +} +body { + background-color: #FFF; + font-family: "Lato", Helvetica, Arial, sans-serif; + font-size: 16px; + color: #333; +} +h1, +h2, +h3 { + font-family: "Lato Light", Helvetica, Arial, sans-serif; +} +h1 { + font-size: 32px; +} +h2 { + font-size: 28px; +} +h3 { + font-size: 24px; +} +h4 { + font-size: 18px; +} +h5 { + font-size: 16px; +} +h6 { + font-size: 14px; +} +.Heading { + font-family: "Lato", Helvetica, Arial, sans-serif; +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.min.css new file mode 100644 index 00000000..8bf39a45 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.min.css @@ -0,0 +1 @@ +@font-face{font-family:'Lato Light';src:url(../Fonts/lato-light-webfont.eot);src:url(../Fonts/lato-light-webfont.eot?#iefix) format('embedded-opentype'),url(../Fonts/lato-light-webfont.woff) format('woff'),url(../Fonts/lato-light-webfont.ttf) format('truetype'),url(../Fonts/lato-light-webfont.svg#latolight) format('svg');font-weight:400;font-style:normal}@font-face{font-family:Lato;src:url(../Fonts/lato-regular-webfont.eot);src:url(../Fonts/lato-regular-webfont.eot?#iefix) format('embedded-opentype'),url(../Fonts/lato-regular-webfont.woff) format('woff'),url(../Fonts/lato-regular-webfont.ttf) format('truetype'),url(../Fonts/lato-regular-webfont.svg#latoregular) format('svg');font-weight:400;font-style:normal}body{background-color:#fff;font-family:Lato,Helvetica,Arial,sans-serif;font-size:16px;color:#333}h1,h2,h3{font-family:"Lato Light",Helvetica,Arial,sans-serif}h1{font-size:32px}h2{font-size:28px}h3{font-size:24px}h4{font-size:18px}h5{font-size:16px}h6{font-size:14px}.Heading{font-family:Lato,Helvetica,Arial,sans-serif} \ No newline at end of file From 26695a77dcb426e967490e934f9f30e52fe2ebd8 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 12:29:03 -0700 Subject: [PATCH 091/637] Added compiled primary site styles --- .../Areas/Editor/Shared/Styles/Style.css | 5892 +++++++++++++++++ .../Areas/Editor/Shared/Styles/Style.min.css | 1 + .../Areas/Editor/Shared/Styles/Style.scss | 4 +- 3 files changed, 5894 insertions(+), 3 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css new file mode 100644 index 00000000..237b4bb0 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -0,0 +1,5892 @@ +/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ +html { + font-family: sans-serif; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; } + +body { + margin: 0; } + +article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { + display: block; } + +audio, canvas, progress, video { + display: inline-block; + vertical-align: baseline; } + +audio:not([controls]) { + display: none; + height: 0; } + +[hidden], template { + display: none; } + +a { + background: transparent; } + a:active, a:hover { + outline: 0; } + +abbr[title] { + border-bottom: 1px dotted; } + +b, strong { + font-weight: bold; } + +dfn { + font-style: italic; } + +h1 { + font-size: 2em; + margin: 0.67em 0; } + +mark { + background: #ff0; + color: #000; } + +small { + font-size: 80%; } + +sub { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; } + +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + top: -0.5em; } + +sub { + bottom: -0.25em; } + +img { + border: 0; } + +svg:not(:root) { + overflow: hidden; } + +figure { + margin: 1em 40px; } + +hr { + -webkit-box-sizing: content-box; + box-sizing: content-box; + height: 0; } + +pre { + overflow: auto; } + +code, kbd, pre, samp { + font-family: monospace, monospace; + font-size: 1em; } + +button, input, optgroup, select, textarea { + color: inherit; + font: inherit; + margin: 0; } + +button { + overflow: visible; + text-transform: none; } + +select { + text-transform: none; } + +button, html input[type="button"] { + -webkit-appearance: button; + cursor: pointer; } + +input[type="reset"], input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; } + +button[disabled], html input[disabled] { + cursor: default; } + +button::-moz-focus-inner { + border: 0; + padding: 0; } + +input { + line-height: normal; } + input::-moz-focus-inner { + border: 0; + padding: 0; } + input[type="checkbox"], input[type="radio"] { + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 0; } + input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { + height: auto; } + input[type="search"] { + -webkit-appearance: textfield; + -webkit-box-sizing: content-box; + box-sizing: content-box; } + input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; } + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; } + +legend { + border: 0; + padding: 0; } + +textarea { + overflow: auto; } + +optgroup { + font-weight: bold; } + +table { + border-collapse: collapse; + border-spacing: 0; } + +td, th { + padding: 0; } + +@media print { + * { + text-shadow: none !important; + color: #000 !important; + background: transparent !important; + -webkit-box-shadow: none !important; + box-shadow: none !important; } + a { + text-decoration: underline; } + a:visited { + text-decoration: underline; } + a[href]:after { + content: " (" attr(href) ")"; } + abbr[title]:after { + content: " (" attr(title) ")"; } + a[href^="javascript:"]:after, a[href^="#"]:after { + content: ""; } + pre, blockquote { + border: 1px solid #999; + page-break-inside: avoid; } + thead { + display: table-header-group; } + tr { + page-break-inside: avoid; } + img { + page-break-inside: avoid; + max-width: 100% !important; } + p, h2, h3 { + orphans: 3; + widows: 3; } + h2, h3 { + page-break-after: avoid; } + select { + background: #fff !important; } + .navbar { + display: none; } + .table td, .table th { + background-color: #fff !important; } + .btn > .caret, .dropup > .btn > .caret { + border-top-color: #000 !important; } + .label { + border: 1px solid #000; } + .table { + border-collapse: collapse !important; } + .table-bordered th, .table-bordered td { + border: 1px solid #ddd !important; } } + +@font-face { + font-family: 'Glyphicons Halflings'; + src: url("../fonts/glyphicons-halflings-regular.eot"); + src: url("../fonts/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"), url("../fonts/glyphicons-halflings-regular.woff") format("woff"), url("../fonts/glyphicons-halflings-regular.ttf") format("truetype"), url("../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg"); } + +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + +.glyphicon-asterisk:before { + content: "\2a"; } + +.glyphicon-plus:before { + content: "\2b"; } + +.glyphicon-euro:before { + content: "\20ac"; } + +.glyphicon-minus:before { + content: "\2212"; } + +.glyphicon-cloud:before { + content: "\2601"; } + +.glyphicon-envelope:before { + content: "\2709"; } + +.glyphicon-pencil:before { + content: "\270f"; } + +.glyphicon-glass:before { + content: "\e001"; } + +.glyphicon-music:before { + content: "\e002"; } + +.glyphicon-search:before { + content: "\e003"; } + +.glyphicon-heart:before { + content: "\e005"; } + +.glyphicon-star:before { + content: "\e006"; } + +.glyphicon-star-empty:before { + content: "\e007"; } + +.glyphicon-user:before { + content: "\e008"; } + +.glyphicon-film:before { + content: "\e009"; } + +.glyphicon-th-large:before { + content: "\e010"; } + +.glyphicon-th:before { + content: "\e011"; } + +.glyphicon-th-list:before { + content: "\e012"; } + +.glyphicon-ok:before { + content: "\e013"; } + +.glyphicon-remove:before { + content: "\e014"; } + +.glyphicon-zoom-in:before { + content: "\e015"; } + +.glyphicon-zoom-out:before { + content: "\e016"; } + +.glyphicon-off:before { + content: "\e017"; } + +.glyphicon-signal:before { + content: "\e018"; } + +.glyphicon-cog:before { + content: "\e019"; } + +.glyphicon-trash:before { + content: "\e020"; } + +.glyphicon-home:before { + content: "\e021"; } + +.glyphicon-file:before { + content: "\e022"; } + +.glyphicon-time:before { + content: "\e023"; } + +.glyphicon-road:before { + content: "\e024"; } + +.glyphicon-download-alt:before { + content: "\e025"; } + +.glyphicon-download:before { + content: "\e026"; } + +.glyphicon-upload:before { + content: "\e027"; } + +.glyphicon-inbox:before { + content: "\e028"; } + +.glyphicon-play-circle:before { + content: "\e029"; } + +.glyphicon-repeat:before { + content: "\e030"; } + +.glyphicon-refresh:before { + content: "\e031"; } + +.glyphicon-list-alt:before { + content: "\e032"; } + +.glyphicon-lock:before { + content: "\e033"; } + +.glyphicon-flag:before { + content: "\e034"; } + +.glyphicon-headphones:before { + content: "\e035"; } + +.glyphicon-volume-off:before { + content: "\e036"; } + +.glyphicon-volume-down:before { + content: "\e037"; } + +.glyphicon-volume-up:before { + content: "\e038"; } + +.glyphicon-qrcode:before { + content: "\e039"; } + +.glyphicon-barcode:before { + content: "\e040"; } + +.glyphicon-tag:before { + content: "\e041"; } + +.glyphicon-tags:before { + content: "\e042"; } + +.glyphicon-book:before { + content: "\e043"; } + +.glyphicon-bookmark:before { + content: "\e044"; } + +.glyphicon-print:before { + content: "\e045"; } + +.glyphicon-camera:before { + content: "\e046"; } + +.glyphicon-font:before { + content: "\e047"; } + +.glyphicon-bold:before { + content: "\e048"; } + +.glyphicon-italic:before { + content: "\e049"; } + +.glyphicon-text-height:before { + content: "\e050"; } + +.glyphicon-text-width:before { + content: "\e051"; } + +.glyphicon-align-left:before { + content: "\e052"; } + +.glyphicon-align-center:before { + content: "\e053"; } + +.glyphicon-align-right:before { + content: "\e054"; } + +.glyphicon-align-justify:before { + content: "\e055"; } + +.glyphicon-list:before { + content: "\e056"; } + +.glyphicon-indent-left:before { + content: "\e057"; } + +.glyphicon-indent-right:before { + content: "\e058"; } + +.glyphicon-facetime-video:before { + content: "\e059"; } + +.glyphicon-picture:before { + content: "\e060"; } + +.glyphicon-map-marker:before { + content: "\e062"; } + +.glyphicon-adjust:before { + content: "\e063"; } + +.glyphicon-tint:before { + content: "\e064"; } + +.glyphicon-edit:before { + content: "\e065"; } + +.glyphicon-share:before { + content: "\e066"; } + +.glyphicon-check:before { + content: "\e067"; } + +.glyphicon-move:before { + content: "\e068"; } + +.glyphicon-step-backward:before { + content: "\e069"; } + +.glyphicon-fast-backward:before { + content: "\e070"; } + +.glyphicon-backward:before { + content: "\e071"; } + +.glyphicon-play:before { + content: "\e072"; } + +.glyphicon-pause:before { + content: "\e073"; } + +.glyphicon-stop:before { + content: "\e074"; } + +.glyphicon-forward:before { + content: "\e075"; } + +.glyphicon-fast-forward:before { + content: "\e076"; } + +.glyphicon-step-forward:before { + content: "\e077"; } + +.glyphicon-eject:before { + content: "\e078"; } + +.glyphicon-chevron-left:before { + content: "\e079"; } + +.glyphicon-chevron-right:before { + content: "\e080"; } + +.glyphicon-plus-sign:before { + content: "\e081"; } + +.glyphicon-minus-sign:before { + content: "\e082"; } + +.glyphicon-remove-sign:before { + content: "\e083"; } + +.glyphicon-ok-sign:before { + content: "\e084"; } + +.glyphicon-question-sign:before { + content: "\e085"; } + +.glyphicon-info-sign:before { + content: "\e086"; } + +.glyphicon-screenshot:before { + content: "\e087"; } + +.glyphicon-remove-circle:before { + content: "\e088"; } + +.glyphicon-ok-circle:before { + content: "\e089"; } + +.glyphicon-ban-circle:before { + content: "\e090"; } + +.glyphicon-arrow-left:before { + content: "\e091"; } + +.glyphicon-arrow-right:before { + content: "\e092"; } + +.glyphicon-arrow-up:before { + content: "\e093"; } + +.glyphicon-arrow-down:before { + content: "\e094"; } + +.glyphicon-share-alt:before { + content: "\e095"; } + +.glyphicon-resize-full:before { + content: "\e096"; } + +.glyphicon-resize-small:before { + content: "\e097"; } + +.glyphicon-exclamation-sign:before { + content: "\e101"; } + +.glyphicon-gift:before { + content: "\e102"; } + +.glyphicon-leaf:before { + content: "\e103"; } + +.glyphicon-fire:before { + content: "\e104"; } + +.glyphicon-eye-open:before { + content: "\e105"; } + +.glyphicon-eye-close:before { + content: "\e106"; } + +.glyphicon-warning-sign:before { + content: "\e107"; } + +.glyphicon-plane:before { + content: "\e108"; } + +.glyphicon-calendar:before { + content: "\e109"; } + +.glyphicon-random:before { + content: "\e110"; } + +.glyphicon-comment:before { + content: "\e111"; } + +.glyphicon-magnet:before { + content: "\e112"; } + +.glyphicon-chevron-up:before { + content: "\e113"; } + +.glyphicon-chevron-down:before { + content: "\e114"; } + +.glyphicon-retweet:before { + content: "\e115"; } + +.glyphicon-shopping-cart:before { + content: "\e116"; } + +.glyphicon-folder-close:before { + content: "\e117"; } + +.glyphicon-folder-open:before { + content: "\e118"; } + +.glyphicon-resize-vertical:before { + content: "\e119"; } + +.glyphicon-resize-horizontal:before { + content: "\e120"; } + +.glyphicon-hdd:before { + content: "\e121"; } + +.glyphicon-bullhorn:before { + content: "\e122"; } + +.glyphicon-bell:before { + content: "\e123"; } + +.glyphicon-certificate:before { + content: "\e124"; } + +.glyphicon-thumbs-up:before { + content: "\e125"; } + +.glyphicon-thumbs-down:before { + content: "\e126"; } + +.glyphicon-hand-right:before { + content: "\e127"; } + +.glyphicon-hand-left:before { + content: "\e128"; } + +.glyphicon-hand-up:before { + content: "\e129"; } + +.glyphicon-hand-down:before { + content: "\e130"; } + +.glyphicon-circle-arrow-right:before { + content: "\e131"; } + +.glyphicon-circle-arrow-left:before { + content: "\e132"; } + +.glyphicon-circle-arrow-up:before { + content: "\e133"; } + +.glyphicon-circle-arrow-down:before { + content: "\e134"; } + +.glyphicon-globe:before { + content: "\e135"; } + +.glyphicon-wrench:before { + content: "\e136"; } + +.glyphicon-tasks:before { + content: "\e137"; } + +.glyphicon-filter:before { + content: "\e138"; } + +.glyphicon-briefcase:before { + content: "\e139"; } + +.glyphicon-fullscreen:before { + content: "\e140"; } + +.glyphicon-dashboard:before { + content: "\e141"; } + +.glyphicon-paperclip:before { + content: "\e142"; } + +.glyphicon-heart-empty:before { + content: "\e143"; } + +.glyphicon-link:before { + content: "\e144"; } + +.glyphicon-phone:before { + content: "\e145"; } + +.glyphicon-pushpin:before { + content: "\e146"; } + +.glyphicon-usd:before { + content: "\e148"; } + +.glyphicon-gbp:before { + content: "\e149"; } + +.glyphicon-sort:before { + content: "\e150"; } + +.glyphicon-sort-by-alphabet:before { + content: "\e151"; } + +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152"; } + +.glyphicon-sort-by-order:before { + content: "\e153"; } + +.glyphicon-sort-by-order-alt:before { + content: "\e154"; } + +.glyphicon-sort-by-attributes:before { + content: "\e155"; } + +.glyphicon-sort-by-attributes-alt:before { + content: "\e156"; } + +.glyphicon-unchecked:before { + content: "\e157"; } + +.glyphicon-expand:before { + content: "\e158"; } + +.glyphicon-collapse-down:before { + content: "\e159"; } + +.glyphicon-collapse-up:before { + content: "\e160"; } + +.glyphicon-log-in:before { + content: "\e161"; } + +.glyphicon-flash:before { + content: "\e162"; } + +.glyphicon-log-out:before { + content: "\e163"; } + +.glyphicon-new-window:before { + content: "\e164"; } + +.glyphicon-record:before { + content: "\e165"; } + +.glyphicon-save:before { + content: "\e166"; } + +.glyphicon-open:before { + content: "\e167"; } + +.glyphicon-saved:before { + content: "\e168"; } + +.glyphicon-import:before { + content: "\e169"; } + +.glyphicon-export:before { + content: "\e170"; } + +.glyphicon-send:before { + content: "\e171"; } + +.glyphicon-floppy-disk:before { + content: "\e172"; } + +.glyphicon-floppy-saved:before { + content: "\e173"; } + +.glyphicon-floppy-remove:before { + content: "\e174"; } + +.glyphicon-floppy-save:before { + content: "\e175"; } + +.glyphicon-floppy-open:before { + content: "\e176"; } + +.glyphicon-credit-card:before { + content: "\e177"; } + +.glyphicon-transfer:before { + content: "\e178"; } + +.glyphicon-cutlery:before { + content: "\e179"; } + +.glyphicon-header:before { + content: "\e180"; } + +.glyphicon-compressed:before { + content: "\e181"; } + +.glyphicon-earphone:before { + content: "\e182"; } + +.glyphicon-phone-alt:before { + content: "\e183"; } + +.glyphicon-tower:before { + content: "\e184"; } + +.glyphicon-stats:before { + content: "\e185"; } + +.glyphicon-sd-video:before { + content: "\e186"; } + +.glyphicon-hd-video:before { + content: "\e187"; } + +.glyphicon-subtitles:before { + content: "\e188"; } + +.glyphicon-sound-stereo:before { + content: "\e189"; } + +.glyphicon-sound-dolby:before { + content: "\e190"; } + +.glyphicon-sound-5-1:before { + content: "\e191"; } + +.glyphicon-sound-6-1:before { + content: "\e192"; } + +.glyphicon-sound-7-1:before { + content: "\e193"; } + +.glyphicon-copyright-mark:before { + content: "\e194"; } + +.glyphicon-registration-mark:before { + content: "\e195"; } + +.glyphicon-cloud-download:before { + content: "\e197"; } + +.glyphicon-cloud-upload:before { + content: "\e198"; } + +.glyphicon-tree-conifer:before { + content: "\e199"; } + +.glyphicon-tree-deciduous:before { + content: "\e200"; } + +* { + -webkit-box-sizing: border-box; + box-sizing: border-box; } + *:before, *:after { + -webkit-box-sizing: border-box; + box-sizing: border-box; } + +html { + font-size: 10px; + -webkit-tap-highlight-color: transparent; } + +body { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 1.42857143; + color: #ffffff; + background-color: #333333; } + +input, button, select, textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit; } + +a { + color: #0a94d4; + text-decoration: none; } + a:hover { + color: #07618b; + text-decoration: underline; } + a:focus { + color: #07618b; + text-decoration: underline; + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; } + +figure { + margin: 0; } + +img { + vertical-align: middle; } + +.img-responsive { + display: block; + width: 100% \9; + max-width: 100%; + height: auto; } + +.thumbnail > img, .thumbnail a > img { + display: block; + width: 100% \9; + max-width: 100%; + height: auto; } + +.carousel-inner > .item > img, .carousel-inner > .item > a > img { + display: block; + width: 100% \9; + max-width: 100%; + height: auto; } + +.img-rounded { + border-radius: 2px; } + +.img-thumbnail { + padding: 4px; + line-height: 1.42857143; + background-color: #333333; + border: 1px solid #dddddd; + border-radius: 1px; + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + display: inline-block; + width: 100% \9; + max-width: 100%; + height: auto; } + +.img-circle { + border-radius: 50%; } + +hr { + margin-top: 22px; + margin-bottom: 22px; + border: 0; + border-top: 1px solid #cccccc; } + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; } + +.sr-only-focusable:active, .sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; } + +h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit; } + +h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { + font-weight: normal; + line-height: 1; + color: #666666; } + +h1, .h1, h2, .h2, h3, .h3 { + margin-top: 22px; + margin-bottom: 11px; } + +h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { + font-size: 65%; } + +h4, .h4, h5, .h5, h6, .h6 { + margin-top: 11px; + margin-bottom: 11px; } + +h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { + font-size: 75%; } + +h1, .h1 { + font-size: 41px; } + +h2, .h2 { + font-size: 34px; } + +h3, .h3 { + font-size: 28px; } + +h4, .h4 { + font-size: 20px; } + +h5, .h5 { + font-size: 16px; } + +h6, .h6 { + font-size: 14px; } + +p { + margin: 0 0 11px; } + +.lead { + margin-bottom: 22px; + font-size: 18px; + font-weight: 300; + line-height: 1.4; } + +@media (min-width: 768px) { + .lead { + font-size: 24px; } } + +small, .small { + font-size: 87%; } + +cite { + font-style: normal; } + +mark, .mark { + background-color: #fcf8e3; + padding: .2em; } + +.text-left { + text-align: left; } + +.text-right { + text-align: right; } + +.text-center { + text-align: center; } + +.text-justify { + text-align: justify; } + +.text-nowrap { + white-space: nowrap; } + +.text-lowercase { + text-transform: lowercase; } + +.text-uppercase { + text-transform: uppercase; } + +.text-capitalize { + text-transform: capitalize; } + +.text-muted { + color: #666666; } + +.text-primary { + color: #4d4d4d; } + +a.text-primary:hover { + color: #333333; } + +.text-success { + color: #125204; } + +a.text-success:hover { + color: #072102; } + +.text-info { + color: #0872a3; } + +a.text-info:hover { + color: #055073; } + +.text-warning { + color: #8a6d3b; } + +a.text-warning:hover { + color: #66512c; } + +.text-danger { + color: #d63510; } + +a.text-danger:hover { + color: #a6290c; } + +.bg-primary { + color: #fff; + background-color: #4d4d4d; } + +a.bg-primary:hover { + background-color: #333333; } + +.bg-success { + background-color: #d3e5cf; } + +a.bg-success:hover { + background-color: #b5d3ae; } + +.bg-info { + background-color: #daebf2; } + +a.bg-info:hover { + background-color: #b4d7e5; } + +.bg-warning { + background-color: #fcf8e3; } + +a.bg-warning:hover { + background-color: #f7ecb5; } + +.bg-danger { + background-color: #f0dcd8; } + +a.bg-danger:hover { + background-color: #e2bbb3; } + +.page-header { + padding-bottom: 10px; + margin: 44px 0 22px; + border-bottom: 1px solid #cccccc; } + +ul, ol { + margin-top: 0; + margin-bottom: 11px; } + +ul ul, ol ul, ul ol, ol ol { + margin-bottom: 0; } + +.list-unstyled { + padding-left: 0; + list-style: none; } + +.list-inline { + padding-left: 0; + list-style: none; + margin-left: -5px; } + .list-inline > li { + display: inline-block; + padding-left: 5px; + padding-right: 5px; } + +dl { + margin-top: 0; + margin-bottom: 22px; } + +dt, dd { + line-height: 1.42857143; } + +dt { + font-weight: bold; } + +dd { + margin-left: 0; } + +@media (min-width: 768px) { + .dl-horizontal dt { + float: left; + width: 160px; + clear: left; + text-align: right; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } + .dl-horizontal dd { + margin-left: 180px; } } + +abbr[title], abbr[data-original-title] { + cursor: help; + border-bottom: 1px dotted #666666; } + +.initialism { + font-size: 90%; + text-transform: uppercase; } + +blockquote { + padding: 11px 22px; + margin: 0 0 22px; + font-size: 20px; + border-left: 5px solid #cccccc; } + blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { + margin-bottom: 0; } + blockquote footer, blockquote small, blockquote .small { + display: block; + font-size: 80%; + line-height: 1.42857143; + color: #666666; } + blockquote footer:before, blockquote small:before, blockquote .small:before { + content: '\2014 \00A0'; } + +.blockquote-reverse, blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + border-right: 5px solid #cccccc; + border-left: 0; + text-align: right; } + +.blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { + content: ''; } + +.blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after { + content: '\00A0 \2014'; } + +blockquote.pull-right .small:after { + content: '\00A0 \2014'; } + +blockquote:before, blockquote:after { + content: ""; } + +address { + margin-bottom: 22px; + font-style: normal; + line-height: 1.42857143; } + +code, kbd, pre, samp { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } + +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 1px; } + +kbd { + padding: 2px 4px; + font-size: 90%; + color: #ffffff; + background-color: #333333; + border-radius: 0; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); } + kbd kbd { + padding: 0; + font-size: 100%; + -webkit-box-shadow: none; + box-shadow: none; } + +pre { + display: block; + padding: 10.5px; + margin: 0 0 11px; + font-size: 15px; + line-height: 1.42857143; + word-break: break-all; + word-wrap: break-word; + color: #333333; + background-color: #f5f5f5; + border: 1px solid #cccccc; + border-radius: 1px; } + pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0; } + +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; } + +.container, .container-fluid { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px; } + +@media (min-width: 768px) { + .container { + width: 750px; } } + +@media (min-width: 992px) { + .container { + width: 990px; } } + +@media (min-width: 1240px) { + .container { + width: 1220px; } } + +.row { + margin-left: -15px; + margin-right: -15px; } + +.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { + position: relative; + min-height: 1px; + padding-left: 15px; + padding-right: 15px; } + +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11 { + float: left; } + +.col-xs-12 { + float: left; + width: 100%; } + +.col-xs-11 { + width: 91.66666667%; } + +.col-xs-10 { + width: 83.33333333%; } + +.col-xs-9 { + width: 75%; } + +.col-xs-8 { + width: 66.66666667%; } + +.col-xs-7 { + width: 58.33333333%; } + +.col-xs-6 { + width: 50%; } + +.col-xs-5 { + width: 41.66666667%; } + +.col-xs-4 { + width: 33.33333333%; } + +.col-xs-3 { + width: 25%; } + +.col-xs-2 { + width: 16.66666667%; } + +.col-xs-1 { + width: 8.33333333%; } + +.col-xs-pull-12 { + right: 100%; } + +.col-xs-pull-11 { + right: 91.66666667%; } + +.col-xs-pull-10 { + right: 83.33333333%; } + +.col-xs-pull-9 { + right: 75%; } + +.col-xs-pull-8 { + right: 66.66666667%; } + +.col-xs-pull-7 { + right: 58.33333333%; } + +.col-xs-pull-6 { + right: 50%; } + +.col-xs-pull-5 { + right: 41.66666667%; } + +.col-xs-pull-4 { + right: 33.33333333%; } + +.col-xs-pull-3 { + right: 25%; } + +.col-xs-pull-2 { + right: 16.66666667%; } + +.col-xs-pull-1 { + right: 8.33333333%; } + +.col-xs-pull-0 { + right: auto; } + +.col-xs-push-12 { + left: 100%; } + +.col-xs-push-11 { + left: 91.66666667%; } + +.col-xs-push-10 { + left: 83.33333333%; } + +.col-xs-push-9 { + left: 75%; } + +.col-xs-push-8 { + left: 66.66666667%; } + +.col-xs-push-7 { + left: 58.33333333%; } + +.col-xs-push-6 { + left: 50%; } + +.col-xs-push-5 { + left: 41.66666667%; } + +.col-xs-push-4 { + left: 33.33333333%; } + +.col-xs-push-3 { + left: 25%; } + +.col-xs-push-2 { + left: 16.66666667%; } + +.col-xs-push-1 { + left: 8.33333333%; } + +.col-xs-push-0 { + left: auto; } + +.col-xs-offset-12 { + margin-left: 100%; } + +.col-xs-offset-11 { + margin-left: 91.66666667%; } + +.col-xs-offset-10 { + margin-left: 83.33333333%; } + +.col-xs-offset-9 { + margin-left: 75%; } + +.col-xs-offset-8 { + margin-left: 66.66666667%; } + +.col-xs-offset-7 { + margin-left: 58.33333333%; } + +.col-xs-offset-6 { + margin-left: 50%; } + +.col-xs-offset-5 { + margin-left: 41.66666667%; } + +.col-xs-offset-4 { + margin-left: 33.33333333%; } + +.col-xs-offset-3 { + margin-left: 25%; } + +.col-xs-offset-2 { + margin-left: 16.66666667%; } + +.col-xs-offset-1 { + margin-left: 8.33333333%; } + +.col-xs-offset-0 { + margin-left: 0%; } + +@media (min-width: 768px) { + .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11 { + float: left; } + .col-sm-12 { + float: left; + width: 100%; } + .col-sm-11 { + width: 91.66666667%; } + .col-sm-10 { + width: 83.33333333%; } + .col-sm-9 { + width: 75%; } + .col-sm-8 { + width: 66.66666667%; } + .col-sm-7 { + width: 58.33333333%; } + .col-sm-6 { + width: 50%; } + .col-sm-5 { + width: 41.66666667%; } + .col-sm-4 { + width: 33.33333333%; } + .col-sm-3 { + width: 25%; } + .col-sm-2 { + width: 16.66666667%; } + .col-sm-1 { + width: 8.33333333%; } + .col-sm-pull-12 { + right: 100%; } + .col-sm-pull-11 { + right: 91.66666667%; } + .col-sm-pull-10 { + right: 83.33333333%; } + .col-sm-pull-9 { + right: 75%; } + .col-sm-pull-8 { + right: 66.66666667%; } + .col-sm-pull-7 { + right: 58.33333333%; } + .col-sm-pull-6 { + right: 50%; } + .col-sm-pull-5 { + right: 41.66666667%; } + .col-sm-pull-4 { + right: 33.33333333%; } + .col-sm-pull-3 { + right: 25%; } + .col-sm-pull-2 { + right: 16.66666667%; } + .col-sm-pull-1 { + right: 8.33333333%; } + .col-sm-pull-0 { + right: auto; } + .col-sm-push-12 { + left: 100%; } + .col-sm-push-11 { + left: 91.66666667%; } + .col-sm-push-10 { + left: 83.33333333%; } + .col-sm-push-9 { + left: 75%; } + .col-sm-push-8 { + left: 66.66666667%; } + .col-sm-push-7 { + left: 58.33333333%; } + .col-sm-push-6 { + left: 50%; } + .col-sm-push-5 { + left: 41.66666667%; } + .col-sm-push-4 { + left: 33.33333333%; } + .col-sm-push-3 { + left: 25%; } + .col-sm-push-2 { + left: 16.66666667%; } + .col-sm-push-1 { + left: 8.33333333%; } + .col-sm-push-0 { + left: auto; } + .col-sm-offset-12 { + margin-left: 100%; } + .col-sm-offset-11 { + margin-left: 91.66666667%; } + .col-sm-offset-10 { + margin-left: 83.33333333%; } + .col-sm-offset-9 { + margin-left: 75%; } + .col-sm-offset-8 { + margin-left: 66.66666667%; } + .col-sm-offset-7 { + margin-left: 58.33333333%; } + .col-sm-offset-6 { + margin-left: 50%; } + .col-sm-offset-5 { + margin-left: 41.66666667%; } + .col-sm-offset-4 { + margin-left: 33.33333333%; } + .col-sm-offset-3 { + margin-left: 25%; } + .col-sm-offset-2 { + margin-left: 16.66666667%; } + .col-sm-offset-1 { + margin-left: 8.33333333%; } + .col-sm-offset-0 { + margin-left: 0%; } } + +@media (min-width: 992px) { + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11 { + float: left; } + .col-md-12 { + float: left; + width: 100%; } + .col-md-11 { + width: 91.66666667%; } + .col-md-10 { + width: 83.33333333%; } + .col-md-9 { + width: 75%; } + .col-md-8 { + width: 66.66666667%; } + .col-md-7 { + width: 58.33333333%; } + .col-md-6 { + width: 50%; } + .col-md-5 { + width: 41.66666667%; } + .col-md-4 { + width: 33.33333333%; } + .col-md-3 { + width: 25%; } + .col-md-2 { + width: 16.66666667%; } + .col-md-1 { + width: 8.33333333%; } + .col-md-pull-12 { + right: 100%; } + .col-md-pull-11 { + right: 91.66666667%; } + .col-md-pull-10 { + right: 83.33333333%; } + .col-md-pull-9 { + right: 75%; } + .col-md-pull-8 { + right: 66.66666667%; } + .col-md-pull-7 { + right: 58.33333333%; } + .col-md-pull-6 { + right: 50%; } + .col-md-pull-5 { + right: 41.66666667%; } + .col-md-pull-4 { + right: 33.33333333%; } + .col-md-pull-3 { + right: 25%; } + .col-md-pull-2 { + right: 16.66666667%; } + .col-md-pull-1 { + right: 8.33333333%; } + .col-md-pull-0 { + right: auto; } + .col-md-push-12 { + left: 100%; } + .col-md-push-11 { + left: 91.66666667%; } + .col-md-push-10 { + left: 83.33333333%; } + .col-md-push-9 { + left: 75%; } + .col-md-push-8 { + left: 66.66666667%; } + .col-md-push-7 { + left: 58.33333333%; } + .col-md-push-6 { + left: 50%; } + .col-md-push-5 { + left: 41.66666667%; } + .col-md-push-4 { + left: 33.33333333%; } + .col-md-push-3 { + left: 25%; } + .col-md-push-2 { + left: 16.66666667%; } + .col-md-push-1 { + left: 8.33333333%; } + .col-md-push-0 { + left: auto; } + .col-md-offset-12 { + margin-left: 100%; } + .col-md-offset-11 { + margin-left: 91.66666667%; } + .col-md-offset-10 { + margin-left: 83.33333333%; } + .col-md-offset-9 { + margin-left: 75%; } + .col-md-offset-8 { + margin-left: 66.66666667%; } + .col-md-offset-7 { + margin-left: 58.33333333%; } + .col-md-offset-6 { + margin-left: 50%; } + .col-md-offset-5 { + margin-left: 41.66666667%; } + .col-md-offset-4 { + margin-left: 33.33333333%; } + .col-md-offset-3 { + margin-left: 25%; } + .col-md-offset-2 { + margin-left: 16.66666667%; } + .col-md-offset-1 { + margin-left: 8.33333333%; } + .col-md-offset-0 { + margin-left: 0%; } } + +@media (min-width: 1240px) { + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11 { + float: left; } + .col-lg-12 { + float: left; + width: 100%; } + .col-lg-11 { + width: 91.66666667%; } + .col-lg-10 { + width: 83.33333333%; } + .col-lg-9 { + width: 75%; } + .col-lg-8 { + width: 66.66666667%; } + .col-lg-7 { + width: 58.33333333%; } + .col-lg-6 { + width: 50%; } + .col-lg-5 { + width: 41.66666667%; } + .col-lg-4 { + width: 33.33333333%; } + .col-lg-3 { + width: 25%; } + .col-lg-2 { + width: 16.66666667%; } + .col-lg-1 { + width: 8.33333333%; } + .col-lg-pull-12 { + right: 100%; } + .col-lg-pull-11 { + right: 91.66666667%; } + .col-lg-pull-10 { + right: 83.33333333%; } + .col-lg-pull-9 { + right: 75%; } + .col-lg-pull-8 { + right: 66.66666667%; } + .col-lg-pull-7 { + right: 58.33333333%; } + .col-lg-pull-6 { + right: 50%; } + .col-lg-pull-5 { + right: 41.66666667%; } + .col-lg-pull-4 { + right: 33.33333333%; } + .col-lg-pull-3 { + right: 25%; } + .col-lg-pull-2 { + right: 16.66666667%; } + .col-lg-pull-1 { + right: 8.33333333%; } + .col-lg-pull-0 { + right: auto; } + .col-lg-push-12 { + left: 100%; } + .col-lg-push-11 { + left: 91.66666667%; } + .col-lg-push-10 { + left: 83.33333333%; } + .col-lg-push-9 { + left: 75%; } + .col-lg-push-8 { + left: 66.66666667%; } + .col-lg-push-7 { + left: 58.33333333%; } + .col-lg-push-6 { + left: 50%; } + .col-lg-push-5 { + left: 41.66666667%; } + .col-lg-push-4 { + left: 33.33333333%; } + .col-lg-push-3 { + left: 25%; } + .col-lg-push-2 { + left: 16.66666667%; } + .col-lg-push-1 { + left: 8.33333333%; } + .col-lg-push-0 { + left: auto; } + .col-lg-offset-12 { + margin-left: 100%; } + .col-lg-offset-11 { + margin-left: 91.66666667%; } + .col-lg-offset-10 { + margin-left: 83.33333333%; } + .col-lg-offset-9 { + margin-left: 75%; } + .col-lg-offset-8 { + margin-left: 66.66666667%; } + .col-lg-offset-7 { + margin-left: 58.33333333%; } + .col-lg-offset-6 { + margin-left: 50%; } + .col-lg-offset-5 { + margin-left: 41.66666667%; } + .col-lg-offset-4 { + margin-left: 33.33333333%; } + .col-lg-offset-3 { + margin-left: 25%; } + .col-lg-offset-2 { + margin-left: 16.66666667%; } + .col-lg-offset-1 { + margin-left: 8.33333333%; } + .col-lg-offset-0 { + margin-left: 0%; } } + +table { + background-color: transparent; } + +th { + text-align: left; } + +.table { + width: 100%; + max-width: 100%; + margin-bottom: 22px; } + .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { + padding: 8px; + line-height: 1.42857143; + vertical-align: top; + border-top: 1px solid #dddddd; } + .table > thead > tr > th { + vertical-align: bottom; + border-bottom: 2px solid #dddddd; } + .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { + border-top: 0; } + .table > tbody + tbody { + border-top: 2px solid #dddddd; } + .table .table { + background-color: #333333; } + +.table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { + padding: 5px; } + +.table-bordered { + border: 1px solid #dddddd; } + .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { + border: 1px solid #dddddd; } + .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { + border-bottom-width: 2px; } + +.table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { + background-color: #f9f9f9; } + +.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { + background-color: #f5f5f5; } + +table col[class*="col-"] { + position: static; + float: none; + display: table-column; } + +table td[class*="col-"], table th[class*="col-"] { + position: static; + float: none; + display: table-cell; } + +.table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { + background-color: #f5f5f5; } + +.table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover { + background-color: #e8e8e8; } + +.table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr:hover > .active, .table-hover > tbody > tr.active:hover > th { + background-color: #e8e8e8; } + +.table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { + background-color: #d3e5cf; } + +.table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover { + background-color: #c4dcbe; } + +.table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr:hover > .success, .table-hover > tbody > tr.success:hover > th { + background-color: #c4dcbe; } + +.table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { + background-color: #daebf2; } + +.table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover { + background-color: #c7e1eb; } + +.table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr:hover > .info, .table-hover > tbody > tr.info:hover > th { + background-color: #c7e1eb; } + +.table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { + background-color: #fcf8e3; } + +.table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover { + background-color: #faf2cc; } + +.table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr:hover > .warning, .table-hover > tbody > tr.warning:hover > th { + background-color: #faf2cc; } + +.table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { + background-color: #f0dcd8; } + +.table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover { + background-color: #e9cbc6; } + +.table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { + background-color: #e9cbc6; } + +@media screen and (max-width: 767px) { + .table-responsive { + width: 100%; + margin-bottom: 16.5px; + overflow-y: hidden; + overflow-x: auto; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #dddddd; + -webkit-overflow-scrolling: touch; } + .table-responsive > .table { + margin-bottom: 0; } + .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { + white-space: nowrap; } + .table-responsive > .table-bordered { + border: 0; } + .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; } + .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; } + .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { + border-bottom: 0; } } + +fieldset { + padding: 0; + margin: 0; + border: 0; + min-width: 0; } + +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 22px; + font-size: 24px; + line-height: inherit; + color: #333333; + border: 0; + border-bottom: 1px solid #e5e5e5; } + +label { + display: inline-block; + max-width: 100%; + margin-bottom: 5px; + font-weight: bold; } + +input[type="search"] { + -webkit-box-sizing: border-box; + box-sizing: border-box; } + +input[type="radio"], input[type="checkbox"] { + margin: 4px 0 0; + margin-top: 1px \9; + line-height: normal; } + +input[type="file"] { + display: block; } + +input[type="range"] { + display: block; + width: 100%; } + +select[multiple], select[size] { + height: auto; } + +input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; } + +output { + display: block; + padding-top: 7px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; } + +.form-control { + display: block; + width: 100%; + height: 36px; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; + background-color: #ffffff; + background-image: none; + border: 1px solid #cccccc; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; } + .form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); } + .form-control::-moz-placeholder { + color: #666666; + opacity: 1; } + .form-control:-ms-input-placeholder, .form-control::-webkit-input-placeholder { + color: #666666; } + .form-control[disabled], .form-control[readonly] { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; } + +fieldset[disabled] .form-control { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; } + +textarea.form-control { + height: auto; } + +input[type="search"] { + -webkit-appearance: none; } + +input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] { + line-height: 36px; + line-height: 1.42857143 \0; } + +input[type="date"].input-sm, input[type="time"].input-sm, input[type="datetime-local"].input-sm, input[type="month"].input-sm { + line-height: 33px; } + +input[type="date"].input-lg, input[type="time"].input-lg, input[type="datetime-local"].input-lg, input[type="month"].input-lg { + line-height: 49px; } + +.form-group { + margin-bottom: 15px; } + +.radio, .checkbox { + position: relative; + display: block; + min-height: 22px; + margin-top: 10px; + margin-bottom: 10px; } + +.radio label, .checkbox label { + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + cursor: pointer; } + +.radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { + position: absolute; + margin-left: -20px; + margin-top: 4px \9; } + +.radio + .radio, .checkbox + .checkbox { + margin-top: -5px; } + +.radio-inline, .checkbox-inline { + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + vertical-align: middle; + font-weight: normal; + cursor: pointer; } + +.radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { + margin-top: 0; + margin-left: 10px; } + +input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"].disabled, input[type="checkbox"].disabled { + cursor: not-allowed; } + +fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"] { + cursor: not-allowed; } + +.radio-inline.disabled, .checkbox-inline.disabled { + cursor: not-allowed; } + +fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox-inline { + cursor: not-allowed; } + +.radio.disabled label, .checkbox.disabled label { + cursor: not-allowed; } + +fieldset[disabled] .radio label, fieldset[disabled] .checkbox label { + cursor: not-allowed; } + +.form-control-static { + padding-top: 7px; + padding-bottom: 7px; + margin-bottom: 0; } + .form-control-static.input-lg, .form-control-static.input-sm { + padding-left: 0; + padding-right: 0; } + +.input-sm, .form-horizontal .form-group-sm .form-control { + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; } + +select.input-sm { + height: 33px; + line-height: 33px; } + +textarea.input-sm, select[multiple].input-sm { + height: auto; } + +.input-lg, .form-horizontal .form-group-lg .form-control { + height: 49px; + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; } + +select.input-lg { + height: 49px; + line-height: 49px; } + +textarea.input-lg, select[multiple].input-lg { + height: auto; } + +.has-feedback { + position: relative; } + .has-feedback .form-control { + padding-right: 45px; } + +.form-control-feedback { + position: absolute; + top: 27px; + right: 0; + z-index: 2; + display: block; + width: 36px; + height: 36px; + line-height: 36px; + text-align: center; } + +.input-lg + .form-control-feedback { + width: 49px; + height: 49px; + line-height: 49px; } + +.input-sm + .form-control-feedback { + width: 33px; + height: 33px; + line-height: 33px; } + +.has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline { + color: #125204; } + +.has-success .form-control { + border-color: #125204; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } + .has-success .form-control:focus { + border-color: #072102; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; } + +.has-success .input-group-addon { + color: #125204; + border-color: #125204; + background-color: #d3e5cf; } + +.has-success .form-control-feedback { + color: #125204; } + +.has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline { + color: #8a6d3b; } + +.has-warning .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } + .has-warning .form-control:focus { + border-color: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; } + +.has-warning .input-group-addon { + color: #8a6d3b; + border-color: #8a6d3b; + background-color: #fcf8e3; } + +.has-warning .form-control-feedback { + color: #8a6d3b; } + +.has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline { + color: #d63510; } + +.has-error .form-control { + border-color: #d63510; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } + .has-error .form-control:focus { + border-color: #a6290c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; } + +.has-error .input-group-addon { + color: #d63510; + border-color: #d63510; + background-color: #f0dcd8; } + +.has-error .form-control-feedback { + color: #d63510; } + +.has-feedback label.sr-only ~ .form-control-feedback { + top: 0; } + +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: #ffffff; } + +@media (min-width: 768px) { + .form-inline .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; } + .form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle; } + .form-inline .input-group { + display: inline-table; + vertical-align: middle; } + .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn, .form-inline .input-group .form-control { + width: auto; } + .form-inline .input-group > .form-control { + width: 100%; } + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle; } + .form-inline .radio, .form-inline .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; } + .form-inline .radio label, .form-inline .checkbox label { + padding-left: 0; } + .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; } + .form-inline .has-feedback .form-control-feedback { + top: 0; } } + +.form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { + margin-top: 0; + margin-bottom: 0; + padding-top: 7px; } + +.form-horizontal .radio, .form-horizontal .checkbox { + min-height: 29px; } + +.form-horizontal .form-group { + margin-left: -15px; + margin-right: -15px; } + +.form-horizontal .has-feedback .form-control-feedback { + top: 0; + right: 15px; } + +@media (min-width: 768px) { + .form-horizontal .control-label { + text-align: right; + margin-bottom: 0; + padding-top: 7px; } } + +@media (min-width: 768px) { + .form-horizontal .form-group-lg .control-label { + padding-top: 14.3px; } } + +@media (min-width: 768px) { + .form-horizontal .form-group-sm .control-label { + padding-top: 6px; } } + +.btn { + display: inline-block; + margin-bottom: 0; + font-weight: normal; + text-align: center; + vertical-align: middle; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + border-radius: 1px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } + .btn:focus, .btn:active:focus, .btn.active:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; } + .btn:hover, .btn:focus { + color: #ffffff; + text-decoration: none; } + .btn:active, .btn.active { + outline: 0; + background-image: none; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } + .btn.disabled, .btn[disabled] { + cursor: not-allowed; + pointer-events: none; + opacity: 0.65; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none; } + +fieldset[disabled] .btn { + cursor: not-allowed; + pointer-events: none; + opacity: 0.65; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none; } + +.btn-default { + color: #ffffff; + background-color: #959595; + border-color: #959595; } + .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active { + color: #ffffff; + background-color: #7c7c7c; + border-color: #767676; } + +.open > .dropdown-toggle.btn-default { + color: #ffffff; + background-color: #7c7c7c; + border-color: #767676; } + +.btn-default:active, .btn-default.active { + background-image: none; } + +.open > .dropdown-toggle.btn-default { + background-image: none; } + +.btn-default.disabled, .btn-default[disabled] { + background-color: #959595; + border-color: #959595; } + +fieldset[disabled] .btn-default { + background-color: #959595; + border-color: #959595; } + +.btn-default.disabled:hover, .btn-default[disabled]:hover { + background-color: #959595; + border-color: #959595; } + +fieldset[disabled] .btn-default:hover { + background-color: #959595; + border-color: #959595; } + +.btn-default.disabled:focus, .btn-default[disabled]:focus { + background-color: #959595; + border-color: #959595; } + +fieldset[disabled] .btn-default:focus { + background-color: #959595; + border-color: #959595; } + +.btn-default.disabled:active, .btn-default[disabled]:active { + background-color: #959595; + border-color: #959595; } + +fieldset[disabled] .btn-default:active { + background-color: #959595; + border-color: #959595; } + +.btn-default.disabled.active, .btn-default[disabled].active { + background-color: #959595; + border-color: #959595; } + +fieldset[disabled] .btn-default.active { + background-color: #959595; + border-color: #959595; } + +.btn-default .badge { + color: #959595; + background-color: #ffffff; } + +.btn-primary { + color: #ffffff; + background-color: #0a94d4; + border-color: #0a94d4; } + .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; } + +.open > .dropdown-toggle.btn-primary { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; } + +.btn-primary:active, .btn-primary.active { + background-image: none; } + +.open > .dropdown-toggle.btn-primary { + background-image: none; } + +.btn-primary.disabled, .btn-primary[disabled] { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-primary { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-primary.disabled:hover, .btn-primary[disabled]:hover { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-primary:hover { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-primary.disabled:focus, .btn-primary[disabled]:focus { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-primary:focus { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-primary.disabled:active, .btn-primary[disabled]:active { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-primary:active { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-primary.disabled.active, .btn-primary[disabled].active { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-primary.active { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-primary .badge { + color: #0a94d4; + background-color: #ffffff; } + +.btn-success { + color: #ffffff; + background-color: #28b309; + border-color: #28b309; } + .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active { + color: #ffffff; + background-color: #1d8207; + border-color: #1b7906; } + +.open > .dropdown-toggle.btn-success { + color: #ffffff; + background-color: #1d8207; + border-color: #1b7906; } + +.btn-success:active, .btn-success.active { + background-image: none; } + +.open > .dropdown-toggle.btn-success { + background-image: none; } + +.btn-success.disabled, .btn-success[disabled] { + background-color: #28b309; + border-color: #28b309; } + +fieldset[disabled] .btn-success { + background-color: #28b309; + border-color: #28b309; } + +.btn-success.disabled:hover, .btn-success[disabled]:hover { + background-color: #28b309; + border-color: #28b309; } + +fieldset[disabled] .btn-success:hover { + background-color: #28b309; + border-color: #28b309; } + +.btn-success.disabled:focus, .btn-success[disabled]:focus { + background-color: #28b309; + border-color: #28b309; } + +fieldset[disabled] .btn-success:focus { + background-color: #28b309; + border-color: #28b309; } + +.btn-success.disabled:active, .btn-success[disabled]:active { + background-color: #28b309; + border-color: #28b309; } + +fieldset[disabled] .btn-success:active { + background-color: #28b309; + border-color: #28b309; } + +.btn-success.disabled.active, .btn-success[disabled].active { + background-color: #28b309; + border-color: #28b309; } + +fieldset[disabled] .btn-success.active { + background-color: #28b309; + border-color: #28b309; } + +.btn-success .badge { + color: #28b309; + background-color: #ffffff; } + +.btn-info { + color: #ffffff; + background-color: #0a94d4; + border-color: #0a94d4; } + .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; } + +.open > .dropdown-toggle.btn-info { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; } + +.btn-info:active, .btn-info.active { + background-image: none; } + +.open > .dropdown-toggle.btn-info { + background-image: none; } + +.btn-info.disabled, .btn-info[disabled] { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-info { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-info.disabled:hover, .btn-info[disabled]:hover { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-info:hover { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-info.disabled:focus, .btn-info[disabled]:focus { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-info:focus { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-info.disabled:active, .btn-info[disabled]:active { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-info:active { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-info.disabled.active, .btn-info[disabled].active { + background-color: #0a94d4; + border-color: #0a94d4; } + +fieldset[disabled] .btn-info.active { + background-color: #0a94d4; + border-color: #0a94d4; } + +.btn-info .badge { + color: #0a94d4; + background-color: #ffffff; } + +.btn-warning { + color: #ffffff; + background-color: #f0ad20; + border-color: #f0ad20; } + .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active { + color: #ffffff; + background-color: #cf910e; + border-color: #c68a0d; } + +.open > .dropdown-toggle.btn-warning { + color: #ffffff; + background-color: #cf910e; + border-color: #c68a0d; } + +.btn-warning:active, .btn-warning.active { + background-image: none; } + +.open > .dropdown-toggle.btn-warning { + background-image: none; } + +.btn-warning.disabled, .btn-warning[disabled] { + background-color: #f0ad20; + border-color: #f0ad20; } + +fieldset[disabled] .btn-warning { + background-color: #f0ad20; + border-color: #f0ad20; } + +.btn-warning.disabled:hover, .btn-warning[disabled]:hover { + background-color: #f0ad20; + border-color: #f0ad20; } + +fieldset[disabled] .btn-warning:hover { + background-color: #f0ad20; + border-color: #f0ad20; } + +.btn-warning.disabled:focus, .btn-warning[disabled]:focus { + background-color: #f0ad20; + border-color: #f0ad20; } + +fieldset[disabled] .btn-warning:focus { + background-color: #f0ad20; + border-color: #f0ad20; } + +.btn-warning.disabled:active, .btn-warning[disabled]:active { + background-color: #f0ad20; + border-color: #f0ad20; } + +fieldset[disabled] .btn-warning:active { + background-color: #f0ad20; + border-color: #f0ad20; } + +.btn-warning.disabled.active, .btn-warning[disabled].active { + background-color: #f0ad20; + border-color: #f0ad20; } + +fieldset[disabled] .btn-warning.active { + background-color: #f0ad20; + border-color: #f0ad20; } + +.btn-warning .badge { + color: #f0ad20; + background-color: #ffffff; } + +.btn-danger { + color: #ffffff; + background-color: #ef4a24; + border-color: #ef4a24; } + .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active { + color: #ffffff; + background-color: #d1330f; + border-color: #c7310f; } + +.open > .dropdown-toggle.btn-danger { + color: #ffffff; + background-color: #d1330f; + border-color: #c7310f; } + +.btn-danger:active, .btn-danger.active { + background-image: none; } + +.open > .dropdown-toggle.btn-danger { + background-image: none; } + +.btn-danger.disabled, .btn-danger[disabled] { + background-color: #ef4a24; + border-color: #ef4a24; } + +fieldset[disabled] .btn-danger { + background-color: #ef4a24; + border-color: #ef4a24; } + +.btn-danger.disabled:hover, .btn-danger[disabled]:hover { + background-color: #ef4a24; + border-color: #ef4a24; } + +fieldset[disabled] .btn-danger:hover { + background-color: #ef4a24; + border-color: #ef4a24; } + +.btn-danger.disabled:focus, .btn-danger[disabled]:focus { + background-color: #ef4a24; + border-color: #ef4a24; } + +fieldset[disabled] .btn-danger:focus { + background-color: #ef4a24; + border-color: #ef4a24; } + +.btn-danger.disabled:active, .btn-danger[disabled]:active { + background-color: #ef4a24; + border-color: #ef4a24; } + +fieldset[disabled] .btn-danger:active { + background-color: #ef4a24; + border-color: #ef4a24; } + +.btn-danger.disabled.active, .btn-danger[disabled].active { + background-color: #ef4a24; + border-color: #ef4a24; } + +fieldset[disabled] .btn-danger.active { + background-color: #ef4a24; + border-color: #ef4a24; } + +.btn-danger .badge { + color: #ef4a24; + background-color: #ffffff; } + +.btn-link { + color: #0a94d4; + font-weight: normal; + cursor: pointer; + border-radius: 0; + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; } + .btn-link:active, .btn-link[disabled] { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; } + +fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; } + +.btn-link { + border-color: transparent; } + .btn-link:hover, .btn-link:focus, .btn-link:active { + border-color: transparent; } + .btn-link:hover, .btn-link:focus { + color: #07618b; + text-decoration: underline; + background-color: transparent; } + .btn-link[disabled]:hover { + color: #666666; + text-decoration: none; } + +fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { + color: #666666; + text-decoration: none; } + +.btn-lg, .btn-group-lg > .btn { + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; } + +.btn-sm, .btn-group-sm > .btn { + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; } + +.btn-xs, .btn-group-xs > .btn { + padding: 1px 5px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; } + +.btn-block { + display: block; + width: 100%; } + .btn-block + .btn-block { + margin-top: 5px; } + +input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { + width: 100%; } + +.fade { + opacity: 0; + -webkit-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; } + .fade.in { + opacity: 1; } + +.collapse { + display: none; } + .collapse.in { + display: block; } + +tr.collapse.in { + display: table-row; } + +tbody.collapse.in { + display: table-row-group; } + +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition: height 0.35s ease; + transition: height 0.35s ease; } + +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px solid; + border-right: 4px solid transparent; + border-left: 4px solid transparent; } + +.dropdown { + position: relative; } + +.dropdown-toggle:focus { + outline: 0; } + +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + list-style: none; + font-size: 16px; + text-align: left; + background-color: #ffffff; + border: 1px solid #cccccc; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 1px; + -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); + background-clip: padding-box; } + .dropdown-menu.pull-right { + right: 0; + left: auto; } + .dropdown-menu .divider { + height: 1px; + margin: 10px 0; + overflow: hidden; + background-color: #e5e5e5; } + .dropdown-menu > li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.42857143; + color: #333333; + white-space: nowrap; } + .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { + text-decoration: none; + color: #262626; + background-color: #f5f5f5; } + .dropdown-menu > .active > a { + color: #ffffff; + text-decoration: none; + outline: 0; + background-color: #4d4d4d; } + .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { + color: #ffffff; + text-decoration: none; + outline: 0; + background-color: #4d4d4d; } + .dropdown-menu > .disabled > a { + color: #666666; } + .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { + color: #666666; } + .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { + text-decoration: none; + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + cursor: not-allowed; } + +.open > .dropdown-menu { + display: block; } + +.open > a { + outline: 0; } + +.dropdown-menu-right { + left: auto; + right: 0; } + +.dropdown-menu-left { + left: 0; + right: auto; } + +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 14px; + line-height: 1.42857143; + color: #666666; + white-space: nowrap; } + +.dropdown-backdrop { + position: fixed; + left: 0; + right: 0; + bottom: 0; + top: 0; + z-index: 990; } + +.pull-right > .dropdown-menu { + right: 0; + left: auto; } + +.dropup .caret, .navbar-fixed-bottom .dropdown .caret { + border-top: 0; + border-bottom: 4px solid; + content: ""; } + +.dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 1px; } + +@media (min-width: 768px) { + .navbar-right .dropdown-menu { + left: auto; + right: 0; } + .navbar-right .dropdown-menu-left { + left: 0; + right: auto; } } + +.btn-group, .btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle; } + +.btn-group > .btn, .btn-group-vertical > .btn { + position: relative; + float: left; } + +.btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { + z-index: 2; } + +.btn-group > .btn:focus, .btn-group-vertical > .btn:focus { + outline: 0; } + +.btn-group .btn + .btn, .btn-group .btn + .btn-group { + margin-left: -1px; } + +.btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { + margin-left: -1px; } + +.btn-toolbar { + margin-left: -5px; } + .btn-toolbar .btn-group, .btn-toolbar .input-group { + float: left; } + .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group { + margin-left: 5px; } + +.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0; } + +.btn-group > .btn:first-child { + margin-left: 0; } + .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { + border-bottom-right-radius: 0; + border-top-right-radius: 0; } + +.btn-group > .btn:last-child:not(:first-child) { + border-bottom-left-radius: 0; + border-top-left-radius: 0; } + +.btn-group > .dropdown-toggle:not(:first-child) { + border-bottom-left-radius: 0; + border-top-left-radius: 0; } + +.btn-group > .btn-group { + float: left; } + .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; } + .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { + border-bottom-right-radius: 0; + border-top-right-radius: 0; } + .btn-group > .btn-group:last-child > .btn:first-child { + border-bottom-left-radius: 0; + border-top-left-radius: 0; } + +.btn-group .dropdown-toggle:active { + outline: 0; } + +.btn-group.open .dropdown-toggle { + outline: 0; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } + .btn-group.open .dropdown-toggle.btn-link { + -webkit-box-shadow: none; + box-shadow: none; } + +.btn-group > .btn + .dropdown-toggle { + padding-left: 8px; + padding-right: 8px; } + +.btn-group > .btn-lg + .dropdown-toggle { + padding-left: 12px; + padding-right: 12px; } + +.btn .caret { + margin-left: 0; } + +.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0; } + +.dropup .btn-lg .caret { + border-width: 0 5px 5px; } + +.btn-group-vertical > .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; } + +.btn-group-vertical > .btn-group { + display: block; + float: none; + width: 100%; + max-width: 100%; } + .btn-group-vertical > .btn-group > .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; + float: none; } + +.btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group { + margin-top: -1px; + margin-left: 0; } + +.btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { + margin-top: -1px; + margin-left: 0; } + +.btn-group-vertical > .btn:not(:first-child):not(:last-child) { + border-radius: 0; } + +.btn-group-vertical > .btn:first-child:not(:last-child) { + border-top-right-radius: 1px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } + +.btn-group-vertical > .btn:last-child:not(:first-child) { + border-bottom-left-radius: 1px; + border-top-right-radius: 0; + border-top-left-radius: 0; } + +.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; } + +.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } + +.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { + border-top-right-radius: 0; + border-top-left-radius: 0; } + +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate; } + .btn-group-justified > .btn { + float: none; + display: table-cell; + width: 1%; } + .btn-group-justified > .btn-group { + float: none; + display: table-cell; + width: 1%; } + .btn-group-justified > .btn-group .btn { + width: 100%; } + .btn-group-justified > .btn-group .dropdown-menu { + left: auto; } + +[data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { + position: absolute; + z-index: -1; + opacity: 0; + filter: alpha(opacity=0); } + +.input-group { + position: relative; + display: table; + border-collapse: separate; } + .input-group[class*="col-"] { + float: none; + padding-left: 0; + padding-right: 0; } + .input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0; } + +.input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { + height: 49px; + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; } + +select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { + height: 49px; + line-height: 49px; } + +textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn { + height: auto; } + +select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { + height: auto; } + +.input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; } + +select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { + height: 33px; + line-height: 33px; } + +textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn { + height: auto; } + +select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { + height: auto; } + +.input-group-addon, .input-group-btn, .input-group .form-control { + display: table-cell; } + +.input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { + border-radius: 0; } + +.input-group-addon, .input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle; } + +.input-group-addon { + padding: 6px 12px; + font-size: 16px; + font-weight: normal; + line-height: 1; + color: #4d4d4d; + text-align: center; + background-color: #cccccc; + border: 1px solid #cccccc; + border-radius: 1px; } + .input-group-addon.input-sm { + padding: 5px 10px; + font-size: 14px; + border-radius: 0; } + .input-group-addon.input-lg { + padding: 10px 16px; + font-size: 20px; + border-radius: 2px; } + .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { + margin-top: 0; } + +.input-group .form-control:first-child, .input-group-addon:first-child { + border-bottom-right-radius: 0; + border-top-right-radius: 0; } + +.input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle { + border-bottom-right-radius: 0; + border-top-right-radius: 0; } + +.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { + border-bottom-right-radius: 0; + border-top-right-radius: 0; } + +.input-group-addon:first-child { + border-right: 0; } + +.input-group .form-control:last-child, .input-group-addon:last-child { + border-bottom-left-radius: 0; + border-top-left-radius: 0; } + +.input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle { + border-bottom-left-radius: 0; + border-top-left-radius: 0; } + +.input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { + border-bottom-left-radius: 0; + border-top-left-radius: 0; } + +.input-group-addon:last-child { + border-left: 0; } + +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap; } + .input-group-btn > .btn { + position: relative; } + .input-group-btn > .btn + .btn { + margin-left: -1px; } + .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { + z-index: 2; } + .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { + margin-right: -1px; } + .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { + margin-left: -1px; } + +.nav { + margin-bottom: 0; + padding-left: 0; + list-style: none; } + .nav > li { + position: relative; + display: block; } + .nav > li > a { + position: relative; + display: block; + padding: 5px 5px; } + .nav > li > a:hover, .nav > li > a:focus { + text-decoration: none; + background-color: transparent; } + .nav > li.disabled > a { + color: #666666; } + .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { + color: #666666; + text-decoration: none; + background-color: transparent; + cursor: not-allowed; } + .nav .open > a { + background-color: transparent; + border-color: #0a94d4; } + .nav .open > a:hover, .nav .open > a:focus { + background-color: transparent; + border-color: #0a94d4; } + .nav .nav-divider { + height: 1px; + margin: 10px 0; + overflow: hidden; + background-color: #e5e5e5; } + .nav > li > a > img { + max-width: none; } + +.nav-tabs { + border-bottom: 1px solid #dddddd; } + .nav-tabs > li { + float: left; + margin-bottom: -1px; } + .nav-tabs > li > a { + margin-right: 2px; + line-height: 1.42857143; + border: 1px solid transparent; + border-radius: 1px 1px 0 0; } + .nav-tabs > li > a:hover { + border-color: #cccccc #cccccc #dddddd; } + .nav-tabs > li.active > a { + color: #4d4d4d; + background-color: #333333; + border: 1px solid #dddddd; + border-bottom-color: transparent; + cursor: default; } + .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { + color: #4d4d4d; + background-color: #333333; + border: 1px solid #dddddd; + border-bottom-color: transparent; + cursor: default; } + .nav-tabs.nav-justified { + width: 100%; + border-bottom: 0; } + .nav-tabs.nav-justified > li { + float: none; } + .nav-tabs.nav-justified > li > a { + text-align: center; + margin-bottom: 5px; } + .nav-tabs.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; } + .nav-tabs.nav-justified > li > a { + margin-right: 0; + border-radius: 1px; } + .nav-tabs.nav-justified > .active > a { + border: 1px solid #dddddd; } + .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { + border: 1px solid #dddddd; } + +@media (min-width: 768px) { + .nav-tabs.nav-justified > li { + display: table-cell; + width: 1%; } + .nav-tabs.nav-justified > li > a { + margin-bottom: 0; } } + +@media (min-width: 768px) { + .nav-tabs.nav-justified > li > a { + border-bottom: 1px solid #dddddd; + border-radius: 1px 1px 0 0; } + .nav-tabs.nav-justified > .active > a { + border-bottom-color: #333333; } + .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { + border-bottom-color: #333333; } } + +.nav-pills > li { + float: left; } + .nav-pills > li > a { + border-radius: 1px; } + .nav-pills > li + li { + margin-left: 2px; } + .nav-pills > li.active > a { + color: #ffffff; + background-color: #4d4d4d; } + .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { + color: #ffffff; + background-color: #4d4d4d; } + +.nav-stacked > li { + float: none; } + .nav-stacked > li + li { + margin-top: 2px; + margin-left: 0; } + +.nav-justified { + width: 100%; } + .nav-justified > li { + float: none; } + .nav-justified > li > a { + text-align: center; + margin-bottom: 5px; } + .nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; } + +@media (min-width: 768px) { + .nav-justified > li { + display: table-cell; + width: 1%; } + .nav-justified > li > a { + margin-bottom: 0; } } + +.nav-tabs-justified { + border-bottom: 0; } + .nav-tabs-justified > li > a { + margin-right: 0; + border-radius: 1px; } + .nav-tabs-justified > .active > a { + border: 1px solid #dddddd; } + .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { + border: 1px solid #dddddd; } + +@media (min-width: 768px) { + .nav-tabs-justified > li > a { + border-bottom: 1px solid #dddddd; + border-radius: 1px 1px 0 0; } + .nav-tabs-justified > .active > a { + border-bottom-color: #333333; } + .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { + border-bottom-color: #333333; } } + +.tab-content > .tab-pane { + display: none; } + +.tab-content > .active { + display: block; } + +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-right-radius: 0; + border-top-left-radius: 0; } + +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 22px; + border: 1px solid transparent; } + +@media (min-width: 768px) { + .navbar { + border-radius: 1px; } } + +@media (min-width: 768px) { + .navbar-header { + float: left; } } + +.navbar-collapse { + overflow-x: visible; + padding-right: 15px; + padding-left: 15px; + border-top: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); + -webkit-overflow-scrolling: touch; } + .navbar-collapse.in { + overflow-y: auto; } + +@media (min-width: 768px) { + .navbar-collapse { + width: auto; + border-top: 0; + -webkit-box-shadow: none; + box-shadow: none; } + .navbar-collapse.collapse { + display: block !important; + height: auto !important; + padding-bottom: 0; + overflow: visible !important; } + .navbar-collapse.in { + overflow-y: visible; } + .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { + padding-left: 0; + padding-right: 0; } } + +.navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { + max-height: 340px; } + +@media (max-width: 480px) and (orientation: landscape) { + .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { + max-height: 200px; } } + +.container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { + margin-right: -15px; + margin-left: -15px; } + +@media (min-width: 768px) { + .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { + margin-right: 0; + margin-left: 0; } } + +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px; } + +@media (min-width: 768px) { + .navbar-static-top { + border-radius: 0; } } + +.navbar-fixed-top, .navbar-fixed-bottom { + position: fixed; + right: 0; + left: 0; + z-index: 1030; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); } + +@media (min-width: 768px) { + .navbar-fixed-top, .navbar-fixed-bottom { + border-radius: 0; } } + +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px; } + +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0; } + +.navbar-brand { + float: left; + padding: 14px 15px; + font-size: 20px; + line-height: 22px; + height: 50px; } + .navbar-brand:hover, .navbar-brand:focus { + text-decoration: none; } + +@media (min-width: 768px) { + .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { + margin-left: -15px; } } + +.navbar-toggle { + position: relative; + float: right; + margin-right: 15px; + padding: 9px 10px; + margin-top: 8px; + margin-bottom: 8px; + background-color: transparent; + background-image: none; + border: 1px solid transparent; + border-radius: 1px; } + .navbar-toggle:focus { + outline: 0; } + .navbar-toggle .icon-bar { + display: block; + width: 22px; + height: 2px; + border-radius: 1px; } + .navbar-toggle .icon-bar + .icon-bar { + margin-top: 4px; } + +@media (min-width: 768px) { + .navbar-toggle { + display: none; } } + +.navbar-nav { + margin: 7px -15px; } + .navbar-nav > li > a { + padding-top: 10px; + padding-bottom: 10px; + line-height: 22px; } + +@media (max-width: 767px) { + .navbar-nav .open .dropdown-menu { + position: static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + -webkit-box-shadow: none; + box-shadow: none; } + .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { + padding: 5px 15px 5px 25px; } + .navbar-nav .open .dropdown-menu > li > a { + line-height: 22px; } + .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { + background-image: none; } } + +@media (min-width: 768px) { + .navbar-nav { + float: left; + margin: 0; } + .navbar-nav > li { + float: left; } + .navbar-nav > li > a { + padding-top: 14px; + padding-bottom: 14px; } + .navbar-nav.navbar-right:last-child { + margin-right: -15px; } } + +@media (min-width: 768px) { + .navbar-left { + float: left !important; } + .navbar-right { + float: right !important; } } + +.navbar-form { + margin-left: -15px; + margin-right: -15px; + padding: 10px 15px; + border-top: 1px solid transparent; + border-bottom: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); + margin-top: 7px; + margin-bottom: 7px; } + +@media (min-width: 768px) { + .navbar-form .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; } + .navbar-form .form-control { + display: inline-block; + width: auto; + vertical-align: middle; } + .navbar-form .input-group { + display: inline-table; + vertical-align: middle; } + .navbar-form .input-group .input-group-addon, .navbar-form .input-group .input-group-btn, .navbar-form .input-group .form-control { + width: auto; } + .navbar-form .input-group > .form-control { + width: 100%; } + .navbar-form .control-label { + margin-bottom: 0; + vertical-align: middle; } + .navbar-form .radio, .navbar-form .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; } + .navbar-form .radio label, .navbar-form .checkbox label { + padding-left: 0; } + .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; } + .navbar-form .has-feedback .form-control-feedback { + top: 0; } } + +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 5px; } } + +@media (min-width: 768px) { + .navbar-form { + width: auto; + border: 0; + margin-left: 0; + margin-right: 0; + padding-top: 0; + padding-bottom: 0; + -webkit-box-shadow: none; + box-shadow: none; } + .navbar-form.navbar-right:last-child { + margin-right: -15px; } } + +.navbar-nav > li > .dropdown-menu { + margin-top: 0; + border-top-right-radius: 0; + border-top-left-radius: 0; } + +.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } + +.navbar-btn { + margin-top: 7px; + margin-bottom: 7px; } + .navbar-btn.btn-sm { + margin-top: 8.5px; + margin-bottom: 8.5px; } + .navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px; } + +.navbar-text { + margin-top: 14px; + margin-bottom: 14px; } + +@media (min-width: 768px) { + .navbar-text { + float: left; + margin-left: 15px; + margin-right: 15px; } + .navbar-text.navbar-right:last-child { + margin-right: 0; } } + +.navbar-default { + background-color: #f8f8f8; + border-color: #e7e7e7; } + .navbar-default .navbar-brand { + color: #777777; } + .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { + color: #5e5e5e; + background-color: transparent; } + .navbar-default .navbar-text { + color: #777777; } + .navbar-default .navbar-nav > li > a { + color: #777777; } + .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { + color: #333333; + background-color: transparent; } + .navbar-default .navbar-nav > .active > a { + color: #555555; + background-color: #e7e7e7; } + .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { + color: #555555; + background-color: #e7e7e7; } + .navbar-default .navbar-nav > .disabled > a { + color: #cccccc; + background-color: transparent; } + .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { + color: #cccccc; + background-color: transparent; } + .navbar-default .navbar-toggle { + border-color: #dddddd; } + .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { + background-color: #dddddd; } + .navbar-default .navbar-toggle .icon-bar { + background-color: #888888; } + .navbar-default .navbar-collapse, .navbar-default .navbar-form { + border-color: #e7e7e7; } + .navbar-default .navbar-nav > .open > a { + background-color: #e7e7e7; + color: #555555; } + .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { + background-color: #e7e7e7; + color: #555555; } + .navbar-default .navbar-link { + color: #777777; } + .navbar-default .navbar-link:hover { + color: #333333; } + .navbar-default .btn-link { + color: #777777; } + .navbar-default .btn-link:hover, .navbar-default .btn-link:focus { + color: #333333; } + .navbar-default .btn-link[disabled]:hover { + color: #cccccc; } + +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu > li > a { + color: #777777; } + .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { + color: #333333; + background-color: transparent; } + .navbar-default .navbar-nav .open .dropdown-menu > .active > a { + color: #555555; + background-color: #e7e7e7; } + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #555555; + background-color: #e7e7e7; } + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a { + color: #cccccc; + background-color: transparent; } + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #cccccc; + background-color: transparent; } } + +fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { + color: #cccccc; } + +.navbar-inverse { + background-color: #222222; + border-color: #080808; } + .navbar-inverse .navbar-brand { + color: #666666; } + .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { + color: #ffffff; + background-color: transparent; } + .navbar-inverse .navbar-text { + color: #666666; } + .navbar-inverse .navbar-nav > li > a { + color: #666666; } + .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { + color: #ffffff; + background-color: transparent; } + .navbar-inverse .navbar-nav > .active > a { + color: #ffffff; + background-color: #080808; } + .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { + color: #ffffff; + background-color: #080808; } + .navbar-inverse .navbar-nav > .disabled > a { + color: #444444; + background-color: transparent; } + .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { + color: #444444; + background-color: transparent; } + .navbar-inverse .navbar-toggle { + border-color: #333333; } + .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { + background-color: #333333; } + .navbar-inverse .navbar-toggle .icon-bar { + background-color: #ffffff; } + .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { + border-color: #101010; } + .navbar-inverse .navbar-nav > .open > a { + background-color: #080808; + color: #ffffff; } + .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { + background-color: #080808; + color: #ffffff; } + .navbar-inverse .navbar-link { + color: #666666; } + .navbar-inverse .navbar-link:hover { + color: #ffffff; } + .navbar-inverse .btn-link { + color: #666666; } + .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link:focus { + color: #ffffff; } + .navbar-inverse .btn-link[disabled]:hover { + color: #444444; } + +@media (max-width: 767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { + border-color: #080808; } + .navbar-inverse .navbar-nav .open .dropdown-menu .divider { + background-color: #080808; } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { + color: #666666; } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { + color: #ffffff; + background-color: transparent; } + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a { + color: #ffffff; + background-color: #080808; } + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #ffffff; + background-color: #080808; } + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a { + color: #444444; + background-color: transparent; } + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #444444; + background-color: transparent; } } + +fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:focus { + color: #444444; } + +.breadcrumb { + padding: 8px 15px; + margin-bottom: 22px; + list-style: none; + background-color: #f5f5f5; + border-radius: 1px; } + .breadcrumb > li { + display: inline-block; } + .breadcrumb > li + li:before { + content: "/\00a0"; + padding: 0 5px; + color: #cccccc; } + .breadcrumb > .active { + color: #666666; } + +.pagination { + display: inline-block; + padding-left: 0; + margin: 22px 0; + border-radius: 1px; } + .pagination > li { + display: inline; } + .pagination > li > a, .pagination > li > span { + position: relative; + float: left; + padding: 6px 12px; + line-height: 1.42857143; + text-decoration: none; + color: #0a94d4; + background-color: #ffffff; + border: 1px solid #dddddd; + margin-left: -1px; } + .pagination > li:first-child > a, .pagination > li:first-child > span { + margin-left: 0; + border-bottom-left-radius: 1px; + border-top-left-radius: 1px; } + .pagination > li:last-child > a, .pagination > li:last-child > span { + border-bottom-right-radius: 1px; + border-top-right-radius: 1px; } + .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { + color: #07618b; + background-color: #cccccc; + border-color: #dddddd; } + .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { + z-index: 2; + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; + cursor: default; } + .pagination > .disabled > span { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; } + .pagination > .disabled > span:hover, .pagination > .disabled > span:focus { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; } + .pagination > .disabled > a { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; } + .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; } + +.pagination-lg > li > a, .pagination-lg > li > span { + padding: 10px 16px; + font-size: 20px; } + +.pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { + border-bottom-left-radius: 2px; + border-top-left-radius: 2px; } + +.pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { + border-bottom-right-radius: 2px; + border-top-right-radius: 2px; } + +.pagination-sm > li > a, .pagination-sm > li > span { + padding: 5px 10px; + font-size: 14px; } + +.pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { + border-bottom-left-radius: 0; + border-top-left-radius: 0; } + +.pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { + border-bottom-right-radius: 0; + border-top-right-radius: 0; } + +.pager { + padding-left: 0; + margin: 22px 0; + list-style: none; + text-align: center; } + .pager li { + display: inline; } + .pager li > a, .pager li > span { + display: inline-block; + padding: 5px 14px; + background-color: #ffffff; + border: 1px solid #dddddd; + border-radius: 15px; } + .pager li > a:hover, .pager li > a:focus { + text-decoration: none; + background-color: #cccccc; } + .pager .next > a, .pager .next > span { + float: right; } + .pager .previous > a, .pager .previous > span { + float: left; } + .pager .disabled > a { + color: #666666; + background-color: #ffffff; + cursor: not-allowed; } + .pager .disabled > a:hover, .pager .disabled > a:focus { + color: #666666; + background-color: #ffffff; + cursor: not-allowed; } + .pager .disabled > span { + color: #666666; + background-color: #ffffff; + cursor: not-allowed; } + +.label { + display: inline; + padding: .2em .6em .3em; + font-size: 75%; + font-weight: bold; + line-height: 1; + color: #ffffff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25em; } + +a.label:hover, a.label:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; } + +.label:empty { + display: none; } + +.btn .label { + position: relative; + top: -1px; } + +.label-default { + background-color: #666666; } + .label-default[href]:hover, .label-default[href]:focus { + background-color: #4d4d4d; } + +.label-primary { + background-color: #4d4d4d; } + .label-primary[href]:hover, .label-primary[href]:focus { + background-color: #333333; } + +.label-success { + background-color: #28b309; } + .label-success[href]:hover, .label-success[href]:focus { + background-color: #1d8207; } + +.label-info { + background-color: #0a94d4; } + .label-info[href]:hover, .label-info[href]:focus { + background-color: #0872a3; } + +.label-warning { + background-color: #f0ad20; } + .label-warning[href]:hover, .label-warning[href]:focus { + background-color: #cf910e; } + +.label-danger { + background-color: #ef4a24; } + .label-danger[href]:hover, .label-danger[href]:focus { + background-color: #d1330f; } + +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 14px; + font-weight: bold; + color: #ffffff; + line-height: 1; + vertical-align: baseline; + white-space: nowrap; + text-align: center; + background-color: #666666; + border-radius: 10px; } + .badge:empty { + display: none; } + +.btn .badge { + position: relative; + top: -1px; } + +.btn-xs .badge { + top: 0; + padding: 1px 5px; } + +a.badge:hover, a.badge:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; } + +a.list-group-item.active > .badge { + color: #0a94d4; + background-color: #ffffff; } + +.nav-pills > .active > a > .badge { + color: #0a94d4; + background-color: #ffffff; } + +.nav-pills > li > a > .badge { + margin-left: 3px; } + +.jumbotron { + padding: 30px; + margin-bottom: 30px; + color: inherit; + background-color: #cccccc; } + .jumbotron h1, .jumbotron .h1 { + color: inherit; } + .jumbotron p { + margin-bottom: 15px; + font-size: 24px; + font-weight: 200; } + .jumbotron > hr { + border-top-color: #b3b3b3; } + +.container .jumbotron { + border-radius: 2px; } + +.jumbotron .container { + max-width: 100%; } + +@media screen and (min-width: 768px) { + .jumbotron { + padding-top: 48px; + padding-bottom: 48px; } + .container .jumbotron { + padding-left: 60px; + padding-right: 60px; } + .jumbotron h1, .jumbotron .h1 { + font-size: 72px; } } + +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 22px; + line-height: 1.42857143; + background-color: #333333; + border: 1px solid #dddddd; + border-radius: 1px; + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; } + .thumbnail > img, .thumbnail a > img { + margin-left: auto; + margin-right: auto; } + +a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { + border-color: #0a94d4; } + +.thumbnail .caption { + padding: 9px; + color: #ffffff; } + +.alert { + padding: 15px; + margin-bottom: 22px; + border: 1px solid transparent; + border-radius: 1px; } + .alert h4 { + margin-top: 0; + color: inherit; } + .alert .alert-link { + font-weight: bold; } + .alert > p, .alert > ul { + margin-bottom: 0; } + .alert > p + p { + margin-top: 5px; } + +.alert-dismissable, .alert-dismissible { + padding-right: 35px; } + +.alert-dismissable .close, .alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; } + +.alert-success { + background-color: #d3e5cf; + border-color: #c9dcbe; + color: #125204; } + .alert-success hr { + border-top-color: #bbd3ae; } + .alert-success .alert-link { + color: #072102; } + +.alert-info { + background-color: #daebf2; + border-color: #c0e4e9; + color: #0872a3; } + .alert-info hr { + border-top-color: #addbe2; } + .alert-info .alert-link { + color: #055073; } + +.alert-warning { + background-color: #fcf8e3; + border-color: #faebcc; + color: #8a6d3b; } + .alert-warning hr { + border-top-color: #f7e1b5; } + .alert-warning .alert-link { + color: #66512c; } + +.alert-danger { + background-color: #f0dcd8; + border-color: #e9c6c6; + color: #d63510; } + .alert-danger hr { + border-top-color: #e2b3b3; } + .alert-danger .alert-link { + color: #a6290c; } + +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0; } + to { + background-position: 0 0; } } + +@keyframes progress-bar-stripes { + from { + background-position: 40px 0; } + to { + background-position: 0 0; } } + +.progress { + overflow: hidden; + height: 22px; + margin-bottom: 22px; + background-color: #f5f5f5; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } + +.progress-bar { + float: left; + width: 0%; + height: 100%; + font-size: 14px; + line-height: 22px; + color: #ffffff; + text-align: center; + background-color: #4d4d4d; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + -webkit-transition: width 0.6s ease; + transition: width 0.6s ease; } + +.progress-striped .progress-bar, .progress-bar-striped { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-size: 40px 40px; } + +.progress.active .progress-bar { + -webkit-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; } + +.progress-bar.active { + -webkit-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; } + +.progress-bar[aria-valuenow="1"], .progress-bar[aria-valuenow="2"] { + min-width: 30px; } + +.progress-bar[aria-valuenow="0"] { + color: #666666; + min-width: 30px; + background-color: transparent; + background-image: none; + -webkit-box-shadow: none; + box-shadow: none; } + +.progress-bar-success { + background-color: #28b309; } + +.progress-striped .progress-bar-success { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } + +.progress-bar-info { + background-color: #0a94d4; } + +.progress-striped .progress-bar-info { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } + +.progress-bar-warning { + background-color: #f0ad20; } + +.progress-striped .progress-bar-warning { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } + +.progress-bar-danger { + background-color: #ef4a24; } + +.progress-striped .progress-bar-danger { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } + +.media, .media-body { + overflow: hidden; + zoom: 1; } + +.media { + margin-top: 15px; } + .media .media { + margin-top: 15px; } + .media:first-child { + margin-top: 0; } + +.media-object { + display: block; } + +.media-heading { + margin: 0 0 5px; } + +.media > .pull-left { + margin-right: 10px; } + +.media > .pull-right { + margin-left: 10px; } + +.media-list { + padding-left: 0; + list-style: none; } + +.list-group { + margin-bottom: 20px; + padding-left: 0; } + +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #ffffff; + border: 1px solid #dddddd; } + .list-group-item:first-child { + border-top-right-radius: 1px; + border-top-left-radius: 1px; } + .list-group-item:last-child { + margin-bottom: 0; + border-bottom-right-radius: 1px; + border-bottom-left-radius: 1px; } + .list-group-item > .badge { + float: right; } + .list-group-item > .badge + .badge { + margin-right: 5px; } + +a.list-group-item { + color: #555555; } + a.list-group-item .list-group-item-heading { + color: #333333; } + a.list-group-item:hover, a.list-group-item:focus { + text-decoration: none; + color: #555555; + background-color: #f5f5f5; } + +.list-group-item.disabled { + background-color: #cccccc; + color: #666666; } + .list-group-item.disabled:hover, .list-group-item.disabled:focus { + background-color: #cccccc; + color: #666666; } + .list-group-item.disabled .list-group-item-heading, .list-group-item.disabled:hover .list-group-item-heading, .list-group-item.disabled:focus .list-group-item-heading { + color: inherit; } + .list-group-item.disabled .list-group-item-text, .list-group-item.disabled:hover .list-group-item-text, .list-group-item.disabled:focus .list-group-item-text { + color: #666666; } + +.list-group-item.active { + z-index: 2; + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; } + .list-group-item.active:hover, .list-group-item.active:focus { + z-index: 2; + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; } + .list-group-item.active .list-group-item-heading, .list-group-item.active:hover .list-group-item-heading, .list-group-item.active:focus .list-group-item-heading, .list-group-item.active .list-group-item-heading > small, .list-group-item.active:hover .list-group-item-heading > small, .list-group-item.active:focus .list-group-item-heading > small, .list-group-item.active .list-group-item-heading > .small, .list-group-item.active:hover .list-group-item-heading > .small, .list-group-item.active:focus .list-group-item-heading > .small { + color: inherit; } + .list-group-item.active .list-group-item-text, .list-group-item.active:hover .list-group-item-text, .list-group-item.active:focus .list-group-item-text { + color: #b3b3b3; } + +.list-group-item-success { + color: #125204; + background-color: #d3e5cf; } + +a.list-group-item-success { + color: #125204; } + a.list-group-item-success .list-group-item-heading { + color: inherit; } + a.list-group-item-success:hover, a.list-group-item-success:focus { + color: #125204; + background-color: #c4dcbe; } + a.list-group-item-success.active { + color: #fff; + background-color: #125204; + border-color: #125204; } + a.list-group-item-success.active:hover, a.list-group-item-success.active:focus { + color: #fff; + background-color: #125204; + border-color: #125204; } + +.list-group-item-info { + color: #0872a3; + background-color: #daebf2; } + +a.list-group-item-info { + color: #0872a3; } + a.list-group-item-info .list-group-item-heading { + color: inherit; } + a.list-group-item-info:hover, a.list-group-item-info:focus { + color: #0872a3; + background-color: #c7e1eb; } + a.list-group-item-info.active { + color: #fff; + background-color: #0872a3; + border-color: #0872a3; } + a.list-group-item-info.active:hover, a.list-group-item-info.active:focus { + color: #fff; + background-color: #0872a3; + border-color: #0872a3; } + +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3; } + +a.list-group-item-warning { + color: #8a6d3b; } + a.list-group-item-warning .list-group-item-heading { + color: inherit; } + a.list-group-item-warning:hover, a.list-group-item-warning:focus { + color: #8a6d3b; + background-color: #faf2cc; } + a.list-group-item-warning.active { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; } + a.list-group-item-warning.active:hover, a.list-group-item-warning.active:focus { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; } + +.list-group-item-danger { + color: #d63510; + background-color: #f0dcd8; } + +a.list-group-item-danger { + color: #d63510; } + a.list-group-item-danger .list-group-item-heading { + color: inherit; } + a.list-group-item-danger:hover, a.list-group-item-danger:focus { + color: #d63510; + background-color: #e9cbc6; } + a.list-group-item-danger.active { + color: #fff; + background-color: #d63510; + border-color: #d63510; } + a.list-group-item-danger.active:hover, a.list-group-item-danger.active:focus { + color: #fff; + background-color: #d63510; + border-color: #d63510; } + +.list-group-item-heading { + margin-top: 0; + margin-bottom: 5px; } + +.list-group-item-text { + margin-bottom: 0; + line-height: 1.3; } + +.panel { + margin-bottom: 22px; + background-color: #ffffff; + border: 1px solid transparent; + border-radius: 1px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } + +.panel-body { + padding: 15px; } + +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-right-radius: 0px; + border-top-left-radius: 0px; } + .panel-heading > .dropdown .dropdown-toggle { + color: inherit; } + +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 18px; + color: inherit; } + .panel-title > a { + color: inherit; } + +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #dddddd; + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; } + +.panel > .list-group { + margin-bottom: 0; } + .panel > .list-group .list-group-item { + border-width: 1px 0; + border-radius: 0; } + .panel > .list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-right-radius: 0px; + border-top-left-radius: 0px; } + .panel > .list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; } + +.panel-heading + .list-group .list-group-item:first-child, .list-group + .panel-footer { + border-top-width: 0; } + +.panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table { + margin-bottom: 0; } + +.panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { + border-top-right-radius: 0px; + border-top-left-radius: 0px; } + +.panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { + border-top-left-radius: 0px; } + +.panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { + border-top-right-radius: 0px; } + +.panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; } + +.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { + border-bottom-left-radius: 0px; } + +.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { + border-bottom-right-radius: 0px; } + +.panel > .panel-body + .table, .panel > .panel-body + .table-responsive { + border-top: 1px solid #dddddd; } + +.panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { + border-top: 0; } + +.panel > .table-bordered, .panel > .table-responsive > .table-bordered { + border: 0; } + +.panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; } + +.panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; } + +.panel > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th, .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; } + +.panel > .table-responsive { + border: 0; + margin-bottom: 0; } + .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; } + +.panel-group { + margin-bottom: 22px; } + .panel-group .panel { + margin-bottom: 0; + border-radius: 1px; } + .panel-group .panel + .panel { + margin-top: 5px; } + .panel-group .panel-heading { + border-bottom: 0; } + .panel-group .panel-heading + .panel-collapse > .panel-body { + border-top: 1px solid #dddddd; } + .panel-group .panel-footer { + border-top: 0; } + .panel-group .panel-footer + .panel-collapse .panel-body { + border-bottom: 1px solid #dddddd; } + +.panel-default { + border-color: #dddddd; } + .panel-default > .panel-heading { + color: #333333; + background-color: #f5f5f5; + border-color: #dddddd; } + .panel-default > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #dddddd; } + .panel-default > .panel-heading .badge { + color: #f5f5f5; + background-color: #333333; } + .panel-default > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #dddddd; } + +.panel-primary { + border-color: #4d4d4d; } + .panel-primary > .panel-heading { + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; } + .panel-primary > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #4d4d4d; } + .panel-primary > .panel-heading .badge { + color: #4d4d4d; + background-color: #ffffff; } + .panel-primary > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #4d4d4d; } + +.panel-success { + border-color: #c9dcbe; } + .panel-success > .panel-heading { + color: #125204; + background-color: #d3e5cf; + border-color: #c9dcbe; } + .panel-success > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #c9dcbe; } + .panel-success > .panel-heading .badge { + color: #d3e5cf; + background-color: #125204; } + .panel-success > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #c9dcbe; } + +.panel-info { + border-color: #c0e4e9; } + .panel-info > .panel-heading { + color: #0872a3; + background-color: #daebf2; + border-color: #c0e4e9; } + .panel-info > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #c0e4e9; } + .panel-info > .panel-heading .badge { + color: #daebf2; + background-color: #0872a3; } + .panel-info > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #c0e4e9; } + +.panel-warning { + border-color: #faebcc; } + .panel-warning > .panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; } + .panel-warning > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #faebcc; } + .panel-warning > .panel-heading .badge { + color: #fcf8e3; + background-color: #8a6d3b; } + .panel-warning > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #faebcc; } + +.panel-danger { + border-color: #e9c6c6; } + .panel-danger > .panel-heading { + color: #d63510; + background-color: #f0dcd8; + border-color: #e9c6c6; } + .panel-danger > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #e9c6c6; } + .panel-danger > .panel-heading .badge { + color: #f0dcd8; + background-color: #d63510; } + .panel-danger > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #e9c6c6; } + +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden; } + .embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object { + position: absolute; + top: 0; + left: 0; + bottom: 0; + height: 100%; + width: 100%; + border: 0; } + .embed-responsive.embed-responsive-16by9 { + padding-bottom: 56.25%; } + .embed-responsive.embed-responsive-4by3 { + padding-bottom: 75%; } + +.well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } + .well blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, 0.15); } + +.well-lg { + padding: 24px; + border-radius: 2px; } + +.well-sm { + padding: 9px; + border-radius: 0; } + +.close { + float: right; + font-size: 24px; + font-weight: bold; + line-height: 1; + color: #000000; + text-shadow: 0 1px 0 #ffffff; + opacity: 0.2; + filter: alpha(opacity=20); } + .close:hover, .close:focus { + color: #000000; + text-decoration: none; + cursor: pointer; + opacity: 0.5; + filter: alpha(opacity=50); } + +button.close { + padding: 0; + cursor: pointer; + background: transparent; + border: 0; + -webkit-appearance: none; } + +.modal-open { + overflow: hidden; } + +.modal { + display: none; + overflow: hidden; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + -webkit-overflow-scrolling: touch; + outline: 0; } + .modal.fade .modal-dialog { + -webkit-transform: translate3d(0, -25%, 0); + transform: translate3d(0, -25%, 0); + -webkit-transition: -webkit-transform 0.3s ease-out; + transition: -webkit-transform 0.3s ease-out; + transition: transform 0.3s ease-out; + transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; } + .modal.in .modal-dialog { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); } + +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto; } + +.modal-dialog { + position: relative; + width: auto; + margin: 10px; } + +.modal-content { + position: relative; + background-color: #ffffff; + border: 1px solid #999999; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 2px; + -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + background-clip: padding-box; + outline: 0; } + +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000000; } + .modal-backdrop.fade { + opacity: 0; + filter: alpha(opacity=0); } + .modal-backdrop.in { + opacity: 0.5; + filter: alpha(opacity=50); } + +.modal-header { + padding: 15px; + border-bottom: 1px solid #e5e5e5; + min-height: 16.42857143px; } + .modal-header .close { + margin-top: -2px; } + +.modal-title { + margin: 0; + line-height: 1.42857143; } + +.modal-body { + position: relative; + padding: 15px; } + +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5; } + .modal-footer .btn + .btn { + margin-left: 5px; + margin-bottom: 0; } + .modal-footer .btn-group .btn + .btn { + margin-left: -1px; } + .modal-footer .btn-block + .btn-block { + margin-left: 0; } + +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll; } + +@media (min-width: 768px) { + .modal-dialog { + width: 600px; + margin: 30px auto; } + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } + .modal-sm { + width: 300px; } } + +@media (min-width: 992px) { + .modal-lg { + width: 900px; } } + +.tooltip { + position: absolute; + z-index: 1070; + display: block; + visibility: visible; + font-size: 14px; + line-height: 1.4; + opacity: 0; + filter: alpha(opacity=0); } + .tooltip.in { + opacity: 0.9; + filter: alpha(opacity=90); } + .tooltip.top { + margin-top: -3px; + padding: 5px 0; } + .tooltip.right { + margin-left: 3px; + padding: 0 5px; } + .tooltip.bottom { + margin-top: 3px; + padding: 5px 0; } + .tooltip.left { + margin-left: -3px; + padding: 0 5px; } + +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #ffffff; + text-align: center; + text-decoration: none; + background-color: #000000; + border-radius: 1px; } + +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; } + +.tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000000; } + +.tooltip.top-left .tooltip-arrow { + bottom: 0; + left: 5px; + border-width: 5px 5px 0; + border-top-color: #000000; } + +.tooltip.top-right .tooltip-arrow { + bottom: 0; + right: 5px; + border-width: 5px 5px 0; + border-top-color: #000000; } + +.tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000000; } + +.tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000000; } + +.tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; } + +.tooltip.bottom-left .tooltip-arrow { + top: 0; + left: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; } + +.tooltip.bottom-right .tooltip-arrow { + top: 0; + right: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; } + +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: none; + max-width: 276px; + padding: 1px; + text-align: left; + background-color: #ffffff; + background-clip: padding-box; + border: 1px solid #cccccc; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 2px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + white-space: normal; } + .popover.top { + margin-top: -10px; } + .popover.right { + margin-left: 10px; } + .popover.bottom { + margin-top: 10px; } + .popover.left { + margin-left: -10px; } + +.popover-title { + margin: 0; + padding: 8px 14px; + font-size: 16px; + font-weight: normal; + line-height: 18px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + border-radius: 1px 1px 0 0; } + +.popover-content { + padding: 9px 14px; } + +.popover > .arrow { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; + border-width: 11px; } + .popover > .arrow:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; + border-width: 10px; + content: ""; } + +.popover.top > .arrow { + left: 50%; + margin-left: -11px; + border-bottom-width: 0; + border-top-color: #999999; + border-top-color: rgba(0, 0, 0, 0.25); + bottom: -11px; } + .popover.top > .arrow:after { + content: " "; + bottom: 1px; + margin-left: -10px; + border-bottom-width: 0; + border-top-color: #ffffff; } + +.popover.right > .arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-left-width: 0; + border-right-color: #999999; + border-right-color: rgba(0, 0, 0, 0.25); } + .popover.right > .arrow:after { + content: " "; + left: 1px; + bottom: -10px; + border-left-width: 0; + border-right-color: #ffffff; } + +.popover.bottom > .arrow { + left: 50%; + margin-left: -11px; + border-top-width: 0; + border-bottom-color: #999999; + border-bottom-color: rgba(0, 0, 0, 0.25); + top: -11px; } + .popover.bottom > .arrow:after { + content: " "; + top: 1px; + margin-left: -10px; + border-top-width: 0; + border-bottom-color: #ffffff; } + +.popover.left > .arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-right-width: 0; + border-left-color: #999999; + border-left-color: rgba(0, 0, 0, 0.25); } + .popover.left > .arrow:after { + content: " "; + right: 1px; + border-right-width: 0; + border-left-color: #ffffff; + bottom: -10px; } + +.carousel { + position: relative; } + +.carousel-inner { + position: relative; + overflow: hidden; + width: 100%; } + .carousel-inner > .item { + display: none; + position: relative; + -webkit-transition: 0.6s ease-in-out left; + transition: 0.6s ease-in-out left; } + .carousel-inner > .item > img, .carousel-inner > .item > a > img { + line-height: 1; } + .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { + display: block; } + .carousel-inner > .active { + left: 0; } + .carousel-inner > .next, .carousel-inner > .prev { + position: absolute; + top: 0; + width: 100%; } + .carousel-inner > .next { + left: 100%; } + .carousel-inner > .prev { + left: -100%; } + .carousel-inner > .next.left, .carousel-inner > .prev.right { + left: 0; } + .carousel-inner > .active.left { + left: -100%; } + .carousel-inner > .active.right { + left: 100%; } + +.carousel-control { + position: absolute; + top: 0; + left: 0; + bottom: 0; + width: 15%; + opacity: 0.5; + filter: alpha(opacity=50); + font-size: 20px; + color: #ffffff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } + .carousel-control.left { + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001))); + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } + .carousel-control.right { + left: auto; + right: 0; + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5))); + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } + .carousel-control:hover, .carousel-control:focus { + outline: 0; + color: #ffffff; + text-decoration: none; + opacity: 0.9; + filter: alpha(opacity=90); } + .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; } + .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { + left: 50%; + margin-left: -10px; } + .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { + right: 50%; + margin-right: -10px; } + .carousel-control .icon-prev, .carousel-control .icon-next { + width: 20px; + height: 20px; + margin-top: -10px; + font-family: serif; } + .carousel-control .icon-prev:before { + content: '\2039'; } + .carousel-control .icon-next:before { + content: '\203a'; } + +.carousel-indicators { + position: absolute; + bottom: 10px; + left: 50%; + z-index: 15; + width: 60%; + margin-left: -30%; + padding-left: 0; + list-style: none; + text-align: center; } + .carousel-indicators li { + display: inline-block; + width: 10px; + height: 10px; + margin: 1px; + text-indent: -999px; + border: 1px solid #ffffff; + border-radius: 10px; + cursor: pointer; + background-color: #000 \9; + background-color: transparent; } + .carousel-indicators .active { + margin: 0; + width: 12px; + height: 12px; + background-color: #ffffff; } + +.carousel-caption { + position: absolute; + left: 15%; + right: 15%; + bottom: 20px; + z-index: 10; + padding-top: 20px; + padding-bottom: 20px; + color: #ffffff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } + .carousel-caption .btn { + text-shadow: none; } + +@media screen and (min-width: 768px) { + .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { + width: 30px; + height: 30px; + margin-top: -15px; + font-size: 30px; } + .carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev { + margin-left: -15px; } + .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next { + margin-right: -15px; } + .carousel-caption { + left: 20%; + right: 20%; + padding-bottom: 30px; } + .carousel-indicators { + bottom: 20px; } } + +.clearfix:before, .clearfix:after { + content: " "; + display: table; } + +.dl-horizontal dd:before, .dl-horizontal dd:after { + content: " "; + display: table; } + +.container:before, .container:after { + content: " "; + display: table; } + +.container-fluid:before, .container-fluid:after { + content: " "; + display: table; } + +.row:before, .row:after { + content: " "; + display: table; } + +.form-horizontal .form-group:before, .form-horizontal .form-group:after { + content: " "; + display: table; } + +.btn-toolbar:before, .btn-toolbar:after { + content: " "; + display: table; } + +.btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { + content: " "; + display: table; } + +.nav:before, .nav:after { + content: " "; + display: table; } + +.navbar:before, .navbar:after { + content: " "; + display: table; } + +.navbar-header:before, .navbar-header:after { + content: " "; + display: table; } + +.navbar-collapse:before, .navbar-collapse:after { + content: " "; + display: table; } + +.pager:before, .pager:after { + content: " "; + display: table; } + +.panel-body:before, .panel-body:after { + content: " "; + display: table; } + +.modal-footer:before, .modal-footer:after { + content: " "; + display: table; } + +.clearfix:after, .dl-horizontal dd:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-footer:after { + clear: both; } + +.center-block { + display: block; + margin-left: auto; + margin-right: auto; } + +.pull-right { + float: right !important; } + +.pull-left { + float: left !important; } + +.hide { + display: none !important; } + +.show { + display: block !important; } + +.invisible { + visibility: hidden; } + +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; } + +.hidden { + display: none !important; + visibility: hidden !important; } + +.affix { + position: fixed; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); } + +@-ms-viewport { + width: device-width; } + +.visible-xs, .visible-sm, .visible-md, .visible-lg, .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-lg-block, .visible-lg-inline, .visible-lg-inline-block, .visible-print, .visible-print-block, .visible-print-inline, .visible-print-inline-block { + display: none !important; } + +@media (max-width: 767px) { + .visible-xs { + display: block !important; } + table.visible-xs { + display: table; } + tr.visible-xs { + display: table-row !important; } + th.visible-xs, td.visible-xs { + display: table-cell !important; } } + +@media (max-width: 767px) { + .visible-xs-block { + display: block !important; } } + +@media (max-width: 767px) { + .visible-xs-inline { + display: inline !important; } } + +@media (max-width: 767px) { + .visible-xs-inline-block { + display: inline-block !important; } } + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm { + display: block !important; } + table.visible-sm { + display: table; } + tr.visible-sm { + display: table-row !important; } + th.visible-sm, td.visible-sm { + display: table-cell !important; } } + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-block { + display: block !important; } } + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline { + display: inline !important; } } + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline-block { + display: inline-block !important; } } + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md { + display: block !important; } + table.visible-md { + display: table; } + tr.visible-md { + display: table-row !important; } + th.visible-md, td.visible-md { + display: table-cell !important; } } + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-block { + display: block !important; } } + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-inline { + display: inline !important; } } + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-inline-block { + display: inline-block !important; } } + +@media (min-width: 1240px) { + .visible-lg { + display: block !important; } + table.visible-lg { + display: table; } + tr.visible-lg { + display: table-row !important; } + th.visible-lg, td.visible-lg { + display: table-cell !important; } } + +@media (min-width: 1240px) { + .visible-lg-block { + display: block !important; } } + +@media (min-width: 1240px) { + .visible-lg-inline { + display: inline !important; } } + +@media (min-width: 1240px) { + .visible-lg-inline-block { + display: inline-block !important; } } + +@media (max-width: 767px) { + .hidden-xs { + display: none !important; } } + +@media (min-width: 768px) and (max-width: 991px) { + .hidden-sm { + display: none !important; } } + +@media (min-width: 992px) and (max-width: 1239px) { + .hidden-md { + display: none !important; } } + +@media (min-width: 1240px) { + .hidden-lg { + display: none !important; } } + +@media print { + .visible-print { + display: block !important; } + table.visible-print { + display: table; } + tr.visible-print { + display: table-row !important; } + th.visible-print, td.visible-print { + display: table-cell !important; } } + +@media print { + .visible-print-block { + display: block !important; } } + +@media print { + .visible-print-inline { + display: inline !important; } } + +@media print { + .visible-print-inline-block { + display: inline-block !important; } } + +@media print { + .hidden-print { + display: none !important; } } + +@font-face { + font-family: 'Lato Light'; + src: url("../Fonts/lato-light-webfont.eot"); + src: url("../Fonts/lato-light-webfont.eot?#iefix") format("embedded-opentype"), url("../Fonts/lato-light-webfont.woff") format("woff"), url("../Fonts/lato-light-webfont.ttf") format("truetype"), url("../Fonts/lato-light-webfont.svg#latolight") format("svg"); + font-weight: normal; + font-style: normal; } + +@font-face { + font-family: 'Lato'; + src: url("../Fonts/lato-regular-webfont.eot"); + src: url("../Fonts/lato-regular-webfont.eot?#iefix") format("embedded-opentype"), url("../Fonts/lato-regular-webfont.woff") format("woff"), url("../Fonts/lato-regular-webfont.ttf") format("truetype"), url("../Fonts/lato-regular-webfont.svg#latoregular") format("svg"); + font-weight: normal; + font-style: normal; } + +.btn-ancillary { + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; } + .btn-ancillary:hover, .btn-ancillary:focus, .btn-ancillary:active, .btn-ancillary.active { + color: #ffffff; + background-color: #333333; + border-color: #2e2e2e; } + +.open > .dropdown-toggle.btn-ancillary { + color: #ffffff; + background-color: #333333; + border-color: #2e2e2e; } + +.btn-ancillary:active, .btn-ancillary.active { + background-image: none; } + +.open > .dropdown-toggle.btn-ancillary { + background-image: none; } + +.btn-ancillary.disabled, .btn-ancillary[disabled] { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +fieldset[disabled] .btn-ancillary { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +.btn-ancillary.disabled:hover, .btn-ancillary[disabled]:hover { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +fieldset[disabled] .btn-ancillary:hover { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +.btn-ancillary.disabled:focus, .btn-ancillary[disabled]:focus { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +fieldset[disabled] .btn-ancillary:focus { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +.btn-ancillary.disabled:active, .btn-ancillary[disabled]:active { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +fieldset[disabled] .btn-ancillary:active { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +.btn-ancillary.disabled.active, .btn-ancillary[disabled].active { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +fieldset[disabled] .btn-ancillary.active { + background-color: #4d4d4d; + border-color: #4d4d4d; } + +.btn-ancillary .badge { + color: #4d4d4d; + background-color: #ffffff; } + +.btn-ancillary:hover, .btn-ancillary:focus, .btn-ancillary:active, .btn-ancillary.active { + background-color: #262626; + border-color: #262626; } + +body.Modal { + background-color: #ffffff; + /* width: 98%; */ } + +#HeaderArea, #HeaderContainer { + background-color: #1a1a1a; + min-height: 85px; } + +#HeaderArea { + border-bottom: 1px solid #cccccc; } + #HeaderArea .Site-Name, #HeaderArea .Page-Title-Area { + min-height: 84px; } + #HeaderArea .Site-Name h1, #HeaderArea .Page-Title-Area h1, #HeaderArea .Site-Name h2, #HeaderArea .Page-Title-Area h2, #HeaderArea .Site-Name h3, #HeaderArea .Page-Title-Area h3, #HeaderArea .Site-Name h4, #HeaderArea .Page-Title-Area h4, #HeaderArea .Site-Name h5, #HeaderArea .Page-Title-Area h5, #HeaderArea .Site-Name h6, #HeaderArea .Page-Title-Area h6 { + line-height: 41px; + margin: 0; } + #HeaderArea .Site-Name { + background-color: #ef4a24; + min-height: 95px; + border: 1px solid #cccccc; + border-top: 0 none transparent; + margin-bottom: -9px; } + #HeaderArea .Page-Title-Area { + background-color: #1a1a1a; } + #HeaderArea .Page-Title-Area .Breadcrumbs { + font-size: 13px; + font-style: italic; + letter-spacing: 0.02em; + color: #cccccc; + padding-top: 9px; + margin-bottom: -3px; + margin-left: 3px; } + #HeaderArea .Site-Name h1, #HeaderArea h2.Page-Title { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + font-size: 34px; + color: #ffffff; + padding-top: 25px; } + #HeaderArea .Site-Name h1 { + margin-left: -2px; } + #HeaderArea h2.Page-Title { + margin-left: 3px; } + +select { + font-size: 14px; + color: #666666; + padding: 3px 5px; } + select option { + margin-bottom: 3px; } + +.Sidebar { + padding-right: 0; + padding-left: 0; } + .Sidebar #TreeView { + margin: 45px 1px 0 -1px; } + .Sidebar #TreeView:before { + content: " "; + display: table; } + .Sidebar #TreeView:after { + content: " "; + display: table; + clear: both; } + .Sidebar #TreeView:before { + content: " "; + display: table; } + .Sidebar #TreeView:after { + content: " "; + display: table; + clear: both; } + .Sidebar .AddTopic, .Sidebar .Add-Topic { + margin-left: 1.3em; } + .Sidebar select { + background-color: #eeeeee; + width: 95%; + border-radius: 2px; } + +.Content-Container .Content[class*="col-"] { + padding-right: 0; + padding-left: 0; } + +.Content-Container .Content .Page-Content.Primary { + position: relative; + color: #333333; } + +[id*="DynamicForm"] { + background-color: #333333; + padding-top: 50px; } + [id*="DynamicForm"] .row.Messages-Area, [id*="DynamicForm"] .row.Form-Area { + margin: 0; } + [id*="DynamicForm"] .Editor-Navbar { + width: 100%; + height: 50px; + background-color: #333333; } + [id*="DynamicForm"]#Modal_DynamicForm { + padding-top: 49px; } + [id*="DynamicForm"]#Modal_DynamicForm .row.Toolbar-Area { + margin: 0; } + [id*="DynamicForm"]#Modal_DynamicForm .row.Messages-Area { + padding-right: 5px; + padding-left: 5px; } + [id*="DynamicForm"]#Modal_DynamicForm div[class*="col-"] { + padding-right: 0; + padding-left: 0; } + [id*="DynamicForm"]#Modal_DynamicForm div[class*="col-"].Form-Body { + padding-right: 15px; + padding-left: 15px; } + [id*="DynamicForm"]#Modal_DynamicForm .Editor-Navbar { + top: 0; } + [id*="DynamicForm"]#Modal_DynamicForm .Messages-Area .close, [id*="DynamicForm"]#Modal_DynamicForm .Messages-Area .alert-dismissable .close { + right: 0; } + [id*="DynamicForm"] .Messages-Area, [id*="DynamicForm"] .Form-Area { + background-color: #ffffff; } + [id*="DynamicForm"] .Messages-Area div[class*="Error"], [id*="DynamicForm"] .Messages-Area div[class*="alert"] { + font-size: 13px; + letter-spacing: 0.02em; } + [id*="DynamicForm"] .Messages-Area div[class*="Error"] { + margin: 10px 5px 0; } + [id*="DynamicForm"] .Messages-Area .alert { + margin: 10px 5px 0; } + [id*="DynamicForm"] .Messages-Area .Error.Messaging font { + margin: 10px 5px 0; + background-color: #f0dcd8; + border-color: #e9c6c6; + color: #d63510; + display: block; + color: #d63510 !important; + padding: 10px; + border: 1px solid #e9c6c6; + margin: 0; } + [id*="DynamicForm"] .Messages-Area .Error.Messaging font a { + cursor: pointer; } + [id*="DynamicForm"] .Messages-Area .Error.Messaging font hr { + border-top-color: #e2b3b3; } + [id*="DynamicForm"] .Messages-Area .Error.Messaging font .alert-link { + color: #a6290c; } + [id*="DynamicForm"] .Messages-Area .Error.Messaging font ul { + list-style-type: square; + padding-left: 25px; } + [id*="DynamicForm"] .Messages-Area .alert { + padding: 10px; } + [id*="DynamicForm"] .Messages-Area .alert a { + cursor: pointer; } + [id*="DynamicForm"] .Messages-Area .alert-dismissable .close { + right: 0; + font-size: 20px; + margin-top: 0; } + [id*="DynamicForm"] .Actions.Top { + float: right; + padding: 0 8px; + margin-top: -2px; } + [id*="DynamicForm"] .Actions.Top button, [id*="DynamicForm"] .Actions.Top input { + margin-left: 4px; } + [id*="DynamicForm"] .Actions.Top #VersionsDropdown .glyphicon { + margin-right: 2px; } + [id*="DynamicForm"] .Actions.Top #VersionsDropdown .caret { + margin-left: 2px; } + [id*="DynamicForm"] ul.nav-tabs { + padding-left: 15px; + border-bottom: 0 none transparent; } + [id*="DynamicForm"] .nav-tabs > li { + margin-bottom: 0; } + [id*="DynamicForm"] .nav-tabs > li > a { + color: #cccccc; + border: 0 none transparent; + border-bottom: 8px solid transparent; + margin-right: 10px; } + [id*="DynamicForm"] .nav-tabs > li > a:hover, [id*="DynamicForm"] .nav-tabs > li > a:active, [id*="DynamicForm"] .nav-tabs > li > a:focus { + color: #ffffff; + border-bottom-color: #cccccc; } + [id*="DynamicForm"] .nav-tabs > li.active > a { + color: #ffffff; + border: 0 none transparent; + border-bottom: 8px solid #cccccc; } + [id*="DynamicForm"] .nav-tabs > li.active > a:hover, [id*="DynamicForm"] .nav-tabs > li.active > a:focus { + color: #ffffff; + border: 0 none transparent; + border-bottom: 8px solid #cccccc; } + [id*="DynamicForm"] label { + font-weight: normal; } + [id*="DynamicForm"] input[type="text"] { + width: 100%; + max-width: 960px; } + [id*="DynamicForm"] input[type="text"].form-control { + border-radius: 2px; } + [id*="DynamicForm"] ::-webkit-input-placeholder, [id*="DynamicForm"] :-moz-placeholder, [id*="DynamicForm"] ::-moz-placeholder, [id*="DynamicForm"] :-ms-input-placeholder { + color: #999; } + [id*="DynamicForm"] input[type="radio"] + label { + font-size: 14px; + margin: 0 3px; } + [id*="DynamicForm"] select { + padding: 3px 5px; + border-radius: 2px; } + [id*="DynamicForm"] select option { + font-size: 14px; + margin-bottom: 3px; } + [id*="DynamicForm"] .Radio-Buttons li { + display: inline-block; } + [id*="DynamicForm"] input[class*="Error"] { + border-color: #ef4a24; } + [id*="DynamicForm"] input[class*="Error"]:focus { + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; } + [id*="DynamicForm"] .Last-Modified { + font-size: 14px; + color: #4d4d4d; } + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] { + width: 100%; + padding: 0; } + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Group-Item { + margin-bottom: 20px; } + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading { + margin-bottom: 5px; } + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .Content-Description { + position: relative; + font-size: 16px; + color: #959595; + text-decoration: none; + top: 2px; + left: 3px; + padding: 2px 5.5px 1px; + cursor: pointer; } + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .tooltip .tooltip-arrow { + border-right-color: #1a1a1a; } + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .tooltip .tooltip-inner { + background-color: #1a1a1a; + max-width: 550px; + font-size: 14px; + color: #eeeeee; + text-align: left; + padding: 5px 10px; } + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .tab-pane { + background-color: #ffffff; + padding: 20px 5px; + overflow: auto; } + [id*="DynamicForm"] .Callout-Area { + background-color: #ffffff; + padding: 20px 5px 20px 0; } + [id*="DynamicForm"] .Callout-Area #FixedCallouts { + position: absolute; + background-color: transparent; + width: 100%; + right: -20px; } + [id*="DynamicForm"] .Callout-Area .Callout { + width: 100%; } + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info { + position: fixed; + background-color: #ffffff; + width: 16%; + max-width: 214px; + padding: 15px; + border: 1px solid #cccccc; + z-index: 0; } + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info h3, [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dt, [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dd { + color: #666666; } + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info h3 { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + margin-top: 0; } + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl { + font-size: 13px; + line-height: 18px; + margin-bottom: -13px; } + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dt { + font-weight: normal; } + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dt .fa { + width: 1em; + margin-right: 5px; } + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dd { + margin-left: 1.7em; + margin-bottom: 8px; } + +[id*="EditorModal"] .modal-header { + background-color: #1a1a1a; + padding: 20px; + border-bottom-color: #cccccc; } + [id*="EditorModal"] .modal-header .Page-Title { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + color: #ffffff; + margin: 0; } + +[id*="EditorModal"] .modal-content { + background-color: #333333; } + +[id*="EditorModal"] iframe { + display: block; + vertical-align: bottom; } + +select[id*="ThemeColor"] option[value*="ThemeColor"], select[id*="ThemeColor"] option[selected="selected"] { + color: #ffffff; + line-height: 1.6em; } + +select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Blue"], select[id*="ThemeColor"] option[selected="selected"][value*="Blue"] { + background-color: #02A3E0; } + +select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Orange"], select[id*="ThemeColor"] option[selected="selected"][value*="Orange"] { + background-color: #FF9E1A; } + +select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Green"], select[id*="ThemeColor"] option[selected="selected"][value*="Green"] { + background-color: #029A17; } + +select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Purple"], select[id*="ThemeColor"] option[selected="selected"][value*="Purple"] { + background-color: #9F5EB5; } + +select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Red"], select[id*="ThemeColor"] option[selected="selected"][value*="Red"] { + background-color: #E30046; } + +@media screen and (max-width: 1024px) { + .Sidebar .AddTopic, .Sidebar .Add-Topic { + margin-left: 0.5em; } } + +@media (min-width: 768px) { + .modal-dialog { + min-width: 700px; + width: 720px; } } + +@media (min-width: 768px) and (max-width: 991px) { + [id*="DynamicForm"] .Callout-Area #FixedCallouts { + position: relative; + right: 0; } + [id*="DynamicForm"] .Callout-Area #FixedCallouts .Callout.Page-Info { + position: relative; + top: -30px; + left: 20px; + width: 50%; } } + +/* OVERRIDE NON-SELECTABLE NAV LINKS FOR IE9 */ +.x-tree-arrows .x-tree-elbow-plus, .x-tree-arrows .x-tree-elbow-minus { + -moz-user-select: all !important; + -khtml-user-select: all !important; + -webkit-user-select: all !important; + -ms-user-select: all !important; } + +.x-unselectable { + -moz-user-select: all !important; + -khtml-user-select: all !important; + -webkit-user-select: all !important; + -ms-user-select: all !important; } + .x-unselectable * { + -moz-user-select: all !important; + -khtml-user-select: all !important; + -webkit-user-select: all !important; + -ms-user-select: all !important; } + +.x-tree-arrows .x-tree-elbow-minus, .x-tree-arrows .x-tree-elbow-plus, .x-tree-arrows .x-tree-elbow-end-plus, .x-tree-arrows .x-tree-elbow-end-minus { + background-image: url("/!Admin/Topics/Images/Navigation/Arrows.png"); + background-repeat: no-repeat; + background-position: 4px 0; } + +.x-tree-arrows .x-tree-elbow, .x-tree-arrows .x-tree-elbow-end { + background-image: url("/!Admin/Topics/Images/Navigation/Dashes.png"); + background-repeat: no-repeat; + background-position: 3px 4px; } + +.x-tree-node-collapsed .x-tree-node-icon, .x-tree-node-expanded .x-tree-node-icon, .x-tree-node-leaf .x-tree-node-icon { + display: none; + background-image: none; } + +.x-tree-root-node > .x-tree-node { + padding-left: 3px; } + +.x-tree-node { + font-size: 14px; + white-space: normal; + padding: 1px 0; } + .x-tree-node x-tree-selected, .x-tree-node .x-tree-node-over { + background-color: transparent; } + .x-tree-node .x-tree-node-el { + overflow: hidden; + white-space: nowrap; + line-height: normal; + color: #cccccc; + text-overflow: ellipsis; + padding: 0 5px 0 3px; + border: 1px solid transparent; } + .x-tree-node .x-tree-node-el .x-tree-node-indent { + display: inline-block; + margin-right: 5px; + margin-left: 0; } + .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus, .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus { + background-position: -50px 0; + margin-right: -2px; + margin-left: 1px; } + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus { + background-position: -31px 0; } + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus, .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus { + background-position: -16px 0; } + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow, .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end { + background-position: -11px 4px; } + .x-tree-node .x-tree-node-el.x-tree-selected a, .x-tree-node .x-tree-node-el.x-tree-node-over a { + text-decoration: none !important; } + .x-tree-node .x-tree-node-el.x-tree-selected a span, .x-tree-node .x-tree-node-el.x-tree-node-over a span { + color: #ffffff; } + .x-tree-node .x-tree-node-el.x-tree-selected { + background-color: transparent; } + .x-tree-node .x-tree-node-el .x-tree-node-ct { + display: block; + overflow: visible; + padding: 1px 0; + margin-left: 0; } + .x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus { + background-position: 4px 0; } + .x-tree-node .x-tree-node-el a.x-tree-node-anchor { + padding-right: 5px; + padding-left: 5px; } + .x-tree-node .x-tree-node-el a span { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-size: 13px; + letter-spacing: 0.02em; + color: #cccccc; } + +#DisplayGroupTabsContent .x-tree-root-ct, +#Modal_DisplayGroupTabsContent .x-tree-root-ct { + margin: 0 0 5px; } + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node-indent:before, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node-indent:before { + color: #666666; } + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el { + padding: 0 0 5px 0; } + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected, #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over { + background-color: transparent; + border-color: transparent; } + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-node-indent:before, #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-node-indent:before, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-node-indent:before, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-node-indent:before { + color: #ef4a24; } + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span, #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span, #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span { + color: #333333; } + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el input[type="checkbox"], + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el input[type="checkbox"] { + margin: 0 0 0 3px; } + +#DisplayGroupTabsContent .cke_chrome, +#Modal_DisplayGroupTabsContent .cke_chrome { + width: 100%; + max-width: 960px; + padding: 0; + border: 0 none transparent; } + #DisplayGroupTabsContent .cke_chrome .cke_inner, + #Modal_DisplayGroupTabsContent .cke_chrome .cke_inner { + background: #DEDEDE; + border-radius: 0; } + #DisplayGroupTabsContent .cke_chrome .cke_editable, + #Modal_DisplayGroupTabsContent .cke_chrome .cke_editable { + font-size: 14px; + padding: 10px; } + #DisplayGroupTabsContent .cke_chrome .cke_editable ul, #DisplayGroupTabsContent .cke_chrome .cke_editable ol, + #Modal_DisplayGroupTabsContent .cke_chrome .cke_editable ul, + #Modal_DisplayGroupTabsContent .cke_chrome .cke_editable ol { + padding-left: 25px; } + #DisplayGroupTabsContent .cke_chrome .cke_editable ul, + #Modal_DisplayGroupTabsContent .cke_chrome .cke_editable ul { + list-style-type: square; } + #DisplayGroupTabsContent .cke_chrome .cke_editable ol, + #Modal_DisplayGroupTabsContent .cke_chrome .cke_editable ol { + list-style-type: decimal; } + +ul.token-input-list { + display: block; + width: 100%; + height: 36px; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; + background-color: #ffffff; + background-image: none; + border: 1px solid #cccccc; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; + position: relative; + line-height: 115%; + padding: 2px 0; + border-radius: 2px; } + ul.token-input-list:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); } + ul.token-input-list::-moz-placeholder { + color: #666666; + opacity: 1; } + ul.token-input-list:-ms-input-placeholder, ul.token-input-list::-webkit-input-placeholder { + color: #666666; } + ul.token-input-list[disabled], ul.token-input-list[readonly] { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; } + +fieldset[disabled] ul.token-input-list { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; } + +textarea ul.token-input-list { + height: auto; } + +select ul.token-input-list { + height: 33px; + line-height: 33px; } + +textarea ul.token-input-list, select[multiple] { + height: auto; } + +ul.token-input-list { + height: auto; } + ul.token-input-list.token-input-focused { + border-color: #66afe9; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; } + ul.token-input-list li { + display: inline-block; + padding: 3px 7px; + margin: 3px 1px 0 4px; } + ul.token-input-list li input[type="text"] { + font-family: 'Lato', Helvetica, Arial, sans-serif; + height: 19px; + line-height: 21px; + padding: 0; } + ul.token-input-list li.token-input-token { + background-color: #CEE7F2; } + ul.token-input-list li.token-input-token p, ul.token-input-list li.token-input-token span { + display: inline-block; } + ul.token-input-list li.token-input-token p { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-weight: normal; + color: #4d4d4d; + margin-right: 5px; } + ul.token-input-list li.token-input-token span.token-input-delete-token { + position: relative; + top: -1px; + color: #959595; } + ul.token-input-list li.token-input-token ~ li.token-input-input-token { + position: absolute; + bottom: 2px; + padding-top: 1px; + padding-bottom: 4px; + margin-left: -1px; } + +div.token-input-dropdown p { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-weight: normal; } + +div.token-input-dropdown ul li { + color: #4d4d4d; } + div.token-input-dropdown ul li.token-input-dropdown-item { + background-color: #EEE; } + div.token-input-dropdown ul li.token-input-selected-dropdown-item { + background-color: #D4EFFA; } + div.token-input-dropdown ul li .Breadcrumbs { + color: #666666; } + div.token-input-dropdown ul li em { + font-weight: normal; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css new file mode 100644 index 00000000..59b901fd --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -0,0 +1 @@ +/*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible;text-transform:none}select{text-transform:none}button,html input[type=button]{-webkit-appearance:button;cursor:pointer}input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}@media print{*{text-shadow:none!important;color:#000!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a{text-decoration:underline}a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr{page-break-inside:avoid}img{page-break-inside:avoid;max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format("embedded-opentype"),url(../fonts/glyphicons-halflings-regular.woff) format("woff"),url(../fonts/glyphicons-halflings-regular.ttf) format("truetype"),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format("svg")}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}*{-webkit-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{font-family:Lato,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.42857143;color:#fff;background-color:#333}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#0a94d4;text-decoration:none}a:hover{color:#07618b;text-decoration:underline}a:focus{color:#07618b;text-decoration:underline;outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.carousel-inner>.item>a>img,.carousel-inner>.item>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:2px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#333;border:1px solid #ddd;border-radius:1px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:22px;margin-bottom:22px;border:0;border-top:1px solid #ccc}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#666}.h1,.h2,.h3,h1,h2,h3{margin-top:22px;margin-bottom:11px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:11px;margin-bottom:11px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:41px}.h2,h2{font-size:34px}.h3,h3{font-size:28px}.h4,h4{font-size:20px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}p{margin:0 0 11px}.lead{margin-bottom:22px;font-size:18px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:24px}}.small,small{font-size:87%}cite{font-style:normal}.mark,mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#666}.text-primary{color:#4d4d4d}a.text-primary:hover{color:#333}.text-success{color:#125204}a.text-success:hover{color:#072102}.text-info{color:#0872a3}a.text-info:hover{color:#055073}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#d63510}a.text-danger:hover{color:#a6290c}.bg-primary{color:#fff;background-color:#4d4d4d}a.bg-primary:hover{background-color:#333}.bg-success{background-color:#d3e5cf}a.bg-success:hover{background-color:#b5d3ae}.bg-info{background-color:#daebf2}a.bg-info:hover{background-color:#b4d7e5}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f0dcd8}a.bg-danger:hover{background-color:#e2bbb3}.page-header{padding-bottom:10px;margin:44px 0 22px;border-bottom:1px solid #ccc}ol,ul{margin-top:0;margin-bottom:11px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:22px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #666}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:11px 22px;margin:0 0 22px;font-size:20px;border-left:5px solid #ccc}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#666}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #ccc;border-left:0;text-align:right}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}blockquote.pull-right .small:after{content:'\00A0 \2014'}blockquote:after,blockquote:before{content:""}address{margin-bottom:22px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:1px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:0;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:10.5px;margin:0 0 11px;font-size:15px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:1px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container,.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:990px}}@media (min-width:1240px){.container{width:1220px}}.row{margin-left:-15px;margin-right:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{float:left;width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{float:left;width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{float:left;width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1240px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{float:left;width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:22px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#333}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#d3e5cf}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#c4dcbe}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success{background-color:#c4dcbe}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#daebf2}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c7e1eb}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info{background-color:#c7e1eb}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f0dcd8}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#e9cbc6}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger{background-color:#e9cbc6}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:16.5px;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:22px;font-size:24px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:16px;line-height:1.42857143;color:#4d4d4d}.form-control{display:block;width:100%;height:36px;padding:6px 12px;font-size:16px;line-height:1.42857143;color:#4d4d4d;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#666;opacity:1}.form-control:-ms-input-placeholder,.form-control::-webkit-input-placeholder{color:#666}.form-control[disabled],.form-control[readonly]{cursor:not-allowed;background-color:#ccc;opacity:1}fieldset[disabled] .form-control{cursor:not-allowed;background-color:#ccc;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{line-height:36px}input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:33px}input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:49px}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;min-height:22px;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled{cursor:not-allowed}fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label{cursor:not-allowed}fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.form-horizontal .form-group-sm .form-control,.input-sm{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}select.input-sm{height:33px;line-height:33px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-horizontal .form-group-lg .form-control,.input-lg{height:49px;padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}select.input-lg{height:49px;line-height:49px}select[multiple].input-lg,textarea.input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:45px}.form-control-feedback{position:absolute;top:27px;right:0;z-index:2;display:block;width:36px;height:36px;line-height:36px;text-align:center}.input-lg+.form-control-feedback{width:49px;height:49px;line-height:49px}.input-sm+.form-control-feedback{width:33px;height:33px;line-height:33px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline{color:#125204}.has-success .form-control{border-color:#125204;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#072102;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #28b309;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #28b309}.has-success .input-group-addon{color:#125204;border-color:#125204;background-color:#d3e5cf}.has-success .form-control-feedback{color:#125204}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline{color:#d63510}.has-error .form-control{border-color:#d63510;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#a6290c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f37558;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f37558}.has-error .input-group-addon{color:#d63510;border-color:#d63510;background-color:#f0dcd8}.has-error .form-control-feedback{color:#d63510}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#fff}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .checkbox,.form-horizontal .radio{min-height:29px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}@media (min-width:768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.3px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:16px;line-height:1.42857143;border-radius:1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active:focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:focus,.btn:hover{color:#fff;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled]{cursor:not-allowed;pointer-events:none;opacity:.65;-webkit-box-shadow:none;box-shadow:none}fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#fff;background-color:#959595;border-color:#959595}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover{color:#fff;background-color:#7c7c7c;border-color:#767676}.open>.dropdown-toggle.btn-default{color:#fff;background-color:#7c7c7c;border-color:#767676}.btn-default.active,.btn-default:active{background-image:none}.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled]{background-color:#959595;border-color:#959595}fieldset[disabled] .btn-default{background-color:#959595;border-color:#959595}.btn-default.disabled:hover,.btn-default[disabled]:hover{background-color:#959595;border-color:#959595}fieldset[disabled] .btn-default:hover{background-color:#959595;border-color:#959595}.btn-default.disabled:focus,.btn-default[disabled]:focus{background-color:#959595;border-color:#959595}fieldset[disabled] .btn-default:focus{background-color:#959595;border-color:#959595}.btn-default.disabled:active,.btn-default[disabled]:active{background-color:#959595;border-color:#959595}fieldset[disabled] .btn-default:active{background-color:#959595;border-color:#959595}.btn-default.disabled.active,.btn-default[disabled].active{background-color:#959595;border-color:#959595}fieldset[disabled] .btn-default.active{background-color:#959595;border-color:#959595}.btn-default .badge{color:#959595;background-color:#fff}.btn-primary{color:#fff;background-color:#0a94d4;border-color:#0a94d4}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover{color:#fff;background-color:#0872a3;border-color:#076b9a}.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#0872a3;border-color:#076b9a}.btn-primary.active,.btn-primary:active{background-image:none}.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled]{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-primary{background-color:#0a94d4;border-color:#0a94d4}.btn-primary.disabled:hover,.btn-primary[disabled]:hover{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-primary:hover{background-color:#0a94d4;border-color:#0a94d4}.btn-primary.disabled:focus,.btn-primary[disabled]:focus{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-primary:focus{background-color:#0a94d4;border-color:#0a94d4}.btn-primary.disabled:active,.btn-primary[disabled]:active{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-primary:active{background-color:#0a94d4;border-color:#0a94d4}.btn-primary.disabled.active,.btn-primary[disabled].active{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-primary.active{background-color:#0a94d4;border-color:#0a94d4}.btn-primary .badge{color:#0a94d4;background-color:#fff}.btn-success{color:#fff;background-color:#28b309;border-color:#28b309}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover{color:#fff;background-color:#1d8207;border-color:#1b7906}.open>.dropdown-toggle.btn-success{color:#fff;background-color:#1d8207;border-color:#1b7906}.btn-success.active,.btn-success:active{background-image:none}.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled]{background-color:#28b309;border-color:#28b309}fieldset[disabled] .btn-success{background-color:#28b309;border-color:#28b309}.btn-success.disabled:hover,.btn-success[disabled]:hover{background-color:#28b309;border-color:#28b309}fieldset[disabled] .btn-success:hover{background-color:#28b309;border-color:#28b309}.btn-success.disabled:focus,.btn-success[disabled]:focus{background-color:#28b309;border-color:#28b309}fieldset[disabled] .btn-success:focus{background-color:#28b309;border-color:#28b309}.btn-success.disabled:active,.btn-success[disabled]:active{background-color:#28b309;border-color:#28b309}fieldset[disabled] .btn-success:active{background-color:#28b309;border-color:#28b309}.btn-success.disabled.active,.btn-success[disabled].active{background-color:#28b309;border-color:#28b309}fieldset[disabled] .btn-success.active{background-color:#28b309;border-color:#28b309}.btn-success .badge{color:#28b309;background-color:#fff}.btn-info{color:#fff;background-color:#0a94d4;border-color:#0a94d4}.btn-info.active,.btn-info:active,.btn-info:focus,.btn-info:hover{color:#fff;background-color:#0872a3;border-color:#076b9a}.open>.dropdown-toggle.btn-info{color:#fff;background-color:#0872a3;border-color:#076b9a}.btn-info.active,.btn-info:active{background-image:none}.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled]{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-info{background-color:#0a94d4;border-color:#0a94d4}.btn-info.disabled:hover,.btn-info[disabled]:hover{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-info:hover{background-color:#0a94d4;border-color:#0a94d4}.btn-info.disabled:focus,.btn-info[disabled]:focus{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-info:focus{background-color:#0a94d4;border-color:#0a94d4}.btn-info.disabled:active,.btn-info[disabled]:active{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-info:active{background-color:#0a94d4;border-color:#0a94d4}.btn-info.disabled.active,.btn-info[disabled].active{background-color:#0a94d4;border-color:#0a94d4}fieldset[disabled] .btn-info.active{background-color:#0a94d4;border-color:#0a94d4}.btn-info .badge{color:#0a94d4;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad20;border-color:#f0ad20}.btn-warning.active,.btn-warning:active,.btn-warning:focus,.btn-warning:hover{color:#fff;background-color:#cf910e;border-color:#c68a0d}.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#cf910e;border-color:#c68a0d}.btn-warning.active,.btn-warning:active{background-image:none}.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled]{background-color:#f0ad20;border-color:#f0ad20}fieldset[disabled] .btn-warning{background-color:#f0ad20;border-color:#f0ad20}.btn-warning.disabled:hover,.btn-warning[disabled]:hover{background-color:#f0ad20;border-color:#f0ad20}fieldset[disabled] .btn-warning:hover{background-color:#f0ad20;border-color:#f0ad20}.btn-warning.disabled:focus,.btn-warning[disabled]:focus{background-color:#f0ad20;border-color:#f0ad20}fieldset[disabled] .btn-warning:focus{background-color:#f0ad20;border-color:#f0ad20}.btn-warning.disabled:active,.btn-warning[disabled]:active{background-color:#f0ad20;border-color:#f0ad20}fieldset[disabled] .btn-warning:active{background-color:#f0ad20;border-color:#f0ad20}.btn-warning.disabled.active,.btn-warning[disabled].active{background-color:#f0ad20;border-color:#f0ad20}fieldset[disabled] .btn-warning.active{background-color:#f0ad20;border-color:#f0ad20}.btn-warning .badge{color:#f0ad20;background-color:#fff}.btn-danger{color:#fff;background-color:#ef4a24;border-color:#ef4a24}.btn-danger.active,.btn-danger:active,.btn-danger:focus,.btn-danger:hover{color:#fff;background-color:#d1330f;border-color:#c7310f}.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#d1330f;border-color:#c7310f}.btn-danger.active,.btn-danger:active{background-image:none}.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled]{background-color:#ef4a24;border-color:#ef4a24}fieldset[disabled] .btn-danger{background-color:#ef4a24;border-color:#ef4a24}.btn-danger.disabled:hover,.btn-danger[disabled]:hover{background-color:#ef4a24;border-color:#ef4a24}fieldset[disabled] .btn-danger:hover{background-color:#ef4a24;border-color:#ef4a24}.btn-danger.disabled:focus,.btn-danger[disabled]:focus{background-color:#ef4a24;border-color:#ef4a24}fieldset[disabled] .btn-danger:focus{background-color:#ef4a24;border-color:#ef4a24}.btn-danger.disabled:active,.btn-danger[disabled]:active{background-color:#ef4a24;border-color:#ef4a24}fieldset[disabled] .btn-danger:active{background-color:#ef4a24;border-color:#ef4a24}.btn-danger.disabled.active,.btn-danger[disabled].active{background-color:#ef4a24;border-color:#ef4a24}fieldset[disabled] .btn-danger.active{background-color:#ef4a24;border-color:#ef4a24}.btn-danger .badge{color:#ef4a24;background-color:#fff}.btn-link{color:#0a94d4;font-weight:400;cursor:pointer;border-radius:0;background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link:active,.btn-link[disabled]{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link{border-color:transparent}.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#07618b;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover{color:#666;text-decoration:none}.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#666;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:14px;line-height:1.5;border-radius:0}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:16px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:1px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a{color:#fff;text-decoration:none;outline:0;background-color:#4d4d4d}.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#4d4d4d}.dropdown-menu>.disabled>a{color:#666}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#666}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:14px;line-height:1.42857143;color:#666;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group-vertical>.btn:focus,.btn-group>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group{margin-left:-1px}.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active{outline:0}.btn-group.open .dropdown-toggle{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%;float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:1px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:1px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn>input[type=checkbox],[data-toggle=buttons]>.btn>input[type=radio]{position:absolute;z-index:-1;opacity:0}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:49px;padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:49px;line-height:49px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:33px;line-height:33px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:16px;font-weight:400;line-height:1;color:#4d4d4d;text-align:center;background-color:#ccc;border:1px solid #ccc;border-radius:1px}.input-group-addon.input-sm{padding:5px 10px;font-size:14px;border-radius:0}.input-group-addon.input-lg{padding:10px 16px;font-size:20px;border-radius:2px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:5px 5px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:transparent}.nav>li.disabled>a{color:#666}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#666;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a{background-color:transparent;border-color:#0a94d4}.nav .open>a:focus,.nav .open>a:hover{background-color:transparent;border-color:#0a94d4}.nav .nav-divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:1px 1px 0 0}.nav-tabs>li>a:hover{border-color:#ccc #ccc #ddd}.nav-tabs>li.active>a{color:#4d4d4d;background-color:#333;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#4d4d4d;background-color:#333;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:1px}.nav-tabs.nav-justified>.active>a{border:1px solid #ddd}.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:1px 1px 0 0}.nav-tabs.nav-justified>.active>a{border-bottom-color:#333}.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#333}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:1px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a{color:#fff;background-color:#4d4d4d}.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#4d4d4d}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:1px}.nav-tabs-justified>.active>a{border:1px solid #ddd}.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:1px 1px 0 0}.nav-tabs-justified>.active>a{border-bottom-color:#333}.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#333}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:22px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:1px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-left:0;padding-right:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:14px 15px;font-size:20px;line-height:22px;height:50px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:1px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:22px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:22px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:14px;padding-bottom:14px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin-top:7px;margin-bottom:7px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:7px;margin-bottom:7px}.navbar-btn.btn-sm{margin-top:8.5px;margin-bottom:8.5px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:14px;margin-bottom:14px}@media (min-width:768px){.navbar-text{float:left;margin-left:15px;margin-right:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a{color:#ccc;background-color:transparent}.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a{background-color:#e7e7e7;color:#555}.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background-color:#e7e7e7;color:#555}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:hover{color:#ccc}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a{color:#ccc;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .btn-link[disabled]:focus,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#666}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#666}.navbar-inverse .navbar-nav>li>a{color:#666}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a{color:#444;background-color:transparent}.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a{background-color:#080808;color:#fff}.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{background-color:#080808;color:#fff}.navbar-inverse .navbar-link{color:#666}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#666}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:hover{color:#444}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#666}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a{color:#444;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:22px;list-style:none;background-color:#f5f5f5;border-radius:1px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.breadcrumb>.active{color:#666}.pagination{display:inline-block;padding-left:0;margin:22px 0;border-radius:1px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;text-decoration:none;color:#0a94d4;background-color:#fff;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:1px;border-top-left-radius:1px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:1px;border-top-right-radius:1px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#07618b;background-color:#ccc;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;background-color:#4d4d4d;border-color:#4d4d4d;cursor:default}.pagination>.disabled>span{color:#666;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#666;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination>.disabled>a{color:#666;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination>.disabled>a:focus,.pagination>.disabled>a:hover{color:#666;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:20px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:2px;border-top-left-radius:2px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:2px;border-top-right-radius:2px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:14px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:0;border-top-left-radius:0}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:0;border-top-right-radius:0}.pager{padding-left:0;margin:22px 0;list-style:none;text-align:center}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#ccc}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a{color:#666;background-color:#fff;cursor:not-allowed}.pager .disabled>a:focus,.pager .disabled>a:hover{color:#666;background-color:#fff;cursor:not-allowed}.pager .disabled>span{color:#666;background-color:#fff;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#666}.label-default[href]:focus,.label-default[href]:hover{background-color:#4d4d4d}.label-primary{background-color:#4d4d4d}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#333}.label-success{background-color:#28b309}.label-success[href]:focus,.label-success[href]:hover{background-color:#1d8207}.label-info{background-color:#0a94d4}.label-info[href]:focus,.label-info[href]:hover{background-color:#0872a3}.label-warning{background-color:#f0ad20}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#cf910e}.label-danger{background-color:#ef4a24}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#d1330f}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:14px;font-weight:700;color:#fff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#666;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge{color:#0a94d4;background-color:#fff}.nav-pills>.active>a>.badge{color:#0a94d4;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;color:inherit;background-color:#ccc}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:24px;font-weight:200}.jumbotron>hr{border-top-color:#b3b3b3}.container .jumbotron{border-radius:2px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-left:60px;padding-right:60px}.jumbotron .h1,.jumbotron h1{font-size:72px}}.thumbnail{display:block;padding:4px;margin-bottom:22px;line-height:1.42857143;background-color:#333;border:1px solid #ddd;border-radius:1px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-left:auto;margin-right:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#0a94d4}.thumbnail .caption{padding:9px;color:#fff}.alert{padding:15px;margin-bottom:22px;border:1px solid transparent;border-radius:1px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#d3e5cf;border-color:#c9dcbe;color:#125204}.alert-success hr{border-top-color:#bbd3ae}.alert-success .alert-link{color:#072102}.alert-info{background-color:#daebf2;border-color:#c0e4e9;color:#0872a3}.alert-info hr{border-top-color:#addbe2}.alert-info .alert-link{color:#055073}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f0dcd8;border-color:#e9c6c6;color:#d63510}.alert-danger hr{border-top-color:#e2b3b3}.alert-danger .alert-link{color:#a6290c}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:22px;margin-bottom:22px;background-color:#f5f5f5;border-radius:1px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0%;height:100%;font-size:14px;line-height:22px;color:#fff;text-align:center;background-color:#4d4d4d;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar.active{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar[aria-valuenow="1"],.progress-bar[aria-valuenow="2"]{min-width:30px}.progress-bar[aria-valuenow="0"]{color:#666;min-width:30px;background-color:transparent;background-image:none;-webkit-box-shadow:none;box-shadow:none}.progress-bar-success{background-color:#28b309}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#0a94d4}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad20}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#ef4a24}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media{margin-top:15px}.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:1px;border-top-left-radius:1px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:1px;border-bottom-left-radius:1px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{text-decoration:none;color:#555;background-color:#f5f5f5}.list-group-item.disabled{background-color:#ccc;color:#666}.list-group-item.disabled:focus,.list-group-item.disabled:hover{background-color:#ccc;color:#666}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#666}.list-group-item.active{z-index:2;color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#b3b3b3}.list-group-item-success{color:#125204;background-color:#d3e5cf}a.list-group-item-success{color:#125204}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#125204;background-color:#c4dcbe}a.list-group-item-success.active{color:#fff;background-color:#125204;border-color:#125204}a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#125204;border-color:#125204}.list-group-item-info{color:#0872a3;background-color:#daebf2}a.list-group-item-info{color:#0872a3}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#0872a3;background-color:#c7e1eb}a.list-group-item-info.active{color:#fff;background-color:#0872a3;border-color:#0872a3}a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#0872a3;border-color:#0872a3}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#d63510;background-color:#f0dcd8}a.list-group-item-danger{color:#d63510}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#d63510;background-color:#e9cbc6}a.list-group-item-danger.active{color:#fff;background-color:#d63510;border-color:#d63510}a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#d63510;border-color:#d63510}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:22px;background-color:#fff;border:1px solid transparent;border-radius:1px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:0;border-top-left-radius:0}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:18px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:0;border-bottom-left-radius:0}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:0;border-top-left-radius:0}.panel>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.list-group+.panel-footer,.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:0}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:0}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:0;border-bottom-left-radius:0}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:0}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:0}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-responsive{border:0;margin-bottom:0}.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel-group{margin-bottom:22px}.panel-group .panel{margin-bottom:0;border-radius:1px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#4d4d4d}.panel-primary>.panel-heading{color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#4d4d4d}.panel-primary>.panel-heading .badge{color:#4d4d4d;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#4d4d4d}.panel-success{border-color:#c9dcbe}.panel-success>.panel-heading{color:#125204;background-color:#d3e5cf;border-color:#c9dcbe}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#c9dcbe}.panel-success>.panel-heading .badge{color:#d3e5cf;background-color:#125204}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#c9dcbe}.panel-info{border-color:#c0e4e9}.panel-info>.panel-heading{color:#0872a3;background-color:#daebf2;border-color:#c0e4e9}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#c0e4e9}.panel-info>.panel-heading .badge{color:#daebf2;background-color:#0872a3}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#c0e4e9}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#e9c6c6}.panel-danger>.panel-heading{color:#d63510;background-color:#f0dcd8;border-color:#e9c6c6}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#e9c6c6}.panel-danger>.panel-heading .badge{color:#f0dcd8;background-color:#d63510}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#e9c6c6}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}.embed-responsive.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:2px}.well-sm{padding:9px;border-radius:0}.close{float:right;font-size:24px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate3d(0,-25%,0);transform:translate3d(0,-25%,0);-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:2px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.in{opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;visibility:visible;font-size:14px;line-height:1.4;opacity:0}.tooltip.in{opacity:.9}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:1px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;right:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:2px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:16px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:1px 1px 0 0}.popover-content{padding:9px 14px}.popover>.arrow{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:11px}.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.25)}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:.5;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{outline:0;color:#fff;text-decoration:none;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:transparent}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:after,.clearfix:before{content:" ";display:table}.dl-horizontal dd:after,.dl-horizontal dd:before{content:" ";display:table}.container:after,.container:before{content:" ";display:table}.container-fluid:after,.container-fluid:before{content:" ";display:table}.row:after,.row:before{content:" ";display:table}.form-horizontal .form-group:after,.form-horizontal .form-group:before{content:" ";display:table}.btn-toolbar:after,.btn-toolbar:before{content:" ";display:table}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before{content:" ";display:table}.nav:after,.nav:before{content:" ";display:table}.navbar:after,.navbar:before{content:" ";display:table}.navbar-header:after,.navbar-header:before{content:" ";display:table}.navbar-collapse:after,.navbar-collapse:before{content:" ";display:table}.pager:after,.pager:before{content:" ";display:table}.panel-body:after,.panel-body:before{content:" ";display:table}.modal-footer:after,.modal-footer:before{content:" ";display:table}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-print,.visible-print-block,.visible-print-inline,.visible-print-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1239px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1240px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1240px){.visible-lg-block{display:block!important}}@media (min-width:1240px){.visible-lg-inline{display:inline!important}}@media (min-width:1240px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1239px){.hidden-md{display:none!important}}@media (min-width:1240px){.hidden-lg{display:none!important}}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}@media print{.visible-print-block{display:block!important}}@media print{.visible-print-inline{display:inline!important}}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}@font-face{font-family:'Lato Light';src:url(../Fonts/lato-light-webfont.eot);src:url(../Fonts/lato-light-webfont.eot?#iefix) format("embedded-opentype"),url(../Fonts/lato-light-webfont.woff) format("woff"),url(../Fonts/lato-light-webfont.ttf) format("truetype"),url(../Fonts/lato-light-webfont.svg#latolight) format("svg");font-weight:400;font-style:normal}@font-face{font-family:Lato;src:url(../Fonts/lato-regular-webfont.eot);src:url(../Fonts/lato-regular-webfont.eot?#iefix) format("embedded-opentype"),url(../Fonts/lato-regular-webfont.woff) format("woff"),url(../Fonts/lato-regular-webfont.ttf) format("truetype"),url(../Fonts/lato-regular-webfont.svg#latoregular) format("svg");font-weight:400;font-style:normal}.btn-ancillary{color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary.active,.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{color:#fff;background-color:#333;border-color:#2e2e2e}.open>.dropdown-toggle.btn-ancillary{color:#fff;background-color:#333;border-color:#2e2e2e}.btn-ancillary.active,.btn-ancillary:active{background-image:none}.open>.dropdown-toggle.btn-ancillary{background-image:none}.btn-ancillary.disabled,.btn-ancillary[disabled]{background-color:#4d4d4d;border-color:#4d4d4d}fieldset[disabled] .btn-ancillary{background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary.disabled:hover,.btn-ancillary[disabled]:hover{background-color:#4d4d4d;border-color:#4d4d4d}fieldset[disabled] .btn-ancillary:hover{background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary.disabled:focus,.btn-ancillary[disabled]:focus{background-color:#4d4d4d;border-color:#4d4d4d}fieldset[disabled] .btn-ancillary:focus{background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary.disabled:active,.btn-ancillary[disabled]:active{background-color:#4d4d4d;border-color:#4d4d4d}fieldset[disabled] .btn-ancillary:active{background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary.disabled.active,.btn-ancillary[disabled].active{background-color:#4d4d4d;border-color:#4d4d4d}fieldset[disabled] .btn-ancillary.active{background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary .badge{color:#4d4d4d;background-color:#fff}.btn-ancillary.active,.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{background-color:#262626;border-color:#262626}body.Modal{background-color:#fff}#HeaderArea,#HeaderContainer{background-color:#1a1a1a;min-height:85px}#HeaderArea{border-bottom:1px solid #ccc}#HeaderArea .Page-Title-Area,#HeaderArea .Site-Name{min-height:84px}#HeaderArea .Page-Title-Area h1,#HeaderArea .Page-Title-Area h2,#HeaderArea .Page-Title-Area h3,#HeaderArea .Page-Title-Area h4,#HeaderArea .Page-Title-Area h5,#HeaderArea .Page-Title-Area h6,#HeaderArea .Site-Name h1,#HeaderArea .Site-Name h2,#HeaderArea .Site-Name h3,#HeaderArea .Site-Name h4,#HeaderArea .Site-Name h5,#HeaderArea .Site-Name h6{line-height:41px;margin:0}#HeaderArea .Site-Name{background-color:#ef4a24;min-height:95px;border:1px solid #ccc;border-top:0 none transparent;margin-bottom:-9px}#HeaderArea .Page-Title-Area{background-color:#1a1a1a}#HeaderArea .Page-Title-Area .Breadcrumbs{font-size:13px;font-style:italic;letter-spacing:.02em;color:#ccc;padding-top:9px;margin-bottom:-3px;margin-left:3px}#HeaderArea .Site-Name h1,#HeaderArea h2.Page-Title{font-family:'Lato Light',Helvetica,Arial,sans-serif;font-size:34px;color:#fff;padding-top:25px}#HeaderArea .Site-Name h1{margin-left:-2px}#HeaderArea h2.Page-Title{margin-left:3px}select{font-size:14px;color:#666;padding:3px 5px}select option{margin-bottom:3px}.Sidebar{padding-right:0;padding-left:0}.Sidebar #TreeView{margin:45px 1px 0 -1px}.Sidebar #TreeView:before{content:" ";display:table}.Sidebar #TreeView:after{content:" ";display:table;clear:both}.Sidebar #TreeView:before{content:" ";display:table}.Sidebar #TreeView:after{content:" ";display:table;clear:both}.Sidebar .Add-Topic,.Sidebar .AddTopic{margin-left:1.3em}.Sidebar select{background-color:#eee;width:95%;border-radius:2px}.Content-Container .Content[class*=col-]{padding-right:0;padding-left:0}.Content-Container .Content .Page-Content.Primary{position:relative;color:#333}[id*=DynamicForm]{background-color:#333;padding-top:50px}[id*=DynamicForm] .row.Form-Area,[id*=DynamicForm] .row.Messages-Area{margin:0}[id*=DynamicForm] .Editor-Navbar{width:100%;height:50px;background-color:#333}[id*=DynamicForm]#Modal_DynamicForm{padding-top:49px}[id*=DynamicForm]#Modal_DynamicForm .row.Toolbar-Area{margin:0}[id*=DynamicForm]#Modal_DynamicForm .row.Messages-Area{padding-right:5px;padding-left:5px}[id*=DynamicForm]#Modal_DynamicForm div[class*=col-]{padding-right:0;padding-left:0}[id*=DynamicForm]#Modal_DynamicForm div[class*=col-].Form-Body{padding-right:15px;padding-left:15px}[id*=DynamicForm]#Modal_DynamicForm .Editor-Navbar{top:0}[id*=DynamicForm]#Modal_DynamicForm .Messages-Area .alert-dismissable .close,[id*=DynamicForm]#Modal_DynamicForm .Messages-Area .close{right:0}[id*=DynamicForm] .Form-Area,[id*=DynamicForm] .Messages-Area{background-color:#fff}[id*=DynamicForm] .Messages-Area div[class*=Error],[id*=DynamicForm] .Messages-Area div[class*=alert]{font-size:13px;letter-spacing:.02em}[id*=DynamicForm] .Messages-Area div[class*=Error]{margin:10px 5px 0}[id*=DynamicForm] .Messages-Area .alert{margin:10px 5px 0}[id*=DynamicForm] .Messages-Area .Error.Messaging font{margin:10px 5px 0;background-color:#f0dcd8;border-color:#e9c6c6;color:#d63510;display:block;color:#d63510!important;padding:10px;border:1px solid #e9c6c6;margin:0}[id*=DynamicForm] .Messages-Area .Error.Messaging font a{cursor:pointer}[id*=DynamicForm] .Messages-Area .Error.Messaging font hr{border-top-color:#e2b3b3}[id*=DynamicForm] .Messages-Area .Error.Messaging font .alert-link{color:#a6290c}[id*=DynamicForm] .Messages-Area .Error.Messaging font ul{list-style-type:square;padding-left:25px}[id*=DynamicForm] .Messages-Area .alert{padding:10px}[id*=DynamicForm] .Messages-Area .alert a{cursor:pointer}[id*=DynamicForm] .Messages-Area .alert-dismissable .close{right:0;font-size:20px;margin-top:0}[id*=DynamicForm] .Actions.Top{float:right;padding:0 8px;margin-top:-2px}[id*=DynamicForm] .Actions.Top button,[id*=DynamicForm] .Actions.Top input{margin-left:4px}[id*=DynamicForm] .Actions.Top #VersionsDropdown .glyphicon{margin-right:2px}[id*=DynamicForm] .Actions.Top #VersionsDropdown .caret{margin-left:2px}[id*=DynamicForm] ul.nav-tabs{padding-left:15px;border-bottom:0 none transparent}[id*=DynamicForm] .nav-tabs>li{margin-bottom:0}[id*=DynamicForm] .nav-tabs>li>a{color:#ccc;border:0 none transparent;border-bottom:8px solid transparent;margin-right:10px}[id*=DynamicForm] .nav-tabs>li>a:active,[id*=DynamicForm] .nav-tabs>li>a:focus,[id*=DynamicForm] .nav-tabs>li>a:hover{color:#fff;border-bottom-color:#ccc}[id*=DynamicForm] .nav-tabs>li.active>a{color:#fff;border:0 none transparent;border-bottom:8px solid #ccc}[id*=DynamicForm] .nav-tabs>li.active>a:focus,[id*=DynamicForm] .nav-tabs>li.active>a:hover{color:#fff;border:0 none transparent;border-bottom:8px solid #ccc}[id*=DynamicForm] label{font-weight:400}[id*=DynamicForm] input[type=text]{width:100%;max-width:960px}[id*=DynamicForm] input[type=text].form-control{border-radius:2px}[id*=DynamicForm] :-moz-placeholder,[id*=DynamicForm] :-ms-input-placeholder,[id*=DynamicForm] ::-moz-placeholder,[id*=DynamicForm] ::-webkit-input-placeholder{color:#999}[id*=DynamicForm] input[type=radio]+label{font-size:14px;margin:0 3px}[id*=DynamicForm] select{padding:3px 5px;border-radius:2px}[id*=DynamicForm] select option{font-size:14px;margin-bottom:3px}[id*=DynamicForm] .Radio-Buttons li{display:inline-block}[id*=DynamicForm] input[class*=Error]{border-color:#ef4a24}[id*=DynamicForm] input[class*=Error]:focus{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f69983;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f69983}[id*=DynamicForm] .Last-Modified{font-size:14px;color:#4d4d4d}[id*=DynamicForm] [id*=DisplayGroupTabsContent]{width:100%;padding:0}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Group-Item{margin-bottom:20px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading{margin-bottom:5px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .Content-Description{position:relative;font-size:16px;color:#959595;text-decoration:none;top:2px;left:3px;padding:2px 5.5px 1px;cursor:pointer}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .tooltip .tooltip-arrow{border-right-color:#1a1a1a}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .tooltip .tooltip-inner{background-color:#1a1a1a;max-width:550px;font-size:14px;color:#eee;text-align:left;padding:5px 10px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .tab-pane{background-color:#fff;padding:20px 5px;overflow:auto}[id*=DynamicForm] .Callout-Area{background-color:#fff;padding:20px 5px 20px 0}[id*=DynamicForm] .Callout-Area #FixedCallouts{position:absolute;background-color:transparent;width:100%;right:-20px}[id*=DynamicForm] .Callout-Area .Callout{width:100%}[id*=DynamicForm] .Callout-Area .Callout.Page-Info{position:fixed;background-color:#fff;width:16%;max-width:214px;padding:15px;border:1px solid #ccc;z-index:0}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dd,[id*=DynamicForm] .Callout-Area .Callout.Page-Info dt,[id*=DynamicForm] .Callout-Area .Callout.Page-Info h3{color:#666}[id*=DynamicForm] .Callout-Area .Callout.Page-Info h3{font-family:'Lato Light',Helvetica,Arial,sans-serif;margin-top:0}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl{font-size:13px;line-height:18px;margin-bottom:-13px}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dt{font-weight:400}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dt .fa{width:1em;margin-right:5px}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dd{margin-left:1.7em;margin-bottom:8px}[id*=EditorModal] .modal-header{background-color:#1a1a1a;padding:20px;border-bottom-color:#ccc}[id*=EditorModal] .modal-header .Page-Title{font-family:'Lato Light',Helvetica,Arial,sans-serif;color:#fff;margin:0}[id*=EditorModal] .modal-content{background-color:#333}[id*=EditorModal] iframe{display:block;vertical-align:bottom}select[id*=ThemeColor] option[selected=selected],select[id*=ThemeColor] option[value*=ThemeColor]{color:#fff;line-height:1.6em}select[id*=ThemeColor] option[selected=selected][value*=Blue],select[id*=ThemeColor] option[value*=ThemeColor][value*=Blue]{background-color:#02a3e0}select[id*=ThemeColor] option[selected=selected][value*=Orange],select[id*=ThemeColor] option[value*=ThemeColor][value*=Orange]{background-color:#ff9e1a}select[id*=ThemeColor] option[selected=selected][value*=Green],select[id*=ThemeColor] option[value*=ThemeColor][value*=Green]{background-color:#029a17}select[id*=ThemeColor] option[selected=selected][value*=Purple],select[id*=ThemeColor] option[value*=ThemeColor][value*=Purple]{background-color:#9f5eb5}select[id*=ThemeColor] option[selected=selected][value*=Red],select[id*=ThemeColor] option[value*=ThemeColor][value*=Red]{background-color:#e30046}@media screen and (max-width:1024px){.Sidebar .Add-Topic,.Sidebar .AddTopic{margin-left:.5em}}@media (min-width:768px){.modal-dialog{min-width:700px;width:720px}}@media (min-width:768px) and (max-width:991px){[id*=DynamicForm] .Callout-Area #FixedCallouts{position:relative;right:0}[id*=DynamicForm] .Callout-Area #FixedCallouts .Callout.Page-Info{position:relative;top:-30px;left:20px;width:50%}}.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{-moz-user-select:all!important;-khtml-user-select:all!important;-webkit-user-select:all!important;-ms-user-select:all!important}.x-unselectable{-moz-user-select:all!important;-khtml-user-select:all!important;-webkit-user-select:all!important;-ms-user-select:all!important}.x-unselectable *{-moz-user-select:all!important;-khtml-user-select:all!important;-webkit-user-select:all!important;-ms-user-select:all!important}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(/!Admin/Topics/Images/Navigation/Arrows.png);background-repeat:no-repeat;background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(/!Admin/Topics/Images/Navigation/Dashes.png);background-repeat:no-repeat;background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{font-size:14px;white-space:normal;padding:1px 0}.x-tree-node .x-tree-node-over,.x-tree-node x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;white-space:nowrap;line-height:normal;color:#ccc;text-overflow:ellipsis;padding:0 5px 0 3px;border:1px solid transparent}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{background-position:-50px 0;margin-right:-2px;margin-left:1px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;padding:1px 0;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}#DisplayGroupTabsContent .x-tree-root-ct,#Modal_DisplayGroupTabsContent .x-tree-root-ct{margin:0 0 5px}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node-indent:before,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node-indent:before{color:#666}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px 0}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent;border-color:transparent}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-node-indent:before,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-node-indent:before,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-node-indent:before,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-node-indent:before{color:#ef4a24}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span{color:#333}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox],#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px}#DisplayGroupTabsContent .cke_chrome,#Modal_DisplayGroupTabsContent .cke_chrome{width:100%;max-width:960px;padding:0;border:0 none transparent}#DisplayGroupTabsContent .cke_chrome .cke_inner,#Modal_DisplayGroupTabsContent .cke_chrome .cke_inner{background:#dedede;border-radius:0}#DisplayGroupTabsContent .cke_chrome .cke_editable,#Modal_DisplayGroupTabsContent .cke_chrome .cke_editable{font-size:14px;padding:10px}#DisplayGroupTabsContent .cke_chrome .cke_editable ol,#DisplayGroupTabsContent .cke_chrome .cke_editable ul,#Modal_DisplayGroupTabsContent .cke_chrome .cke_editable ol,#Modal_DisplayGroupTabsContent .cke_chrome .cke_editable ul{padding-left:25px}#DisplayGroupTabsContent .cke_chrome .cke_editable ul,#Modal_DisplayGroupTabsContent .cke_chrome .cke_editable ul{list-style-type:square}#DisplayGroupTabsContent .cke_chrome .cke_editable ol,#Modal_DisplayGroupTabsContent .cke_chrome .cke_editable ol{list-style-type:decimal}ul.token-input-list{display:block;width:100%;height:36px;padding:6px 12px;font-size:16px;line-height:1.42857143;color:#4d4d4d;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0;position:relative;line-height:115%;padding:2px 0;border-radius:2px}ul.token-input-list:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}ul.token-input-list::-moz-placeholder{color:#666;opacity:1}ul.token-input-list:-ms-input-placeholder,ul.token-input-list::-webkit-input-placeholder{color:#666}ul.token-input-list[disabled],ul.token-input-list[readonly]{cursor:not-allowed;background-color:#ccc;opacity:1}fieldset[disabled] ul.token-input-list{cursor:not-allowed;background-color:#ccc;opacity:1}textarea ul.token-input-list{height:auto}select ul.token-input-list{height:33px;line-height:33px}select[multiple],textarea ul.token-input-list{height:auto}ul.token-input-list{height:auto}ul.token-input-list.token-input-focused{border-color:#66afe9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #bfdef6;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #bfdef6}ul.token-input-list li{display:inline-block;padding:3px 7px;margin:3px 1px 0 4px}ul.token-input-list li input[type=text]{font-family:Lato,Helvetica,Arial,sans-serif;height:19px;line-height:21px;padding:0}ul.token-input-list li.token-input-token{background-color:#cee7f2}ul.token-input-list li.token-input-token p,ul.token-input-list li.token-input-token span{display:inline-block}ul.token-input-list li.token-input-token p{font-family:Lato,Helvetica,Arial,sans-serif;font-weight:400;color:#4d4d4d;margin-right:5px}ul.token-input-list li.token-input-token span.token-input-delete-token{position:relative;top:-1px;color:#959595}ul.token-input-list li.token-input-token~li.token-input-input-token{position:absolute;bottom:2px;padding-top:1px;padding-bottom:4px;margin-left:-1px}div.token-input-dropdown p{font-family:Lato,Helvetica,Arial,sans-serif;font-weight:400}div.token-input-dropdown ul li{color:#4d4d4d}div.token-input-dropdown ul li.token-input-dropdown-item{background-color:#eee}div.token-input-dropdown ul li.token-input-selected-dropdown-item{background-color:#d4effa}div.token-input-dropdown ul li .Breadcrumbs{color:#666}div.token-input-dropdown ul li em{font-weight:400} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss index baa50ea0..74f06af2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss @@ -1,6 +1,4 @@ -@import "Vendor/TokenInput/token-input.css"; - -/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ +/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ html { font-family: sans-serif; From 9f08858264fcd55bdf7a58cbf8200a01f240bba1 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 12:29:31 -0700 Subject: [PATCH 092/637] Added JavaScript and CSS dependency references --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 264682dc..d0b9f462 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -4,6 +4,35 @@ @ViewBag.Title - Ignia OnTopic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From a7612af5dc7a2ee301165777d0385b93abf5de9a Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 12:32:39 -0700 Subject: [PATCH 093/637] Resolved merge conflict --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index da7a8d38..7905457a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -4,7 +4,6 @@ @ViewBag.Title - Ignia OnTopic -<<<<<<< HEAD @@ -33,10 +32,8 @@ - -======= ->>>>>>> 5ec7f768469c6c4f2348b5baa9c3fd9ef5250658 + From bdaf9308b09a83ff35a46e18760d140cc26a083d Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 12:41:19 -0700 Subject: [PATCH 094/637] Included supporting JavaScript and CSS files --- .../Ignia.Topics.Editor.Mvc.csproj | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 83990341..49996408 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -161,6 +161,20 @@ + + + + + + + + + + + + + + ConnectionStrings.config Designer @@ -187,6 +201,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 18802bcb07583c859e5b16bdfff31e86f762f9d0 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 13:20:41 -0700 Subject: [PATCH 095/637] Added radio button list with display options --- .../Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml index fecfe137..b4c8ed52 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml @@ -3,3 +3,7 @@ @{ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } + +@Html.RadioButtonFor(m => m.Value, "Default") @Html.LabelFor(m => m.Value, "Desktop and Mobile")
    +@Html.RadioButtonFor(m => m.Value, "Desktop") @Html.LabelFor(m => m.Value, "Desktop Only")
    +@Html.RadioButtonFor(m => m.Value, "Mobile") @Html.LabelFor(m => m.Value, "Mobile Only") \ No newline at end of file From 0f28a44ce220e8fb488d4879828f4285d93d0e35 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 13:29:20 -0700 Subject: [PATCH 096/637] Incorporated site header area --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 7905457a..0007e155 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -35,10 +35,38 @@ - + + + @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" }) + +
    +
    @@ -63,10 +64,8 @@
    + + +
    +
    -
    - @RenderBody() -
    + + +
    +
    +
    + @RenderBody() +
    +
    +
    + +
    +
    @RenderSection("scripts", required: false) From 67b1c499858b39f099decfbef22a4b5697f65a9b Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 10 Oct 2017 15:08:36 -0700 Subject: [PATCH 098/637] Scaffolded Sass structure --- .../Editor/Shared/Styles/Base/_base.scss | 23 + .../Editor/Shared/Styles/Base/_buttons.scss | 9 + .../Editor/Shared/Styles/Base/_fonts.scss | 12 + .../Editor/Shared/Styles/Base/_forms.scss | 158 + .../Editor/Shared/Styles/Base/_icons.scss | 9 + .../Editor/Shared/Styles/Base/_links.scss | 13 + .../Shared/Styles/Base/_typography.scss | 42 + .../Editor/Shared/Styles/Base/_utilities.scss | 41 + .../Editor/Shared/Styles/Layout/_layout.scss | 51 + .../Areas/Editor/Shared/Styles/Style.scss | 7996 +---------------- .../Editor/Shared/Styles/_variables.scss | 46 + 11 files changed, 431 insertions(+), 7969 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_buttons.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_fonts.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_icons.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_utilities.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss new file mode 100644 index 00000000..6de968f9 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss @@ -0,0 +1,23 @@ +//============================================================================================== +// BASE CLASSES +//---------------------------------------------------------------------------------------------- +// Provides global overrides for standard HTML elements based on element, attribute, and single- +// class selectors. Selectors in this section should never be nested more than two layers deep. +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import "fonts"; +@import "typography"; +@import "forms"; +@import "links"; +@import "icons"; +@import "buttons"; +@import "utilities"; + +//---------------------------------------------------------------------------------------------- +// MAIN CONTENT AREA ELEMENTS +//---------------------------------------------------------------------------------------------- +main { +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_buttons.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_buttons.scss new file mode 100644 index 00000000..f425ba7a --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_buttons.scss @@ -0,0 +1,9 @@ +//============================================================================================== +// BUTTONS +//---------------------------------------------------------------------------------------------- +// Extends (Foundation) styles for button elements and links. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// GLOBAL +//---------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_fonts.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_fonts.scss new file mode 100644 index 00000000..d89fa2b2 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_fonts.scss @@ -0,0 +1,12 @@ +//============================================================================================== +// FONTS +//---------------------------------------------------------------------------------------------- +// Imports web fonts, such as EOT, WOFF, OTF, etc. +//---------------------------------------------------------------------------------------------- +// NOTE: Font styles should be defined in _typography.scss. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import url('https://fonts.googleapis.com/css?family=Lato:300,400'); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss new file mode 100644 index 00000000..9e45043d --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss @@ -0,0 +1,158 @@ +//============================================================================================== +// FORMS +//---------------------------------------------------------------------------------------------- +// Defines global styles for form related elements, such as inputs. +//---------------------------------------------------------------------------------------------- +// NOTE: Font styles should be defined in _typography.scss. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +// @import "../Vendor/RedCastor/awesome-foundation6-checkbox"; +@import '../variables'; + +//---------------------------------------------------------------------------------------------- +// FIELDSET +//---------------------------------------------------------------------------------------------- +fieldset { + legend { + margin-bottom : rem-calc(18); + padding-top : rem-calc(34); + font-family : $heading-font-family; + font-size : rem-calc(20); + font-weight : 600; + } +} + +//---------------------------------------------------------------------------------------------- +// LABELS +//---------------------------------------------------------------------------------------------- +label, .label { +} + +//---------------------------------------------------------------------------------------------- +// INPUT +//---------------------------------------------------------------------------------------------- +[type='text'], +[type='password'], +[type='date'], +[type='datetime'], +[type='datetime-local'], +[type='month'], +[type='week'], +[type='email'], +[type='number'], +[type='search'], +[type='tel'], +[type='time'], +[type='url'], +[type='color'], +textarea, +select { + box-shadow : none; + &:active, + &:focus { + box-shadow : none; + } +} + +input { + &:active, + &:focus { + box-shadow : none; + } + &:hover { + } + &.submit { + margin-bottom : 0; + } +} + +textarea { + min-height : rem-calc(128); +} + +//---------------------------------------------------------------------------------------------- +// FANCY INPUTS (radio buttons, checkboxes) +//---------------------------------------------------------------------------------------------- +.radio, +.checkbox { + label { + height : auto !important; + line-height : rem-calc(20) !important; + &:before { + } + } + input[type="radio"], + input[type="checkbox"] { + &:checked { + + label { + &:before { + } + } + } + } +} +.radio { + label { + &:after { + top : 2px !important; + left : 2px !important; + width : 17px !important; + height : 17px !important; + } + } + input[type="radio"] { + &:checked { + + label:after { + background-color : $blue; + } + } + } +} +span.radio { + display : block; +} +.checkbox { + padding-bottom : rem-calc(20); + label { + &:after { + line-height : 1.8; + color : $black; + } + } + input[type="checkbox"] { + &:checked { + + label { + &:before { + background-color : $blue; + } + } + } + } +} + +//---------------------------------------------------------------------------------------------- +// BUTTONS +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// VALIDATION +//---------------------------------------------------------------------------------------------- +label { +} +.alert { +} + +//---------------------------------------------------------------------------------------------- +// SUPPORTING STYLES +//---------------------------------------------------------------------------------------------- +.instructions { + font-size : rem-calc(16); + font-style : italic; + color : $grey-medium; + &.error { + color : $red; + } +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_icons.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_icons.scss new file mode 100644 index 00000000..34155746 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_icons.scss @@ -0,0 +1,9 @@ +//============================================================================================== +// ICONS +//---------------------------------------------------------------------------------------------- +// Defines styles for icon-decorated or custom icon elements. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// GLOBAL +//---------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss new file mode 100644 index 00000000..ca21f453 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss @@ -0,0 +1,13 @@ +//============================================================================================== +// LINKS +//---------------------------------------------------------------------------------------------- +// Defines common styles for linked elements. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// GLOBAL +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// CONTENT AREA +//---------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss new file mode 100644 index 00000000..98d2a240 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss @@ -0,0 +1,42 @@ +//============================================================================================== +// TYPOGRAPHY +//---------------------------------------------------------------------------------------------- +// Overrides type-related settings such as default fonts, headings, and common text-related +// styles, such as .error. +//---------------------------------------------------------------------------------------------- +// NOTE: Font imports should be placed in the _fonts.scss file. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// VARIABLES +//---------------------------------------------------------------------------------------------- +@import "../variables"; + +//---------------------------------------------------------------------------------------------- +// DEFAULTS +//---------------------------------------------------------------------------------------------- +body, +p, +td, +ol, +ul { + font-size : rem-calc(16); + line-height : 1.4; +} + +//---------------------------------------------------------------------------------------------- +// HEADINGS +//---------------------------------------------------------------------------------------------- +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom : 0; + font-weight : $heading-font-weight; +} + +//---------------------------------------------------------------------------------------------- +// GLOBAL CLASSES +//---------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_utilities.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_utilities.scss new file mode 100644 index 00000000..51b7df0c --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_utilities.scss @@ -0,0 +1,41 @@ +//============================================================================================== +// UTILITIES +//---------------------------------------------------------------------------------------------- +// Provides centralized, reusable selectors and corresponding treatments for commonly-needed +// style applications. +//---------------------------------------------------------------------------------------------- +// NOTE: These selectors may be used within the site's HTML or in the Sass by invoking them +// via the @extend [.selector] directive. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// DISPLAY +//---------------------------------------------------------------------------------------------- +.hidden { + display : none; +} + +//---------------------------------------------------------------------------------------------- +// POSITIONING +//---------------------------------------------------------------------------------------------- +.centered { + text-align : center; +} + +//---------------------------------------------------------------------------------------------- +// ELEMENTS +//---------------------------------------------------------------------------------------------- +.no-list-style { + list-style : none; +} + +//---------------------------------------------------------------------------------------------- +// TEXT +//---------------------------------------------------------------------------------------------- +.uppercase { + text-transform : uppercase; +} + +.no-transform { + text-transform : none; +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss new file mode 100644 index 00000000..6b75d0a3 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss @@ -0,0 +1,51 @@ +//============================================================================================== +// LAYOUT +//---------------------------------------------------------------------------------------------- +// Provides structural definitions for the site's layout, such grids, dimensions, positioning, +// z-indexes, margins, and padding. +//---------------------------------------------------------------------------------------------- +// IMPORTANT: Skinning attributes such as font size, color, backgrounds, and gradients should +// not be defined in layout; these should be handled elsewhere (e.g., /Base) to maintain +// separation of concerns. +//---------------------------------------------------------------------------------------------- +// NOTE: Since layout sections often map to exclusive parts of a page, it is acceptable to +// use #ID selectors here (and ONLY here). +//---------------------------------------------------------------------------------------------- +// NOTE: Layouts in this file should be migrated to individual files under /Layout and imported +// if they get too long (say, over 10 selectors). +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import "../variables"; + +//---------------------------------------------------------------------------------------------- +// DOCUMENT +//---------------------------------------------------------------------------------------------- +html { + height : 100%; +} +body { + position : relative; + margin : 0; + min-height : 100%; + background-color : $grey-dark; +} + +//---------------------------------------------------------------------------------------------- +// HEADER +//---------------------------------------------------------------------------------------------- +#SiteHeader { + +} + +//---------------------------------------------------------------------------------------------- +// NAVIGATION +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// PRIMARY CONTENT AREA +//---------------------------------------------------------------------------------------------- +#MainContentArea { +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss index 74f06af2..d02773af 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss @@ -1,7969 +1,27 @@ -/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ - -html { - font-family: sans-serif; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; -} - -body { - margin: 0; -} - -article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { - display: block; -} - -audio, canvas, progress, video { - display: inline-block; - vertical-align: baseline; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -[hidden], template { - display: none; -} - -a { - background: transparent; - &:active, &:hover { - outline: 0; - } -} - -abbr[title] { - border-bottom: 1px dotted; -} - -b, strong { - font-weight: bold; -} - -dfn { - font-style: italic; -} - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -mark { - background: #ff0; - color: #000; -} - -small { - font-size: 80%; -} - -sub { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -img { - border: 0; -} - -svg:not(:root) { - overflow: hidden; -} - -figure { - margin: 1em 40px; -} - -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} - -pre { - overflow: auto; -} - -code, kbd, pre, samp { - font-family: monospace, monospace; - font-size: 1em; -} - -button, input, optgroup, select, textarea { - color: inherit; - font: inherit; - margin: 0; -} - -button { - overflow: visible; - text-transform: none; -} - -select { - text-transform: none; -} - -button, html input[type="button"] { - -webkit-appearance: button; - cursor: pointer; -} - -input { - &[type="reset"], &[type="submit"] { - -webkit-appearance: button; - cursor: pointer; - } -} - -button[disabled], html input[disabled] { - cursor: default; -} - -button::-moz-focus-inner { - border: 0; - padding: 0; -} - -input { - &::-moz-focus-inner { - border: 0; - padding: 0; - } - line-height: normal; - &[type="checkbox"], &[type="radio"] { - box-sizing: border-box; - padding: 0; - } - &[type="number"] { - &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { - height: auto; - } - } - &[type="search"] { - -webkit-appearance: textfield; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; - box-sizing: content-box; - &::-webkit-search-cancel-button, &::-webkit-search-decoration { - -webkit-appearance: none; - } - } -} - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -legend { - border: 0; - padding: 0; -} - -textarea { - overflow: auto; -} - -optgroup { - font-weight: bold; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -td, th { - padding: 0; -} - -@media print { - * { - text-shadow: none !important; - color: #000 !important; - background: transparent !important; - box-shadow: none !important; - } - a { - text-decoration: underline; - &:visited { - text-decoration: underline; - } - &[href]:after { - content: " (" attr(href) ")"; - } - } - abbr[title]:after { - content: " (" attr(title) ")"; - } - a { - &[href^="javascript:"]:after, &[href^="#"]:after { - content: ""; - } - } - pre, blockquote { - border: 1px solid #999; - page-break-inside: avoid; - } - thead { - display: table-header-group; - } - tr { - page-break-inside: avoid; - } - img { - page-break-inside: avoid; - max-width: 100% !important; - } - p, h2, h3 { - orphans: 3; - widows: 3; - } - h2, h3 { - page-break-after: avoid; - } - select { - background: #fff !important; - } - .navbar { - display: none; - } - .table { - td, th { - background-color: #fff !important; - } - } - .btn > .caret, .dropup > .btn > .caret { - border-top-color: #000 !important; - } - .label { - border: 1px solid #000; - } - .table { - border-collapse: collapse !important; - } - .table-bordered { - th, td { - border: 1px solid #ddd !important; - } - } -} - -@font-face { - font-family: 'Glyphicons Halflings'; - src: url('../fonts/glyphicons-halflings-regular.eot'); - src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format("embedded-opentype"), url('../fonts/glyphicons-halflings-regular.woff') format("woff"), url('../fonts/glyphicons-halflings-regular.ttf') format("truetype"), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format("svg"); -} - - -.glyphicon { - position: relative; - top: 1px; - display: inline-block; - font-family: 'Glyphicons Halflings'; - font-style: normal; - font-weight: normal; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.glyphicon-asterisk:before { - content: "\2a"; -} - -.glyphicon-plus:before { - content: "\2b"; -} - -.glyphicon-euro:before { - content: "\20ac"; -} - -.glyphicon-minus:before { - content: "\2212"; -} - -.glyphicon-cloud:before { - content: "\2601"; -} - -.glyphicon-envelope:before { - content: "\2709"; -} - -.glyphicon-pencil:before { - content: "\270f"; -} - -.glyphicon-glass:before { - content: "\e001"; -} - -.glyphicon-music:before { - content: "\e002"; -} - -.glyphicon-search:before { - content: "\e003"; -} - -.glyphicon-heart:before { - content: "\e005"; -} - -.glyphicon-star:before { - content: "\e006"; -} - -.glyphicon-star-empty:before { - content: "\e007"; -} - -.glyphicon-user:before { - content: "\e008"; -} - -.glyphicon-film:before { - content: "\e009"; -} - -.glyphicon-th-large:before { - content: "\e010"; -} - -.glyphicon-th:before { - content: "\e011"; -} - -.glyphicon-th-list:before { - content: "\e012"; -} - -.glyphicon-ok:before { - content: "\e013"; -} - -.glyphicon-remove:before { - content: "\e014"; -} - -.glyphicon-zoom-in:before { - content: "\e015"; -} - -.glyphicon-zoom-out:before { - content: "\e016"; -} - -.glyphicon-off:before { - content: "\e017"; -} - -.glyphicon-signal:before { - content: "\e018"; -} - -.glyphicon-cog:before { - content: "\e019"; -} - -.glyphicon-trash:before { - content: "\e020"; -} - -.glyphicon-home:before { - content: "\e021"; -} - -.glyphicon-file:before { - content: "\e022"; -} - -.glyphicon-time:before { - content: "\e023"; -} - -.glyphicon-road:before { - content: "\e024"; -} - -.glyphicon-download-alt:before { - content: "\e025"; -} - -.glyphicon-download:before { - content: "\e026"; -} - -.glyphicon-upload:before { - content: "\e027"; -} - -.glyphicon-inbox:before { - content: "\e028"; -} - -.glyphicon-play-circle:before { - content: "\e029"; -} - -.glyphicon-repeat:before { - content: "\e030"; -} - -.glyphicon-refresh:before { - content: "\e031"; -} - -.glyphicon-list-alt:before { - content: "\e032"; -} - -.glyphicon-lock:before { - content: "\e033"; -} - -.glyphicon-flag:before { - content: "\e034"; -} - -.glyphicon-headphones:before { - content: "\e035"; -} - -.glyphicon-volume-off:before { - content: "\e036"; -} - -.glyphicon-volume-down:before { - content: "\e037"; -} - -.glyphicon-volume-up:before { - content: "\e038"; -} - -.glyphicon-qrcode:before { - content: "\e039"; -} - -.glyphicon-barcode:before { - content: "\e040"; -} - -.glyphicon-tag:before { - content: "\e041"; -} - -.glyphicon-tags:before { - content: "\e042"; -} - -.glyphicon-book:before { - content: "\e043"; -} - -.glyphicon-bookmark:before { - content: "\e044"; -} - -.glyphicon-print:before { - content: "\e045"; -} - -.glyphicon-camera:before { - content: "\e046"; -} - -.glyphicon-font:before { - content: "\e047"; -} - -.glyphicon-bold:before { - content: "\e048"; -} - -.glyphicon-italic:before { - content: "\e049"; -} - -.glyphicon-text-height:before { - content: "\e050"; -} - -.glyphicon-text-width:before { - content: "\e051"; -} - -.glyphicon-align-left:before { - content: "\e052"; -} - -.glyphicon-align-center:before { - content: "\e053"; -} - -.glyphicon-align-right:before { - content: "\e054"; -} - -.glyphicon-align-justify:before { - content: "\e055"; -} - -.glyphicon-list:before { - content: "\e056"; -} - -.glyphicon-indent-left:before { - content: "\e057"; -} - -.glyphicon-indent-right:before { - content: "\e058"; -} - -.glyphicon-facetime-video:before { - content: "\e059"; -} - -.glyphicon-picture:before { - content: "\e060"; -} - -.glyphicon-map-marker:before { - content: "\e062"; -} - -.glyphicon-adjust:before { - content: "\e063"; -} - -.glyphicon-tint:before { - content: "\e064"; -} - -.glyphicon-edit:before { - content: "\e065"; -} - -.glyphicon-share:before { - content: "\e066"; -} - -.glyphicon-check:before { - content: "\e067"; -} - -.glyphicon-move:before { - content: "\e068"; -} - -.glyphicon-step-backward:before { - content: "\e069"; -} - -.glyphicon-fast-backward:before { - content: "\e070"; -} - -.glyphicon-backward:before { - content: "\e071"; -} - -.glyphicon-play:before { - content: "\e072"; -} - -.glyphicon-pause:before { - content: "\e073"; -} - -.glyphicon-stop:before { - content: "\e074"; -} - -.glyphicon-forward:before { - content: "\e075"; -} - -.glyphicon-fast-forward:before { - content: "\e076"; -} - -.glyphicon-step-forward:before { - content: "\e077"; -} - -.glyphicon-eject:before { - content: "\e078"; -} - -.glyphicon-chevron-left:before { - content: "\e079"; -} - -.glyphicon-chevron-right:before { - content: "\e080"; -} - -.glyphicon-plus-sign:before { - content: "\e081"; -} - -.glyphicon-minus-sign:before { - content: "\e082"; -} - -.glyphicon-remove-sign:before { - content: "\e083"; -} - -.glyphicon-ok-sign:before { - content: "\e084"; -} - -.glyphicon-question-sign:before { - content: "\e085"; -} - -.glyphicon-info-sign:before { - content: "\e086"; -} - -.glyphicon-screenshot:before { - content: "\e087"; -} - -.glyphicon-remove-circle:before { - content: "\e088"; -} - -.glyphicon-ok-circle:before { - content: "\e089"; -} - -.glyphicon-ban-circle:before { - content: "\e090"; -} - -.glyphicon-arrow-left:before { - content: "\e091"; -} - -.glyphicon-arrow-right:before { - content: "\e092"; -} - -.glyphicon-arrow-up:before { - content: "\e093"; -} - -.glyphicon-arrow-down:before { - content: "\e094"; -} - -.glyphicon-share-alt:before { - content: "\e095"; -} - -.glyphicon-resize-full:before { - content: "\e096"; -} - -.glyphicon-resize-small:before { - content: "\e097"; -} - -.glyphicon-exclamation-sign:before { - content: "\e101"; -} - -.glyphicon-gift:before { - content: "\e102"; -} - -.glyphicon-leaf:before { - content: "\e103"; -} - -.glyphicon-fire:before { - content: "\e104"; -} - -.glyphicon-eye-open:before { - content: "\e105"; -} - -.glyphicon-eye-close:before { - content: "\e106"; -} - -.glyphicon-warning-sign:before { - content: "\e107"; -} - -.glyphicon-plane:before { - content: "\e108"; -} - -.glyphicon-calendar:before { - content: "\e109"; -} - -.glyphicon-random:before { - content: "\e110"; -} - -.glyphicon-comment:before { - content: "\e111"; -} - -.glyphicon-magnet:before { - content: "\e112"; -} - -.glyphicon-chevron-up:before { - content: "\e113"; -} - -.glyphicon-chevron-down:before { - content: "\e114"; -} - -.glyphicon-retweet:before { - content: "\e115"; -} - -.glyphicon-shopping-cart:before { - content: "\e116"; -} - -.glyphicon-folder-close:before { - content: "\e117"; -} - -.glyphicon-folder-open:before { - content: "\e118"; -} - -.glyphicon-resize-vertical:before { - content: "\e119"; -} - -.glyphicon-resize-horizontal:before { - content: "\e120"; -} - -.glyphicon-hdd:before { - content: "\e121"; -} - -.glyphicon-bullhorn:before { - content: "\e122"; -} - -.glyphicon-bell:before { - content: "\e123"; -} - -.glyphicon-certificate:before { - content: "\e124"; -} - -.glyphicon-thumbs-up:before { - content: "\e125"; -} - -.glyphicon-thumbs-down:before { - content: "\e126"; -} - -.glyphicon-hand-right:before { - content: "\e127"; -} - -.glyphicon-hand-left:before { - content: "\e128"; -} - -.glyphicon-hand-up:before { - content: "\e129"; -} - -.glyphicon-hand-down:before { - content: "\e130"; -} - -.glyphicon-circle-arrow-right:before { - content: "\e131"; -} - -.glyphicon-circle-arrow-left:before { - content: "\e132"; -} - -.glyphicon-circle-arrow-up:before { - content: "\e133"; -} - -.glyphicon-circle-arrow-down:before { - content: "\e134"; -} - -.glyphicon-globe:before { - content: "\e135"; -} - -.glyphicon-wrench:before { - content: "\e136"; -} - -.glyphicon-tasks:before { - content: "\e137"; -} - -.glyphicon-filter:before { - content: "\e138"; -} - -.glyphicon-briefcase:before { - content: "\e139"; -} - -.glyphicon-fullscreen:before { - content: "\e140"; -} - -.glyphicon-dashboard:before { - content: "\e141"; -} - -.glyphicon-paperclip:before { - content: "\e142"; -} - -.glyphicon-heart-empty:before { - content: "\e143"; -} - -.glyphicon-link:before { - content: "\e144"; -} - -.glyphicon-phone:before { - content: "\e145"; -} - -.glyphicon-pushpin:before { - content: "\e146"; -} - -.glyphicon-usd:before { - content: "\e148"; -} - -.glyphicon-gbp:before { - content: "\e149"; -} - -.glyphicon-sort:before { - content: "\e150"; -} - -.glyphicon-sort-by-alphabet:before { - content: "\e151"; -} - -.glyphicon-sort-by-alphabet-alt:before { - content: "\e152"; -} - -.glyphicon-sort-by-order:before { - content: "\e153"; -} - -.glyphicon-sort-by-order-alt:before { - content: "\e154"; -} - -.glyphicon-sort-by-attributes:before { - content: "\e155"; -} - -.glyphicon-sort-by-attributes-alt:before { - content: "\e156"; -} - -.glyphicon-unchecked:before { - content: "\e157"; -} - -.glyphicon-expand:before { - content: "\e158"; -} - -.glyphicon-collapse-down:before { - content: "\e159"; -} - -.glyphicon-collapse-up:before { - content: "\e160"; -} - -.glyphicon-log-in:before { - content: "\e161"; -} - -.glyphicon-flash:before { - content: "\e162"; -} - -.glyphicon-log-out:before { - content: "\e163"; -} - -.glyphicon-new-window:before { - content: "\e164"; -} - -.glyphicon-record:before { - content: "\e165"; -} - -.glyphicon-save:before { - content: "\e166"; -} - -.glyphicon-open:before { - content: "\e167"; -} - -.glyphicon-saved:before { - content: "\e168"; -} - -.glyphicon-import:before { - content: "\e169"; -} - -.glyphicon-export:before { - content: "\e170"; -} - -.glyphicon-send:before { - content: "\e171"; -} - -.glyphicon-floppy-disk:before { - content: "\e172"; -} - -.glyphicon-floppy-saved:before { - content: "\e173"; -} - -.glyphicon-floppy-remove:before { - content: "\e174"; -} - -.glyphicon-floppy-save:before { - content: "\e175"; -} - -.glyphicon-floppy-open:before { - content: "\e176"; -} - -.glyphicon-credit-card:before { - content: "\e177"; -} - -.glyphicon-transfer:before { - content: "\e178"; -} - -.glyphicon-cutlery:before { - content: "\e179"; -} - -.glyphicon-header:before { - content: "\e180"; -} - -.glyphicon-compressed:before { - content: "\e181"; -} - -.glyphicon-earphone:before { - content: "\e182"; -} - -.glyphicon-phone-alt:before { - content: "\e183"; -} - -.glyphicon-tower:before { - content: "\e184"; -} - -.glyphicon-stats:before { - content: "\e185"; -} - -.glyphicon-sd-video:before { - content: "\e186"; -} - -.glyphicon-hd-video:before { - content: "\e187"; -} - -.glyphicon-subtitles:before { - content: "\e188"; -} - -.glyphicon-sound-stereo:before { - content: "\e189"; -} - -.glyphicon-sound-dolby:before { - content: "\e190"; -} - -.glyphicon-sound-5-1:before { - content: "\e191"; -} - -.glyphicon-sound-6-1:before { - content: "\e192"; -} - -.glyphicon-sound-7-1:before { - content: "\e193"; -} - -.glyphicon-copyright-mark:before { - content: "\e194"; -} - -.glyphicon-registration-mark:before { - content: "\e195"; -} - -.glyphicon-cloud-download:before { - content: "\e197"; -} - -.glyphicon-cloud-upload:before { - content: "\e198"; -} - -.glyphicon-tree-conifer:before { - content: "\e199"; -} - -.glyphicon-tree-deciduous:before { - content: "\e200"; -} - -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - &:before, &:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } -} - -html { - font-size: 10px; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -body { - font-family: 'Lato', Helvetica, Arial, sans-serif; - font-size: 16px; - line-height: 1.42857143; - color: #ffffff; - background-color: #333333; -} - -input, button, select, textarea { - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -a { - color: #0a94d4; - text-decoration: none; - &:hover { - color: #07618b; - text-decoration: underline; - } - &:focus { - color: #07618b; - text-decoration: underline; - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; - } -} - -figure { - margin: 0; -} - -img { - vertical-align: middle; -} - -.img-responsive { - display: block; - width: 100% \9; - max-width: 100%; - height: auto; -} - -.thumbnail { - > img, a > img { - display: block; - width: 100% \9; - max-width: 100%; - height: auto; - } -} - -.carousel-inner > .item > { - img, a > img { - display: block; - width: 100% \9; - max-width: 100%; - height: auto; - } -} - -.img-rounded { - border-radius: 2px; -} - -.img-thumbnail { - padding: 4px; - line-height: 1.42857143; - background-color: #333333; - border: 1px solid #dddddd; - border-radius: 1px; - -webkit-transition: all 0.2s ease-in-out; - -o-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; - display: inline-block; - width: 100% \9; - max-width: 100%; - height: auto; -} - -.img-circle { - border-radius: 50%; -} - -hr { - margin-top: 22px; - margin-bottom: 22px; - border: 0; - border-top: 1px solid #cccccc; -} - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - margin: -1px; - padding: 0; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} - -.sr-only-focusable { - &:active, &:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto; - } -} - -h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { - font-family: inherit; - font-weight: 500; - line-height: 1.1; - color: inherit; -} - -h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { - font-weight: normal; - line-height: 1; - color: #666666; -} - -h1, .h1, h2, .h2, h3, .h3 { - margin-top: 22px; - margin-bottom: 11px; -} - -h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { - font-size: 65%; -} - -h4, .h4, h5, .h5, h6, .h6 { - margin-top: 11px; - margin-bottom: 11px; -} - -h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { - font-size: 75%; -} - -h1, .h1 { - font-size: 41px; -} - -h2, .h2 { - font-size: 34px; -} - -h3, .h3 { - font-size: 28px; -} - -h4, .h4 { - font-size: 20px; -} - -h5, .h5 { - font-size: 16px; -} - -h6, .h6 { - font-size: 14px; -} - -p { - margin: 0 0 11px; -} - -.lead { - margin-bottom: 22px; - font-size: 18px; - font-weight: 300; - line-height: 1.4; -} - -@media (min-width: 768px) { - .lead { - font-size: 24px; - } -} - -small, .small { - font-size: 87%; -} - -cite { - font-style: normal; -} - -mark, .mark { - background-color: #fcf8e3; - padding: .2em; -} - -.text-left { - text-align: left; -} - -.text-right { - text-align: right; -} - -.text-center { - text-align: center; -} - -.text-justify { - text-align: justify; -} - -.text-nowrap { - white-space: nowrap; -} - -.text-lowercase { - text-transform: lowercase; -} - -.text-uppercase { - text-transform: uppercase; -} - -.text-capitalize { - text-transform: capitalize; -} - -.text-muted { - color: #666666; -} - -.text-primary { - color: #4d4d4d; -} - -a.text-primary:hover { - color: #333333; -} - -.text-success { - color: #125204; -} - -a.text-success:hover { - color: #072102; -} - -.text-info { - color: #0872a3; -} - -a.text-info:hover { - color: #055073; -} - -.text-warning { - color: #8a6d3b; -} - -a.text-warning:hover { - color: #66512c; -} - -.text-danger { - color: #d63510; -} - -a.text-danger:hover { - color: #a6290c; -} - -.bg-primary { - color: #fff; - background-color: #4d4d4d; -} - -a.bg-primary:hover { - background-color: #333333; -} - -.bg-success { - background-color: #d3e5cf; -} - -a.bg-success:hover { - background-color: #b5d3ae; -} - -.bg-info { - background-color: #daebf2; -} - -a.bg-info:hover { - background-color: #b4d7e5; -} - -.bg-warning { - background-color: #fcf8e3; -} - -a.bg-warning:hover { - background-color: #f7ecb5; -} - -.bg-danger { - background-color: #f0dcd8; -} - -a.bg-danger:hover { - background-color: #e2bbb3; -} - -.page-header { - padding-bottom: 10px; - margin: 44px 0 22px; - border-bottom: 1px solid #cccccc; -} - -ul, ol { - margin-top: 0; - margin-bottom: 11px; -} - -ul ul, ol ul, ul ol, ol ol { - margin-bottom: 0; -} - -.list-unstyled { - padding-left: 0; - list-style: none; -} - -.list-inline { - padding-left: 0; - list-style: none; - margin-left: -5px; - > li { - display: inline-block; - padding-left: 5px; - padding-right: 5px; - } -} - -dl { - margin-top: 0; - margin-bottom: 22px; -} - -dt, dd { - line-height: 1.42857143; -} - -dt { - font-weight: bold; -} - -dd { - margin-left: 0; -} - -@media (min-width: 768px) { - .dl-horizontal { - dt { - float: left; - width: 160px; - clear: left; - text-align: right; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - dd { - margin-left: 180px; - } - } -} - -abbr { - &[title], &[data-original-title] { - cursor: help; - border-bottom: 1px dotted #666666; - } -} - -.initialism { - font-size: 90%; - text-transform: uppercase; -} - -blockquote { - padding: 11px 22px; - margin: 0 0 22px; - font-size: 20px; - border-left: 5px solid #cccccc; - p:last-child, ul:last-child, ol:last-child { - margin-bottom: 0; - } - footer, small, .small { - display: block; - font-size: 80%; - line-height: 1.42857143; - color: #666666; - } - footer:before, small:before, .small:before { - content: '\2014 \00A0'; - } -} - -.blockquote-reverse, blockquote.pull-right { - padding-right: 15px; - padding-left: 0; - border-right: 5px solid #cccccc; - border-left: 0; - text-align: right; -} - -.blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { - content: ''; -} - -.blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after { - content: '\00A0 \2014'; -} - -blockquote { - &.pull-right .small:after { - content: '\00A0 \2014'; - } - &:before, &:after { - content: ""; - } -} - -address { - margin-bottom: 22px; - font-style: normal; - line-height: 1.42857143; -} - -code, kbd, pre, samp { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; -} - -code { - padding: 2px 4px; - font-size: 90%; - color: #c7254e; - background-color: #f9f2f4; - border-radius: 1px; -} - -kbd { - padding: 2px 4px; - font-size: 90%; - color: #ffffff; - background-color: #333333; - border-radius: 0; - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); - kbd { - padding: 0; - font-size: 100%; - box-shadow: none; - } -} - -pre { - display: block; - padding: 10.5px; - margin: 0 0 11px; - font-size: 15px; - line-height: 1.42857143; - word-break: break-all; - word-wrap: break-word; - color: #333333; - background-color: #f5f5f5; - border: 1px solid #cccccc; - border-radius: 1px; - code { - padding: 0; - font-size: inherit; - color: inherit; - white-space: pre-wrap; - background-color: transparent; - border-radius: 0; - } -} - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} - -.container, .container-fluid { - margin-right: auto; - margin-left: auto; - padding-left: 15px; - padding-right: 15px; -} - -@media (min-width: 768px) { - .container { - width: 750px; - } -} - -@media (min-width: 992px) { - .container { - width: 990px; - } -} - -@media (min-width: 1240px) { - .container { - width: 1220px; - } -} - -.row { - margin-left: -15px; - margin-right: -15px; -} - -.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { - position: relative; - min-height: 1px; - padding-left: 15px; - padding-right: 15px; -} - -.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11 { - float: left; -} - -.col-xs-12 { - float: left; - width: 100%; -} - -.col-xs-11 { - width: 91.66666667%; -} - -.col-xs-10 { - width: 83.33333333%; -} - -.col-xs-9 { - width: 75%; -} - -.col-xs-8 { - width: 66.66666667%; -} - -.col-xs-7 { - width: 58.33333333%; -} - -.col-xs-6 { - width: 50%; -} - -.col-xs-5 { - width: 41.66666667%; -} - -.col-xs-4 { - width: 33.33333333%; -} - -.col-xs-3 { - width: 25%; -} - -.col-xs-2 { - width: 16.66666667%; -} - -.col-xs-1 { - width: 8.33333333%; -} - -.col-xs-pull-12 { - right: 100%; -} - -.col-xs-pull-11 { - right: 91.66666667%; -} - -.col-xs-pull-10 { - right: 83.33333333%; -} - -.col-xs-pull-9 { - right: 75%; -} - -.col-xs-pull-8 { - right: 66.66666667%; -} - -.col-xs-pull-7 { - right: 58.33333333%; -} - -.col-xs-pull-6 { - right: 50%; -} - -.col-xs-pull-5 { - right: 41.66666667%; -} - -.col-xs-pull-4 { - right: 33.33333333%; -} - -.col-xs-pull-3 { - right: 25%; -} - -.col-xs-pull-2 { - right: 16.66666667%; -} - -.col-xs-pull-1 { - right: 8.33333333%; -} - -.col-xs-pull-0 { - right: auto; -} - -.col-xs-push-12 { - left: 100%; -} - -.col-xs-push-11 { - left: 91.66666667%; -} - -.col-xs-push-10 { - left: 83.33333333%; -} - -.col-xs-push-9 { - left: 75%; -} - -.col-xs-push-8 { - left: 66.66666667%; -} - -.col-xs-push-7 { - left: 58.33333333%; -} - -.col-xs-push-6 { - left: 50%; -} - -.col-xs-push-5 { - left: 41.66666667%; -} - -.col-xs-push-4 { - left: 33.33333333%; -} - -.col-xs-push-3 { - left: 25%; -} - -.col-xs-push-2 { - left: 16.66666667%; -} - -.col-xs-push-1 { - left: 8.33333333%; -} - -.col-xs-push-0 { - left: auto; -} - -.col-xs-offset-12 { - margin-left: 100%; -} - -.col-xs-offset-11 { - margin-left: 91.66666667%; -} - -.col-xs-offset-10 { - margin-left: 83.33333333%; -} - -.col-xs-offset-9 { - margin-left: 75%; -} - -.col-xs-offset-8 { - margin-left: 66.66666667%; -} - -.col-xs-offset-7 { - margin-left: 58.33333333%; -} - -.col-xs-offset-6 { - margin-left: 50%; -} - -.col-xs-offset-5 { - margin-left: 41.66666667%; -} - -.col-xs-offset-4 { - margin-left: 33.33333333%; -} - -.col-xs-offset-3 { - margin-left: 25%; -} - -.col-xs-offset-2 { - margin-left: 16.66666667%; -} - -.col-xs-offset-1 { - margin-left: 8.33333333%; -} - -.col-xs-offset-0 { - margin-left: 0%; -} - -@media (min-width: 768px) { - .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11 { - float: left; - } - .col-sm-12 { - float: left; - width: 100%; - } - .col-sm-11 { - width: 91.66666667%; - } - .col-sm-10 { - width: 83.33333333%; - } - .col-sm-9 { - width: 75%; - } - .col-sm-8 { - width: 66.66666667%; - } - .col-sm-7 { - width: 58.33333333%; - } - .col-sm-6 { - width: 50%; - } - .col-sm-5 { - width: 41.66666667%; - } - .col-sm-4 { - width: 33.33333333%; - } - .col-sm-3 { - width: 25%; - } - .col-sm-2 { - width: 16.66666667%; - } - .col-sm-1 { - width: 8.33333333%; - } - .col-sm-pull-12 { - right: 100%; - } - .col-sm-pull-11 { - right: 91.66666667%; - } - .col-sm-pull-10 { - right: 83.33333333%; - } - .col-sm-pull-9 { - right: 75%; - } - .col-sm-pull-8 { - right: 66.66666667%; - } - .col-sm-pull-7 { - right: 58.33333333%; - } - .col-sm-pull-6 { - right: 50%; - } - .col-sm-pull-5 { - right: 41.66666667%; - } - .col-sm-pull-4 { - right: 33.33333333%; - } - .col-sm-pull-3 { - right: 25%; - } - .col-sm-pull-2 { - right: 16.66666667%; - } - .col-sm-pull-1 { - right: 8.33333333%; - } - .col-sm-pull-0 { - right: auto; - } - .col-sm-push-12 { - left: 100%; - } - .col-sm-push-11 { - left: 91.66666667%; - } - .col-sm-push-10 { - left: 83.33333333%; - } - .col-sm-push-9 { - left: 75%; - } - .col-sm-push-8 { - left: 66.66666667%; - } - .col-sm-push-7 { - left: 58.33333333%; - } - .col-sm-push-6 { - left: 50%; - } - .col-sm-push-5 { - left: 41.66666667%; - } - .col-sm-push-4 { - left: 33.33333333%; - } - .col-sm-push-3 { - left: 25%; - } - .col-sm-push-2 { - left: 16.66666667%; - } - .col-sm-push-1 { - left: 8.33333333%; - } - .col-sm-push-0 { - left: auto; - } - .col-sm-offset-12 { - margin-left: 100%; - } - .col-sm-offset-11 { - margin-left: 91.66666667%; - } - .col-sm-offset-10 { - margin-left: 83.33333333%; - } - .col-sm-offset-9 { - margin-left: 75%; - } - .col-sm-offset-8 { - margin-left: 66.66666667%; - } - .col-sm-offset-7 { - margin-left: 58.33333333%; - } - .col-sm-offset-6 { - margin-left: 50%; - } - .col-sm-offset-5 { - margin-left: 41.66666667%; - } - .col-sm-offset-4 { - margin-left: 33.33333333%; - } - .col-sm-offset-3 { - margin-left: 25%; - } - .col-sm-offset-2 { - margin-left: 16.66666667%; - } - .col-sm-offset-1 { - margin-left: 8.33333333%; - } - .col-sm-offset-0 { - margin-left: 0%; - } -} - -@media (min-width: 992px) { - .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11 { - float: left; - } - .col-md-12 { - float: left; - width: 100%; - } - .col-md-11 { - width: 91.66666667%; - } - .col-md-10 { - width: 83.33333333%; - } - .col-md-9 { - width: 75%; - } - .col-md-8 { - width: 66.66666667%; - } - .col-md-7 { - width: 58.33333333%; - } - .col-md-6 { - width: 50%; - } - .col-md-5 { - width: 41.66666667%; - } - .col-md-4 { - width: 33.33333333%; - } - .col-md-3 { - width: 25%; - } - .col-md-2 { - width: 16.66666667%; - } - .col-md-1 { - width: 8.33333333%; - } - .col-md-pull-12 { - right: 100%; - } - .col-md-pull-11 { - right: 91.66666667%; - } - .col-md-pull-10 { - right: 83.33333333%; - } - .col-md-pull-9 { - right: 75%; - } - .col-md-pull-8 { - right: 66.66666667%; - } - .col-md-pull-7 { - right: 58.33333333%; - } - .col-md-pull-6 { - right: 50%; - } - .col-md-pull-5 { - right: 41.66666667%; - } - .col-md-pull-4 { - right: 33.33333333%; - } - .col-md-pull-3 { - right: 25%; - } - .col-md-pull-2 { - right: 16.66666667%; - } - .col-md-pull-1 { - right: 8.33333333%; - } - .col-md-pull-0 { - right: auto; - } - .col-md-push-12 { - left: 100%; - } - .col-md-push-11 { - left: 91.66666667%; - } - .col-md-push-10 { - left: 83.33333333%; - } - .col-md-push-9 { - left: 75%; - } - .col-md-push-8 { - left: 66.66666667%; - } - .col-md-push-7 { - left: 58.33333333%; - } - .col-md-push-6 { - left: 50%; - } - .col-md-push-5 { - left: 41.66666667%; - } - .col-md-push-4 { - left: 33.33333333%; - } - .col-md-push-3 { - left: 25%; - } - .col-md-push-2 { - left: 16.66666667%; - } - .col-md-push-1 { - left: 8.33333333%; - } - .col-md-push-0 { - left: auto; - } - .col-md-offset-12 { - margin-left: 100%; - } - .col-md-offset-11 { - margin-left: 91.66666667%; - } - .col-md-offset-10 { - margin-left: 83.33333333%; - } - .col-md-offset-9 { - margin-left: 75%; - } - .col-md-offset-8 { - margin-left: 66.66666667%; - } - .col-md-offset-7 { - margin-left: 58.33333333%; - } - .col-md-offset-6 { - margin-left: 50%; - } - .col-md-offset-5 { - margin-left: 41.66666667%; - } - .col-md-offset-4 { - margin-left: 33.33333333%; - } - .col-md-offset-3 { - margin-left: 25%; - } - .col-md-offset-2 { - margin-left: 16.66666667%; - } - .col-md-offset-1 { - margin-left: 8.33333333%; - } - .col-md-offset-0 { - margin-left: 0%; - } -} - -@media (min-width: 1240px) { - .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11 { - float: left; - } - .col-lg-12 { - float: left; - width: 100%; - } - .col-lg-11 { - width: 91.66666667%; - } - .col-lg-10 { - width: 83.33333333%; - } - .col-lg-9 { - width: 75%; - } - .col-lg-8 { - width: 66.66666667%; - } - .col-lg-7 { - width: 58.33333333%; - } - .col-lg-6 { - width: 50%; - } - .col-lg-5 { - width: 41.66666667%; - } - .col-lg-4 { - width: 33.33333333%; - } - .col-lg-3 { - width: 25%; - } - .col-lg-2 { - width: 16.66666667%; - } - .col-lg-1 { - width: 8.33333333%; - } - .col-lg-pull-12 { - right: 100%; - } - .col-lg-pull-11 { - right: 91.66666667%; - } - .col-lg-pull-10 { - right: 83.33333333%; - } - .col-lg-pull-9 { - right: 75%; - } - .col-lg-pull-8 { - right: 66.66666667%; - } - .col-lg-pull-7 { - right: 58.33333333%; - } - .col-lg-pull-6 { - right: 50%; - } - .col-lg-pull-5 { - right: 41.66666667%; - } - .col-lg-pull-4 { - right: 33.33333333%; - } - .col-lg-pull-3 { - right: 25%; - } - .col-lg-pull-2 { - right: 16.66666667%; - } - .col-lg-pull-1 { - right: 8.33333333%; - } - .col-lg-pull-0 { - right: auto; - } - .col-lg-push-12 { - left: 100%; - } - .col-lg-push-11 { - left: 91.66666667%; - } - .col-lg-push-10 { - left: 83.33333333%; - } - .col-lg-push-9 { - left: 75%; - } - .col-lg-push-8 { - left: 66.66666667%; - } - .col-lg-push-7 { - left: 58.33333333%; - } - .col-lg-push-6 { - left: 50%; - } - .col-lg-push-5 { - left: 41.66666667%; - } - .col-lg-push-4 { - left: 33.33333333%; - } - .col-lg-push-3 { - left: 25%; - } - .col-lg-push-2 { - left: 16.66666667%; - } - .col-lg-push-1 { - left: 8.33333333%; - } - .col-lg-push-0 { - left: auto; - } - .col-lg-offset-12 { - margin-left: 100%; - } - .col-lg-offset-11 { - margin-left: 91.66666667%; - } - .col-lg-offset-10 { - margin-left: 83.33333333%; - } - .col-lg-offset-9 { - margin-left: 75%; - } - .col-lg-offset-8 { - margin-left: 66.66666667%; - } - .col-lg-offset-7 { - margin-left: 58.33333333%; - } - .col-lg-offset-6 { - margin-left: 50%; - } - .col-lg-offset-5 { - margin-left: 41.66666667%; - } - .col-lg-offset-4 { - margin-left: 33.33333333%; - } - .col-lg-offset-3 { - margin-left: 25%; - } - .col-lg-offset-2 { - margin-left: 16.66666667%; - } - .col-lg-offset-1 { - margin-left: 8.33333333%; - } - .col-lg-offset-0 { - margin-left: 0%; - } -} - -table { - background-color: transparent; -} - -th { - text-align: left; -} - -.table { - width: 100%; - max-width: 100%; - margin-bottom: 22px; - > { - thead > tr > th, tbody > tr > th, tfoot > tr > th, thead > tr > td, tbody > tr > td, tfoot > tr > td { - padding: 8px; - line-height: 1.42857143; - vertical-align: top; - border-top: 1px solid #dddddd; - } - thead > tr > th { - vertical-align: bottom; - border-bottom: 2px solid #dddddd; - } - caption + thead > tr:first-child > th, colgroup + thead > tr:first-child > th, thead:first-child > tr:first-child > th, caption + thead > tr:first-child > td, colgroup + thead > tr:first-child > td, thead:first-child > tr:first-child > td { - border-top: 0; - } - tbody + tbody { - border-top: 2px solid #dddddd; - } - } - .table { - background-color: #333333; - } -} - -.table-condensed > { - thead > tr > th, tbody > tr > th, tfoot > tr > th, thead > tr > td, tbody > tr > td, tfoot > tr > td { - padding: 5px; - } -} - -.table-bordered { - border: 1px solid #dddddd; - > { - thead > tr > th, tbody > tr > th, tfoot > tr > th, thead > tr > td, tbody > tr > td, tfoot > tr > td { - border: 1px solid #dddddd; - } - thead > tr > { - th, td { - border-bottom-width: 2px; - } - } - } -} - -.table-striped > tbody > tr:nth-child(odd) > { - td, th { - background-color: #f9f9f9; - } -} - -.table-hover > tbody > tr:hover > { - td, th { - background-color: #f5f5f5; - } -} - -table { - col[class*="col-"] { - position: static; - float: none; - display: table-column; - } - td[class*="col-"], th[class*="col-"] { - position: static; - float: none; - display: table-cell; - } -} - -.table > { - thead > tr > td.active, tbody > tr > td.active, tfoot > tr > td.active, thead > tr > th.active, tbody > tr > th.active, tfoot > tr > th.active, thead > tr.active > td, tbody > tr.active > td, tfoot > tr.active > td, thead > tr.active > th, tbody > tr.active > th, tfoot > tr.active > th { - background-color: #f5f5f5; - } -} - -.table-hover > tbody > tr { - > { - td.active:hover, th.active:hover { - background-color: #e8e8e8; - } - } - &.active:hover > td, &:hover > .active, &.active:hover > th { - background-color: #e8e8e8; - } -} - -.table > { - thead > tr > td.success, tbody > tr > td.success, tfoot > tr > td.success, thead > tr > th.success, tbody > tr > th.success, tfoot > tr > th.success, thead > tr.success > td, tbody > tr.success > td, tfoot > tr.success > td, thead > tr.success > th, tbody > tr.success > th, tfoot > tr.success > th { - background-color: #d3e5cf; - } -} - -.table-hover > tbody > tr { - > { - td.success:hover, th.success:hover { - background-color: #c4dcbe; - } - } - &.success:hover > td, &:hover > .success, &.success:hover > th { - background-color: #c4dcbe; - } -} - -.table > { - thead > tr > td.info, tbody > tr > td.info, tfoot > tr > td.info, thead > tr > th.info, tbody > tr > th.info, tfoot > tr > th.info, thead > tr.info > td, tbody > tr.info > td, tfoot > tr.info > td, thead > tr.info > th, tbody > tr.info > th, tfoot > tr.info > th { - background-color: #daebf2; - } -} - -.table-hover > tbody > tr { - > { - td.info:hover, th.info:hover { - background-color: #c7e1eb; - } - } - &.info:hover > td, &:hover > .info, &.info:hover > th { - background-color: #c7e1eb; - } -} - -.table > { - thead > tr > td.warning, tbody > tr > td.warning, tfoot > tr > td.warning, thead > tr > th.warning, tbody > tr > th.warning, tfoot > tr > th.warning, thead > tr.warning > td, tbody > tr.warning > td, tfoot > tr.warning > td, thead > tr.warning > th, tbody > tr.warning > th, tfoot > tr.warning > th { - background-color: #fcf8e3; - } -} - -.table-hover > tbody > tr { - > { - td.warning:hover, th.warning:hover { - background-color: #faf2cc; - } - } - &.warning:hover > td, &:hover > .warning, &.warning:hover > th { - background-color: #faf2cc; - } -} - -.table > { - thead > tr > td.danger, tbody > tr > td.danger, tfoot > tr > td.danger, thead > tr > th.danger, tbody > tr > th.danger, tfoot > tr > th.danger, thead > tr.danger > td, tbody > tr.danger > td, tfoot > tr.danger > td, thead > tr.danger > th, tbody > tr.danger > th, tfoot > tr.danger > th { - background-color: #f0dcd8; - } -} - -.table-hover > tbody > tr { - > { - td.danger:hover, th.danger:hover { - background-color: #e9cbc6; - } - } - &.danger:hover > td, &:hover > .danger, &.danger:hover > th { - background-color: #e9cbc6; - } -} - -@media screen and (max-width: 767px) { - .table-responsive { - width: 100%; - margin-bottom: 16.5px; - overflow-y: hidden; - overflow-x: auto; - -ms-overflow-style: -ms-autohiding-scrollbar; - border: 1px solid #dddddd; - -webkit-overflow-scrolling: touch; - > { - .table { - margin-bottom: 0; - > { - thead > tr > th, tbody > tr > th, tfoot > tr > th, thead > tr > td, tbody > tr > td, tfoot > tr > td { - white-space: nowrap; - } - } - } - .table-bordered { - border: 0; - > { - thead > tr > th:first-child, tbody > tr > th:first-child, tfoot > tr > th:first-child, thead > tr > td:first-child, tbody > tr > td:first-child, tfoot > tr > td:first-child { - border-left: 0; - } - thead > tr > th:last-child, tbody > tr > th:last-child, tfoot > tr > th:last-child, thead > tr > td:last-child, tbody > tr > td:last-child, tfoot > tr > td:last-child { - border-right: 0; - } - tbody > tr:last-child > th, tfoot > tr:last-child > th, tbody > tr:last-child > td, tfoot > tr:last-child > td { - border-bottom: 0; - } - } - } - } - } -} - -fieldset { - padding: 0; - margin: 0; - border: 0; - min-width: 0; -} - -legend { - display: block; - width: 100%; - padding: 0; - margin-bottom: 22px; - font-size: 24px; - line-height: inherit; - color: #333333; - border: 0; - border-bottom: 1px solid #e5e5e5; -} - -label { - display: inline-block; - max-width: 100%; - margin-bottom: 5px; - font-weight: bold; -} - -input { - &[type="search"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - &[type="radio"], &[type="checkbox"] { - margin: 4px 0 0; - margin-top: 1px \9; - line-height: normal; - } - &[type="file"] { - display: block; - } - &[type="range"] { - display: block; - width: 100%; - } -} - -select { - &[multiple], &[size] { - height: auto; - } -} - -input { - &[type="file"]:focus, &[type="radio"]:focus, &[type="checkbox"]:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; - } -} - -output { - display: block; - padding-top: 7px; - font-size: 16px; - line-height: 1.42857143; - color: #4d4d4d; -} - -.form-control { - display: block; - width: 100%; - height: 36px; - padding: 6px 12px; - font-size: 16px; - line-height: 1.42857143; - color: #4d4d4d; - background-color: #ffffff; - background-image: none; - border: 1px solid #cccccc; - border-radius: 1px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - &:focus { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); - } - &::-moz-placeholder { - color: #666666; - opacity: 1; - } - &:-ms-input-placeholder, &::-webkit-input-placeholder { - color: #666666; - } - &[disabled], &[readonly] { - cursor: not-allowed; - background-color: #cccccc; - opacity: 1; - } -} - -fieldset[disabled] .form-control { - cursor: not-allowed; - background-color: #cccccc; - opacity: 1; -} - -textarea.form-control { - height: auto; -} - -input { - &[type="search"] { - -webkit-appearance: none; - } - &[type="date"], &[type="time"], &[type="datetime-local"], &[type="month"] { - line-height: 36px; - line-height: 1.42857143 \0; - } - &[type="date"].input-sm, &[type="time"].input-sm, &[type="datetime-local"].input-sm, &[type="month"].input-sm { - line-height: 33px; - } - &[type="date"].input-lg, &[type="time"].input-lg, &[type="datetime-local"].input-lg, &[type="month"].input-lg { - line-height: 49px; - } -} - -.form-group { - margin-bottom: 15px; -} - -.radio, .checkbox { - position: relative; - display: block; - min-height: 22px; - margin-top: 10px; - margin-bottom: 10px; -} - -.radio label, .checkbox label { - padding-left: 20px; - margin-bottom: 0; - font-weight: normal; - cursor: pointer; -} - -.radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { - position: absolute; - margin-left: -20px; - margin-top: 4px \9; -} - -.radio + .radio, .checkbox + .checkbox { - margin-top: -5px; -} - -.radio-inline, .checkbox-inline { - display: inline-block; - padding-left: 20px; - margin-bottom: 0; - vertical-align: middle; - font-weight: normal; - cursor: pointer; -} - -.radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { - margin-top: 0; - margin-left: 10px; -} - -input { - &[type="radio"][disabled], &[type="checkbox"][disabled], &[type="radio"].disabled, &[type="checkbox"].disabled { - cursor: not-allowed; - } -} - -fieldset[disabled] input { - &[type="radio"], &[type="checkbox"] { - cursor: not-allowed; - } -} - -.radio-inline.disabled, .checkbox-inline.disabled { - cursor: not-allowed; -} - -fieldset[disabled] { - .radio-inline, .checkbox-inline { - cursor: not-allowed; - } -} - -.radio.disabled label, .checkbox.disabled label { - cursor: not-allowed; -} - -fieldset[disabled] { - .radio label, .checkbox label { - cursor: not-allowed; - } -} - -.form-control-static { - padding-top: 7px; - padding-bottom: 7px; - margin-bottom: 0; - &.input-lg, &.input-sm { - padding-left: 0; - padding-right: 0; - } -} - -.input-sm, .form-horizontal .form-group-sm .form-control { - height: 33px; - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; -} - -select.input-sm { - height: 33px; - line-height: 33px; -} - -textarea.input-sm, select[multiple].input-sm { - height: auto; -} - -.input-lg, .form-horizontal .form-group-lg .form-control { - height: 49px; - padding: 10px 16px; - font-size: 20px; - line-height: 1.33; - border-radius: 2px; -} - -select.input-lg { - height: 49px; - line-height: 49px; -} - -textarea.input-lg, select[multiple].input-lg { - height: auto; -} - -.has-feedback { - position: relative; - .form-control { - padding-right: 45px; - } -} - -.form-control-feedback { - position: absolute; - top: 27px; - right: 0; - z-index: 2; - display: block; - width: 36px; - height: 36px; - line-height: 36px; - text-align: center; -} - -.input-lg + .form-control-feedback { - width: 49px; - height: 49px; - line-height: 49px; -} - -.input-sm + .form-control-feedback { - width: 33px; - height: 33px; - line-height: 33px; -} - -.has-success { - .help-block, .control-label, .radio, .checkbox, .radio-inline, .checkbox-inline { - color: #125204; - } - .form-control { - border-color: #125204; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - &:focus { - border-color: #072102; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; - } - } - .input-group-addon { - color: #125204; - border-color: #125204; - background-color: #d3e5cf; - } - .form-control-feedback { - color: #125204; - } -} - -.has-warning { - .help-block, .control-label, .radio, .checkbox, .radio-inline, .checkbox-inline { - color: #8a6d3b; - } - .form-control { - border-color: #8a6d3b; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - &:focus { - border-color: #66512c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; - } - } - .input-group-addon { - color: #8a6d3b; - border-color: #8a6d3b; - background-color: #fcf8e3; - } - .form-control-feedback { - color: #8a6d3b; - } -} - -.has-error { - .help-block, .control-label, .radio, .checkbox, .radio-inline, .checkbox-inline { - color: #d63510; - } - .form-control { - border-color: #d63510; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - &:focus { - border-color: #a6290c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; - } - } - .input-group-addon { - color: #d63510; - border-color: #d63510; - background-color: #f0dcd8; - } - .form-control-feedback { - color: #d63510; - } -} - -.has-feedback label.sr-only ~ .form-control-feedback { - top: 0; -} - -.help-block { - display: block; - margin-top: 5px; - margin-bottom: 10px; - color: #ffffff; -} - -@media (min-width: 768px) { - .form-inline { - .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; - } - .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - .input-group { - display: inline-table; - vertical-align: middle; - .input-group-addon, .input-group-btn, .form-control { - width: auto; - } - > .form-control { - width: 100%; - } - } - .control-label { - margin-bottom: 0; - vertical-align: middle; - } - .radio, .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; - } - .radio label, .checkbox label { - padding-left: 0; - } - .radio input[type="radio"], .checkbox input[type="checkbox"] { - position: relative; - margin-left: 0; - } - .has-feedback .form-control-feedback { - top: 0; - } - } -} - -.form-horizontal { - .radio, .checkbox, .radio-inline, .checkbox-inline { - margin-top: 0; - margin-bottom: 0; - padding-top: 7px; - } - .radio, .checkbox { - min-height: 29px; - } - .form-group { - margin-left: -15px; - margin-right: -15px; - } - .has-feedback .form-control-feedback { - top: 0; - right: 15px; - } -} - -@media (min-width: 768px) { - .form-horizontal .control-label { - text-align: right; - margin-bottom: 0; - padding-top: 7px; - } -} - -@media (min-width: 768px) { - .form-horizontal .form-group-lg .control-label { - padding-top: 14.3px; - } -} - -@media (min-width: 768px) { - .form-horizontal .form-group-sm .control-label { - padding-top: 6px; - } -} - -.btn { - display: inline-block; - margin-bottom: 0; - font-weight: normal; - text-align: center; - vertical-align: middle; - cursor: pointer; - background-image: none; - border: 1px solid transparent; - white-space: nowrap; - padding: 6px 12px; - font-size: 16px; - line-height: 1.42857143; - border-radius: 1px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - &:focus, &:active:focus, &.active:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; - } - &:hover, &:focus { - color: #ffffff; - text-decoration: none; - } - &:active, &.active { - outline: 0; - background-image: none; - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - } - &.disabled, &[disabled] { - cursor: not-allowed; - pointer-events: none; - opacity: 0.65; - filter: alpha(opacity = 65); - -webkit-box-shadow: none; - box-shadow: none; - } -} - -fieldset[disabled] .btn { - cursor: not-allowed; - pointer-events: none; - opacity: 0.65; - filter: alpha(opacity = 65); - -webkit-box-shadow: none; - box-shadow: none; -} - -.btn-default { - color: #ffffff; - background-color: #959595; - border-color: #959595; - &:hover, &:focus, &:active, &.active { - color: #ffffff; - background-color: #7c7c7c; - border-color: #767676; - } -} - -.open > .dropdown-toggle.btn-default { - color: #ffffff; - background-color: #7c7c7c; - border-color: #767676; -} - -.btn-default { - &:active, &.active { - background-image: none; - } -} - -.open > .dropdown-toggle.btn-default { - background-image: none; -} - -.btn-default { - &.disabled, &[disabled] { - background-color: #959595; - border-color: #959595; - } -} - -fieldset[disabled] .btn-default { - background-color: #959595; - border-color: #959595; -} - -.btn-default { - &.disabled:hover, &[disabled]:hover { - background-color: #959595; - border-color: #959595; - } -} - -fieldset[disabled] .btn-default:hover { - background-color: #959595; - border-color: #959595; -} - -.btn-default { - &.disabled:focus, &[disabled]:focus { - background-color: #959595; - border-color: #959595; - } -} - -fieldset[disabled] .btn-default:focus { - background-color: #959595; - border-color: #959595; -} - -.btn-default { - &.disabled:active, &[disabled]:active { - background-color: #959595; - border-color: #959595; - } -} - -fieldset[disabled] .btn-default:active { - background-color: #959595; - border-color: #959595; -} - -.btn-default { - &.disabled.active, &[disabled].active { - background-color: #959595; - border-color: #959595; - } -} - -fieldset[disabled] .btn-default.active { - background-color: #959595; - border-color: #959595; -} - -.btn-default .badge { - color: #959595; - background-color: #ffffff; -} - -.btn-primary { - color: #ffffff; - background-color: #0a94d4; - border-color: #0a94d4; - &:hover, &:focus, &:active, &.active { - color: #ffffff; - background-color: #0872a3; - border-color: #076b9a; - } -} - -.open > .dropdown-toggle.btn-primary { - color: #ffffff; - background-color: #0872a3; - border-color: #076b9a; -} - -.btn-primary { - &:active, &.active { - background-image: none; - } -} - -.open > .dropdown-toggle.btn-primary { - background-image: none; -} - -.btn-primary { - &.disabled, &[disabled] { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-primary { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-primary { - &.disabled:hover, &[disabled]:hover { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-primary:hover { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-primary { - &.disabled:focus, &[disabled]:focus { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-primary:focus { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-primary { - &.disabled:active, &[disabled]:active { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-primary:active { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-primary { - &.disabled.active, &[disabled].active { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-primary.active { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-primary .badge { - color: #0a94d4; - background-color: #ffffff; -} - -.btn-success { - color: #ffffff; - background-color: #28b309; - border-color: #28b309; - &:hover, &:focus, &:active, &.active { - color: #ffffff; - background-color: #1d8207; - border-color: #1b7906; - } -} - -.open > .dropdown-toggle.btn-success { - color: #ffffff; - background-color: #1d8207; - border-color: #1b7906; -} - -.btn-success { - &:active, &.active { - background-image: none; - } -} - -.open > .dropdown-toggle.btn-success { - background-image: none; -} - -.btn-success { - &.disabled, &[disabled] { - background-color: #28b309; - border-color: #28b309; - } -} - -fieldset[disabled] .btn-success { - background-color: #28b309; - border-color: #28b309; -} - -.btn-success { - &.disabled:hover, &[disabled]:hover { - background-color: #28b309; - border-color: #28b309; - } -} - -fieldset[disabled] .btn-success:hover { - background-color: #28b309; - border-color: #28b309; -} - -.btn-success { - &.disabled:focus, &[disabled]:focus { - background-color: #28b309; - border-color: #28b309; - } -} - -fieldset[disabled] .btn-success:focus { - background-color: #28b309; - border-color: #28b309; -} - -.btn-success { - &.disabled:active, &[disabled]:active { - background-color: #28b309; - border-color: #28b309; - } -} - -fieldset[disabled] .btn-success:active { - background-color: #28b309; - border-color: #28b309; -} - -.btn-success { - &.disabled.active, &[disabled].active { - background-color: #28b309; - border-color: #28b309; - } -} - -fieldset[disabled] .btn-success.active { - background-color: #28b309; - border-color: #28b309; -} - -.btn-success .badge { - color: #28b309; - background-color: #ffffff; -} - -.btn-info { - color: #ffffff; - background-color: #0a94d4; - border-color: #0a94d4; - &:hover, &:focus, &:active, &.active { - color: #ffffff; - background-color: #0872a3; - border-color: #076b9a; - } -} - -.open > .dropdown-toggle.btn-info { - color: #ffffff; - background-color: #0872a3; - border-color: #076b9a; -} - -.btn-info { - &:active, &.active { - background-image: none; - } -} - -.open > .dropdown-toggle.btn-info { - background-image: none; -} - -.btn-info { - &.disabled, &[disabled] { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-info { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-info { - &.disabled:hover, &[disabled]:hover { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-info:hover { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-info { - &.disabled:focus, &[disabled]:focus { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-info:focus { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-info { - &.disabled:active, &[disabled]:active { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-info:active { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-info { - &.disabled.active, &[disabled].active { - background-color: #0a94d4; - border-color: #0a94d4; - } -} - -fieldset[disabled] .btn-info.active { - background-color: #0a94d4; - border-color: #0a94d4; -} - -.btn-info .badge { - color: #0a94d4; - background-color: #ffffff; -} - -.btn-warning { - color: #ffffff; - background-color: #f0ad20; - border-color: #f0ad20; - &:hover, &:focus, &:active, &.active { - color: #ffffff; - background-color: #cf910e; - border-color: #c68a0d; - } -} - -.open > .dropdown-toggle.btn-warning { - color: #ffffff; - background-color: #cf910e; - border-color: #c68a0d; -} - -.btn-warning { - &:active, &.active { - background-image: none; - } -} - -.open > .dropdown-toggle.btn-warning { - background-image: none; -} - -.btn-warning { - &.disabled, &[disabled] { - background-color: #f0ad20; - border-color: #f0ad20; - } -} - -fieldset[disabled] .btn-warning { - background-color: #f0ad20; - border-color: #f0ad20; -} - -.btn-warning { - &.disabled:hover, &[disabled]:hover { - background-color: #f0ad20; - border-color: #f0ad20; - } -} - -fieldset[disabled] .btn-warning:hover { - background-color: #f0ad20; - border-color: #f0ad20; -} - -.btn-warning { - &.disabled:focus, &[disabled]:focus { - background-color: #f0ad20; - border-color: #f0ad20; - } -} - -fieldset[disabled] .btn-warning:focus { - background-color: #f0ad20; - border-color: #f0ad20; -} - -.btn-warning { - &.disabled:active, &[disabled]:active { - background-color: #f0ad20; - border-color: #f0ad20; - } -} - -fieldset[disabled] .btn-warning:active { - background-color: #f0ad20; - border-color: #f0ad20; -} - -.btn-warning { - &.disabled.active, &[disabled].active { - background-color: #f0ad20; - border-color: #f0ad20; - } -} - -fieldset[disabled] .btn-warning.active { - background-color: #f0ad20; - border-color: #f0ad20; -} - -.btn-warning .badge { - color: #f0ad20; - background-color: #ffffff; -} - -.btn-danger { - color: #ffffff; - background-color: #ef4a24; - border-color: #ef4a24; - &:hover, &:focus, &:active, &.active { - color: #ffffff; - background-color: #d1330f; - border-color: #c7310f; - } -} - -.open > .dropdown-toggle.btn-danger { - color: #ffffff; - background-color: #d1330f; - border-color: #c7310f; -} - -.btn-danger { - &:active, &.active { - background-image: none; - } -} - -.open > .dropdown-toggle.btn-danger { - background-image: none; -} - -.btn-danger { - &.disabled, &[disabled] { - background-color: #ef4a24; - border-color: #ef4a24; - } -} - -fieldset[disabled] .btn-danger { - background-color: #ef4a24; - border-color: #ef4a24; -} - -.btn-danger { - &.disabled:hover, &[disabled]:hover { - background-color: #ef4a24; - border-color: #ef4a24; - } -} - -fieldset[disabled] .btn-danger:hover { - background-color: #ef4a24; - border-color: #ef4a24; -} - -.btn-danger { - &.disabled:focus, &[disabled]:focus { - background-color: #ef4a24; - border-color: #ef4a24; - } -} - -fieldset[disabled] .btn-danger:focus { - background-color: #ef4a24; - border-color: #ef4a24; -} - -.btn-danger { - &.disabled:active, &[disabled]:active { - background-color: #ef4a24; - border-color: #ef4a24; - } -} - -fieldset[disabled] .btn-danger:active { - background-color: #ef4a24; - border-color: #ef4a24; -} - -.btn-danger { - &.disabled.active, &[disabled].active { - background-color: #ef4a24; - border-color: #ef4a24; - } -} - -fieldset[disabled] .btn-danger.active { - background-color: #ef4a24; - border-color: #ef4a24; -} - -.btn-danger .badge { - color: #ef4a24; - background-color: #ffffff; -} - -.btn-link { - color: #0a94d4; - font-weight: normal; - cursor: pointer; - border-radius: 0; - background-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - &:active, &[disabled] { - background-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } -} - -fieldset[disabled] .btn-link { - background-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; -} - -.btn-link { - border-color: transparent; - &:hover, &:focus, &:active { - border-color: transparent; - } - &:hover, &:focus { - color: #07618b; - text-decoration: underline; - background-color: transparent; - } - &[disabled]:hover { - color: #666666; - text-decoration: none; - } -} - -fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { - color: #666666; - text-decoration: none; -} - -.btn-lg, .btn-group-lg > .btn { - padding: 10px 16px; - font-size: 20px; - line-height: 1.33; - border-radius: 2px; -} - -.btn-sm, .btn-group-sm > .btn { - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; -} - -.btn-xs, .btn-group-xs > .btn { - padding: 1px 5px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; -} - -.btn-block { - display: block; - width: 100%; - + .btn-block { - margin-top: 5px; - } -} - -input { - &[type="submit"].btn-block, &[type="reset"].btn-block, &[type="button"].btn-block { - width: 100%; - } -} - -.fade { - opacity: 0; - -webkit-transition: opacity 0.15s linear; - -o-transition: opacity 0.15s linear; - transition: opacity 0.15s linear; - &.in { - opacity: 1; - } -} - -.collapse { - display: none; - &.in { - display: block; - } -} - -tr.collapse.in { - display: table-row; -} - -tbody.collapse.in { - display: table-row-group; -} - -.collapsing { - position: relative; - height: 0; - overflow: hidden; - -webkit-transition: height 0.35s ease; - -o-transition: height 0.35s ease; - transition: height 0.35s ease; -} - -.caret { - display: inline-block; - width: 0; - height: 0; - margin-left: 2px; - vertical-align: middle; - border-top: 4px solid; - border-right: 4px solid transparent; - border-left: 4px solid transparent; -} - -.dropdown { - position: relative; -} - -.dropdown-toggle:focus { - outline: 0; -} - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; - list-style: none; - font-size: 16px; - text-align: left; - background-color: #ffffff; - border: 1px solid #cccccc; - border: 1px solid rgba(0, 0, 0, 0.15); - border-radius: 1px; - -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); - box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); - background-clip: padding-box; - &.pull-right { - right: 0; - left: auto; - } - .divider { - height: 1px; - margin: 10px 0; - overflow: hidden; - background-color: #e5e5e5; - } - > { - li > a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: 1.42857143; - color: #333333; - white-space: nowrap; - &:hover, &:focus { - text-decoration: none; - color: #262626; - background-color: #f5f5f5; - } - } - .active > a { - color: #ffffff; - text-decoration: none; - outline: 0; - background-color: #4d4d4d; - &:hover, &:focus { - color: #ffffff; - text-decoration: none; - outline: 0; - background-color: #4d4d4d; - } - } - .disabled > a { - color: #666666; - &:hover, &:focus { - color: #666666; - } - &:hover, &:focus { - text-decoration: none; - background-color: transparent; - background-image: none; - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - cursor: not-allowed; - } - } - } -} - -.open > { - .dropdown-menu { - display: block; - } - a { - outline: 0; - } -} - -.dropdown-menu-right { - left: auto; - right: 0; -} - -.dropdown-menu-left { - left: 0; - right: auto; -} - -.dropdown-header { - display: block; - padding: 3px 20px; - font-size: 14px; - line-height: 1.42857143; - color: #666666; - white-space: nowrap; -} - -.dropdown-backdrop { - position: fixed; - left: 0; - right: 0; - bottom: 0; - top: 0; - z-index: 990; -} - -.pull-right > .dropdown-menu { - right: 0; - left: auto; -} - -.dropup .caret, .navbar-fixed-bottom .dropdown .caret { - border-top: 0; - border-bottom: 4px solid; - content: ""; -} - -.dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 1px; -} - -@media (min-width: 768px) { - .navbar-right { - .dropdown-menu { - left: auto; - right: 0; - } - .dropdown-menu-left { - left: 0; - right: auto; - } - } -} - -.btn-group, .btn-group-vertical { - position: relative; - display: inline-block; - vertical-align: middle; -} - -.btn-group > .btn, .btn-group-vertical > .btn { - position: relative; - float: left; -} - -.btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { - z-index: 2; -} - -.btn-group > .btn:focus, .btn-group-vertical > .btn:focus { - outline: 0; -} - -.btn-group { - .btn + { - .btn, .btn-group { - margin-left: -1px; - } - } - .btn-group + { - .btn, .btn-group { - margin-left: -1px; - } - } -} - -.btn-toolbar { - margin-left: -5px; - .btn-group, .input-group { - float: left; - } - > { - .btn, .btn-group, .input-group { - margin-left: 5px; - } - } -} - -.btn-group { - > { - .btn { - &:not(:first-child):not(:last-child):not(.dropdown-toggle) { - border-radius: 0; - } - &:first-child { - margin-left: 0; - &:not(:last-child):not(.dropdown-toggle) { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - } - &:last-child:not(:first-child) { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - } - .dropdown-toggle:not(:first-child) { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - .btn-group { - float: left; - &:not(:first-child):not(:last-child) > .btn { - border-radius: 0; - } - &:first-child > { - .btn:last-child, .dropdown-toggle { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - } - &:last-child > .btn:first-child { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - } - } - .dropdown-toggle:active { - outline: 0; - } - &.open .dropdown-toggle { - outline: 0; - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - &.btn-link { - -webkit-box-shadow: none; - box-shadow: none; - } - } - > { - .btn + .dropdown-toggle { - padding-left: 8px; - padding-right: 8px; - } - .btn-lg + .dropdown-toggle { - padding-left: 12px; - padding-right: 12px; - } - } -} - -.btn .caret { - margin-left: 0; -} - -.btn-lg .caret { - border-width: 5px 5px 0; - border-bottom-width: 0; -} - -.dropup .btn-lg .caret { - border-width: 0 5px 5px; -} - -.btn-group-vertical > { - .btn { - display: block; - float: none; - width: 100%; - max-width: 100%; - } - .btn-group { - display: block; - float: none; - width: 100%; - max-width: 100%; - > .btn { - display: block; - float: none; - width: 100%; - max-width: 100%; - float: none; - } - } - .btn + { - .btn, .btn-group { - margin-top: -1px; - margin-left: 0; - } - } - .btn-group + { - .btn, .btn-group { - margin-top: -1px; - margin-left: 0; - } - } - .btn { - &:not(:first-child):not(:last-child) { - border-radius: 0; - } - &:first-child:not(:last-child) { - border-top-right-radius: 1px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; - } - &:last-child:not(:first-child) { - border-bottom-left-radius: 1px; - border-top-right-radius: 0; - border-top-left-radius: 0; - } - } - .btn-group { - &:not(:first-child):not(:last-child) > .btn { - border-radius: 0; - } - &:first-child:not(:last-child) > { - .btn:last-child, .dropdown-toggle { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; - } - } - &:last-child:not(:first-child) > .btn:first-child { - border-top-right-radius: 0; - border-top-left-radius: 0; - } - } -} - -.btn-group-justified { - display: table; - width: 100%; - table-layout: fixed; - border-collapse: separate; - > { - .btn { - float: none; - display: table-cell; - width: 1%; - } - .btn-group { - float: none; - display: table-cell; - width: 1%; - .btn { - width: 100%; - } - .dropdown-menu { - left: auto; - } - } - } -} - -[data-toggle="buttons"] > .btn > input { - &[type="radio"], &[type="checkbox"] { - position: absolute; - z-index: -1; - opacity: 0; - filter: alpha(opacity = 0); - } -} - -.input-group { - position: relative; - display: table; - border-collapse: separate; - &[class*="col-"] { - float: none; - padding-left: 0; - padding-right: 0; - } - .form-control { - position: relative; - z-index: 2; - float: left; - width: 100%; - margin-bottom: 0; - } -} - -.input-group-lg > { - .form-control, .input-group-addon, .input-group-btn > .btn { - height: 49px; - padding: 10px 16px; - font-size: 20px; - line-height: 1.33; - border-radius: 2px; - } -} - -select.input-group-lg > { - .form-control, .input-group-addon, .input-group-btn > .btn { - height: 49px; - line-height: 49px; - } -} - -textarea.input-group-lg > { - .form-control, .input-group-addon, .input-group-btn > .btn { - height: auto; - } -} - -select[multiple].input-group-lg > { - .form-control, .input-group-addon, .input-group-btn > .btn { - height: auto; - } -} - -.input-group-sm > { - .form-control, .input-group-addon, .input-group-btn > .btn { - height: 33px; - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; - } -} - -select.input-group-sm > { - .form-control, .input-group-addon, .input-group-btn > .btn { - height: 33px; - line-height: 33px; - } -} - -textarea.input-group-sm > { - .form-control, .input-group-addon, .input-group-btn > .btn { - height: auto; - } -} - -select[multiple].input-group-sm > { - .form-control, .input-group-addon, .input-group-btn > .btn { - height: auto; - } -} - -.input-group-addon, .input-group-btn, .input-group .form-control { - display: table-cell; -} - -.input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { - border-radius: 0; -} - -.input-group-addon, .input-group-btn { - width: 1%; - white-space: nowrap; - vertical-align: middle; -} - -.input-group-addon { - padding: 6px 12px; - font-size: 16px; - font-weight: normal; - line-height: 1; - color: #4d4d4d; - text-align: center; - background-color: #cccccc; - border: 1px solid #cccccc; - border-radius: 1px; - &.input-sm { - padding: 5px 10px; - font-size: 14px; - border-radius: 0; - } - &.input-lg { - padding: 10px 16px; - font-size: 20px; - border-radius: 2px; - } - input { - &[type="radio"], &[type="checkbox"] { - margin-top: 0; - } - } -} - -.input-group .form-control:first-child, .input-group-addon:first-child { - border-bottom-right-radius: 0; - border-top-right-radius: 0; -} - -.input-group-btn { - &:first-child > { - .btn, .btn-group > .btn, .dropdown-toggle { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - } - &:last-child > { - .btn:not(:last-child):not(.dropdown-toggle), .btn-group:not(:last-child) > .btn { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - } -} - -.input-group-addon:first-child { - border-right: 0; -} - -.input-group .form-control:last-child, .input-group-addon:last-child { - border-bottom-left-radius: 0; - border-top-left-radius: 0; -} - -.input-group-btn { - &:last-child > { - .btn, .btn-group > .btn, .dropdown-toggle { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - } - &:first-child > { - .btn:not(:first-child), .btn-group:not(:first-child) > .btn { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - } -} - -.input-group-addon:last-child { - border-left: 0; -} - -.input-group-btn { - position: relative; - font-size: 0; - white-space: nowrap; - > .btn { - position: relative; - + .btn { - margin-left: -1px; - } - &:hover, &:focus, &:active { - z-index: 2; - } - } - &:first-child > { - .btn, .btn-group { - margin-right: -1px; - } - } - &:last-child > { - .btn, .btn-group { - margin-left: -1px; - } - } -} - -.nav { - margin-bottom: 0; - padding-left: 0; - list-style: none; - > li { - position: relative; - display: block; - > a { - position: relative; - display: block; - padding: 5px 5px; - &:hover, &:focus { - text-decoration: none; - background-color: transparent; - } - } - &.disabled > a { - color: #666666; - &:hover, &:focus { - color: #666666; - text-decoration: none; - background-color: transparent; - cursor: not-allowed; - } - } - } - .open > a { - background-color: transparent; - border-color: #0a94d4; - &:hover, &:focus { - background-color: transparent; - border-color: #0a94d4; - } - } - .nav-divider { - height: 1px; - margin: 10px 0; - overflow: hidden; - background-color: #e5e5e5; - } - > li > a > img { - max-width: none; - } -} - -.nav-tabs { - border-bottom: 1px solid #dddddd; - > li { - float: left; - margin-bottom: -1px; - > a { - margin-right: 2px; - line-height: 1.42857143; - border: 1px solid transparent; - border-radius: 1px 1px 0 0; - &:hover { - border-color: #cccccc #cccccc #dddddd; - } - } - &.active > a { - color: #4d4d4d; - background-color: #333333; - border: 1px solid #dddddd; - border-bottom-color: transparent; - cursor: default; - &:hover, &:focus { - color: #4d4d4d; - background-color: #333333; - border: 1px solid #dddddd; - border-bottom-color: transparent; - cursor: default; - } - } - } - &.nav-justified { - width: 100%; - border-bottom: 0; - > { - li { - float: none; - > a { - text-align: center; - margin-bottom: 5px; - } - } - .dropdown .dropdown-menu { - top: auto; - left: auto; - } - li > a { - margin-right: 0; - border-radius: 1px; - } - .active > a { - border: 1px solid #dddddd; - &:hover, &:focus { - border: 1px solid #dddddd; - } - } - } - } -} - -@media (min-width: 768px) { - .nav-tabs.nav-justified > li { - display: table-cell; - width: 1%; - > a { - margin-bottom: 0; - } - } -} - -@media (min-width: 768px) { - .nav-tabs.nav-justified > { - li > a { - border-bottom: 1px solid #dddddd; - border-radius: 1px 1px 0 0; - } - .active > a { - border-bottom-color: #333333; - &:hover, &:focus { - border-bottom-color: #333333; - } - } - } -} - -.nav-pills > li { - float: left; - > a { - border-radius: 1px; - } - + li { - margin-left: 2px; - } - &.active > a { - color: #ffffff; - background-color: #4d4d4d; - &:hover, &:focus { - color: #ffffff; - background-color: #4d4d4d; - } - } -} - -.nav-stacked > li { - float: none; - + li { - margin-top: 2px; - margin-left: 0; - } -} - -.nav-justified { - width: 100%; - > { - li { - float: none; - > a { - text-align: center; - margin-bottom: 5px; - } - } - .dropdown .dropdown-menu { - top: auto; - left: auto; - } - } -} - -@media (min-width: 768px) { - .nav-justified > li { - display: table-cell; - width: 1%; - > a { - margin-bottom: 0; - } - } -} - -.nav-tabs-justified { - border-bottom: 0; - > { - li > a { - margin-right: 0; - border-radius: 1px; - } - .active > a { - border: 1px solid #dddddd; - &:hover, &:focus { - border: 1px solid #dddddd; - } - } - } -} - -@media (min-width: 768px) { - .nav-tabs-justified > { - li > a { - border-bottom: 1px solid #dddddd; - border-radius: 1px 1px 0 0; - } - .active > a { - border-bottom-color: #333333; - &:hover, &:focus { - border-bottom-color: #333333; - } - } - } -} - -.tab-content > { - .tab-pane { - display: none; - } - .active { - display: block; - } -} - -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.navbar { - position: relative; - min-height: 50px; - margin-bottom: 22px; - border: 1px solid transparent; -} - -@media (min-width: 768px) { - .navbar { - border-radius: 1px; - } -} - -@media (min-width: 768px) { - .navbar-header { - float: left; - } -} - -.navbar-collapse { - overflow-x: visible; - padding-right: 15px; - padding-left: 15px; - border-top: 1px solid transparent; - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); - -webkit-overflow-scrolling: touch; - &.in { - overflow-y: auto; - } -} - -@media (min-width: 768px) { - .navbar-collapse { - width: auto; - border-top: 0; - box-shadow: none; - &.collapse { - display: block !important; - height: auto !important; - padding-bottom: 0; - overflow: visible !important; - } - &.in { - overflow-y: visible; - } - } - .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { - padding-left: 0; - padding-right: 0; - } -} - -.navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { - max-height: 340px; -} - -@media (max-width: 480px) and (orientation: landscape) { - .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { - max-height: 200px; - } -} - -.container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { - margin-right: -15px; - margin-left: -15px; -} - -@media (min-width: 768px) { - .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { - margin-right: 0; - margin-left: 0; - } -} - -.navbar-static-top { - z-index: 1000; - border-width: 0 0 1px; -} - -@media (min-width: 768px) { - .navbar-static-top { - border-radius: 0; - } -} - -.navbar-fixed-top, .navbar-fixed-bottom { - position: fixed; - right: 0; - left: 0; - z-index: 1030; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} - -@media (min-width: 768px) { - .navbar-fixed-top, .navbar-fixed-bottom { - border-radius: 0; - } -} - -.navbar-fixed-top { - top: 0; - border-width: 0 0 1px; -} - -.navbar-fixed-bottom { - bottom: 0; - margin-bottom: 0; - border-width: 1px 0 0; -} - -.navbar-brand { - float: left; - padding: 14px 15px; - font-size: 20px; - line-height: 22px; - height: 50px; - &:hover, &:focus { - text-decoration: none; - } -} - -@media (min-width: 768px) { - .navbar > { - .container .navbar-brand, .container-fluid .navbar-brand { - margin-left: -15px; - } - } -} - -.navbar-toggle { - position: relative; - float: right; - margin-right: 15px; - padding: 9px 10px; - margin-top: 8px; - margin-bottom: 8px; - background-color: transparent; - background-image: none; - border: 1px solid transparent; - border-radius: 1px; - &:focus { - outline: 0; - } - .icon-bar { - display: block; - width: 22px; - height: 2px; - border-radius: 1px; - + .icon-bar { - margin-top: 4px; - } - } -} - -@media (min-width: 768px) { - .navbar-toggle { - display: none; - } -} - -.navbar-nav { - margin: 7px -15px; - > li > a { - padding-top: 10px; - padding-bottom: 10px; - line-height: 22px; - } -} - -@media (max-width: 767px) { - .navbar-nav .open .dropdown-menu { - position: static; - float: none; - width: auto; - margin-top: 0; - background-color: transparent; - border: 0; - box-shadow: none; - > li > a, .dropdown-header { - padding: 5px 15px 5px 25px; - } - > li > a { - line-height: 22px; - &:hover, &:focus { - background-image: none; - } - } - } -} - -@media (min-width: 768px) { - .navbar-nav { - float: left; - margin: 0; - > li { - float: left; - > a { - padding-top: 14px; - padding-bottom: 14px; - } - } - &.navbar-right:last-child { - margin-right: -15px; - } - } -} - -@media (min-width: 768px) { - .navbar-left { - float: left !important; - } - .navbar-right { - float: right !important; - } -} - -.navbar-form { - margin-left: -15px; - margin-right: -15px; - padding: 10px 15px; - border-top: 1px solid transparent; - border-bottom: 1px solid transparent; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); - margin-top: 7px; - margin-bottom: 7px; -} - -@media (min-width: 768px) { - .navbar-form { - .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; - } - .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - .input-group { - display: inline-table; - vertical-align: middle; - .input-group-addon, .input-group-btn, .form-control { - width: auto; - } - > .form-control { - width: 100%; - } - } - .control-label { - margin-bottom: 0; - vertical-align: middle; - } - .radio, .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; - } - .radio label, .checkbox label { - padding-left: 0; - } - .radio input[type="radio"], .checkbox input[type="checkbox"] { - position: relative; - margin-left: 0; - } - .has-feedback .form-control-feedback { - top: 0; - } - } -} - -@media (max-width: 767px) { - .navbar-form .form-group { - margin-bottom: 5px; - } -} - -@media (min-width: 768px) { - .navbar-form { - width: auto; - border: 0; - margin-left: 0; - margin-right: 0; - padding-top: 0; - padding-bottom: 0; - -webkit-box-shadow: none; - box-shadow: none; - &.navbar-right:last-child { - margin-right: -15px; - } - } -} - -.navbar-nav > li > .dropdown-menu { - margin-top: 0; - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} - -.navbar-btn { - margin-top: 7px; - margin-bottom: 7px; - &.btn-sm { - margin-top: 8.5px; - margin-bottom: 8.5px; - } - &.btn-xs { - margin-top: 14px; - margin-bottom: 14px; - } -} - -.navbar-text { - margin-top: 14px; - margin-bottom: 14px; -} - -@media (min-width: 768px) { - .navbar-text { - float: left; - margin-left: 15px; - margin-right: 15px; - &.navbar-right:last-child { - margin-right: 0; - } - } -} - -.navbar-default { - background-color: #f8f8f8; - border-color: #e7e7e7; - .navbar-brand { - color: #777777; - &:hover, &:focus { - color: #5e5e5e; - background-color: transparent; - } - } - .navbar-text { - color: #777777; - } - .navbar-nav > { - li > a { - color: #777777; - &:hover, &:focus { - color: #333333; - background-color: transparent; - } - } - .active > a { - color: #555555; - background-color: #e7e7e7; - &:hover, &:focus { - color: #555555; - background-color: #e7e7e7; - } - } - .disabled > a { - color: #cccccc; - background-color: transparent; - &:hover, &:focus { - color: #cccccc; - background-color: transparent; - } - } - } - .navbar-toggle { - border-color: #dddddd; - &:hover, &:focus { - background-color: #dddddd; - } - .icon-bar { - background-color: #888888; - } - } - .navbar-collapse, .navbar-form { - border-color: #e7e7e7; - } - .navbar-nav > .open > a { - background-color: #e7e7e7; - color: #555555; - &:hover, &:focus { - background-color: #e7e7e7; - color: #555555; - } - } - .navbar-link { - color: #777777; - &:hover { - color: #333333; - } - } - .btn-link { - color: #777777; - &:hover, &:focus { - color: #333333; - } - &[disabled]:hover { - color: #cccccc; - } - } -} - -@media (max-width: 767px) { - .navbar-default .navbar-nav .open .dropdown-menu > { - li > a { - color: #777777; - &:hover, &:focus { - color: #333333; - background-color: transparent; - } - } - .active > a { - color: #555555; - background-color: #e7e7e7; - &:hover, &:focus { - color: #555555; - background-color: #e7e7e7; - } - } - .disabled > a { - color: #cccccc; - background-color: transparent; - &:hover, &:focus { - color: #cccccc; - background-color: transparent; - } - } - } -} - -fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { - color: #cccccc; -} - -.navbar-inverse { - background-color: #222222; - border-color: #080808; - .navbar-brand { - color: #666666; - &:hover, &:focus { - color: #ffffff; - background-color: transparent; - } - } - .navbar-text { - color: #666666; - } - .navbar-nav > { - li > a { - color: #666666; - &:hover, &:focus { - color: #ffffff; - background-color: transparent; - } - } - .active > a { - color: #ffffff; - background-color: #080808; - &:hover, &:focus { - color: #ffffff; - background-color: #080808; - } - } - .disabled > a { - color: #444444; - background-color: transparent; - &:hover, &:focus { - color: #444444; - background-color: transparent; - } - } - } - .navbar-toggle { - border-color: #333333; - &:hover, &:focus { - background-color: #333333; - } - .icon-bar { - background-color: #ffffff; - } - } - .navbar-collapse, .navbar-form { - border-color: #101010; - } - .navbar-nav > .open > a { - background-color: #080808; - color: #ffffff; - &:hover, &:focus { - background-color: #080808; - color: #ffffff; - } - } - .navbar-link { - color: #666666; - &:hover { - color: #ffffff; - } - } - .btn-link { - color: #666666; - &:hover, &:focus { - color: #ffffff; - } - &[disabled]:hover { - color: #444444; - } - } -} - -@media (max-width: 767px) { - .navbar-inverse .navbar-nav .open .dropdown-menu { - > .dropdown-header { - border-color: #080808; - } - .divider { - background-color: #080808; - } - > { - li > a { - color: #666666; - &:hover, &:focus { - color: #ffffff; - background-color: transparent; - } - } - .active > a { - color: #ffffff; - background-color: #080808; - &:hover, &:focus { - color: #ffffff; - background-color: #080808; - } - } - .disabled > a { - color: #444444; - background-color: transparent; - &:hover, &:focus { - color: #444444; - background-color: transparent; - } - } - } - } -} - -fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:focus { - color: #444444; -} - -.breadcrumb { - padding: 8px 15px; - margin-bottom: 22px; - list-style: none; - background-color: #f5f5f5; - border-radius: 1px; - > { - li { - display: inline-block; - + li:before { - content: "/\00a0"; - padding: 0 5px; - color: #cccccc; - } - } - .active { - color: #666666; - } - } -} - -.pagination { - display: inline-block; - padding-left: 0; - margin: 22px 0; - border-radius: 1px; - > { - li { - display: inline; - > { - a, span { - position: relative; - float: left; - padding: 6px 12px; - line-height: 1.42857143; - text-decoration: none; - color: #0a94d4; - background-color: #ffffff; - border: 1px solid #dddddd; - margin-left: -1px; - } - } - &:first-child > { - a, span { - margin-left: 0; - border-bottom-left-radius: 1px; - border-top-left-radius: 1px; - } - } - &:last-child > { - a, span { - border-bottom-right-radius: 1px; - border-top-right-radius: 1px; - } - } - > { - a:hover, span:hover, a:focus, span:focus { - color: #07618b; - background-color: #cccccc; - border-color: #dddddd; - } - } - } - .active > { - a, span, a:hover, span:hover, a:focus, span:focus { - z-index: 2; - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; - cursor: default; - } - } - .disabled > { - span { - color: #666666; - background-color: #ffffff; - border-color: #dddddd; - cursor: not-allowed; - &:hover, &:focus { - color: #666666; - background-color: #ffffff; - border-color: #dddddd; - cursor: not-allowed; - } - } - a { - color: #666666; - background-color: #ffffff; - border-color: #dddddd; - cursor: not-allowed; - &:hover, &:focus { - color: #666666; - background-color: #ffffff; - border-color: #dddddd; - cursor: not-allowed; - } - } - } - } -} - -.pagination-lg > li { - > { - a, span { - padding: 10px 16px; - font-size: 20px; - } - } - &:first-child > { - a, span { - border-bottom-left-radius: 2px; - border-top-left-radius: 2px; - } - } - &:last-child > { - a, span { - border-bottom-right-radius: 2px; - border-top-right-radius: 2px; - } - } -} - -.pagination-sm > li { - > { - a, span { - padding: 5px 10px; - font-size: 14px; - } - } - &:first-child > { - a, span { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - } - &:last-child > { - a, span { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - } -} - -.pager { - padding-left: 0; - margin: 22px 0; - list-style: none; - text-align: center; - li { - display: inline; - > { - a, span { - display: inline-block; - padding: 5px 14px; - background-color: #ffffff; - border: 1px solid #dddddd; - border-radius: 15px; - } - a { - &:hover, &:focus { - text-decoration: none; - background-color: #cccccc; - } - } - } - } - .next > { - a, span { - float: right; - } - } - .previous > { - a, span { - float: left; - } - } - .disabled > { - a { - color: #666666; - background-color: #ffffff; - cursor: not-allowed; - &:hover, &:focus { - color: #666666; - background-color: #ffffff; - cursor: not-allowed; - } - } - span { - color: #666666; - background-color: #ffffff; - cursor: not-allowed; - } - } -} - -.label { - display: inline; - padding: .2em .6em .3em; - font-size: 75%; - font-weight: bold; - line-height: 1; - color: #ffffff; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: .25em; -} - -a.label { - &:hover, &:focus { - color: #ffffff; - text-decoration: none; - cursor: pointer; - } -} - -.label:empty { - display: none; -} - -.btn .label { - position: relative; - top: -1px; -} - -.label-default { - background-color: #666666; - &[href] { - &:hover, &:focus { - background-color: #4d4d4d; - } - } -} - -.label-primary { - background-color: #4d4d4d; - &[href] { - &:hover, &:focus { - background-color: #333333; - } - } -} - -.label-success { - background-color: #28b309; - &[href] { - &:hover, &:focus { - background-color: #1d8207; - } - } -} - -.label-info { - background-color: #0a94d4; - &[href] { - &:hover, &:focus { - background-color: #0872a3; - } - } -} - -.label-warning { - background-color: #f0ad20; - &[href] { - &:hover, &:focus { - background-color: #cf910e; - } - } -} - -.label-danger { - background-color: #ef4a24; - &[href] { - &:hover, &:focus { - background-color: #d1330f; - } - } -} - -.badge { - display: inline-block; - min-width: 10px; - padding: 3px 7px; - font-size: 14px; - font-weight: bold; - color: #ffffff; - line-height: 1; - vertical-align: baseline; - white-space: nowrap; - text-align: center; - background-color: #666666; - border-radius: 10px; - &:empty { - display: none; - } -} - -.btn .badge { - position: relative; - top: -1px; -} - -.btn-xs .badge { - top: 0; - padding: 1px 5px; -} - -a { - &.badge { - &:hover, &:focus { - color: #ffffff; - text-decoration: none; - cursor: pointer; - } - } - &.list-group-item.active > .badge { - color: #0a94d4; - background-color: #ffffff; - } -} - -.nav-pills > { - .active > a > .badge { - color: #0a94d4; - background-color: #ffffff; - } - li > a > .badge { - margin-left: 3px; - } -} - -.jumbotron { - padding: 30px; - margin-bottom: 30px; - color: inherit; - background-color: #cccccc; - h1, .h1 { - color: inherit; - } - p { - margin-bottom: 15px; - font-size: 24px; - font-weight: 200; - } - > hr { - border-top-color: #b3b3b3; - } -} - -.container .jumbotron { - border-radius: 2px; -} - -.jumbotron .container { - max-width: 100%; -} - -@media screen and (min-width: 768px) { - .jumbotron { - padding-top: 48px; - padding-bottom: 48px; - } - .container .jumbotron { - padding-left: 60px; - padding-right: 60px; - } - .jumbotron { - h1, .h1 { - font-size: 72px; - } - } -} - -.thumbnail { - display: block; - padding: 4px; - margin-bottom: 22px; - line-height: 1.42857143; - background-color: #333333; - border: 1px solid #dddddd; - border-radius: 1px; - -webkit-transition: all 0.2s ease-in-out; - -o-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; - > img, a > img { - margin-left: auto; - margin-right: auto; - } -} - -a.thumbnail { - &:hover, &:focus, &.active { - border-color: #0a94d4; - } -} - -.thumbnail .caption { - padding: 9px; - color: #ffffff; -} - -.alert { - padding: 15px; - margin-bottom: 22px; - border: 1px solid transparent; - border-radius: 1px; - h4 { - margin-top: 0; - color: inherit; - } - .alert-link { - font-weight: bold; - } - > { - p, ul { - margin-bottom: 0; - } - p + p { - margin-top: 5px; - } - } -} - -.alert-dismissable, .alert-dismissible { - padding-right: 35px; -} - -.alert-dismissable .close, .alert-dismissible .close { - position: relative; - top: -2px; - right: -21px; - color: inherit; -} - -.alert-success { - background-color: #d3e5cf; - border-color: #c9dcbe; - color: #125204; - hr { - border-top-color: #bbd3ae; - } - .alert-link { - color: #072102; - } -} - -.alert-info { - background-color: #daebf2; - border-color: #c0e4e9; - color: #0872a3; - hr { - border-top-color: #addbe2; - } - .alert-link { - color: #055073; - } -} - -.alert-warning { - background-color: #fcf8e3; - border-color: #faebcc; - color: #8a6d3b; - hr { - border-top-color: #f7e1b5; - } - .alert-link { - color: #66512c; - } -} - -.alert-danger { - background-color: #f0dcd8; - border-color: #e9c6c6; - color: #d63510; - hr { - border-top-color: #e2b3b3; - } - .alert-link { - color: #a6290c; - } -} - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - - to { - background-position: 0 0; - } -} - - -@keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - - to { - background-position: 0 0; - } -} - - -.progress { - overflow: hidden; - height: 22px; - margin-bottom: 22px; - background-color: #f5f5f5; - border-radius: 1px; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -} - -.progress-bar { - float: left; - width: 0%; - height: 100%; - font-size: 14px; - line-height: 22px; - color: #ffffff; - text-align: center; - background-color: #4d4d4d; - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -webkit-transition: width 0.6s ease; - -o-transition: width 0.6s ease; - transition: width 0.6s ease; -} - -.progress-striped .progress-bar, .progress-bar-striped { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-size: 40px 40px; -} - -.progress.active .progress-bar { - -webkit-animation: progress-bar-stripes 2s linear infinite; - -o-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite; -} - -.progress-bar { - &.active { - -webkit-animation: progress-bar-stripes 2s linear infinite; - -o-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite; - } - &[aria-valuenow="1"], &[aria-valuenow="2"] { - min-width: 30px; - } - &[aria-valuenow="0"] { - color: #666666; - min-width: 30px; - background-color: transparent; - background-image: none; - box-shadow: none; - } -} - -.progress-bar-success { - background-color: #28b309; -} - -.progress-striped .progress-bar-success { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-bar-info { - background-color: #0a94d4; -} - -.progress-striped .progress-bar-info { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-bar-warning { - background-color: #f0ad20; -} - -.progress-striped .progress-bar-warning { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-bar-danger { - background-color: #ef4a24; -} - -.progress-striped .progress-bar-danger { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.media, .media-body { - overflow: hidden; - zoom: 1; -} - -.media { - margin-top: 15px; - .media { - margin-top: 15px; - } - &:first-child { - margin-top: 0; - } -} - -.media-object { - display: block; -} - -.media-heading { - margin: 0 0 5px; -} - -.media > { - .pull-left { - margin-right: 10px; - } - .pull-right { - margin-left: 10px; - } -} - -.media-list { - padding-left: 0; - list-style: none; -} - -.list-group { - margin-bottom: 20px; - padding-left: 0; -} - -.list-group-item { - position: relative; - display: block; - padding: 10px 15px; - margin-bottom: -1px; - background-color: #ffffff; - border: 1px solid #dddddd; - &:first-child { - border-top-right-radius: 1px; - border-top-left-radius: 1px; - } - &:last-child { - margin-bottom: 0; - border-bottom-right-radius: 1px; - border-bottom-left-radius: 1px; - } - > .badge { - float: right; - + .badge { - margin-right: 5px; - } - } -} - -a.list-group-item { - color: #555555; - .list-group-item-heading { - color: #333333; - } - &:hover, &:focus { - text-decoration: none; - color: #555555; - background-color: #f5f5f5; - } -} - -.list-group-item { - &.disabled { - background-color: #cccccc; - color: #666666; - &:hover, &:focus { - background-color: #cccccc; - color: #666666; - } - .list-group-item-heading, &:hover .list-group-item-heading, &:focus .list-group-item-heading { - color: inherit; - } - .list-group-item-text, &:hover .list-group-item-text, &:focus .list-group-item-text { - color: #666666; - } - } - &.active { - z-index: 2; - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; - &:hover, &:focus { - z-index: 2; - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; - } - .list-group-item-heading, &:hover .list-group-item-heading, &:focus .list-group-item-heading, .list-group-item-heading > small, &:hover .list-group-item-heading > small, &:focus .list-group-item-heading > small, .list-group-item-heading > .small, &:hover .list-group-item-heading > .small, &:focus .list-group-item-heading > .small { - color: inherit; - } - .list-group-item-text, &:hover .list-group-item-text, &:focus .list-group-item-text { - color: #b3b3b3; - } - } -} - -.list-group-item-success { - color: #125204; - background-color: #d3e5cf; -} - -a.list-group-item-success { - color: #125204; - .list-group-item-heading { - color: inherit; - } - &:hover, &:focus { - color: #125204; - background-color: #c4dcbe; - } - &.active { - color: #fff; - background-color: #125204; - border-color: #125204; - &:hover, &:focus { - color: #fff; - background-color: #125204; - border-color: #125204; - } - } -} - -.list-group-item-info { - color: #0872a3; - background-color: #daebf2; -} - -a.list-group-item-info { - color: #0872a3; - .list-group-item-heading { - color: inherit; - } - &:hover, &:focus { - color: #0872a3; - background-color: #c7e1eb; - } - &.active { - color: #fff; - background-color: #0872a3; - border-color: #0872a3; - &:hover, &:focus { - color: #fff; - background-color: #0872a3; - border-color: #0872a3; - } - } -} - -.list-group-item-warning { - color: #8a6d3b; - background-color: #fcf8e3; -} - -a.list-group-item-warning { - color: #8a6d3b; - .list-group-item-heading { - color: inherit; - } - &:hover, &:focus { - color: #8a6d3b; - background-color: #faf2cc; - } - &.active { - color: #fff; - background-color: #8a6d3b; - border-color: #8a6d3b; - &:hover, &:focus { - color: #fff; - background-color: #8a6d3b; - border-color: #8a6d3b; - } - } -} - -.list-group-item-danger { - color: #d63510; - background-color: #f0dcd8; -} - -a.list-group-item-danger { - color: #d63510; - .list-group-item-heading { - color: inherit; - } - &:hover, &:focus { - color: #d63510; - background-color: #e9cbc6; - } - &.active { - color: #fff; - background-color: #d63510; - border-color: #d63510; - &:hover, &:focus { - color: #fff; - background-color: #d63510; - border-color: #d63510; - } - } -} - -.list-group-item-heading { - margin-top: 0; - margin-bottom: 5px; -} - -.list-group-item-text { - margin-bottom: 0; - line-height: 1.3; -} - -.panel { - margin-bottom: 22px; - background-color: #ffffff; - border: 1px solid transparent; - border-radius: 1px; - -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); -} - -.panel-body { - padding: 15px; -} - -.panel-heading { - padding: 10px 15px; - border-bottom: 1px solid transparent; - border-top-right-radius: 0px; - border-top-left-radius: 0px; - > .dropdown .dropdown-toggle { - color: inherit; - } -} - -.panel-title { - margin-top: 0; - margin-bottom: 0; - font-size: 18px; - color: inherit; - > a { - color: inherit; - } -} - -.panel-footer { - padding: 10px 15px; - background-color: #f5f5f5; - border-top: 1px solid #dddddd; - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; -} - -.panel > .list-group { - margin-bottom: 0; - .list-group-item { - border-width: 1px 0; - border-radius: 0; - } - &:first-child .list-group-item:first-child { - border-top: 0; - border-top-right-radius: 0px; - border-top-left-radius: 0px; - } - &:last-child .list-group-item:last-child { - border-bottom: 0; - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; - } -} - -.panel-heading + .list-group .list-group-item:first-child, .list-group + .panel-footer { - border-top-width: 0; -} - -.panel > { - .table, .table-responsive > .table, .panel-collapse > .table { - margin-bottom: 0; - } - .table:first-child, .table-responsive:first-child > .table:first-child { - border-top-right-radius: 0px; - border-top-left-radius: 0px; - } - .table:first-child > thead:first-child > tr:first-child td:first-child, .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .table:first-child > tbody:first-child > tr:first-child td:first-child, .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .table:first-child > thead:first-child > tr:first-child th:first-child, .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .table:first-child > tbody:first-child > tr:first-child th:first-child, .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { - border-top-left-radius: 0px; - } - .table:first-child > thead:first-child > tr:first-child td:last-child, .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .table:first-child > tbody:first-child > tr:first-child td:last-child, .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .table:first-child > thead:first-child > tr:first-child th:last-child, .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .table:first-child > tbody:first-child > tr:first-child th:last-child, .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { - border-top-right-radius: 0px; - } - .table:last-child, .table-responsive:last-child > .table:last-child { - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; - } - .table:last-child > tbody:last-child > tr:last-child td:first-child, .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .table:last-child > tfoot:last-child > tr:last-child td:first-child, .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .table:last-child > tbody:last-child > tr:last-child th:first-child, .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .table:last-child > tfoot:last-child > tr:last-child th:first-child, .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { - border-bottom-left-radius: 0px; - } - .table:last-child > tbody:last-child > tr:last-child td:last-child, .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .table:last-child > tfoot:last-child > tr:last-child td:last-child, .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .table:last-child > tbody:last-child > tr:last-child th:last-child, .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .table:last-child > tfoot:last-child > tr:last-child th:last-child, .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { - border-bottom-right-radius: 0px; - } - .panel-body + { - .table, .table-responsive { - border-top: 1px solid #dddddd; - } - } - .table > tbody:first-child > tr:first-child { - th, td { - border-top: 0; - } - } - .table-bordered, .table-responsive > .table-bordered { - border: 0; - } - .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > th:first-child, .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-bordered > tfoot > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; - } - .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > th:last-child, .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-bordered > tfoot > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; - } - .table-bordered > thead > tr:first-child > td, .table-responsive > .table-bordered > thead > tr:first-child > td, .table-bordered > tbody > tr:first-child > td, .table-responsive > .table-bordered > tbody > tr:first-child > td, .table-bordered > thead > tr:first-child > th, .table-responsive > .table-bordered > thead > tr:first-child > th, .table-bordered > tbody > tr:first-child > th, .table-responsive > .table-bordered > tbody > tr:first-child > th, .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-bordered > tfoot > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td, .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-bordered > tfoot > tr:last-child > th { - border-bottom: 0; - } - .table-responsive { - > .table-bordered > tfoot > tr:last-child > th { - border-bottom: 0; - } - border: 0; - margin-bottom: 0; - } -} - -.panel-group { - margin-bottom: 22px; - .panel { - margin-bottom: 0; - border-radius: 1px; - + .panel { - margin-top: 5px; - } - } - .panel-heading { - border-bottom: 0; - + .panel-collapse > .panel-body { - border-top: 1px solid #dddddd; - } - } - .panel-footer { - border-top: 0; - + .panel-collapse .panel-body { - border-bottom: 1px solid #dddddd; - } - } -} - -.panel-default { - border-color: #dddddd; - > { - .panel-heading { - color: #333333; - background-color: #f5f5f5; - border-color: #dddddd; - + .panel-collapse > .panel-body { - border-top-color: #dddddd; - } - .badge { - color: #f5f5f5; - background-color: #333333; - } - } - .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #dddddd; - } - } -} - -.panel-primary { - border-color: #4d4d4d; - > { - .panel-heading { - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; - + .panel-collapse > .panel-body { - border-top-color: #4d4d4d; - } - .badge { - color: #4d4d4d; - background-color: #ffffff; - } - } - .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #4d4d4d; - } - } -} - -.panel-success { - border-color: #c9dcbe; - > { - .panel-heading { - color: #125204; - background-color: #d3e5cf; - border-color: #c9dcbe; - + .panel-collapse > .panel-body { - border-top-color: #c9dcbe; - } - .badge { - color: #d3e5cf; - background-color: #125204; - } - } - .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #c9dcbe; - } - } -} - -.panel-info { - border-color: #c0e4e9; - > { - .panel-heading { - color: #0872a3; - background-color: #daebf2; - border-color: #c0e4e9; - + .panel-collapse > .panel-body { - border-top-color: #c0e4e9; - } - .badge { - color: #daebf2; - background-color: #0872a3; - } - } - .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #c0e4e9; - } - } -} - -.panel-warning { - border-color: #faebcc; - > { - .panel-heading { - color: #8a6d3b; - background-color: #fcf8e3; - border-color: #faebcc; - + .panel-collapse > .panel-body { - border-top-color: #faebcc; - } - .badge { - color: #fcf8e3; - background-color: #8a6d3b; - } - } - .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #faebcc; - } - } -} - -.panel-danger { - border-color: #e9c6c6; - > { - .panel-heading { - color: #d63510; - background-color: #f0dcd8; - border-color: #e9c6c6; - + .panel-collapse > .panel-body { - border-top-color: #e9c6c6; - } - .badge { - color: #f0dcd8; - background-color: #d63510; - } - } - .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #e9c6c6; - } - } -} - -.embed-responsive { - position: relative; - display: block; - height: 0; - padding: 0; - overflow: hidden; - .embed-responsive-item, iframe, embed, object { - position: absolute; - top: 0; - left: 0; - bottom: 0; - height: 100%; - width: 100%; - border: 0; - } - &.embed-responsive-16by9 { - padding-bottom: 56.25%; - } - &.embed-responsive-4by3 { - padding-bottom: 75%; - } -} - -.well { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid #e3e3e3; - border-radius: 1px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - blockquote { - border-color: #ddd; - border-color: rgba(0, 0, 0, 0.15); - } -} - -.well-lg { - padding: 24px; - border-radius: 2px; -} - -.well-sm { - padding: 9px; - border-radius: 0; -} - -.close { - float: right; - font-size: 24px; - font-weight: bold; - line-height: 1; - color: #000000; - text-shadow: 0 1px 0 #ffffff; - opacity: 0.2; - filter: alpha(opacity = 20); - &:hover, &:focus { - color: #000000; - text-decoration: none; - cursor: pointer; - opacity: 0.5; - filter: alpha(opacity = 50); - } -} - -button.close { - padding: 0; - cursor: pointer; - background: transparent; - border: 0; - -webkit-appearance: none; -} - -.modal-open { - overflow: hidden; -} - -.modal { - display: none; - overflow: hidden; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1050; - -webkit-overflow-scrolling: touch; - outline: 0; - &.fade .modal-dialog { - -webkit-transform: translate3d(0, -25%, 0); - transform: translate3d(0, -25%, 0); - -webkit-transition: -webkit-transform 0.3s ease-out; - -moz-transition: -moz-transform 0.3s ease-out; - -o-transition: -o-transform 0.3s ease-out; - transition: transform 0.3s ease-out; - } - &.in .modal-dialog { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto; -} - -.modal-dialog { - position: relative; - width: auto; - margin: 10px; -} - -.modal-content { - position: relative; - background-color: #ffffff; - border: 1px solid #999999; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 2px; - -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - background-clip: padding-box; - outline: 0; -} - -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; - background-color: #000000; - &.fade { - opacity: 0; - filter: alpha(opacity = 0); - } - &.in { - opacity: 0.5; - filter: alpha(opacity = 50); - } -} - -.modal-header { - padding: 15px; - border-bottom: 1px solid #e5e5e5; - min-height: 16.42857143px; - .close { - margin-top: -2px; - } -} - -.modal-title { - margin: 0; - line-height: 1.42857143; -} - -.modal-body { - position: relative; - padding: 15px; -} - -.modal-footer { - padding: 15px; - text-align: right; - border-top: 1px solid #e5e5e5; - .btn + .btn { - margin-left: 5px; - margin-bottom: 0; - } - .btn-group .btn + .btn { - margin-left: -1px; - } - .btn-block + .btn-block { - margin-left: 0; - } -} - -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll; -} - -@media (min-width: 768px) { - .modal-dialog { - width: 600px; - margin: 30px auto; - } - .modal-content { - -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); - } - .modal-sm { - width: 300px; - } -} - -@media (min-width: 992px) { - .modal-lg { - width: 900px; - } -} - -.tooltip { - position: absolute; - z-index: 1070; - display: block; - visibility: visible; - font-size: 14px; - line-height: 1.4; - opacity: 0; - filter: alpha(opacity = 0); - &.in { - opacity: 0.9; - filter: alpha(opacity = 90); - } - &.top { - margin-top: -3px; - padding: 5px 0; - } - &.right { - margin-left: 3px; - padding: 0 5px; - } - &.bottom { - margin-top: 3px; - padding: 5px 0; - } - &.left { - margin-left: -3px; - padding: 0 5px; - } -} - -.tooltip-inner { - max-width: 200px; - padding: 3px 8px; - color: #ffffff; - text-align: center; - text-decoration: none; - background-color: #000000; - border-radius: 1px; -} - -.tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} - -.tooltip { - &.top .tooltip-arrow { - bottom: 0; - left: 50%; - margin-left: -5px; - border-width: 5px 5px 0; - border-top-color: #000000; - } - &.top-left .tooltip-arrow { - bottom: 0; - left: 5px; - border-width: 5px 5px 0; - border-top-color: #000000; - } - &.top-right .tooltip-arrow { - bottom: 0; - right: 5px; - border-width: 5px 5px 0; - border-top-color: #000000; - } - &.right .tooltip-arrow { - top: 50%; - left: 0; - margin-top: -5px; - border-width: 5px 5px 5px 0; - border-right-color: #000000; - } - &.left .tooltip-arrow { - top: 50%; - right: 0; - margin-top: -5px; - border-width: 5px 0 5px 5px; - border-left-color: #000000; - } - &.bottom .tooltip-arrow { - top: 0; - left: 50%; - margin-left: -5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; - } - &.bottom-left .tooltip-arrow { - top: 0; - left: 5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; - } - &.bottom-right .tooltip-arrow { - top: 0; - right: 5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; - } -} - -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: none; - max-width: 276px; - padding: 1px; - text-align: left; - background-color: #ffffff; - background-clip: padding-box; - border: 1px solid #cccccc; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 2px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - white-space: normal; - &.top { - margin-top: -10px; - } - &.right { - margin-left: 10px; - } - &.bottom { - margin-top: 10px; - } - &.left { - margin-left: -10px; - } -} - -.popover-title { - margin: 0; - padding: 8px 14px; - font-size: 16px; - font-weight: normal; - line-height: 18px; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-radius: 1px 1px 0 0; -} - -.popover-content { - padding: 9px 14px; -} - -.popover { - > .arrow { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; - &:after { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; - border-width: 10px; - content: ""; - } - border-width: 11px; - } - &.top > .arrow { - left: 50%; - margin-left: -11px; - border-bottom-width: 0; - border-top-color: #999999; - border-top-color: rgba(0, 0, 0, 0.25); - bottom: -11px; - &:after { - content: " "; - bottom: 1px; - margin-left: -10px; - border-bottom-width: 0; - border-top-color: #ffffff; - } - } - &.right > .arrow { - top: 50%; - left: -11px; - margin-top: -11px; - border-left-width: 0; - border-right-color: #999999; - border-right-color: rgba(0, 0, 0, 0.25); - &:after { - content: " "; - left: 1px; - bottom: -10px; - border-left-width: 0; - border-right-color: #ffffff; - } - } - &.bottom > .arrow { - left: 50%; - margin-left: -11px; - border-top-width: 0; - border-bottom-color: #999999; - border-bottom-color: rgba(0, 0, 0, 0.25); - top: -11px; - &:after { - content: " "; - top: 1px; - margin-left: -10px; - border-top-width: 0; - border-bottom-color: #ffffff; - } - } - &.left > .arrow { - top: 50%; - right: -11px; - margin-top: -11px; - border-right-width: 0; - border-left-color: #999999; - border-left-color: rgba(0, 0, 0, 0.25); - &:after { - content: " "; - right: 1px; - border-right-width: 0; - border-left-color: #ffffff; - bottom: -10px; - } - } -} - -.carousel { - position: relative; -} - -.carousel-inner { - position: relative; - overflow: hidden; - width: 100%; - > { - .item { - display: none; - position: relative; - -webkit-transition: 0.6s ease-in-out left; - -o-transition: 0.6s ease-in-out left; - transition: 0.6s ease-in-out left; - > { - img, a > img { - line-height: 1; - } - } - } - .active, .next, .prev { - display: block; - } - .active { - left: 0; - } - .next, .prev { - position: absolute; - top: 0; - width: 100%; - } - .next { - left: 100%; - } - .prev { - left: -100%; - } - .next.left, .prev.right { - left: 0; - } - .active { - &.left { - left: -100%; - } - &.right { - left: 100%; - } - } - } -} - -.carousel-control { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 15%; - opacity: 0.5; - filter: alpha(opacity = 50); - font-size: 20px; - color: #ffffff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); - &.left { - background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); - } - &.right { - left: auto; - right: 0; - background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); - } - &:hover, &:focus { - outline: 0; - color: #ffffff; - text-decoration: none; - opacity: 0.9; - filter: alpha(opacity = 90); - } - .icon-prev, .icon-next, .glyphicon-chevron-left, .glyphicon-chevron-right { - position: absolute; - top: 50%; - z-index: 5; - display: inline-block; - } - .icon-prev, .glyphicon-chevron-left { - left: 50%; - margin-left: -10px; - } - .icon-next, .glyphicon-chevron-right { - right: 50%; - margin-right: -10px; - } - .icon-prev, .icon-next { - width: 20px; - height: 20px; - margin-top: -10px; - font-family: serif; - } - .icon-prev:before { - content: '\2039'; - } - .icon-next:before { - content: '\203a'; - } -} - -.carousel-indicators { - position: absolute; - bottom: 10px; - left: 50%; - z-index: 15; - width: 60%; - margin-left: -30%; - padding-left: 0; - list-style: none; - text-align: center; - li { - display: inline-block; - width: 10px; - height: 10px; - margin: 1px; - text-indent: -999px; - border: 1px solid #ffffff; - border-radius: 10px; - cursor: pointer; - background-color: #000 \9; - background-color: rgba(0, 0, 0, 0); - } - .active { - margin: 0; - width: 12px; - height: 12px; - background-color: #ffffff; - } -} - -.carousel-caption { - position: absolute; - left: 15%; - right: 15%; - bottom: 20px; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #ffffff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); - .btn { - text-shadow: none; - } -} - -@media screen and (min-width: 768px) { - .carousel-control { - .glyphicon-chevron-left, .glyphicon-chevron-right, .icon-prev, .icon-next { - width: 30px; - height: 30px; - margin-top: -15px; - font-size: 30px; - } - .glyphicon-chevron-left, .icon-prev { - margin-left: -15px; - } - .glyphicon-chevron-right, .icon-next { - margin-right: -15px; - } - } - .carousel-caption { - left: 20%; - right: 20%; - padding-bottom: 30px; - } - .carousel-indicators { - bottom: 20px; - } -} - -.clearfix { - &:before, &:after { - content: " "; - display: table; - } -} - -.dl-horizontal dd { - &:before, &:after { - content: " "; - display: table; - } -} - -.container { - &:before, &:after { - content: " "; - display: table; - } -} - -.container-fluid { - &:before, &:after { - content: " "; - display: table; - } -} - -.row { - &:before, &:after { - content: " "; - display: table; - } -} - -.form-horizontal .form-group { - &:before, &:after { - content: " "; - display: table; - } -} - -.btn-toolbar { - &:before, &:after { - content: " "; - display: table; - } -} - -.btn-group-vertical > .btn-group { - &:before, &:after { - content: " "; - display: table; - } -} - -.nav { - &:before, &:after { - content: " "; - display: table; - } -} - -.navbar { - &:before, &:after { - content: " "; - display: table; - } -} - -.navbar-header { - &:before, &:after { - content: " "; - display: table; - } -} - -.navbar-collapse { - &:before, &:after { - content: " "; - display: table; - } -} - -.pager { - &:before, &:after { - content: " "; - display: table; - } -} - -.panel-body { - &:before, &:after { - content: " "; - display: table; - } -} - -.modal-footer { - &:before, &:after { - content: " "; - display: table; - } -} - -.clearfix:after, .dl-horizontal dd:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-footer:after { - clear: both; -} - -.center-block { - display: block; - margin-left: auto; - margin-right: auto; -} - -.pull-right { - float: right !important; -} - -.pull-left { - float: left !important; -} - -.hide { - display: none !important; -} - -.show { - display: block !important; -} - -.invisible { - visibility: hidden; -} - -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} - -.hidden { - display: none !important; - visibility: hidden !important; -} - -.affix { - position: fixed; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} - -@-ms-viewport { - width: device-width; -} - - -.visible-xs, .visible-sm, .visible-md, .visible-lg, .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-lg-block, .visible-lg-inline, .visible-lg-inline-block, .visible-print, .visible-print-block, .visible-print-inline, .visible-print-inline-block { - display: none !important; -} - -@media (max-width: 767px) { - .visible-xs { - display: block !important; - } - table.visible-xs { - display: table; - } - tr.visible-xs { - display: table-row !important; - } - th.visible-xs, td.visible-xs { - display: table-cell !important; - } -} - -@media (max-width: 767px) { - .visible-xs-block { - display: block !important; - } -} - -@media (max-width: 767px) { - .visible-xs-inline { - display: inline !important; - } -} - -@media (max-width: 767px) { - .visible-xs-inline-block { - display: inline-block !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm { - display: block !important; - } - table.visible-sm { - display: table; - } - tr.visible-sm { - display: table-row !important; - } - th.visible-sm, td.visible-sm { - display: table-cell !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-block { - display: block !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-inline { - display: inline !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-inline-block { - display: inline-block !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .visible-md { - display: block !important; - } - table.visible-md { - display: table; - } - tr.visible-md { - display: table-row !important; - } - th.visible-md, td.visible-md { - display: table-cell !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .visible-md-block { - display: block !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .visible-md-inline { - display: inline !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .visible-md-inline-block { - display: inline-block !important; - } -} - -@media (min-width: 1240px) { - .visible-lg { - display: block !important; - } - table.visible-lg { - display: table; - } - tr.visible-lg { - display: table-row !important; - } - th.visible-lg, td.visible-lg { - display: table-cell !important; - } -} - -@media (min-width: 1240px) { - .visible-lg-block { - display: block !important; - } -} - -@media (min-width: 1240px) { - .visible-lg-inline { - display: inline !important; - } -} - -@media (min-width: 1240px) { - .visible-lg-inline-block { - display: inline-block !important; - } -} - -@media (max-width: 767px) { - .hidden-xs { - display: none !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .hidden-sm { - display: none !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .hidden-md { - display: none !important; - } -} - -@media (min-width: 1240px) { - .hidden-lg { - display: none !important; - } -} - -@media print { - .visible-print { - display: block !important; - } - table.visible-print { - display: table; - } - tr.visible-print { - display: table-row !important; - } - th.visible-print, td.visible-print { - display: table-cell !important; - } -} - -@media print { - .visible-print-block { - display: block !important; - } -} - -@media print { - .visible-print-inline { - display: inline !important; - } -} - -@media print { - .visible-print-inline-block { - display: inline-block !important; - } -} - -@media print { - .hidden-print { - display: none !important; - } -} - -@font-face { - font-family: 'Lato Light'; - src: url('../Fonts/lato-light-webfont.eot'); - src: url('../Fonts/lato-light-webfont.eot?#iefix') format("embedded-opentype"), url('../Fonts/lato-light-webfont.woff') format("woff"), url('../Fonts/lato-light-webfont.ttf') format("truetype"), url('../Fonts/lato-light-webfont.svg#latolight') format("svg"); - font-weight: normal; - font-style: normal; -} - - -@font-face { - font-family: 'Lato'; - src: url('../Fonts/lato-regular-webfont.eot'); - src: url('../Fonts/lato-regular-webfont.eot?#iefix') format("embedded-opentype"), url('../Fonts/lato-regular-webfont.woff') format("woff"), url('../Fonts/lato-regular-webfont.ttf') format("truetype"), url('../Fonts/lato-regular-webfont.svg#latoregular') format("svg"); - font-weight: normal; - font-style: normal; -} - - -.btn-ancillary { - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; - &:hover, &:focus, &:active, &.active { - color: #ffffff; - background-color: #333333; - border-color: #2e2e2e; - } -} - -.open > .dropdown-toggle.btn-ancillary { - color: #ffffff; - background-color: #333333; - border-color: #2e2e2e; -} - -.btn-ancillary { - &:active, &.active { - background-image: none; - } -} - -.open > .dropdown-toggle.btn-ancillary { - background-image: none; -} - -.btn-ancillary { - &.disabled, &[disabled] { - background-color: #4d4d4d; - border-color: #4d4d4d; - } -} - -fieldset[disabled] .btn-ancillary { - background-color: #4d4d4d; - border-color: #4d4d4d; -} - -.btn-ancillary { - &.disabled:hover, &[disabled]:hover { - background-color: #4d4d4d; - border-color: #4d4d4d; - } -} - -fieldset[disabled] .btn-ancillary:hover { - background-color: #4d4d4d; - border-color: #4d4d4d; -} - -.btn-ancillary { - &.disabled:focus, &[disabled]:focus { - background-color: #4d4d4d; - border-color: #4d4d4d; - } -} - -fieldset[disabled] .btn-ancillary:focus { - background-color: #4d4d4d; - border-color: #4d4d4d; -} - -.btn-ancillary { - &.disabled:active, &[disabled]:active { - background-color: #4d4d4d; - border-color: #4d4d4d; - } -} - -fieldset[disabled] .btn-ancillary:active { - background-color: #4d4d4d; - border-color: #4d4d4d; -} - -.btn-ancillary { - &.disabled.active, &[disabled].active { - background-color: #4d4d4d; - border-color: #4d4d4d; - } -} - -fieldset[disabled] .btn-ancillary.active { - background-color: #4d4d4d; - border-color: #4d4d4d; -} - -.btn-ancillary { - .badge { - color: #4d4d4d; - background-color: #ffffff; - } - &:hover, &:focus, &:active, &.active { - background-color: #262626; - border-color: #262626; - } -} - -body.Modal { - background-color: #ffffff; - /* width: 98%; */ -} - -#HeaderArea, #HeaderContainer { - background-color: #1a1a1a; - min-height: 85px; -} - -#HeaderArea { - border-bottom: 1px solid #cccccc; - .Site-Name, .Page-Title-Area { - min-height: 84px; - } - .Site-Name h1, .Page-Title-Area h1, .Site-Name h2, .Page-Title-Area h2, .Site-Name h3, .Page-Title-Area h3, .Site-Name h4, .Page-Title-Area h4, .Site-Name h5, .Page-Title-Area h5, .Site-Name h6, .Page-Title-Area h6 { - line-height: 41px; - margin: 0; - } - .Site-Name { - background-color: #ef4a24; - min-height: 95px; - border: 1px solid #cccccc; - border-top: 0 none transparent; - margin-bottom: -9px; - } - .Page-Title-Area { - background-color: #1a1a1a; - .Breadcrumbs { - font-size: 13px; - font-style: italic; - letter-spacing: 0.02em; - color: #cccccc; - padding-top: 9px; - margin-bottom: -3px; - margin-left: 3px; - } - } - .Site-Name h1, h2.Page-Title { - font-family: 'Lato Light', Helvetica, Arial, sans-serif; - font-size: 34px; - color: #ffffff; - padding-top: 25px; - } - .Site-Name h1 { - margin-left: -2px; - } - h2.Page-Title { - margin-left: 3px; - } -} - -select { - font-size: 14px; - color: #666666; - padding: 3px 5px; - option { - margin-bottom: 3px; - } -} - -.Sidebar { - padding-right: 0; - padding-left: 0; - #TreeView { - margin: 45px 1px 0 -1px; - &:before { - content: " "; - display: table; - } - &:after { - content: " "; - display: table; - clear: both; - } - &:before { - content: " "; - display: table; - } - &:after { - content: " "; - display: table; - clear: both; - } - } - .AddTopic, .Add-Topic { - margin-left: 1.3em; - } - select { - background-color: #eeeeee; - width: 95%; - border-radius: 2px; - } -} - -.Content-Container .Content { - &[class*="col-"] { - padding-right: 0; - padding-left: 0; - } - .Page-Content.Primary { - position: relative; - color: #333333; - } -} - -[id*="DynamicForm"] { - background-color: #333333; - padding-top: 50px; - .row { - &.Messages-Area, &.Form-Area { - margin: 0; - } - } - .Editor-Navbar { - width: 100%; - height: 50px; - background-color: #333333; - } - &#Modal_DynamicForm { - padding-top: 49px; - .row { - &.Toolbar-Area { - margin: 0; - } - &.Messages-Area { - padding-right: 5px; - padding-left: 5px; - } - } - div[class*="col-"] { - padding-right: 0; - padding-left: 0; - &.Form-Body { - padding-right: 15px; - padding-left: 15px; - } - } - .Editor-Navbar { - top: 0; - } - .Messages-Area { - .close, .alert-dismissable .close { - right: 0; - } - } - } - .Messages-Area, .Form-Area { - background-color: #ffffff; - } - .Messages-Area { - div { - &[class*="Error"], &[class*="alert"] { - font-size: 13px; - letter-spacing: 0.02em; - } - &[class*="Error"] { - margin: 10px 5px 0; - } - } - .alert { - margin: 10px 5px 0; - } - .Error.Messaging font { - margin: 10px 5px 0; - background-color: #f0dcd8; - border-color: #e9c6c6; - color: #d63510; - display: block; - color: #d63510 !important; - padding: 10px; - border: 1px solid #e9c6c6; - margin: 0; - a { - cursor: pointer; - } - hr { - border-top-color: #e2b3b3; - } - .alert-link { - color: #a6290c; - } - ul { - list-style-type: square; - padding-left: 25px; - } - } - .alert { - padding: 10px; - a { - cursor: pointer; - } - } - .alert-dismissable .close { - right: 0; - font-size: 20px; - margin-top: 0; - } - } - .Actions.Top { - float: right; - padding: 0 8px; - margin-top: -2px; - button, input { - margin-left: 4px; - } - #VersionsDropdown { - .glyphicon { - margin-right: 2px; - } - .caret { - margin-left: 2px; - } - } - } - ul.nav-tabs { - padding-left: 15px; - border-bottom: 0 none transparent; - } - .nav-tabs > li { - margin-bottom: 0; - > a { - color: #cccccc; - border: 0 none transparent; - border-bottom: 8px solid transparent; - margin-right: 10px; - &:hover, &:active, &:focus { - color: #ffffff; - border-bottom-color: #cccccc; - } - } - &.active > a { - color: #ffffff; - border: 0 none transparent; - border-bottom: 8px solid #cccccc; - &:hover, &:focus { - color: #ffffff; - border: 0 none transparent; - border-bottom: 8px solid #cccccc; - } - } - } - label { - font-weight: normal; - } - input[type="text"] { - width: 100%; - max-width: 960px; - &.form-control { - border-radius: 2px; - } - } - ::-webkit-input-placeholder, :-moz-placeholder, ::-moz-placeholder, :-ms-input-placeholder { - color: #999; - } - input[type="radio"] + label { - font-size: 14px; - margin: 0 3px; - } - select { - padding: 3px 5px; - border-radius: 2px; - option { - font-size: 14px; - margin-bottom: 3px; - } - } - .Radio-Buttons li { - display: inline-block; - } - input[class*="Error"] { - border-color: #ef4a24; - &:focus { - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; - } - } - .Last-Modified { - font-size: 14px; - color: #4d4d4d; - } - [id*="DisplayGroupTabsContent"] { - width: 100%; - padding: 0; - .Group-Item { - margin-bottom: 20px; - } - .Content-Heading { - margin-bottom: 5px; - .Content-Description { - position: relative; - font-size: 16px; - color: #959595; - text-decoration: none; - top: 2px; - left: 3px; - padding: 2px 5.5px 1px; - cursor: pointer; - } - .tooltip { - .tooltip-arrow { - border-right-color: #1a1a1a; - } - .tooltip-inner { - background-color: #1a1a1a; - max-width: 550px; - font-size: 14px; - color: #eeeeee; - text-align: left; - padding: 5px 10px; - } - } - } - .tab-pane { - background-color: #ffffff; - padding: 20px 5px; - overflow: auto; - } - } - .Callout-Area { - background-color: #ffffff; - padding: 20px 5px 20px 0; - #FixedCallouts { - position: absolute; - background-color: transparent; - width: 100%; - right: -20px; - } - .Callout { - width: 100%; - &.Page-Info { - position: fixed; - background-color: #ffffff; - width: 16%; - max-width: 214px; - padding: 15px; - border: 1px solid #cccccc; - z-index: 0; - h3, dt, dd { - color: #666666; - } - h3 { - font-family: 'Lato Light', Helvetica, Arial, sans-serif; - margin-top: 0; - } - dl { - font-size: 13px; - line-height: 18px; - margin-bottom: -13px; - dt { - font-weight: normal; - .fa { - width: 1em; - margin-right: 5px; - } - } - dd { - margin-left: 1.7em; - margin-bottom: 8px; - } - } - } - } - } -} - -[id*="EditorModal"] { - .modal-header { - background-color: #1a1a1a; - padding: 20px; - border-bottom-color: #cccccc; - .Page-Title { - font-family: 'Lato Light', Helvetica, Arial, sans-serif; - color: #ffffff; - margin: 0; - } - } - .modal-content { - background-color: #333333; - } - iframe { - display: block; - vertical-align: bottom; - } -} - -select[id*="ThemeColor"] option { - &[value*="ThemeColor"], &[selected="selected"] { - color: #ffffff; - line-height: 1.6em; - } - &[value*="ThemeColor"][value*="Blue"], &[selected="selected"][value*="Blue"] { - background-color: #02A3E0; - } - &[value*="ThemeColor"][value*="Orange"], &[selected="selected"][value*="Orange"] { - background-color: #FF9E1A; - } - &[value*="ThemeColor"][value*="Green"], &[selected="selected"][value*="Green"] { - background-color: #029A17; - } - &[value*="ThemeColor"][value*="Purple"], &[selected="selected"][value*="Purple"] { - background-color: #9F5EB5; - } - &[value*="ThemeColor"][value*="Red"], &[selected="selected"][value*="Red"] { - background-color: #E30046; - } -} - -@media screen and (max-width: 1024px) { - .Sidebar { - .AddTopic, .Add-Topic { - margin-left: 0.5em; - } - } -} - -@media (min-width: 768px) { - .modal-dialog { - min-width: 700px; - width: 720px; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - [id*="DynamicForm"] .Callout-Area #FixedCallouts { - position: relative; - right: 0; - .Callout.Page-Info { - position: relative; - top: -30px; - left: 20px; - width: 50%; - } - } -} - -/* OVERRIDE NON-SELECTABLE NAV LINKS FOR IE9 */ - -.x-tree-arrows { - .x-tree-elbow-plus, .x-tree-elbow-minus { - -moz-user-select: all !important; - -khtml-user-select: all !important; - -webkit-user-select: all !important; - -ms-user-select: all !important; - } -} - -.x-unselectable { - -moz-user-select: all !important; - -khtml-user-select: all !important; - -webkit-user-select: all !important; - -ms-user-select: all !important; - * { - -moz-user-select: all !important; - -khtml-user-select: all !important; - -webkit-user-select: all !important; - -ms-user-select: all !important; - } -} - -.x-tree-arrows { - .x-tree-elbow-minus, .x-tree-elbow-plus, .x-tree-elbow-end-plus, .x-tree-elbow-end-minus { - background-image: url('/!Admin/Topics/Images/Navigation/Arrows.png'); - background-repeat: no-repeat; - background-position: 4px 0; - } - .x-tree-elbow, .x-tree-elbow-end { - background-image: url('/!Admin/Topics/Images/Navigation/Dashes.png'); - background-repeat: no-repeat; - background-position: 3px 4px; - } -} - -.x-tree-node-collapsed .x-tree-node-icon, .x-tree-node-expanded .x-tree-node-icon, .x-tree-node-leaf .x-tree-node-icon { - display: none; - background-image: none; -} - -.x-tree-root-node > .x-tree-node { - padding-left: 3px; -} - -.x-tree-node { - font-size: 14px; - white-space: normal; - padding: 1px 0; - x-tree-selected, .x-tree-node-over { - background-color: transparent; - } - .x-tree-node-el { - overflow: hidden; - white-space: nowrap; - line-height: normal; - color: #cccccc; - text-overflow: ellipsis; - padding: 0 5px 0 3px; - border: 1px solid transparent; - .x-tree-node-indent { - display: inline-block; - margin-right: 5px; - margin-left: 0; - } - &.x-tree-node-expanded { - .x-tree-elbow-minus, .x-tree-elbow-end-minus { - background-position: -50px 0; - margin-right: -2px; - margin-left: 1px; - } - } - &.x-tree-selected .x-tree-elbow-plus, &.x-tree-node-over .x-tree-elbow-plus { - background-position: -31px 0; - } - &.x-tree-selected .x-tree-elbow-minus, &.x-tree-node-over .x-tree-elbow-minus, &.x-tree-selected .x-tree-elbow-end-minus, &.x-tree-node-over .x-tree-elbow-end-minus { - background-position: -16px 0; - } - &.x-tree-selected .x-tree-elbow, &.x-tree-node-over .x-tree-elbow, &.x-tree-selected .x-tree-elbow-end, &.x-tree-node-over .x-tree-elbow-end { - background-position: -11px 4px; - } - &.x-tree-selected a, &.x-tree-node-over a { - text-decoration: none !important; - } - &.x-tree-selected a span, &.x-tree-node-over a span { - color: #ffffff; - } - &.x-tree-selected { - background-color: transparent; - } - .x-tree-node-ct { - display: block; - overflow: visible; - padding: 1px 0; - margin-left: 0; - .x-tree-ec-icon .x-tree-elbow-plus { - background-position: 4px 0; - } - } - a { - &.x-tree-node-anchor { - padding-right: 5px; - padding-left: 5px; - } - span { - font-family: 'Lato', Helvetica, Arial, sans-serif; - font-size: 13px; - letter-spacing: 0.02em; - color: #cccccc; - } - } - } -} - -#DisplayGroupTabsContent, -#Modal_DisplayGroupTabsContent { - .x-tree-root-ct { - margin: 0 0 5px; - .x-tree-node-indent:before { - color: #666666; - } - .x-tree-node .x-tree-node-el { - padding: 0 0 5px 0; - &.x-tree-selected, &.x-tree-node-over { - background-color: transparent; - border-color: transparent; - } - &.x-tree-selected .x-tree-node-indent:before, &.x-tree-node-over .x-tree-node-indent:before { - color: #ef4a24; - } - &.x-tree-selected a span, &.x-tree-node-over a span, a span { - color: #333333; - } - input[type="checkbox"] { - margin: 0 0 0 3px; - } - } - } - .cke_chrome { - width: 100%; - max-width: 960px; - padding: 0; - border: 0 none transparent; - .cke_inner { - background: #DEDEDE; - border-radius: 0; - } - .cke_editable { - font-size: 14px; - padding: 10px; - ul, ol { - padding-left: 25px; - } - ul { - list-style-type: square; - } - ol { - list-style-type: decimal; - } - } - } -} - -ul.token-input-list { - display: block; - width: 100%; - height: 36px; - padding: 6px 12px; - font-size: 16px; - line-height: 1.42857143; - color: #4d4d4d; - background-color: #ffffff; - background-image: none; - border: 1px solid #cccccc; - border-radius: 1px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - height: 33px; - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; - position: relative; - line-height: 115%; - padding: 2px 0; - border-radius: 2px; - &:focus { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); - } - &::-moz-placeholder { - color: #666666; - opacity: 1; - } - &:-ms-input-placeholder, &::-webkit-input-placeholder { - color: #666666; - } - &[disabled], &[readonly] { - cursor: not-allowed; - background-color: #cccccc; - opacity: 1; - } -} - -fieldset[disabled] ul.token-input-list { - cursor: not-allowed; - background-color: #cccccc; - opacity: 1; -} - -textarea ul.token-input-list { - height: auto; -} - -select ul.token-input-list { - height: 33px; - line-height: 33px; -} - -textarea ul.token-input-list, select[multiple] { - height: auto; -} - -ul.token-input-list { - height: auto; - &.token-input-focused { - border-color: #66afe9; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; - } - li { - display: inline-block; - padding: 3px 7px; - margin: 3px 1px 0 4px; - input[type="text"] { - font-family: 'Lato', Helvetica, Arial, sans-serif; - height: 19px; - line-height: 21px; - padding: 0; - } - &.token-input-token { - background-color: #CEE7F2; - p, span { - display: inline-block; - } - p { - font-family: 'Lato', Helvetica, Arial, sans-serif; - font-weight: normal; - color: #4d4d4d; - margin-right: 5px; - } - span.token-input-delete-token { - position: relative; - top: -1px; - color: #959595; - } - ~ li.token-input-input-token { - position: absolute; - bottom: 2px; - padding-top: 1px; - padding-bottom: 4px; - margin-left: -1px; - } - } - } -} - -div.token-input-dropdown { - p { - font-family: 'Lato', Helvetica, Arial, sans-serif; - font-weight: normal; - } - ul li { - color: #4d4d4d; - &.token-input-dropdown-item { - background-color: #EEE; - } - &.token-input-selected-dropdown-item { - background-color: #D4EFFA; - } - .Breadcrumbs { - color: #666666; - } - em { - font-weight: normal; - } - } -} \ No newline at end of file +//============================================================================================== +// STYLE +//---------------------------------------------------------------------------------------------- +// Primary entry point for application. Imports all other manifest files, including variables. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORT VARIABLES +//---------------------------------------------------------------------------------------------- +// NOTE: When possible, all changes should be made to variables. Only when that is not practical +// should changes be made elsewhere. +//---------------------------------------------------------------------------------------------- +@import "variables"; + +//---------------------------------------------------------------------------------------------- +// IMPORT EXTERNAL LIBRARIES +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// IMPORT OTHER MANIFESTS +//---------------------------------------------------------------------------------------------- +@import "Helpers/mixins"; +@import "Base/base"; +@import "Layout/layout"; +@import "Components/components"; +@import "Views/views"; +@import "Overrides/overrides"; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss new file mode 100644 index 00000000..27ed0eec --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss @@ -0,0 +1,46 @@ +//============================================================================================== +// VARIABLES +//---------------------------------------------------------------------------------------------- +// Primary customization point for making expected modifications to the site. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// COLORS +//---------------------------------------------------------------------------------------------- + +// Base / palette colors +$black : rgb(0, 0, 0); // #000000 +$black-light : rgb(26, 26, 26); // #1A1A1A +$white : rgb(255, 255, 255); // #FFFFFF +$grey-dark : rgb(51, 51, 51); // #333333 +$grey-medium : rgb(102, 102, 102); // #666666 +$grey-light : rgb(149, 149, 149); // #959595 +$grey-lighter : rgb(204, 204, 204); // #CCCCCC +$red : rgb(239, 74, 36); // #EF4A24 +$blue : rgb(8, 114, 163); // #0872A3 + +// Text +$text-color : $grey-dark; +$link-color : $blue; + +// UI elements +$button-primary : $blue; + +//---------------------------------------------------------------------------------------------- +// TYPOGRAPHY +//---------------------------------------------------------------------------------------------- +$base-font-family : 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; +$heading-font-family : $base-font-family; +$heading-font-weight : 300; + +//---------------------------------------------------------------------------------------------- +// BASE/GENERAL +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// LAYOUT +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// COMPONENTS +//---------------------------------------------------------------------------------------------- From 634b68728c8b0bb1e7b60e2e9c588b10df73c2c6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 10 Oct 2017 16:12:34 -0700 Subject: [PATCH 099/637] Grouped attributes by `DisplayGroup` This establishes the basic structure for sorting the attributes by tabs. --- .../Areas/Editor/Views/Editor/Index.cshtml | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index 5f364237..0db2ae57 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -8,16 +8,33 @@ @using (Html.BeginForm()) { - for (int i = 0; i < Model.ContentType.SupportedAttributes.Count; i++) { - var attribute = Model.ContentType.SupportedAttributes[i]; - var attributeViewModel = new AttributeViewModel(attribute, Model.Topic, Model.TopicRepository); - var type = attribute.Type.Replace(".ascx", ""); + foreach (string category in Model.ContentType.SupportedAttributes.Select(a => a.DisplayGroup).Distinct()) { - if (attribute.Attributes.GetValue("IsHidden", "0").Equals("1")) { - continue; - } + var supportedAttributes = Model.ContentType.SupportedAttributes.Where(a => a.DisplayGroup.Equals(category)); - @Html.EditorFor(m => attributeViewModel, type, "Attributes[" + i + "]") +
    + +
    +

    @category

    +
    + +
    + @for (int i = 0; i < supportedAttributes.Count(); i++) { + + var attribute = supportedAttributes.ElementAt(i); + var attributeViewModel = new AttributeViewModel(attribute, Model.Topic, Model.TopicRepository); + var type = attribute.Type.Replace(".ascx", ""); + + if (attribute.Attributes.GetValue("IsHidden", "0").Equals("1")) { + continue; + } + + @Html.EditorFor(m => attributeViewModel, type, "Attributes[" + i + "]") + + } +
    + +
    } From ae5fdeef8873f420629fd0b9be69bdf3d91fdbd3 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 11 Oct 2017 07:28:25 -0700 Subject: [PATCH 100/637] Added heading selector styles --- .../Areas/Editor/Shared/Styles/Base/_typography.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss index 98d2a240..1d423af9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss @@ -28,13 +28,20 @@ ul { // HEADINGS //---------------------------------------------------------------------------------------------- h1, +.h1, h2, +.h2, h3, +.h3, h4, +.h4, h5, -h6 { +.h5, +h6, +.h6 { margin-bottom : 0; font-weight : $heading-font-weight; + line-height : 1.1; } //---------------------------------------------------------------------------------------------- From cd5bc952e78ad30894feef26f5e26c5b0bfad723 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 11 Oct 2017 07:28:36 -0700 Subject: [PATCH 101/637] Added basic link treatment --- .../Areas/Editor/Shared/Styles/Base/_links.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss index ca21f453..bc7a84dc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss @@ -4,9 +4,22 @@ // Defines common styles for linked elements. //============================================================================================== +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import "../variables"; + //---------------------------------------------------------------------------------------------- // GLOBAL //---------------------------------------------------------------------------------------------- +a { + color : $blue; + &:hover, + &:focus, + &:active { + color : rgb(7, 97, 139); // #07618B + } +} //---------------------------------------------------------------------------------------------- // CONTENT AREA From bfe5ea64a8d8a851be79d7e0887e667be62a801b Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 11 Oct 2017 07:48:55 -0700 Subject: [PATCH 102/637] Incorporated fixed header styles --- .../Areas/Editor/Shared/Styles/Base/_base.scss | 16 ++++++++++++++++ .../Editor/Shared/Styles/Base/_typography.scss | 14 ++++++++++++++ .../Editor/Shared/Styles/Layout/_layout.scss | 12 ++++++++++-- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss index 6de968f9..3f07f011 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss @@ -16,6 +16,22 @@ @import "buttons"; @import "utilities"; +//---------------------------------------------------------------------------------------------- +// HEADER AREA ELEMENTS +//---------------------------------------------------------------------------------------------- +.navbar-fixed-top, +.Header { + background-color : $black-light; +} +.navbar-fixed-top { + border-bottom : 1px solid $grey-lighter; + .Site-Name { + border : 1px solid $grey-lighter; + border-top : 0 none transparent; + background-color : $red; + } +} + //---------------------------------------------------------------------------------------------- // MAIN CONTENT AREA ELEMENTS //---------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss index 1d423af9..29522fa4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss @@ -43,6 +43,20 @@ h6, font-weight : $heading-font-weight; line-height : 1.1; } +.Site-Name h1, +.Page-Title-Area h2 { + margin : 0; + padding-top : 25px; + font-size : rem-calc(34); + line-height : 41px; + color : $white; +} +.Site-Name h1 { + margin-left : -2px; +} +h2.Page-Title { + margin-left : 3px; +} //---------------------------------------------------------------------------------------------- // GLOBAL CLASSES diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss index 6b75d0a3..72592f8a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss @@ -36,8 +36,16 @@ body { //---------------------------------------------------------------------------------------------- // HEADER //---------------------------------------------------------------------------------------------- -#SiteHeader { - +#HeaderArea, #HeaderContainer { + min-height : 85px; + .Site-Name, + .Page-Title-Area { + min-height : 84px; + } + .Site-Name { + margin-bottom : -9px; + min-height : 95px; + } } //---------------------------------------------------------------------------------------------- From 3936b256611d1de866b595220a9de382857541f6 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 11 Oct 2017 09:31:18 -0700 Subject: [PATCH 103/637] Folder and Content includes for Sass files --- .../Ignia.Topics.Editor.Mvc.csproj | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 49996408..3955583c 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -169,6 +169,7 @@ + @@ -285,6 +286,10 @@ + + + + @@ -329,6 +334,16 @@ + + + + + + + + + + From d5e5e8ddc75dfcd052ebc176a6416a3b61466eef Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 11 Oct 2017 09:32:17 -0700 Subject: [PATCH 104/637] Simplified / cleaned up layout markup --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 66 +++++++++---------- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 5fb1886a..875a9f66 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -1,5 +1,5 @@  - + @@ -31,38 +31,34 @@ + - + - + + @RenderSection("scripts", required: false) From 2a7d99920a64d715eac292cfaf825cdf7f91b3aa Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 09:22:08 -0700 Subject: [PATCH 115/637] Updated toolbar width calculation to use new element IDs --- .../Areas/Editor/Shared/Scripts/Window.Primary.Functions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js index 641fe2cd..43eae847 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js @@ -16,8 +16,8 @@ $(function() { }); // Set editor tabs bar width (tabs + action buttons) - var $dynamicFormWidth = $('div[id*="FormArea"]').width(); - var $editorNavBar = $('#DynamicForm div.Editor-Navbar'); + var $dynamicFormWidth = $('#PageContentArea').width(); + var $editorNavBar = $('#Toolbar'); if ($editorNavBar) { $editorNavBar.css('width', $dynamicFormWidth + 'px').css('top', ($topBarHeight + 1) + 'px'); } @@ -25,7 +25,7 @@ $(function() { // Set body top padding (compensation for fixed top bar) based on initial screen size or adjustment $(window).resize(function() { setTimeout(function() { - $dynamicFormWidth = $('div[id*="DynamicForm"]').width(); + $dynamicFormWidth = $('#PageContentArea').width(); $editorNavBar.css('width', $dynamicFormWidth + 'px').css('top', ($topBarHeight + 1) + 'px'); }, 50); }); From 19fc29e85b0af0344bcf20a5ed35c85f4003ef1a Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 09:34:18 -0700 Subject: [PATCH 116/637] Removed unnecessary submit button --- .../Areas/Editor/Shared/Scripts/Window.Primary.Functions.js | 4 ++-- .../Areas/Editor/Views/Editor/Index.cshtml | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js index 43eae847..ce89d2f2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js @@ -37,9 +37,9 @@ $(function() { }); // Set height for form area - var $formAreaOffset = $('#FormArea').offset(); + var $formAreaOffset = $('#DisplayGroupTabsContent').offset(); if ($formAreaOffset) { - $('#FormArea').css('min-height', ($windowHeight - $formAreaOffset.top) + 'px'); + $('#DisplayGroupTabsContent').css('min-height', ($windowHeight - $formAreaOffset.top) + 'px'); }; }); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index 9946d658..466fe6d8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -39,6 +39,4 @@ } - - } \ No newline at end of file From fd1995e8044e34b942327351c629a0297dcbc5ac Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 09:34:55 -0700 Subject: [PATCH 117/637] Updatead layout for main content and editor toolbar --- .../Areas/Editor/Shared/Styles/Layout/_layout.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss index 209cf776..19e76567 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss @@ -71,4 +71,13 @@ body { // PRIMARY CONTENT AREA //---------------------------------------------------------------------------------------------- #MainContentArea { + #PageContentArea { + margin : 0 -15px; + padding : 50px 0 0; + } + #Toolbar { + z-index : 50; + position : fixed; + padding-top : 10px; + } } From 7f1f8b9d6931b4b8fde0b03ed747b149448ca7fd Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 09:36:14 -0700 Subject: [PATCH 118/637] Added treatments for tab navigation and content panels --- .../Editor/Shared/Styles/Base/_base.scss | 1 + .../Editor/Shared/Styles/Base/_tabs.scss | 52 +++++++++++++++++++ .../Areas/Editor/Shared/Styles/Style.css | 35 +++++++++++++ .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- 4 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss index 6106f416..0432f49f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss @@ -14,6 +14,7 @@ @import "links"; @import "icons"; @import "buttons"; +@import "tabs"; @import "utilities"; //---------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss new file mode 100644 index 00000000..15f093dc --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss @@ -0,0 +1,52 @@ +//============================================================================================== +// TABS (AND TAB PANELS) +//---------------------------------------------------------------------------------------------- +// Extends or overrides Bootstrap styles for tab-based navigation and tab content panels. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import '../variables'; + +//---------------------------------------------------------------------------------------------- +// TAB NAVIGATION +//---------------------------------------------------------------------------------------------- +.nav-tabs { + border-bottom : 0 none transparent; + padding-left : 15px; + > .nav-item { + margin-bottom : 0; + .nav-link { + margin-right : 10px; + border : 0 none transparent; + border-bottom : 8px solid transparent; + padding : 5px; + color : $grey-lighter; + &:hover, + &:focus, + &:active { + border-bottom-color : $grey-lighter; + color : $white; + } + &.active { + border-bottom-color : $grey-lighter; + color : $white; + background-color : transparent; + &:hover, + &:focus { + border-bottom-color : $grey-lighter; + color : $white; + background-color : transparent; + } + } + } + } +} + +//---------------------------------------------------------------------------------------------- +// TAB PANELS +//---------------------------------------------------------------------------------------------- +.tab-content { + background-color : $white; +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index 6dc094cf..2eb7e4aa 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -143,6 +143,32 @@ a { a:hover, a:focus, a:active { color: #07618b; } +.nav-tabs { + border-bottom: 0 none transparent; + padding-left: 15px; } + .nav-tabs > .nav-item { + margin-bottom: 0; } + .nav-tabs > .nav-item .nav-link { + margin-right: 10px; + border: 0 none transparent; + border-bottom: 8px solid transparent; + padding: 5px; + color: #cccccc; } + .nav-tabs > .nav-item .nav-link:hover, .nav-tabs > .nav-item .nav-link:focus, .nav-tabs > .nav-item .nav-link:active { + border-bottom-color: #cccccc; + color: white; } + .nav-tabs > .nav-item .nav-link.active { + border-bottom-color: #cccccc; + color: white; + background-color: transparent; } + .nav-tabs > .nav-item .nav-link.active:hover, .nav-tabs > .nav-item .nav-link.active:focus { + border-bottom-color: #cccccc; + color: white; + background-color: transparent; } + +.tab-content { + background-color: white; } + .hidden { display: none; } @@ -202,3 +228,12 @@ body { #SiteHeader .page.title h1, #HeaderContainer .page.title h1 { margin-left: 3px; } + +#MainContentArea #PageContentArea { + margin: 0 -15px; + padding: 50px 0 0; } + +#MainContentArea #Toolbar { + z-index: 50; + position: fixed; + padding-top: 10px; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index e67a2765..bc4b4374 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{background-color:#fff}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea #PageContentArea{margin:0 -15px;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px} \ No newline at end of file From f6297384ffbd72af26bf09fbacaab7416967f308 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 11:46:31 -0700 Subject: [PATCH 119/637] Updated form area background treatment --- .../Areas/Editor/Shared/Styles/Base/_forms.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss index 9e45043d..6191904c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss @@ -12,6 +12,13 @@ // @import "../Vendor/RedCastor/awesome-foundation6-checkbox"; @import '../variables'; +//---------------------------------------------------------------------------------------------- +// GLOBAL +//---------------------------------------------------------------------------------------------- +.form { + background-color : $white; +} + //---------------------------------------------------------------------------------------------- // FIELDSET //---------------------------------------------------------------------------------------------- From 0a4dc2cf1adf0b3c2faa58305646158b71a8f3ff Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 11:46:44 -0700 Subject: [PATCH 120/637] Content include for tabs Sass --- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 07abb6d0..a69a858c 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -345,6 +345,7 @@ + From 48a2f6a4b5d95ca15584814c458293964d8aba41 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 11:48:43 -0700 Subject: [PATCH 121/637] Wrapped Attributes form in column Added column wrappers to accommodate Topic info panel. --- .../Areas/Editor/Views/Editor/Index.cshtml | 52 ++++++++++++------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index 466fe6d8..289bff17 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -8,35 +8,49 @@ @Html.Partial("_Toolbar") - int index = 0; -
    - @foreach (string category in Model.ContentType.SupportedAttributes.Select(a => a.DisplayGroup).Distinct()) { +
    +
    + @{int index = 0;} +
    + @foreach (string category in Model.ContentType.SupportedAttributes.Select(a => a.DisplayGroup).Distinct()) { - var supportedAttributes = Model.ContentType.SupportedAttributes.Where(a => a.DisplayGroup.Equals(category)); - var displayGroup = category.Replace(" ", ""); + var supportedAttributes = Model.ContentType.SupportedAttributes.Where(a => a.DisplayGroup.Equals(category)); + var displayGroup = category.Replace(" ", ""); -
    -
    +
    +
    - @for (int i = 0; i < supportedAttributes.Count(); i++) { + @for (int i = 0; i < supportedAttributes.Count(); i++) { - var attribute = supportedAttributes.ElementAt(i); - var attributeViewModel = new AttributeViewModel(attribute, Model.Topic, Model.TopicRepository); - var type = attribute.Type.Replace(".ascx", ""); + var attribute = supportedAttributes.ElementAt(i); + var attributeViewModel = new AttributeViewModel(attribute, Model.Topic, Model.TopicRepository); + var type = attribute.Type.Replace(".ascx", ""); - if (attribute.Attributes.GetValue("IsHidden", "0").Equals("1")) { - continue; - } + if (attribute.Attributes.GetValue("IsHidden", "0").Equals("1")) { + continue; + } - @Html.EditorFor(m => attributeViewModel, type, "Attributes[" + i + "]") + @Html.EditorFor(m => attributeViewModel, type, "Attributes[" + i + "]") - } + } -
    +
    +
    + + index++; + }
    - index++; - } +
    +
    +} + +@section scripts { + } \ No newline at end of file From 015b83ced62aa27fcfa75a35dca2069b62b666f4 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 11:49:09 -0700 Subject: [PATCH 122/637] Converted Description to tooltip --- .../Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml index 6bc10fa8..f1ddd65c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml @@ -5,8 +5,7 @@
    @Html.LabelFor(m => m.Value, Model.Definition.Title) -

    @Model.Definition.Description

    - +
    @Html.HiddenFor(m => m.Definition.Type) From c8d3e8a178527d92d5013beae46ba0246d0c6942 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 11:49:50 -0700 Subject: [PATCH 123/637] Fixed layout positioning for primary content area --- .../Editor/Shared/Styles/Layout/_layout.scss | 2 +- .../Areas/Editor/Shared/Styles/Site.css | 8441 +++++++++++++++++ 2 files changed, 8442 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss index 19e76567..b75cb2e6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss @@ -72,7 +72,7 @@ body { //---------------------------------------------------------------------------------------------- #MainContentArea { #PageContentArea { - margin : 0 -15px; + margin : 0; padding : 50px 0 0; } #Toolbar { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.css new file mode 100644 index 00000000..6792400f --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.css @@ -0,0 +1,8441 @@ +@import "Vendor/TokenInput/token-input.css"; +/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ +html { + font-family: sans-serif; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} + +body { + margin: 0; +} + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +summary { + display: block; +} + +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; +} + + audio:not([controls]) { + display: none; + height: 0; + } + +[hidden], +template { + display: none; +} + +a { + background: transparent; +} + + a:active, + a:hover { + outline: 0; + } + +abbr[title] { + border-bottom: 1px dotted; +} + +b, +strong { + font-weight: bold; +} + +dfn { + font-style: italic; +} + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +mark { + background: #ff0; + color: #000; +} + +small { + font-size: 80%; +} + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +img { + border: 0; +} + +svg:not(:root) { + overflow: hidden; +} + +figure { + margin: 1em 40px; +} + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +pre { + overflow: auto; +} + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +button, +input, +optgroup, +select, +textarea { + color: inherit; + font: inherit; + margin: 0; +} + +button { + overflow: visible; +} + +button, +select { + text-transform: none; +} + +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; +} + + button[disabled], + html input[disabled] { + cursor: default; + } + + button::-moz-focus-inner, + input::-moz-focus-inner { + border: 0; + padding: 0; + } + +input { + line-height: normal; +} + + input[type="checkbox"], + input[type="radio"] { + box-sizing: border-box; + padding: 0; + } + + input[type="number"]::-webkit-inner-spin-button, + input[type="number"]::-webkit-outer-spin-button { + height: auto; + } + + input[type="search"] { + -webkit-appearance: textfield; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; + } + + input[type="search"]::-webkit-search-cancel-button, + input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; + } + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +legend { + border: 0; + padding: 0; +} + +textarea { + overflow: auto; +} + +optgroup { + font-weight: bold; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} + +@media print { + * { + text-shadow: none !important; + color: #000 !important; + background: transparent !important; + box-shadow: none !important; + } + + a, + a:visited { + text-decoration: underline; + } + + a[href]:after { + content: " (" attr(href) ")"; + } + + abbr[title]:after { + content: " (" attr(title) ")"; + } + + a[href^="javascript:"]:after, + a[href^="#"]:after { + content: ""; + } + + pre, + blockquote { + border: 1px solid #999; + page-break-inside: avoid; + } + + thead { + display: table-header-group; + } + + tr, + img { + page-break-inside: avoid; + } + + img { + max-width: 100% !important; + } + + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + + h2, + h3 { + page-break-after: avoid; + } + + select { + background: #fff !important; + } + + .navbar { + display: none; + } + + .table td, + .table th { + background-color: #fff !important; + } + + .btn > .caret, + .dropup > .btn > .caret { + border-top-color: #000 !important; + } + + .label { + border: 1px solid #000; + } + + .table { + border-collapse: collapse !important; + } + + .table-bordered th, + .table-bordered td { + border: 1px solid #ddd !important; + } +} + +@font-face { + font-family: 'Glyphicons Halflings'; + src: url('../fonts/glyphicons-halflings-regular.eot'); + src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); +} + +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.glyphicon-asterisk:before { + content: "\2a"; +} + +.glyphicon-plus:before { + content: "\2b"; +} + +.glyphicon-euro:before { + content: "\20ac"; +} + +.glyphicon-minus:before { + content: "\2212"; +} + +.glyphicon-cloud:before { + content: "\2601"; +} + +.glyphicon-envelope:before { + content: "\2709"; +} + +.glyphicon-pencil:before { + content: "\270f"; +} + +.glyphicon-glass:before { + content: "\e001"; +} + +.glyphicon-music:before { + content: "\e002"; +} + +.glyphicon-search:before { + content: "\e003"; +} + +.glyphicon-heart:before { + content: "\e005"; +} + +.glyphicon-star:before { + content: "\e006"; +} + +.glyphicon-star-empty:before { + content: "\e007"; +} + +.glyphicon-user:before { + content: "\e008"; +} + +.glyphicon-film:before { + content: "\e009"; +} + +.glyphicon-th-large:before { + content: "\e010"; +} + +.glyphicon-th:before { + content: "\e011"; +} + +.glyphicon-th-list:before { + content: "\e012"; +} + +.glyphicon-ok:before { + content: "\e013"; +} + +.glyphicon-remove:before { + content: "\e014"; +} + +.glyphicon-zoom-in:before { + content: "\e015"; +} + +.glyphicon-zoom-out:before { + content: "\e016"; +} + +.glyphicon-off:before { + content: "\e017"; +} + +.glyphicon-signal:before { + content: "\e018"; +} + +.glyphicon-cog:before { + content: "\e019"; +} + +.glyphicon-trash:before { + content: "\e020"; +} + +.glyphicon-home:before { + content: "\e021"; +} + +.glyphicon-file:before { + content: "\e022"; +} + +.glyphicon-time:before { + content: "\e023"; +} + +.glyphicon-road:before { + content: "\e024"; +} + +.glyphicon-download-alt:before { + content: "\e025"; +} + +.glyphicon-download:before { + content: "\e026"; +} + +.glyphicon-upload:before { + content: "\e027"; +} + +.glyphicon-inbox:before { + content: "\e028"; +} + +.glyphicon-play-circle:before { + content: "\e029"; +} + +.glyphicon-repeat:before { + content: "\e030"; +} + +.glyphicon-refresh:before { + content: "\e031"; +} + +.glyphicon-list-alt:before { + content: "\e032"; +} + +.glyphicon-lock:before { + content: "\e033"; +} + +.glyphicon-flag:before { + content: "\e034"; +} + +.glyphicon-headphones:before { + content: "\e035"; +} + +.glyphicon-volume-off:before { + content: "\e036"; +} + +.glyphicon-volume-down:before { + content: "\e037"; +} + +.glyphicon-volume-up:before { + content: "\e038"; +} + +.glyphicon-qrcode:before { + content: "\e039"; +} + +.glyphicon-barcode:before { + content: "\e040"; +} + +.glyphicon-tag:before { + content: "\e041"; +} + +.glyphicon-tags:before { + content: "\e042"; +} + +.glyphicon-book:before { + content: "\e043"; +} + +.glyphicon-bookmark:before { + content: "\e044"; +} + +.glyphicon-print:before { + content: "\e045"; +} + +.glyphicon-camera:before { + content: "\e046"; +} + +.glyphicon-font:before { + content: "\e047"; +} + +.glyphicon-bold:before { + content: "\e048"; +} + +.glyphicon-italic:before { + content: "\e049"; +} + +.glyphicon-text-height:before { + content: "\e050"; +} + +.glyphicon-text-width:before { + content: "\e051"; +} + +.glyphicon-align-left:before { + content: "\e052"; +} + +.glyphicon-align-center:before { + content: "\e053"; +} + +.glyphicon-align-right:before { + content: "\e054"; +} + +.glyphicon-align-justify:before { + content: "\e055"; +} + +.glyphicon-list:before { + content: "\e056"; +} + +.glyphicon-indent-left:before { + content: "\e057"; +} + +.glyphicon-indent-right:before { + content: "\e058"; +} + +.glyphicon-facetime-video:before { + content: "\e059"; +} + +.glyphicon-picture:before { + content: "\e060"; +} + +.glyphicon-map-marker:before { + content: "\e062"; +} + +.glyphicon-adjust:before { + content: "\e063"; +} + +.glyphicon-tint:before { + content: "\e064"; +} + +.glyphicon-edit:before { + content: "\e065"; +} + +.glyphicon-share:before { + content: "\e066"; +} + +.glyphicon-check:before { + content: "\e067"; +} + +.glyphicon-move:before { + content: "\e068"; +} + +.glyphicon-step-backward:before { + content: "\e069"; +} + +.glyphicon-fast-backward:before { + content: "\e070"; +} + +.glyphicon-backward:before { + content: "\e071"; +} + +.glyphicon-play:before { + content: "\e072"; +} + +.glyphicon-pause:before { + content: "\e073"; +} + +.glyphicon-stop:before { + content: "\e074"; +} + +.glyphicon-forward:before { + content: "\e075"; +} + +.glyphicon-fast-forward:before { + content: "\e076"; +} + +.glyphicon-step-forward:before { + content: "\e077"; +} + +.glyphicon-eject:before { + content: "\e078"; +} + +.glyphicon-chevron-left:before { + content: "\e079"; +} + +.glyphicon-chevron-right:before { + content: "\e080"; +} + +.glyphicon-plus-sign:before { + content: "\e081"; +} + +.glyphicon-minus-sign:before { + content: "\e082"; +} + +.glyphicon-remove-sign:before { + content: "\e083"; +} + +.glyphicon-ok-sign:before { + content: "\e084"; +} + +.glyphicon-question-sign:before { + content: "\e085"; +} + +.glyphicon-info-sign:before { + content: "\e086"; +} + +.glyphicon-screenshot:before { + content: "\e087"; +} + +.glyphicon-remove-circle:before { + content: "\e088"; +} + +.glyphicon-ok-circle:before { + content: "\e089"; +} + +.glyphicon-ban-circle:before { + content: "\e090"; +} + +.glyphicon-arrow-left:before { + content: "\e091"; +} + +.glyphicon-arrow-right:before { + content: "\e092"; +} + +.glyphicon-arrow-up:before { + content: "\e093"; +} + +.glyphicon-arrow-down:before { + content: "\e094"; +} + +.glyphicon-share-alt:before { + content: "\e095"; +} + +.glyphicon-resize-full:before { + content: "\e096"; +} + +.glyphicon-resize-small:before { + content: "\e097"; +} + +.glyphicon-exclamation-sign:before { + content: "\e101"; +} + +.glyphicon-gift:before { + content: "\e102"; +} + +.glyphicon-leaf:before { + content: "\e103"; +} + +.glyphicon-fire:before { + content: "\e104"; +} + +.glyphicon-eye-open:before { + content: "\e105"; +} + +.glyphicon-eye-close:before { + content: "\e106"; +} + +.glyphicon-warning-sign:before { + content: "\e107"; +} + +.glyphicon-plane:before { + content: "\e108"; +} + +.glyphicon-calendar:before { + content: "\e109"; +} + +.glyphicon-random:before { + content: "\e110"; +} + +.glyphicon-comment:before { + content: "\e111"; +} + +.glyphicon-magnet:before { + content: "\e112"; +} + +.glyphicon-chevron-up:before { + content: "\e113"; +} + +.glyphicon-chevron-down:before { + content: "\e114"; +} + +.glyphicon-retweet:before { + content: "\e115"; +} + +.glyphicon-shopping-cart:before { + content: "\e116"; +} + +.glyphicon-folder-close:before { + content: "\e117"; +} + +.glyphicon-folder-open:before { + content: "\e118"; +} + +.glyphicon-resize-vertical:before { + content: "\e119"; +} + +.glyphicon-resize-horizontal:before { + content: "\e120"; +} + +.glyphicon-hdd:before { + content: "\e121"; +} + +.glyphicon-bullhorn:before { + content: "\e122"; +} + +.glyphicon-bell:before { + content: "\e123"; +} + +.glyphicon-certificate:before { + content: "\e124"; +} + +.glyphicon-thumbs-up:before { + content: "\e125"; +} + +.glyphicon-thumbs-down:before { + content: "\e126"; +} + +.glyphicon-hand-right:before { + content: "\e127"; +} + +.glyphicon-hand-left:before { + content: "\e128"; +} + +.glyphicon-hand-up:before { + content: "\e129"; +} + +.glyphicon-hand-down:before { + content: "\e130"; +} + +.glyphicon-circle-arrow-right:before { + content: "\e131"; +} + +.glyphicon-circle-arrow-left:before { + content: "\e132"; +} + +.glyphicon-circle-arrow-up:before { + content: "\e133"; +} + +.glyphicon-circle-arrow-down:before { + content: "\e134"; +} + +.glyphicon-globe:before { + content: "\e135"; +} + +.glyphicon-wrench:before { + content: "\e136"; +} + +.glyphicon-tasks:before { + content: "\e137"; +} + +.glyphicon-filter:before { + content: "\e138"; +} + +.glyphicon-briefcase:before { + content: "\e139"; +} + +.glyphicon-fullscreen:before { + content: "\e140"; +} + +.glyphicon-dashboard:before { + content: "\e141"; +} + +.glyphicon-paperclip:before { + content: "\e142"; +} + +.glyphicon-heart-empty:before { + content: "\e143"; +} + +.glyphicon-link:before { + content: "\e144"; +} + +.glyphicon-phone:before { + content: "\e145"; +} + +.glyphicon-pushpin:before { + content: "\e146"; +} + +.glyphicon-usd:before { + content: "\e148"; +} + +.glyphicon-gbp:before { + content: "\e149"; +} + +.glyphicon-sort:before { + content: "\e150"; +} + +.glyphicon-sort-by-alphabet:before { + content: "\e151"; +} + +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152"; +} + +.glyphicon-sort-by-order:before { + content: "\e153"; +} + +.glyphicon-sort-by-order-alt:before { + content: "\e154"; +} + +.glyphicon-sort-by-attributes:before { + content: "\e155"; +} + +.glyphicon-sort-by-attributes-alt:before { + content: "\e156"; +} + +.glyphicon-unchecked:before { + content: "\e157"; +} + +.glyphicon-expand:before { + content: "\e158"; +} + +.glyphicon-collapse-down:before { + content: "\e159"; +} + +.glyphicon-collapse-up:before { + content: "\e160"; +} + +.glyphicon-log-in:before { + content: "\e161"; +} + +.glyphicon-flash:before { + content: "\e162"; +} + +.glyphicon-log-out:before { + content: "\e163"; +} + +.glyphicon-new-window:before { + content: "\e164"; +} + +.glyphicon-record:before { + content: "\e165"; +} + +.glyphicon-save:before { + content: "\e166"; +} + +.glyphicon-open:before { + content: "\e167"; +} + +.glyphicon-saved:before { + content: "\e168"; +} + +.glyphicon-import:before { + content: "\e169"; +} + +.glyphicon-export:before { + content: "\e170"; +} + +.glyphicon-send:before { + content: "\e171"; +} + +.glyphicon-floppy-disk:before { + content: "\e172"; +} + +.glyphicon-floppy-saved:before { + content: "\e173"; +} + +.glyphicon-floppy-remove:before { + content: "\e174"; +} + +.glyphicon-floppy-save:before { + content: "\e175"; +} + +.glyphicon-floppy-open:before { + content: "\e176"; +} + +.glyphicon-credit-card:before { + content: "\e177"; +} + +.glyphicon-transfer:before { + content: "\e178"; +} + +.glyphicon-cutlery:before { + content: "\e179"; +} + +.glyphicon-header:before { + content: "\e180"; +} + +.glyphicon-compressed:before { + content: "\e181"; +} + +.glyphicon-earphone:before { + content: "\e182"; +} + +.glyphicon-phone-alt:before { + content: "\e183"; +} + +.glyphicon-tower:before { + content: "\e184"; +} + +.glyphicon-stats:before { + content: "\e185"; +} + +.glyphicon-sd-video:before { + content: "\e186"; +} + +.glyphicon-hd-video:before { + content: "\e187"; +} + +.glyphicon-subtitles:before { + content: "\e188"; +} + +.glyphicon-sound-stereo:before { + content: "\e189"; +} + +.glyphicon-sound-dolby:before { + content: "\e190"; +} + +.glyphicon-sound-5-1:before { + content: "\e191"; +} + +.glyphicon-sound-6-1:before { + content: "\e192"; +} + +.glyphicon-sound-7-1:before { + content: "\e193"; +} + +.glyphicon-copyright-mark:before { + content: "\e194"; +} + +.glyphicon-registration-mark:before { + content: "\e195"; +} + +.glyphicon-cloud-download:before { + content: "\e197"; +} + +.glyphicon-cloud-upload:before { + content: "\e198"; +} + +.glyphicon-tree-conifer:before { + content: "\e199"; +} + +.glyphicon-tree-deciduous:before { + content: "\e200"; +} + +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + + *:before, + *:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + +html { + font-size: 10px; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +body { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 1.42857143; + color: #ffffff; + background-color: #333333; +} + +input, +button, +select, +textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit; +} + +a { + color: #0a94d4; + text-decoration: none; +} + + a:hover, + a:focus { + color: #07618b; + text-decoration: underline; + } + + a:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; + } + +figure { + margin: 0; +} + +img { + vertical-align: middle; +} + +.img-responsive, +.thumbnail > img, +.thumbnail a > img, +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + display: block; + width: 100% \9; + max-width: 100%; + height: auto; +} + +.img-rounded { + border-radius: 2px; +} + +.img-thumbnail { + padding: 4px; + line-height: 1.42857143; + background-color: #333333; + border: 1px solid #dddddd; + border-radius: 1px; + -webkit-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + display: inline-block; + width: 100% \9; + max-width: 100%; + height: auto; +} + +.img-circle { + border-radius: 50%; +} + +hr { + margin-top: 22px; + margin-bottom: 22px; + border: 0; + border-top: 1px solid #cccccc; +} + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} + +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; +} + +h1, +h2, +h3, +h4, +h5, +h6, +.h1, +.h2, +.h3, +.h4, +.h5, +.h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit; +} + + h1 small, + h2 small, + h3 small, + h4 small, + h5 small, + h6 small, + .h1 small, + .h2 small, + .h3 small, + .h4 small, + .h5 small, + .h6 small, + h1 .small, + h2 .small, + h3 .small, + h4 .small, + h5 .small, + h6 .small, + .h1 .small, + .h2 .small, + .h3 .small, + .h4 .small, + .h5 .small, + .h6 .small { + font-weight: normal; + line-height: 1; + color: #666666; + } + +h1, +.h1, +h2, +.h2, +h3, +.h3 { + margin-top: 22px; + margin-bottom: 11px; +} + + h1 small, + .h1 small, + h2 small, + .h2 small, + h3 small, + .h3 small, + h1 .small, + .h1 .small, + h2 .small, + .h2 .small, + h3 .small, + .h3 .small { + font-size: 65%; + } + +h4, +.h4, +h5, +.h5, +h6, +.h6 { + margin-top: 11px; + margin-bottom: 11px; +} + + h4 small, + .h4 small, + h5 small, + .h5 small, + h6 small, + .h6 small, + h4 .small, + .h4 .small, + h5 .small, + .h5 .small, + h6 .small, + .h6 .small { + font-size: 75%; + } + +h1, +.h1 { + font-size: 41px; +} + +h2, +.h2 { + font-size: 34px; +} + +h3, +.h3 { + font-size: 28px; +} + +h4, +.h4 { + font-size: 20px; +} + +h5, +.h5 { + font-size: 16px; +} + +h6, +.h6 { + font-size: 14px; +} + +p { + margin: 0 0 11px; +} + +.lead { + margin-bottom: 22px; + font-size: 18px; + font-weight: 300; + line-height: 1.4; +} + +@media (min-width: 768px) { + .lead { + font-size: 24px; + } +} + +small, +.small { + font-size: 87%; +} + +cite { + font-style: normal; +} + +mark, +.mark { + background-color: #fcf8e3; + padding: .2em; +} + +.text-left { + text-align: left; +} + +.text-right { + text-align: right; +} + +.text-center { + text-align: center; +} + +.text-justify { + text-align: justify; +} + +.text-nowrap { + white-space: nowrap; +} + +.text-lowercase { + text-transform: lowercase; +} + +.text-uppercase { + text-transform: uppercase; +} + +.text-capitalize { + text-transform: capitalize; +} + +.text-muted { + color: #666666; +} + +.text-primary { + color: #4d4d4d; +} + +a.text-primary:hover { + color: #333333; +} + +.text-success { + color: #125204; +} + +a.text-success:hover { + color: #072102; +} + +.text-info { + color: #0872a3; +} + +a.text-info:hover { + color: #055073; +} + +.text-warning { + color: #8a6d3b; +} + +a.text-warning:hover { + color: #66512c; +} + +.text-danger { + color: #d63510; +} + +a.text-danger:hover { + color: #a6290c; +} + +.bg-primary { + color: #fff; + background-color: #4d4d4d; +} + +a.bg-primary:hover { + background-color: #333333; +} + +.bg-success { + background-color: #d3e5cf; +} + +a.bg-success:hover { + background-color: #b5d3ae; +} + +.bg-info { + background-color: #daebf2; +} + +a.bg-info:hover { + background-color: #b4d7e5; +} + +.bg-warning { + background-color: #fcf8e3; +} + +a.bg-warning:hover { + background-color: #f7ecb5; +} + +.bg-danger { + background-color: #f0dcd8; +} + +a.bg-danger:hover { + background-color: #e2bbb3; +} + +.page-header { + padding-bottom: 10px; + margin: 44px 0 22px; + border-bottom: 1px solid #cccccc; +} + +ul, +ol { + margin-top: 0; + margin-bottom: 11px; +} + + ul ul, + ol ul, + ul ol, + ol ol { + margin-bottom: 0; + } + +.list-unstyled { + padding-left: 0; + list-style: none; +} + +.list-inline { + padding-left: 0; + list-style: none; + margin-left: -5px; +} + + .list-inline > li { + display: inline-block; + padding-left: 5px; + padding-right: 5px; + } + +dl { + margin-top: 0; + margin-bottom: 22px; +} + +dt, +dd { + line-height: 1.42857143; +} + +dt { + font-weight: bold; +} + +dd { + margin-left: 0; +} + +@media (min-width: 768px) { + .dl-horizontal dt { + float: left; + width: 160px; + clear: left; + text-align: right; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .dl-horizontal dd { + margin-left: 180px; + } +} + +abbr[title], +abbr[data-original-title] { + cursor: help; + border-bottom: 1px dotted #666666; +} + +.initialism { + font-size: 90%; + text-transform: uppercase; +} + +blockquote { + padding: 11px 22px; + margin: 0 0 22px; + font-size: 20px; + border-left: 5px solid #cccccc; +} + + blockquote p:last-child, + blockquote ul:last-child, + blockquote ol:last-child { + margin-bottom: 0; + } + + blockquote footer, + blockquote small, + blockquote .small { + display: block; + font-size: 80%; + line-height: 1.42857143; + color: #666666; + } + + blockquote footer:before, + blockquote small:before, + blockquote .small:before { + content: '\2014 \00A0'; + } + + .blockquote-reverse, + blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + border-right: 5px solid #cccccc; + border-left: 0; + text-align: right; + } + + .blockquote-reverse footer:before, + blockquote.pull-right footer:before, + .blockquote-reverse small:before, + blockquote.pull-right small:before, + .blockquote-reverse .small:before, + blockquote.pull-right .small:before { + content: ''; + } + + .blockquote-reverse footer:after, + blockquote.pull-right footer:after, + .blockquote-reverse small:after, + blockquote.pull-right small:after, + .blockquote-reverse .small:after, + blockquote.pull-right .small:after { + content: '\00A0 \2014'; + } + + blockquote:before, + blockquote:after { + content: ""; + } + +address { + margin-bottom: 22px; + font-style: normal; + line-height: 1.42857143; +} + +code, +kbd, +pre, +samp { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; +} + +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 1px; +} + +kbd { + padding: 2px 4px; + font-size: 90%; + color: #ffffff; + background-color: #333333; + border-radius: 0; + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); +} + + kbd kbd { + padding: 0; + font-size: 100%; + box-shadow: none; + } + +pre { + display: block; + padding: 10.5px; + margin: 0 0 11px; + font-size: 15px; + line-height: 1.42857143; + word-break: break-all; + word-wrap: break-word; + color: #333333; + background-color: #f5f5f5; + border: 1px solid #cccccc; + border-radius: 1px; +} + + pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0; + } + +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} + +.container { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px; +} + +@media (min-width: 768px) { + .container { + width: 750px; + } +} + +@media (min-width: 992px) { + .container { + width: 990px; + } +} + +@media (min-width: 1240px) { + .container { + width: 1220px; + } +} + +.container-fluid { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px; +} + +.row { + margin-left: -15px; + margin-right: -15px; +} + +.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { + position: relative; + min-height: 1px; + padding-left: 15px; + padding-right: 15px; +} + +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { + float: left; +} + +.col-xs-12 { + width: 100%; +} + +.col-xs-11 { + width: 91.66666667%; +} + +.col-xs-10 { + width: 83.33333333%; +} + +.col-xs-9 { + width: 75%; +} + +.col-xs-8 { + width: 66.66666667%; +} + +.col-xs-7 { + width: 58.33333333%; +} + +.col-xs-6 { + width: 50%; +} + +.col-xs-5 { + width: 41.66666667%; +} + +.col-xs-4 { + width: 33.33333333%; +} + +.col-xs-3 { + width: 25%; +} + +.col-xs-2 { + width: 16.66666667%; +} + +.col-xs-1 { + width: 8.33333333%; +} + +.col-xs-pull-12 { + right: 100%; +} + +.col-xs-pull-11 { + right: 91.66666667%; +} + +.col-xs-pull-10 { + right: 83.33333333%; +} + +.col-xs-pull-9 { + right: 75%; +} + +.col-xs-pull-8 { + right: 66.66666667%; +} + +.col-xs-pull-7 { + right: 58.33333333%; +} + +.col-xs-pull-6 { + right: 50%; +} + +.col-xs-pull-5 { + right: 41.66666667%; +} + +.col-xs-pull-4 { + right: 33.33333333%; +} + +.col-xs-pull-3 { + right: 25%; +} + +.col-xs-pull-2 { + right: 16.66666667%; +} + +.col-xs-pull-1 { + right: 8.33333333%; +} + +.col-xs-pull-0 { + right: auto; +} + +.col-xs-push-12 { + left: 100%; +} + +.col-xs-push-11 { + left: 91.66666667%; +} + +.col-xs-push-10 { + left: 83.33333333%; +} + +.col-xs-push-9 { + left: 75%; +} + +.col-xs-push-8 { + left: 66.66666667%; +} + +.col-xs-push-7 { + left: 58.33333333%; +} + +.col-xs-push-6 { + left: 50%; +} + +.col-xs-push-5 { + left: 41.66666667%; +} + +.col-xs-push-4 { + left: 33.33333333%; +} + +.col-xs-push-3 { + left: 25%; +} + +.col-xs-push-2 { + left: 16.66666667%; +} + +.col-xs-push-1 { + left: 8.33333333%; +} + +.col-xs-push-0 { + left: auto; +} + +.col-xs-offset-12 { + margin-left: 100%; +} + +.col-xs-offset-11 { + margin-left: 91.66666667%; +} + +.col-xs-offset-10 { + margin-left: 83.33333333%; +} + +.col-xs-offset-9 { + margin-left: 75%; +} + +.col-xs-offset-8 { + margin-left: 66.66666667%; +} + +.col-xs-offset-7 { + margin-left: 58.33333333%; +} + +.col-xs-offset-6 { + margin-left: 50%; +} + +.col-xs-offset-5 { + margin-left: 41.66666667%; +} + +.col-xs-offset-4 { + margin-left: 33.33333333%; +} + +.col-xs-offset-3 { + margin-left: 25%; +} + +.col-xs-offset-2 { + margin-left: 16.66666667%; +} + +.col-xs-offset-1 { + margin-left: 8.33333333%; +} + +.col-xs-offset-0 { + margin-left: 0%; +} + +@media (min-width: 768px) { + .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { + float: left; + } + + .col-sm-12 { + width: 100%; + } + + .col-sm-11 { + width: 91.66666667%; + } + + .col-sm-10 { + width: 83.33333333%; + } + + .col-sm-9 { + width: 75%; + } + + .col-sm-8 { + width: 66.66666667%; + } + + .col-sm-7 { + width: 58.33333333%; + } + + .col-sm-6 { + width: 50%; + } + + .col-sm-5 { + width: 41.66666667%; + } + + .col-sm-4 { + width: 33.33333333%; + } + + .col-sm-3 { + width: 25%; + } + + .col-sm-2 { + width: 16.66666667%; + } + + .col-sm-1 { + width: 8.33333333%; + } + + .col-sm-pull-12 { + right: 100%; + } + + .col-sm-pull-11 { + right: 91.66666667%; + } + + .col-sm-pull-10 { + right: 83.33333333%; + } + + .col-sm-pull-9 { + right: 75%; + } + + .col-sm-pull-8 { + right: 66.66666667%; + } + + .col-sm-pull-7 { + right: 58.33333333%; + } + + .col-sm-pull-6 { + right: 50%; + } + + .col-sm-pull-5 { + right: 41.66666667%; + } + + .col-sm-pull-4 { + right: 33.33333333%; + } + + .col-sm-pull-3 { + right: 25%; + } + + .col-sm-pull-2 { + right: 16.66666667%; + } + + .col-sm-pull-1 { + right: 8.33333333%; + } + + .col-sm-pull-0 { + right: auto; + } + + .col-sm-push-12 { + left: 100%; + } + + .col-sm-push-11 { + left: 91.66666667%; + } + + .col-sm-push-10 { + left: 83.33333333%; + } + + .col-sm-push-9 { + left: 75%; + } + + .col-sm-push-8 { + left: 66.66666667%; + } + + .col-sm-push-7 { + left: 58.33333333%; + } + + .col-sm-push-6 { + left: 50%; + } + + .col-sm-push-5 { + left: 41.66666667%; + } + + .col-sm-push-4 { + left: 33.33333333%; + } + + .col-sm-push-3 { + left: 25%; + } + + .col-sm-push-2 { + left: 16.66666667%; + } + + .col-sm-push-1 { + left: 8.33333333%; + } + + .col-sm-push-0 { + left: auto; + } + + .col-sm-offset-12 { + margin-left: 100%; + } + + .col-sm-offset-11 { + margin-left: 91.66666667%; + } + + .col-sm-offset-10 { + margin-left: 83.33333333%; + } + + .col-sm-offset-9 { + margin-left: 75%; + } + + .col-sm-offset-8 { + margin-left: 66.66666667%; + } + + .col-sm-offset-7 { + margin-left: 58.33333333%; + } + + .col-sm-offset-6 { + margin-left: 50%; + } + + .col-sm-offset-5 { + margin-left: 41.66666667%; + } + + .col-sm-offset-4 { + margin-left: 33.33333333%; + } + + .col-sm-offset-3 { + margin-left: 25%; + } + + .col-sm-offset-2 { + margin-left: 16.66666667%; + } + + .col-sm-offset-1 { + margin-left: 8.33333333%; + } + + .col-sm-offset-0 { + margin-left: 0%; + } +} + +@media (min-width: 992px) { + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { + float: left; + } + + .col-md-12 { + width: 100%; + } + + .col-md-11 { + width: 91.66666667%; + } + + .col-md-10 { + width: 83.33333333%; + } + + .col-md-9 { + width: 75%; + } + + .col-md-8 { + width: 66.66666667%; + } + + .col-md-7 { + width: 58.33333333%; + } + + .col-md-6 { + width: 50%; + } + + .col-md-5 { + width: 41.66666667%; + } + + .col-md-4 { + width: 33.33333333%; + } + + .col-md-3 { + width: 25%; + } + + .col-md-2 { + width: 16.66666667%; + } + + .col-md-1 { + width: 8.33333333%; + } + + .col-md-pull-12 { + right: 100%; + } + + .col-md-pull-11 { + right: 91.66666667%; + } + + .col-md-pull-10 { + right: 83.33333333%; + } + + .col-md-pull-9 { + right: 75%; + } + + .col-md-pull-8 { + right: 66.66666667%; + } + + .col-md-pull-7 { + right: 58.33333333%; + } + + .col-md-pull-6 { + right: 50%; + } + + .col-md-pull-5 { + right: 41.66666667%; + } + + .col-md-pull-4 { + right: 33.33333333%; + } + + .col-md-pull-3 { + right: 25%; + } + + .col-md-pull-2 { + right: 16.66666667%; + } + + .col-md-pull-1 { + right: 8.33333333%; + } + + .col-md-pull-0 { + right: auto; + } + + .col-md-push-12 { + left: 100%; + } + + .col-md-push-11 { + left: 91.66666667%; + } + + .col-md-push-10 { + left: 83.33333333%; + } + + .col-md-push-9 { + left: 75%; + } + + .col-md-push-8 { + left: 66.66666667%; + } + + .col-md-push-7 { + left: 58.33333333%; + } + + .col-md-push-6 { + left: 50%; + } + + .col-md-push-5 { + left: 41.66666667%; + } + + .col-md-push-4 { + left: 33.33333333%; + } + + .col-md-push-3 { + left: 25%; + } + + .col-md-push-2 { + left: 16.66666667%; + } + + .col-md-push-1 { + left: 8.33333333%; + } + + .col-md-push-0 { + left: auto; + } + + .col-md-offset-12 { + margin-left: 100%; + } + + .col-md-offset-11 { + margin-left: 91.66666667%; + } + + .col-md-offset-10 { + margin-left: 83.33333333%; + } + + .col-md-offset-9 { + margin-left: 75%; + } + + .col-md-offset-8 { + margin-left: 66.66666667%; + } + + .col-md-offset-7 { + margin-left: 58.33333333%; + } + + .col-md-offset-6 { + margin-left: 50%; + } + + .col-md-offset-5 { + margin-left: 41.66666667%; + } + + .col-md-offset-4 { + margin-left: 33.33333333%; + } + + .col-md-offset-3 { + margin-left: 25%; + } + + .col-md-offset-2 { + margin-left: 16.66666667%; + } + + .col-md-offset-1 { + margin-left: 8.33333333%; + } + + .col-md-offset-0 { + margin-left: 0%; + } +} + +@media (min-width: 1240px) { + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { + float: left; + } + + .col-lg-12 { + width: 100%; + } + + .col-lg-11 { + width: 91.66666667%; + } + + .col-lg-10 { + width: 83.33333333%; + } + + .col-lg-9 { + width: 75%; + } + + .col-lg-8 { + width: 66.66666667%; + } + + .col-lg-7 { + width: 58.33333333%; + } + + .col-lg-6 { + width: 50%; + } + + .col-lg-5 { + width: 41.66666667%; + } + + .col-lg-4 { + width: 33.33333333%; + } + + .col-lg-3 { + width: 25%; + } + + .col-lg-2 { + width: 16.66666667%; + } + + .col-lg-1 { + width: 8.33333333%; + } + + .col-lg-pull-12 { + right: 100%; + } + + .col-lg-pull-11 { + right: 91.66666667%; + } + + .col-lg-pull-10 { + right: 83.33333333%; + } + + .col-lg-pull-9 { + right: 75%; + } + + .col-lg-pull-8 { + right: 66.66666667%; + } + + .col-lg-pull-7 { + right: 58.33333333%; + } + + .col-lg-pull-6 { + right: 50%; + } + + .col-lg-pull-5 { + right: 41.66666667%; + } + + .col-lg-pull-4 { + right: 33.33333333%; + } + + .col-lg-pull-3 { + right: 25%; + } + + .col-lg-pull-2 { + right: 16.66666667%; + } + + .col-lg-pull-1 { + right: 8.33333333%; + } + + .col-lg-pull-0 { + right: auto; + } + + .col-lg-push-12 { + left: 100%; + } + + .col-lg-push-11 { + left: 91.66666667%; + } + + .col-lg-push-10 { + left: 83.33333333%; + } + + .col-lg-push-9 { + left: 75%; + } + + .col-lg-push-8 { + left: 66.66666667%; + } + + .col-lg-push-7 { + left: 58.33333333%; + } + + .col-lg-push-6 { + left: 50%; + } + + .col-lg-push-5 { + left: 41.66666667%; + } + + .col-lg-push-4 { + left: 33.33333333%; + } + + .col-lg-push-3 { + left: 25%; + } + + .col-lg-push-2 { + left: 16.66666667%; + } + + .col-lg-push-1 { + left: 8.33333333%; + } + + .col-lg-push-0 { + left: auto; + } + + .col-lg-offset-12 { + margin-left: 100%; + } + + .col-lg-offset-11 { + margin-left: 91.66666667%; + } + + .col-lg-offset-10 { + margin-left: 83.33333333%; + } + + .col-lg-offset-9 { + margin-left: 75%; + } + + .col-lg-offset-8 { + margin-left: 66.66666667%; + } + + .col-lg-offset-7 { + margin-left: 58.33333333%; + } + + .col-lg-offset-6 { + margin-left: 50%; + } + + .col-lg-offset-5 { + margin-left: 41.66666667%; + } + + .col-lg-offset-4 { + margin-left: 33.33333333%; + } + + .col-lg-offset-3 { + margin-left: 25%; + } + + .col-lg-offset-2 { + margin-left: 16.66666667%; + } + + .col-lg-offset-1 { + margin-left: 8.33333333%; + } + + .col-lg-offset-0 { + margin-left: 0%; + } +} + +table { + background-color: transparent; +} + +th { + text-align: left; +} + +.table { + width: 100%; + max-width: 100%; + margin-bottom: 22px; +} + + .table > thead > tr > th, + .table > tbody > tr > th, + .table > tfoot > tr > th, + .table > thead > tr > td, + .table > tbody > tr > td, + .table > tfoot > tr > td { + padding: 8px; + line-height: 1.42857143; + vertical-align: top; + border-top: 1px solid #dddddd; + } + + .table > thead > tr > th { + vertical-align: bottom; + border-bottom: 2px solid #dddddd; + } + + .table > caption + thead > tr:first-child > th, + .table > colgroup + thead > tr:first-child > th, + .table > thead:first-child > tr:first-child > th, + .table > caption + thead > tr:first-child > td, + .table > colgroup + thead > tr:first-child > td, + .table > thead:first-child > tr:first-child > td { + border-top: 0; + } + + .table > tbody + tbody { + border-top: 2px solid #dddddd; + } + + .table .table { + background-color: #333333; + } + +.table-condensed > thead > tr > th, +.table-condensed > tbody > tr > th, +.table-condensed > tfoot > tr > th, +.table-condensed > thead > tr > td, +.table-condensed > tbody > tr > td, +.table-condensed > tfoot > tr > td { + padding: 5px; +} + +.table-bordered { + border: 1px solid #dddddd; +} + + .table-bordered > thead > tr > th, + .table-bordered > tbody > tr > th, + .table-bordered > tfoot > tr > th, + .table-bordered > thead > tr > td, + .table-bordered > tbody > tr > td, + .table-bordered > tfoot > tr > td { + border: 1px solid #dddddd; + } + + .table-bordered > thead > tr > th, + .table-bordered > thead > tr > td { + border-bottom-width: 2px; + } + +.table-striped > tbody > tr:nth-child(odd) > td, +.table-striped > tbody > tr:nth-child(odd) > th { + background-color: #f9f9f9; +} + +.table-hover > tbody > tr:hover > td, +.table-hover > tbody > tr:hover > th { + background-color: #f5f5f5; +} + +table col[class*="col-"] { + position: static; + float: none; + display: table-column; +} + +table td[class*="col-"], +table th[class*="col-"] { + position: static; + float: none; + display: table-cell; +} + +.table > thead > tr > td.active, +.table > tbody > tr > td.active, +.table > tfoot > tr > td.active, +.table > thead > tr > th.active, +.table > tbody > tr > th.active, +.table > tfoot > tr > th.active, +.table > thead > tr.active > td, +.table > tbody > tr.active > td, +.table > tfoot > tr.active > td, +.table > thead > tr.active > th, +.table > tbody > tr.active > th, +.table > tfoot > tr.active > th { + background-color: #f5f5f5; +} + +.table-hover > tbody > tr > td.active:hover, +.table-hover > tbody > tr > th.active:hover, +.table-hover > tbody > tr.active:hover > td, +.table-hover > tbody > tr:hover > .active, +.table-hover > tbody > tr.active:hover > th { + background-color: #e8e8e8; +} + +.table > thead > tr > td.success, +.table > tbody > tr > td.success, +.table > tfoot > tr > td.success, +.table > thead > tr > th.success, +.table > tbody > tr > th.success, +.table > tfoot > tr > th.success, +.table > thead > tr.success > td, +.table > tbody > tr.success > td, +.table > tfoot > tr.success > td, +.table > thead > tr.success > th, +.table > tbody > tr.success > th, +.table > tfoot > tr.success > th { + background-color: #d3e5cf; +} + +.table-hover > tbody > tr > td.success:hover, +.table-hover > tbody > tr > th.success:hover, +.table-hover > tbody > tr.success:hover > td, +.table-hover > tbody > tr:hover > .success, +.table-hover > tbody > tr.success:hover > th { + background-color: #c4dcbe; +} + +.table > thead > tr > td.info, +.table > tbody > tr > td.info, +.table > tfoot > tr > td.info, +.table > thead > tr > th.info, +.table > tbody > tr > th.info, +.table > tfoot > tr > th.info, +.table > thead > tr.info > td, +.table > tbody > tr.info > td, +.table > tfoot > tr.info > td, +.table > thead > tr.info > th, +.table > tbody > tr.info > th, +.table > tfoot > tr.info > th { + background-color: #daebf2; +} + +.table-hover > tbody > tr > td.info:hover, +.table-hover > tbody > tr > th.info:hover, +.table-hover > tbody > tr.info:hover > td, +.table-hover > tbody > tr:hover > .info, +.table-hover > tbody > tr.info:hover > th { + background-color: #c7e1eb; +} + +.table > thead > tr > td.warning, +.table > tbody > tr > td.warning, +.table > tfoot > tr > td.warning, +.table > thead > tr > th.warning, +.table > tbody > tr > th.warning, +.table > tfoot > tr > th.warning, +.table > thead > tr.warning > td, +.table > tbody > tr.warning > td, +.table > tfoot > tr.warning > td, +.table > thead > tr.warning > th, +.table > tbody > tr.warning > th, +.table > tfoot > tr.warning > th { + background-color: #fcf8e3; +} + +.table-hover > tbody > tr > td.warning:hover, +.table-hover > tbody > tr > th.warning:hover, +.table-hover > tbody > tr.warning:hover > td, +.table-hover > tbody > tr:hover > .warning, +.table-hover > tbody > tr.warning:hover > th { + background-color: #faf2cc; +} + +.table > thead > tr > td.danger, +.table > tbody > tr > td.danger, +.table > tfoot > tr > td.danger, +.table > thead > tr > th.danger, +.table > tbody > tr > th.danger, +.table > tfoot > tr > th.danger, +.table > thead > tr.danger > td, +.table > tbody > tr.danger > td, +.table > tfoot > tr.danger > td, +.table > thead > tr.danger > th, +.table > tbody > tr.danger > th, +.table > tfoot > tr.danger > th { + background-color: #f0dcd8; +} + +.table-hover > tbody > tr > td.danger:hover, +.table-hover > tbody > tr > th.danger:hover, +.table-hover > tbody > tr.danger:hover > td, +.table-hover > tbody > tr:hover > .danger, +.table-hover > tbody > tr.danger:hover > th { + background-color: #e9cbc6; +} + +@media screen and (max-width: 767px) { + .table-responsive { + width: 100%; + margin-bottom: 16.5px; + overflow-y: hidden; + overflow-x: auto; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #dddddd; + -webkit-overflow-scrolling: touch; + } + + .table-responsive > .table { + margin-bottom: 0; + } + + .table-responsive > .table > thead > tr > th, + .table-responsive > .table > tbody > tr > th, + .table-responsive > .table > tfoot > tr > th, + .table-responsive > .table > thead > tr > td, + .table-responsive > .table > tbody > tr > td, + .table-responsive > .table > tfoot > tr > td { + white-space: nowrap; + } + + .table-responsive > .table-bordered { + border: 0; + } + + .table-responsive > .table-bordered > thead > tr > th:first-child, + .table-responsive > .table-bordered > tbody > tr > th:first-child, + .table-responsive > .table-bordered > tfoot > tr > th:first-child, + .table-responsive > .table-bordered > thead > tr > td:first-child, + .table-responsive > .table-bordered > tbody > tr > td:first-child, + .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; + } + + .table-responsive > .table-bordered > thead > tr > th:last-child, + .table-responsive > .table-bordered > tbody > tr > th:last-child, + .table-responsive > .table-bordered > tfoot > tr > th:last-child, + .table-responsive > .table-bordered > thead > tr > td:last-child, + .table-responsive > .table-bordered > tbody > tr > td:last-child, + .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; + } + + .table-responsive > .table-bordered > tbody > tr:last-child > th, + .table-responsive > .table-bordered > tfoot > tr:last-child > th, + .table-responsive > .table-bordered > tbody > tr:last-child > td, + .table-responsive > .table-bordered > tfoot > tr:last-child > td { + border-bottom: 0; + } +} + +fieldset { + padding: 0; + margin: 0; + border: 0; + min-width: 0; +} + +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 22px; + font-size: 24px; + line-height: inherit; + color: #333333; + border: 0; + border-bottom: 1px solid #e5e5e5; +} + +label { + display: inline-block; + max-width: 100%; + margin-bottom: 5px; + font-weight: bold; +} + +input[type="search"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +input[type="radio"], +input[type="checkbox"] { + margin: 4px 0 0; + margin-top: 1px \9; + line-height: normal; +} + +input[type="file"] { + display: block; +} + +input[type="range"] { + display: block; + width: 100%; +} + +select[multiple], +select[size] { + height: auto; +} + +input[type="file"]:focus, +input[type="radio"]:focus, +input[type="checkbox"]:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} + +output { + display: block; + padding-top: 7px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; +} + +.form-control { + display: block; + width: 100%; + height: 36px; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; + background-color: #ffffff; + background-image: none; + border: 1px solid #cccccc; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; +} + + .form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); + } + + .form-control::-moz-placeholder { + color: #666666; + opacity: 1; + } + + .form-control:-ms-input-placeholder { + color: #666666; + } + + .form-control::-webkit-input-placeholder { + color: #666666; + } + + .form-control[disabled], + .form-control[readonly], + fieldset[disabled] .form-control { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; + } + +textarea.form-control { + height: auto; +} + +input[type="search"] { + -webkit-appearance: none; +} + +input[type="date"], +input[type="time"], +input[type="datetime-local"], +input[type="month"] { + line-height: 36px; + line-height: 1.42857143 \0; +} + + input[type="date"].input-sm, + input[type="time"].input-sm, + input[type="datetime-local"].input-sm, + input[type="month"].input-sm { + line-height: 33px; + } + + input[type="date"].input-lg, + input[type="time"].input-lg, + input[type="datetime-local"].input-lg, + input[type="month"].input-lg { + line-height: 49px; + } + +.form-group { + margin-bottom: 15px; +} + +.radio, +.checkbox { + position: relative; + display: block; + min-height: 22px; + margin-top: 10px; + margin-bottom: 10px; +} + + .radio label, + .checkbox label { + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + cursor: pointer; + } + + .radio input[type="radio"], + .radio-inline input[type="radio"], + .checkbox input[type="checkbox"], + .checkbox-inline input[type="checkbox"] { + position: absolute; + margin-left: -20px; + margin-top: 4px \9; + } + + .radio + .radio, + .checkbox + .checkbox { + margin-top: -5px; + } + +.radio-inline, +.checkbox-inline { + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + vertical-align: middle; + font-weight: normal; + cursor: pointer; +} + + .radio-inline + .radio-inline, + .checkbox-inline + .checkbox-inline { + margin-top: 0; + margin-left: 10px; + } + +input[type="radio"][disabled], +input[type="checkbox"][disabled], +input[type="radio"].disabled, +input[type="checkbox"].disabled, +fieldset[disabled] input[type="radio"], +fieldset[disabled] input[type="checkbox"] { + cursor: not-allowed; +} + +.radio-inline.disabled, +.checkbox-inline.disabled, +fieldset[disabled] .radio-inline, +fieldset[disabled] .checkbox-inline { + cursor: not-allowed; +} + +.radio.disabled label, +.checkbox.disabled label, +fieldset[disabled] .radio label, +fieldset[disabled] .checkbox label { + cursor: not-allowed; +} + +.form-control-static { + padding-top: 7px; + padding-bottom: 7px; + margin-bottom: 0; +} + + .form-control-static.input-lg, + .form-control-static.input-sm { + padding-left: 0; + padding-right: 0; + } + +.input-sm, +.form-horizontal .form-group-sm .form-control { + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; +} + +select.input-sm { + height: 33px; + line-height: 33px; +} + +textarea.input-sm, +select[multiple].input-sm { + height: auto; +} + +.input-lg, +.form-horizontal .form-group-lg .form-control { + height: 49px; + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; +} + +select.input-lg { + height: 49px; + line-height: 49px; +} + +textarea.input-lg, +select[multiple].input-lg { + height: auto; +} + +.has-feedback { + position: relative; +} + + .has-feedback .form-control { + padding-right: 45px; + } + +.form-control-feedback { + position: absolute; + top: 27px; + right: 0; + z-index: 2; + display: block; + width: 36px; + height: 36px; + line-height: 36px; + text-align: center; +} + +.input-lg + .form-control-feedback { + width: 49px; + height: 49px; + line-height: 49px; +} + +.input-sm + .form-control-feedback { + width: 33px; + height: 33px; + line-height: 33px; +} + +.has-success .help-block, +.has-success .control-label, +.has-success .radio, +.has-success .checkbox, +.has-success .radio-inline, +.has-success .checkbox-inline { + color: #125204; +} + +.has-success .form-control { + border-color: #125204; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} + + .has-success .form-control:focus { + border-color: #072102; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; + } + +.has-success .input-group-addon { + color: #125204; + border-color: #125204; + background-color: #d3e5cf; +} + +.has-success .form-control-feedback { + color: #125204; +} + +.has-warning .help-block, +.has-warning .control-label, +.has-warning .radio, +.has-warning .checkbox, +.has-warning .radio-inline, +.has-warning .checkbox-inline { + color: #8a6d3b; +} + +.has-warning .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} + + .has-warning .form-control:focus { + border-color: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; + } + +.has-warning .input-group-addon { + color: #8a6d3b; + border-color: #8a6d3b; + background-color: #fcf8e3; +} + +.has-warning .form-control-feedback { + color: #8a6d3b; +} + +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline { + color: #d63510; +} + +.has-error .form-control { + border-color: #d63510; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} + + .has-error .form-control:focus { + border-color: #a6290c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; + } + +.has-error .input-group-addon { + color: #d63510; + border-color: #d63510; + background-color: #f0dcd8; +} + +.has-error .form-control-feedback { + color: #d63510; +} + +.has-feedback label.sr-only ~ .form-control-feedback { + top: 0; +} + +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: #ffffff; +} + +@media (min-width: 768px) { + .form-inline .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + + .form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + + .form-inline .input-group { + display: inline-table; + vertical-align: middle; + } + + .form-inline .input-group .input-group-addon, + .form-inline .input-group .input-group-btn, + .form-inline .input-group .form-control { + width: auto; + } + + .form-inline .input-group > .form-control { + width: 100%; + } + + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle; + } + + .form-inline .radio, + .form-inline .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + + .form-inline .radio label, + .form-inline .checkbox label { + padding-left: 0; + } + + .form-inline .radio input[type="radio"], + .form-inline .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + + .form-inline .has-feedback .form-control-feedback { + top: 0; + } +} + +.form-horizontal .radio, +.form-horizontal .checkbox, +.form-horizontal .radio-inline, +.form-horizontal .checkbox-inline { + margin-top: 0; + margin-bottom: 0; + padding-top: 7px; +} + +.form-horizontal .radio, +.form-horizontal .checkbox { + min-height: 29px; +} + +.form-horizontal .form-group { + margin-left: -15px; + margin-right: -15px; +} + +@media (min-width: 768px) { + .form-horizontal .control-label { + text-align: right; + margin-bottom: 0; + padding-top: 7px; + } +} + +.form-horizontal .has-feedback .form-control-feedback { + top: 0; + right: 15px; +} + +@media (min-width: 768px) { + .form-horizontal .form-group-lg .control-label { + padding-top: 14.3px; + } +} + +@media (min-width: 768px) { + .form-horizontal .form-group-sm .control-label { + padding-top: 6px; + } +} + +.btn { + display: inline-block; + margin-bottom: 0; + font-weight: normal; + text-align: center; + vertical-align: middle; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + border-radius: 1px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + + .btn:focus, + .btn:active:focus, + .btn.active:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; + } + + .btn:hover, + .btn:focus { + color: #ffffff; + text-decoration: none; + } + + .btn:active, + .btn.active { + outline: 0; + background-image: none; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + } + + .btn.disabled, + .btn[disabled], + fieldset[disabled] .btn { + cursor: not-allowed; + pointer-events: none; + opacity: 0.65; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none; + } + +.btn-default { + color: #ffffff; + background-color: #959595; + border-color: #959595; +} + + .btn-default:hover, + .btn-default:focus, + .btn-default:active, + .btn-default.active, + .open > .dropdown-toggle.btn-default { + color: #ffffff; + background-color: #7c7c7c; + border-color: #767676; + } + + .btn-default:active, + .btn-default.active, + .open > .dropdown-toggle.btn-default { + background-image: none; + } + + .btn-default.disabled, + .btn-default[disabled], + fieldset[disabled] .btn-default, + .btn-default.disabled:hover, + .btn-default[disabled]:hover, + fieldset[disabled] .btn-default:hover, + .btn-default.disabled:focus, + .btn-default[disabled]:focus, + fieldset[disabled] .btn-default:focus, + .btn-default.disabled:active, + .btn-default[disabled]:active, + fieldset[disabled] .btn-default:active, + .btn-default.disabled.active, + .btn-default[disabled].active, + fieldset[disabled] .btn-default.active { + background-color: #959595; + border-color: #959595; + } + + .btn-default .badge { + color: #959595; + background-color: #ffffff; + } + +.btn-primary { + color: #ffffff; + background-color: #0a94d4; + border-color: #0a94d4; +} + + .btn-primary:hover, + .btn-primary:focus, + .btn-primary:active, + .btn-primary.active, + .open > .dropdown-toggle.btn-primary { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; + } + + .btn-primary:active, + .btn-primary.active, + .open > .dropdown-toggle.btn-primary { + background-image: none; + } + + .btn-primary.disabled, + .btn-primary[disabled], + fieldset[disabled] .btn-primary, + .btn-primary.disabled:hover, + .btn-primary[disabled]:hover, + fieldset[disabled] .btn-primary:hover, + .btn-primary.disabled:focus, + .btn-primary[disabled]:focus, + fieldset[disabled] .btn-primary:focus, + .btn-primary.disabled:active, + .btn-primary[disabled]:active, + fieldset[disabled] .btn-primary:active, + .btn-primary.disabled.active, + .btn-primary[disabled].active, + fieldset[disabled] .btn-primary.active { + background-color: #0a94d4; + border-color: #0a94d4; + } + + .btn-primary .badge { + color: #0a94d4; + background-color: #ffffff; + } + +.btn-success { + color: #ffffff; + background-color: #28b309; + border-color: #28b309; +} + + .btn-success:hover, + .btn-success:focus, + .btn-success:active, + .btn-success.active, + .open > .dropdown-toggle.btn-success { + color: #ffffff; + background-color: #1d8207; + border-color: #1b7906; + } + + .btn-success:active, + .btn-success.active, + .open > .dropdown-toggle.btn-success { + background-image: none; + } + + .btn-success.disabled, + .btn-success[disabled], + fieldset[disabled] .btn-success, + .btn-success.disabled:hover, + .btn-success[disabled]:hover, + fieldset[disabled] .btn-success:hover, + .btn-success.disabled:focus, + .btn-success[disabled]:focus, + fieldset[disabled] .btn-success:focus, + .btn-success.disabled:active, + .btn-success[disabled]:active, + fieldset[disabled] .btn-success:active, + .btn-success.disabled.active, + .btn-success[disabled].active, + fieldset[disabled] .btn-success.active { + background-color: #28b309; + border-color: #28b309; + } + + .btn-success .badge { + color: #28b309; + background-color: #ffffff; + } + +.btn-info { + color: #ffffff; + background-color: #0a94d4; + border-color: #0a94d4; +} + + .btn-info:hover, + .btn-info:focus, + .btn-info:active, + .btn-info.active, + .open > .dropdown-toggle.btn-info { + color: #ffffff; + background-color: #0872a3; + border-color: #076b9a; + } + + .btn-info:active, + .btn-info.active, + .open > .dropdown-toggle.btn-info { + background-image: none; + } + + .btn-info.disabled, + .btn-info[disabled], + fieldset[disabled] .btn-info, + .btn-info.disabled:hover, + .btn-info[disabled]:hover, + fieldset[disabled] .btn-info:hover, + .btn-info.disabled:focus, + .btn-info[disabled]:focus, + fieldset[disabled] .btn-info:focus, + .btn-info.disabled:active, + .btn-info[disabled]:active, + fieldset[disabled] .btn-info:active, + .btn-info.disabled.active, + .btn-info[disabled].active, + fieldset[disabled] .btn-info.active { + background-color: #0a94d4; + border-color: #0a94d4; + } + + .btn-info .badge { + color: #0a94d4; + background-color: #ffffff; + } + +.btn-warning { + color: #ffffff; + background-color: #f0ad20; + border-color: #f0ad20; +} + + .btn-warning:hover, + .btn-warning:focus, + .btn-warning:active, + .btn-warning.active, + .open > .dropdown-toggle.btn-warning { + color: #ffffff; + background-color: #cf910e; + border-color: #c68a0d; + } + + .btn-warning:active, + .btn-warning.active, + .open > .dropdown-toggle.btn-warning { + background-image: none; + } + + .btn-warning.disabled, + .btn-warning[disabled], + fieldset[disabled] .btn-warning, + .btn-warning.disabled:hover, + .btn-warning[disabled]:hover, + fieldset[disabled] .btn-warning:hover, + .btn-warning.disabled:focus, + .btn-warning[disabled]:focus, + fieldset[disabled] .btn-warning:focus, + .btn-warning.disabled:active, + .btn-warning[disabled]:active, + fieldset[disabled] .btn-warning:active, + .btn-warning.disabled.active, + .btn-warning[disabled].active, + fieldset[disabled] .btn-warning.active { + background-color: #f0ad20; + border-color: #f0ad20; + } + + .btn-warning .badge { + color: #f0ad20; + background-color: #ffffff; + } + +.btn-danger { + color: #ffffff; + background-color: #ef4a24; + border-color: #ef4a24; +} + + .btn-danger:hover, + .btn-danger:focus, + .btn-danger:active, + .btn-danger.active, + .open > .dropdown-toggle.btn-danger { + color: #ffffff; + background-color: #d1330f; + border-color: #c7310f; + } + + .btn-danger:active, + .btn-danger.active, + .open > .dropdown-toggle.btn-danger { + background-image: none; + } + + .btn-danger.disabled, + .btn-danger[disabled], + fieldset[disabled] .btn-danger, + .btn-danger.disabled:hover, + .btn-danger[disabled]:hover, + fieldset[disabled] .btn-danger:hover, + .btn-danger.disabled:focus, + .btn-danger[disabled]:focus, + fieldset[disabled] .btn-danger:focus, + .btn-danger.disabled:active, + .btn-danger[disabled]:active, + fieldset[disabled] .btn-danger:active, + .btn-danger.disabled.active, + .btn-danger[disabled].active, + fieldset[disabled] .btn-danger.active { + background-color: #ef4a24; + border-color: #ef4a24; + } + + .btn-danger .badge { + color: #ef4a24; + background-color: #ffffff; + } + +.btn-link { + color: #0a94d4; + font-weight: normal; + cursor: pointer; + border-radius: 0; +} + + .btn-link, + .btn-link:active, + .btn-link[disabled], + fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; + } + + .btn-link, + .btn-link:hover, + .btn-link:focus, + .btn-link:active { + border-color: transparent; + } + + .btn-link:hover, + .btn-link:focus { + color: #07618b; + text-decoration: underline; + background-color: transparent; + } + + .btn-link[disabled]:hover, + fieldset[disabled] .btn-link:hover, + .btn-link[disabled]:focus, + fieldset[disabled] .btn-link:focus { + color: #666666; + text-decoration: none; + } + +.btn-lg, +.btn-group-lg > .btn { + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; +} + +.btn-sm, +.btn-group-sm > .btn { + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; +} + +.btn-xs, +.btn-group-xs > .btn { + padding: 1px 5px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; +} + +.btn-block { + display: block; + width: 100%; +} + + .btn-block + .btn-block { + margin-top: 5px; + } + +input[type="submit"].btn-block, +input[type="reset"].btn-block, +input[type="button"].btn-block { + width: 100%; +} + +.fade { + opacity: 0; + -webkit-transition: opacity 0.15s linear; + -o-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; +} + + .fade.in { + opacity: 1; + } + +.collapse { + display: none; +} + + .collapse.in { + display: block; + } + +tr.collapse.in { + display: table-row; +} + +tbody.collapse.in { + display: table-row-group; +} + +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition: height 0.35s ease; + -o-transition: height 0.35s ease; + transition: height 0.35s ease; +} + +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px solid; + border-right: 4px solid transparent; + border-left: 4px solid transparent; +} + +.dropdown { + position: relative; +} + +.dropdown-toggle:focus { + outline: 0; +} + +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + list-style: none; + font-size: 16px; + text-align: left; + background-color: #ffffff; + border: 1px solid #cccccc; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 1px; + -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); + background-clip: padding-box; +} + + .dropdown-menu.pull-right { + right: 0; + left: auto; + } + + .dropdown-menu .divider { + height: 1px; + margin: 10px 0; + overflow: hidden; + background-color: #e5e5e5; + } + + .dropdown-menu > li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.42857143; + color: #333333; + white-space: nowrap; + } + + .dropdown-menu > li > a:hover, + .dropdown-menu > li > a:focus { + text-decoration: none; + color: #262626; + background-color: #f5f5f5; + } + + .dropdown-menu > .active > a, + .dropdown-menu > .active > a:hover, + .dropdown-menu > .active > a:focus { + color: #ffffff; + text-decoration: none; + outline: 0; + background-color: #4d4d4d; + } + + .dropdown-menu > .disabled > a, + .dropdown-menu > .disabled > a:hover, + .dropdown-menu > .disabled > a:focus { + color: #666666; + } + + .dropdown-menu > .disabled > a:hover, + .dropdown-menu > .disabled > a:focus { + text-decoration: none; + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + cursor: not-allowed; + } + +.open > .dropdown-menu { + display: block; +} + +.open > a { + outline: 0; +} + +.dropdown-menu-right { + left: auto; + right: 0; +} + +.dropdown-menu-left { + left: 0; + right: auto; +} + +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 14px; + line-height: 1.42857143; + color: #666666; + white-space: nowrap; +} + +.dropdown-backdrop { + position: fixed; + left: 0; + right: 0; + bottom: 0; + top: 0; + z-index: 990; +} + +.pull-right > .dropdown-menu { + right: 0; + left: auto; +} + +.dropup .caret, +.navbar-fixed-bottom .dropdown .caret { + border-top: 0; + border-bottom: 4px solid; + content: ""; +} + +.dropup .dropdown-menu, +.navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 1px; +} + +@media (min-width: 768px) { + .navbar-right .dropdown-menu { + left: auto; + right: 0; + } + + .navbar-right .dropdown-menu-left { + left: 0; + right: auto; + } +} + +.btn-group, +.btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle; +} + + .btn-group > .btn, + .btn-group-vertical > .btn { + position: relative; + float: left; + } + + .btn-group > .btn:hover, + .btn-group-vertical > .btn:hover, + .btn-group > .btn:focus, + .btn-group-vertical > .btn:focus, + .btn-group > .btn:active, + .btn-group-vertical > .btn:active, + .btn-group > .btn.active, + .btn-group-vertical > .btn.active { + z-index: 2; + } + + .btn-group > .btn:focus, + .btn-group-vertical > .btn:focus { + outline: 0; + } + + .btn-group .btn + .btn, + .btn-group .btn + .btn-group, + .btn-group .btn-group + .btn, + .btn-group .btn-group + .btn-group { + margin-left: -1px; + } + +.btn-toolbar { + margin-left: -5px; +} + + .btn-toolbar .btn-group, + .btn-toolbar .input-group { + float: left; + } + + .btn-toolbar > .btn, + .btn-toolbar > .btn-group, + .btn-toolbar > .input-group { + margin-left: 5px; + } + +.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0; +} + +.btn-group > .btn:first-child { + margin-left: 0; +} + + .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { + border-bottom-right-radius: 0; + border-top-right-radius: 0; + } + +.btn-group > .btn:last-child:not(:first-child), +.btn-group > .dropdown-toggle:not(:first-child) { + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} + +.btn-group > .btn-group { + float: left; +} + + .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; + } + + .btn-group > .btn-group:first-child > .btn:last-child, + .btn-group > .btn-group:first-child > .dropdown-toggle { + border-bottom-right-radius: 0; + border-top-right-radius: 0; + } + + .btn-group > .btn-group:last-child > .btn:first-child { + border-bottom-left-radius: 0; + border-top-left-radius: 0; + } + +.btn-group .dropdown-toggle:active, +.btn-group.open .dropdown-toggle { + outline: 0; +} + +.btn-group > .btn + .dropdown-toggle { + padding-left: 8px; + padding-right: 8px; +} + +.btn-group > .btn-lg + .dropdown-toggle { + padding-left: 12px; + padding-right: 12px; +} + +.btn-group.open .dropdown-toggle { + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); +} + + .btn-group.open .dropdown-toggle.btn-link { + -webkit-box-shadow: none; + box-shadow: none; + } + +.btn .caret { + margin-left: 0; +} + +.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0; +} + +.dropup .btn-lg .caret { + border-width: 0 5px 5px; +} + +.btn-group-vertical > .btn, +.btn-group-vertical > .btn-group, +.btn-group-vertical > .btn-group > .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; +} + + .btn-group-vertical > .btn-group > .btn { + float: none; + } + + .btn-group-vertical > .btn + .btn, + .btn-group-vertical > .btn + .btn-group, + .btn-group-vertical > .btn-group + .btn, + .btn-group-vertical > .btn-group + .btn-group { + margin-top: -1px; + margin-left: 0; + } + + .btn-group-vertical > .btn:not(:first-child):not(:last-child) { + border-radius: 0; + } + + .btn-group-vertical > .btn:first-child:not(:last-child) { + border-top-right-radius: 1px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + } + + .btn-group-vertical > .btn:last-child:not(:first-child) { + border-bottom-left-radius: 1px; + border-top-right-radius: 0; + border-top-left-radius: 0; + } + + .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; + } + + .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, + .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + } + + .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { + border-top-right-radius: 0; + border-top-left-radius: 0; + } + +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate; +} + + .btn-group-justified > .btn, + .btn-group-justified > .btn-group { + float: none; + display: table-cell; + width: 1%; + } + + .btn-group-justified > .btn-group .btn { + width: 100%; + } + + .btn-group-justified > .btn-group .dropdown-menu { + left: auto; + } + +[data-toggle="buttons"] > .btn > input[type="radio"], +[data-toggle="buttons"] > .btn > input[type="checkbox"] { + position: absolute; + z-index: -1; + opacity: 0; + filter: alpha(opacity=0); +} + +.input-group { + position: relative; + display: table; + border-collapse: separate; +} + + .input-group[class*="col-"] { + float: none; + padding-left: 0; + padding-right: 0; + } + + .input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0; + } + +.input-group-lg > .form-control, +.input-group-lg > .input-group-addon, +.input-group-lg > .input-group-btn > .btn { + height: 49px; + padding: 10px 16px; + font-size: 20px; + line-height: 1.33; + border-radius: 2px; +} + +select.input-group-lg > .form-control, +select.input-group-lg > .input-group-addon, +select.input-group-lg > .input-group-btn > .btn { + height: 49px; + line-height: 49px; +} + +textarea.input-group-lg > .form-control, +textarea.input-group-lg > .input-group-addon, +textarea.input-group-lg > .input-group-btn > .btn, +select[multiple].input-group-lg > .form-control, +select[multiple].input-group-lg > .input-group-addon, +select[multiple].input-group-lg > .input-group-btn > .btn { + height: auto; +} + +.input-group-sm > .form-control, +.input-group-sm > .input-group-addon, +.input-group-sm > .input-group-btn > .btn { + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; +} + +select.input-group-sm > .form-control, +select.input-group-sm > .input-group-addon, +select.input-group-sm > .input-group-btn > .btn { + height: 33px; + line-height: 33px; +} + +textarea.input-group-sm > .form-control, +textarea.input-group-sm > .input-group-addon, +textarea.input-group-sm > .input-group-btn > .btn, +select[multiple].input-group-sm > .form-control, +select[multiple].input-group-sm > .input-group-addon, +select[multiple].input-group-sm > .input-group-btn > .btn { + height: auto; +} + +.input-group-addon, +.input-group-btn, +.input-group .form-control { + display: table-cell; +} + + .input-group-addon:not(:first-child):not(:last-child), + .input-group-btn:not(:first-child):not(:last-child), + .input-group .form-control:not(:first-child):not(:last-child) { + border-radius: 0; + } + +.input-group-addon, +.input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle; +} + +.input-group-addon { + padding: 6px 12px; + font-size: 16px; + font-weight: normal; + line-height: 1; + color: #4d4d4d; + text-align: center; + background-color: #cccccc; + border: 1px solid #cccccc; + border-radius: 1px; +} + + .input-group-addon.input-sm { + padding: 5px 10px; + font-size: 14px; + border-radius: 0; + } + + .input-group-addon.input-lg { + padding: 10px 16px; + font-size: 20px; + border-radius: 2px; + } + + .input-group-addon input[type="radio"], + .input-group-addon input[type="checkbox"] { + margin-top: 0; + } + + .input-group .form-control:first-child, + .input-group-addon:first-child, + .input-group-btn:first-child > .btn, + .input-group-btn:first-child > .btn-group > .btn, + .input-group-btn:first-child > .dropdown-toggle, + .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), + .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { + border-bottom-right-radius: 0; + border-top-right-radius: 0; + } + + .input-group-addon:first-child { + border-right: 0; + } + + .input-group .form-control:last-child, + .input-group-addon:last-child, + .input-group-btn:last-child > .btn, + .input-group-btn:last-child > .btn-group > .btn, + .input-group-btn:last-child > .dropdown-toggle, + .input-group-btn:first-child > .btn:not(:first-child), + .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { + border-bottom-left-radius: 0; + border-top-left-radius: 0; + } + + .input-group-addon:last-child { + border-left: 0; + } + +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap; +} + + .input-group-btn > .btn { + position: relative; + } + + .input-group-btn > .btn + .btn { + margin-left: -1px; + } + + .input-group-btn > .btn:hover, + .input-group-btn > .btn:focus, + .input-group-btn > .btn:active { + z-index: 2; + } + + .input-group-btn:first-child > .btn, + .input-group-btn:first-child > .btn-group { + margin-right: -1px; + } + + .input-group-btn:last-child > .btn, + .input-group-btn:last-child > .btn-group { + margin-left: -1px; + } + +.nav { + margin-bottom: 0; + padding-left: 0; + list-style: none; +} + + .nav > li { + position: relative; + display: block; + } + + .nav > li > a { + position: relative; + display: block; + padding: 5px 5px; + } + + .nav > li > a:hover, + .nav > li > a:focus { + text-decoration: none; + background-color: transparent; + } + + .nav > li.disabled > a { + color: #666666; + } + + .nav > li.disabled > a:hover, + .nav > li.disabled > a:focus { + color: #666666; + text-decoration: none; + background-color: transparent; + cursor: not-allowed; + } + + .nav .open > a, + .nav .open > a:hover, + .nav .open > a:focus { + background-color: transparent; + border-color: #0a94d4; + } + + .nav .nav-divider { + height: 1px; + margin: 10px 0; + overflow: hidden; + background-color: #e5e5e5; + } + + .nav > li > a > img { + max-width: none; + } + +.nav-tabs { + border-bottom: 1px solid #dddddd; +} + + .nav-tabs > li { + float: left; + margin-bottom: -1px; + } + + .nav-tabs > li > a { + margin-right: 2px; + line-height: 1.42857143; + border: 1px solid transparent; + border-radius: 1px 1px 0 0; + } + + .nav-tabs > li > a:hover { + border-color: #cccccc #cccccc #dddddd; + } + + .nav-tabs > li.active > a, + .nav-tabs > li.active > a:hover, + .nav-tabs > li.active > a:focus { + color: #4d4d4d; + background-color: #333333; + border: 1px solid #dddddd; + border-bottom-color: transparent; + cursor: default; + } + + .nav-tabs.nav-justified { + width: 100%; + border-bottom: 0; + } + + .nav-tabs.nav-justified > li { + float: none; + } + + .nav-tabs.nav-justified > li > a { + text-align: center; + margin-bottom: 5px; + } + + .nav-tabs.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; + } + +@media (min-width: 768px) { + .nav-tabs.nav-justified > li { + display: table-cell; + width: 1%; + } + + .nav-tabs.nav-justified > li > a { + margin-bottom: 0; + } +} + +.nav-tabs.nav-justified > li > a { + margin-right: 0; + border-radius: 1px; +} + +.nav-tabs.nav-justified > .active > a, +.nav-tabs.nav-justified > .active > a:hover, +.nav-tabs.nav-justified > .active > a:focus { + border: 1px solid #dddddd; +} + +@media (min-width: 768px) { + .nav-tabs.nav-justified > li > a { + border-bottom: 1px solid #dddddd; + border-radius: 1px 1px 0 0; + } + + .nav-tabs.nav-justified > .active > a, + .nav-tabs.nav-justified > .active > a:hover, + .nav-tabs.nav-justified > .active > a:focus { + border-bottom-color: #333333; + } +} + +.nav-pills > li { + float: left; +} + + .nav-pills > li > a { + border-radius: 1px; + } + + .nav-pills > li + li { + margin-left: 2px; + } + + .nav-pills > li.active > a, + .nav-pills > li.active > a:hover, + .nav-pills > li.active > a:focus { + color: #ffffff; + background-color: #4d4d4d; + } + +.nav-stacked > li { + float: none; +} + + .nav-stacked > li + li { + margin-top: 2px; + margin-left: 0; + } + +.nav-justified { + width: 100%; +} + + .nav-justified > li { + float: none; + } + + .nav-justified > li > a { + text-align: center; + margin-bottom: 5px; + } + + .nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; + } + +@media (min-width: 768px) { + .nav-justified > li { + display: table-cell; + width: 1%; + } + + .nav-justified > li > a { + margin-bottom: 0; + } +} + +.nav-tabs-justified { + border-bottom: 0; +} + + .nav-tabs-justified > li > a { + margin-right: 0; + border-radius: 1px; + } + + .nav-tabs-justified > .active > a, + .nav-tabs-justified > .active > a:hover, + .nav-tabs-justified > .active > a:focus { + border: 1px solid #dddddd; + } + +@media (min-width: 768px) { + .nav-tabs-justified > li > a { + border-bottom: 1px solid #dddddd; + border-radius: 1px 1px 0 0; + } + + .nav-tabs-justified > .active > a, + .nav-tabs-justified > .active > a:hover, + .nav-tabs-justified > .active > a:focus { + border-bottom-color: #333333; + } +} + +.tab-content > .tab-pane { + display: none; +} + +.tab-content > .active { + display: block; +} + +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-right-radius: 0; + border-top-left-radius: 0; +} + +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 22px; + border: 1px solid transparent; +} + +@media (min-width: 768px) { + .navbar { + border-radius: 1px; + } +} + +@media (min-width: 768px) { + .navbar-header { + float: left; + } +} + +.navbar-collapse { + overflow-x: visible; + padding-right: 15px; + padding-left: 15px; + border-top: 1px solid transparent; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); + -webkit-overflow-scrolling: touch; +} + + .navbar-collapse.in { + overflow-y: auto; + } + +@media (min-width: 768px) { + .navbar-collapse { + width: auto; + border-top: 0; + box-shadow: none; + } + + .navbar-collapse.collapse { + display: block !important; + height: auto !important; + padding-bottom: 0; + overflow: visible !important; + } + + .navbar-collapse.in { + overflow-y: visible; + } + + .navbar-fixed-top .navbar-collapse, + .navbar-static-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + padding-left: 0; + padding-right: 0; + } +} + +.navbar-fixed-top .navbar-collapse, +.navbar-fixed-bottom .navbar-collapse { + max-height: 340px; +} + +@media (max-width: 480px) and (orientation: landscape) { + .navbar-fixed-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + max-height: 200px; + } +} + +.container > .navbar-header, +.container-fluid > .navbar-header, +.container > .navbar-collapse, +.container-fluid > .navbar-collapse { + margin-right: -15px; + margin-left: -15px; +} + +@media (min-width: 768px) { + .container > .navbar-header, + .container-fluid > .navbar-header, + .container > .navbar-collapse, + .container-fluid > .navbar-collapse { + margin-right: 0; + margin-left: 0; + } +} + +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px; +} + +@media (min-width: 768px) { + .navbar-static-top { + border-radius: 0; + } +} + +.navbar-fixed-top, +.navbar-fixed-bottom { + position: fixed; + right: 0; + left: 0; + z-index: 1030; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} + +@media (min-width: 768px) { + .navbar-fixed-top, + .navbar-fixed-bottom { + border-radius: 0; + } +} + +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px; +} + +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0; +} + +.navbar-brand { + float: left; + padding: 14px 15px; + font-size: 20px; + line-height: 22px; + height: 50px; +} + + .navbar-brand:hover, + .navbar-brand:focus { + text-decoration: none; + } + +@media (min-width: 768px) { + .navbar > .container .navbar-brand, + .navbar > .container-fluid .navbar-brand { + margin-left: -15px; + } +} + +.navbar-toggle { + position: relative; + float: right; + margin-right: 15px; + padding: 9px 10px; + margin-top: 8px; + margin-bottom: 8px; + background-color: transparent; + background-image: none; + border: 1px solid transparent; + border-radius: 1px; +} + + .navbar-toggle:focus { + outline: 0; + } + + .navbar-toggle .icon-bar { + display: block; + width: 22px; + height: 2px; + border-radius: 1px; + } + + .navbar-toggle .icon-bar + .icon-bar { + margin-top: 4px; + } + +@media (min-width: 768px) { + .navbar-toggle { + display: none; + } +} + +.navbar-nav { + margin: 7px -15px; +} + + .navbar-nav > li > a { + padding-top: 10px; + padding-bottom: 10px; + line-height: 22px; + } + +@media (max-width: 767px) { + .navbar-nav .open .dropdown-menu { + position: static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + box-shadow: none; + } + + .navbar-nav .open .dropdown-menu > li > a, + .navbar-nav .open .dropdown-menu .dropdown-header { + padding: 5px 15px 5px 25px; + } + + .navbar-nav .open .dropdown-menu > li > a { + line-height: 22px; + } + + .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-nav .open .dropdown-menu > li > a:focus { + background-image: none; + } +} + +@media (min-width: 768px) { + .navbar-nav { + float: left; + margin: 0; + } + + .navbar-nav > li { + float: left; + } + + .navbar-nav > li > a { + padding-top: 14px; + padding-bottom: 14px; + } + + .navbar-nav.navbar-right:last-child { + margin-right: -15px; + } +} + +@media (min-width: 768px) { + .navbar-left { + float: left !important; + } + + .navbar-right { + float: right !important; + } +} + +.navbar-form { + margin-left: -15px; + margin-right: -15px; + padding: 10px 15px; + border-top: 1px solid transparent; + border-bottom: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); + margin-top: 7px; + margin-bottom: 7px; +} + +@media (min-width: 768px) { + .navbar-form .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + + .navbar-form .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + + .navbar-form .input-group { + display: inline-table; + vertical-align: middle; + } + + .navbar-form .input-group .input-group-addon, + .navbar-form .input-group .input-group-btn, + .navbar-form .input-group .form-control { + width: auto; + } + + .navbar-form .input-group > .form-control { + width: 100%; + } + + .navbar-form .control-label { + margin-bottom: 0; + vertical-align: middle; + } + + .navbar-form .radio, + .navbar-form .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + + .navbar-form .radio label, + .navbar-form .checkbox label { + padding-left: 0; + } + + .navbar-form .radio input[type="radio"], + .navbar-form .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + + .navbar-form .has-feedback .form-control-feedback { + top: 0; + } +} + +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 5px; + } +} + +@media (min-width: 768px) { + .navbar-form { + width: auto; + border: 0; + margin-left: 0; + margin-right: 0; + padding-top: 0; + padding-bottom: 0; + -webkit-box-shadow: none; + box-shadow: none; + } + + .navbar-form.navbar-right:last-child { + margin-right: -15px; + } +} + +.navbar-nav > li > .dropdown-menu { + margin-top: 0; + border-top-right-radius: 0; + border-top-left-radius: 0; +} + +.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} + +.navbar-btn { + margin-top: 7px; + margin-bottom: 7px; +} + + .navbar-btn.btn-sm { + margin-top: 8.5px; + margin-bottom: 8.5px; + } + + .navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px; + } + +.navbar-text { + margin-top: 14px; + margin-bottom: 14px; +} + +@media (min-width: 768px) { + .navbar-text { + float: left; + margin-left: 15px; + margin-right: 15px; + } + + .navbar-text.navbar-right:last-child { + margin-right: 0; + } +} + +.navbar-default { + background-color: #f8f8f8; + border-color: #e7e7e7; +} + + .navbar-default .navbar-brand { + color: #777777; + } + + .navbar-default .navbar-brand:hover, + .navbar-default .navbar-brand:focus { + color: #5e5e5e; + background-color: transparent; + } + + .navbar-default .navbar-text { + color: #777777; + } + + .navbar-default .navbar-nav > li > a { + color: #777777; + } + + .navbar-default .navbar-nav > li > a:hover, + .navbar-default .navbar-nav > li > a:focus { + color: #333333; + background-color: transparent; + } + + .navbar-default .navbar-nav > .active > a, + .navbar-default .navbar-nav > .active > a:hover, + .navbar-default .navbar-nav > .active > a:focus { + color: #555555; + background-color: #e7e7e7; + } + + .navbar-default .navbar-nav > .disabled > a, + .navbar-default .navbar-nav > .disabled > a:hover, + .navbar-default .navbar-nav > .disabled > a:focus { + color: #cccccc; + background-color: transparent; + } + + .navbar-default .navbar-toggle { + border-color: #dddddd; + } + + .navbar-default .navbar-toggle:hover, + .navbar-default .navbar-toggle:focus { + background-color: #dddddd; + } + + .navbar-default .navbar-toggle .icon-bar { + background-color: #888888; + } + + .navbar-default .navbar-collapse, + .navbar-default .navbar-form { + border-color: #e7e7e7; + } + + .navbar-default .navbar-nav > .open > a, + .navbar-default .navbar-nav > .open > a:hover, + .navbar-default .navbar-nav > .open > a:focus { + background-color: #e7e7e7; + color: #555555; + } + +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu > li > a { + color: #777777; + } + + .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { + color: #333333; + background-color: transparent; + } + + .navbar-default .navbar-nav .open .dropdown-menu > .active > a, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #555555; + background-color: #e7e7e7; + } + + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #cccccc; + background-color: transparent; + } +} + +.navbar-default .navbar-link { + color: #777777; +} + + .navbar-default .navbar-link:hover { + color: #333333; + } + +.navbar-default .btn-link { + color: #777777; +} + + .navbar-default .btn-link:hover, + .navbar-default .btn-link:focus { + color: #333333; + } + + .navbar-default .btn-link[disabled]:hover, + fieldset[disabled] .navbar-default .btn-link:hover, + .navbar-default .btn-link[disabled]:focus, + fieldset[disabled] .navbar-default .btn-link:focus { + color: #cccccc; + } + +.navbar-inverse { + background-color: #222222; + border-color: #080808; +} + + .navbar-inverse .navbar-brand { + color: #666666; + } + + .navbar-inverse .navbar-brand:hover, + .navbar-inverse .navbar-brand:focus { + color: #ffffff; + background-color: transparent; + } + + .navbar-inverse .navbar-text { + color: #666666; + } + + .navbar-inverse .navbar-nav > li > a { + color: #666666; + } + + .navbar-inverse .navbar-nav > li > a:hover, + .navbar-inverse .navbar-nav > li > a:focus { + color: #ffffff; + background-color: transparent; + } + + .navbar-inverse .navbar-nav > .active > a, + .navbar-inverse .navbar-nav > .active > a:hover, + .navbar-inverse .navbar-nav > .active > a:focus { + color: #ffffff; + background-color: #080808; + } + + .navbar-inverse .navbar-nav > .disabled > a, + .navbar-inverse .navbar-nav > .disabled > a:hover, + .navbar-inverse .navbar-nav > .disabled > a:focus { + color: #444444; + background-color: transparent; + } + + .navbar-inverse .navbar-toggle { + border-color: #333333; + } + + .navbar-inverse .navbar-toggle:hover, + .navbar-inverse .navbar-toggle:focus { + background-color: #333333; + } + + .navbar-inverse .navbar-toggle .icon-bar { + background-color: #ffffff; + } + + .navbar-inverse .navbar-collapse, + .navbar-inverse .navbar-form { + border-color: #101010; + } + + .navbar-inverse .navbar-nav > .open > a, + .navbar-inverse .navbar-nav > .open > a:hover, + .navbar-inverse .navbar-nav > .open > a:focus { + background-color: #080808; + color: #ffffff; + } + +@media (max-width: 767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { + border-color: #080808; + } + + .navbar-inverse .navbar-nav .open .dropdown-menu .divider { + background-color: #080808; + } + + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { + color: #666666; + } + + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { + color: #ffffff; + background-color: transparent; + } + + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #ffffff; + background-color: #080808; + } + + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #444444; + background-color: transparent; + } +} + +.navbar-inverse .navbar-link { + color: #666666; +} + + .navbar-inverse .navbar-link:hover { + color: #ffffff; + } + +.navbar-inverse .btn-link { + color: #666666; +} + + .navbar-inverse .btn-link:hover, + .navbar-inverse .btn-link:focus { + color: #ffffff; + } + + .navbar-inverse .btn-link[disabled]:hover, + fieldset[disabled] .navbar-inverse .btn-link:hover, + .navbar-inverse .btn-link[disabled]:focus, + fieldset[disabled] .navbar-inverse .btn-link:focus { + color: #444444; + } + +.breadcrumb { + padding: 8px 15px; + margin-bottom: 22px; + list-style: none; + background-color: #f5f5f5; + border-radius: 1px; +} + + .breadcrumb > li { + display: inline-block; + } + + .breadcrumb > li + li:before { + content: "/\00a0"; + padding: 0 5px; + color: #cccccc; + } + + .breadcrumb > .active { + color: #666666; + } + +.pagination { + display: inline-block; + padding-left: 0; + margin: 22px 0; + border-radius: 1px; +} + + .pagination > li { + display: inline; + } + + .pagination > li > a, + .pagination > li > span { + position: relative; + float: left; + padding: 6px 12px; + line-height: 1.42857143; + text-decoration: none; + color: #0a94d4; + background-color: #ffffff; + border: 1px solid #dddddd; + margin-left: -1px; + } + + .pagination > li:first-child > a, + .pagination > li:first-child > span { + margin-left: 0; + border-bottom-left-radius: 1px; + border-top-left-radius: 1px; + } + + .pagination > li:last-child > a, + .pagination > li:last-child > span { + border-bottom-right-radius: 1px; + border-top-right-radius: 1px; + } + + .pagination > li > a:hover, + .pagination > li > span:hover, + .pagination > li > a:focus, + .pagination > li > span:focus { + color: #07618b; + background-color: #cccccc; + border-color: #dddddd; + } + + .pagination > .active > a, + .pagination > .active > span, + .pagination > .active > a:hover, + .pagination > .active > span:hover, + .pagination > .active > a:focus, + .pagination > .active > span:focus { + z-index: 2; + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; + cursor: default; + } + + .pagination > .disabled > span, + .pagination > .disabled > span:hover, + .pagination > .disabled > span:focus, + .pagination > .disabled > a, + .pagination > .disabled > a:hover, + .pagination > .disabled > a:focus { + color: #666666; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; + } + +.pagination-lg > li > a, +.pagination-lg > li > span { + padding: 10px 16px; + font-size: 20px; +} + +.pagination-lg > li:first-child > a, +.pagination-lg > li:first-child > span { + border-bottom-left-radius: 2px; + border-top-left-radius: 2px; +} + +.pagination-lg > li:last-child > a, +.pagination-lg > li:last-child > span { + border-bottom-right-radius: 2px; + border-top-right-radius: 2px; +} + +.pagination-sm > li > a, +.pagination-sm > li > span { + padding: 5px 10px; + font-size: 14px; +} + +.pagination-sm > li:first-child > a, +.pagination-sm > li:first-child > span { + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} + +.pagination-sm > li:last-child > a, +.pagination-sm > li:last-child > span { + border-bottom-right-radius: 0; + border-top-right-radius: 0; +} + +.pager { + padding-left: 0; + margin: 22px 0; + list-style: none; + text-align: center; +} + + .pager li { + display: inline; + } + + .pager li > a, + .pager li > span { + display: inline-block; + padding: 5px 14px; + background-color: #ffffff; + border: 1px solid #dddddd; + border-radius: 15px; + } + + .pager li > a:hover, + .pager li > a:focus { + text-decoration: none; + background-color: #cccccc; + } + + .pager .next > a, + .pager .next > span { + float: right; + } + + .pager .previous > a, + .pager .previous > span { + float: left; + } + + .pager .disabled > a, + .pager .disabled > a:hover, + .pager .disabled > a:focus, + .pager .disabled > span { + color: #666666; + background-color: #ffffff; + cursor: not-allowed; + } + +.label { + display: inline; + padding: .2em .6em .3em; + font-size: 75%; + font-weight: bold; + line-height: 1; + color: #ffffff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25em; +} + +a.label:hover, +a.label:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; +} + +.label:empty { + display: none; +} + +.btn .label { + position: relative; + top: -1px; +} + +.label-default { + background-color: #666666; +} + + .label-default[href]:hover, + .label-default[href]:focus { + background-color: #4d4d4d; + } + +.label-primary { + background-color: #4d4d4d; +} + + .label-primary[href]:hover, + .label-primary[href]:focus { + background-color: #333333; + } + +.label-success { + background-color: #28b309; +} + + .label-success[href]:hover, + .label-success[href]:focus { + background-color: #1d8207; + } + +.label-info { + background-color: #0a94d4; +} + + .label-info[href]:hover, + .label-info[href]:focus { + background-color: #0872a3; + } + +.label-warning { + background-color: #f0ad20; +} + + .label-warning[href]:hover, + .label-warning[href]:focus { + background-color: #cf910e; + } + +.label-danger { + background-color: #ef4a24; +} + + .label-danger[href]:hover, + .label-danger[href]:focus { + background-color: #d1330f; + } + +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 14px; + font-weight: bold; + color: #ffffff; + line-height: 1; + vertical-align: baseline; + white-space: nowrap; + text-align: center; + background-color: #666666; + border-radius: 10px; +} + + .badge:empty { + display: none; + } + +.btn .badge { + position: relative; + top: -1px; +} + +.btn-xs .badge { + top: 0; + padding: 1px 5px; +} + +a.badge:hover, +a.badge:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; +} + +a.list-group-item.active > .badge, +.nav-pills > .active > a > .badge { + color: #0a94d4; + background-color: #ffffff; +} + +.nav-pills > li > a > .badge { + margin-left: 3px; +} + +.jumbotron { + padding: 30px; + margin-bottom: 30px; + color: inherit; + background-color: #cccccc; +} + + .jumbotron h1, + .jumbotron .h1 { + color: inherit; + } + + .jumbotron p { + margin-bottom: 15px; + font-size: 24px; + font-weight: 200; + } + + .jumbotron > hr { + border-top-color: #b3b3b3; + } + +.container .jumbotron { + border-radius: 2px; +} + +.jumbotron .container { + max-width: 100%; +} + +@media screen and (min-width: 768px) { + .jumbotron { + padding-top: 48px; + padding-bottom: 48px; + } + + .container .jumbotron { + padding-left: 60px; + padding-right: 60px; + } + + .jumbotron h1, + .jumbotron .h1 { + font-size: 72px; + } +} + +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 22px; + line-height: 1.42857143; + background-color: #333333; + border: 1px solid #dddddd; + border-radius: 1px; + -webkit-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} + + .thumbnail > img, + .thumbnail a > img { + margin-left: auto; + margin-right: auto; + } + +a.thumbnail:hover, +a.thumbnail:focus, +a.thumbnail.active { + border-color: #0a94d4; +} + +.thumbnail .caption { + padding: 9px; + color: #ffffff; +} + +.alert { + padding: 15px; + margin-bottom: 22px; + border: 1px solid transparent; + border-radius: 1px; +} + + .alert h4 { + margin-top: 0; + color: inherit; + } + + .alert .alert-link { + font-weight: bold; + } + + .alert > p, + .alert > ul { + margin-bottom: 0; + } + + .alert > p + p { + margin-top: 5px; + } + +.alert-dismissable, +.alert-dismissible { + padding-right: 35px; +} + + .alert-dismissable .close, + .alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; + } + +.alert-success { + background-color: #d3e5cf; + border-color: #c9dcbe; + color: #125204; +} + + .alert-success hr { + border-top-color: #bbd3ae; + } + + .alert-success .alert-link { + color: #072102; + } + +.alert-info { + background-color: #daebf2; + border-color: #c0e4e9; + color: #0872a3; +} + + .alert-info hr { + border-top-color: #addbe2; + } + + .alert-info .alert-link { + color: #055073; + } + +.alert-warning { + background-color: #fcf8e3; + border-color: #faebcc; + color: #8a6d3b; +} + + .alert-warning hr { + border-top-color: #f7e1b5; + } + + .alert-warning .alert-link { + color: #66512c; + } + +.alert-danger { + background-color: #f0dcd8; + border-color: #e9c6c6; + color: #d63510; +} + + .alert-danger hr { + border-top-color: #e2b3b3; + } + + .alert-danger .alert-link { + color: #a6290c; + } + +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + + to { + background-position: 0 0; + } +} + +@keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + + to { + background-position: 0 0; + } +} + +.progress { + overflow: hidden; + height: 22px; + margin-bottom: 22px; + background-color: #f5f5f5; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); +} + +.progress-bar { + float: left; + width: 0%; + height: 100%; + font-size: 14px; + line-height: 22px; + color: #ffffff; + text-align: center; + background-color: #4d4d4d; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + -webkit-transition: width 0.6s ease; + -o-transition: width 0.6s ease; + transition: width 0.6s ease; +} + +.progress-striped .progress-bar, +.progress-bar-striped { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-size: 40px 40px; +} + +.progress.active .progress-bar, +.progress-bar.active { + -webkit-animation: progress-bar-stripes 2s linear infinite; + -o-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; +} + +.progress-bar[aria-valuenow="1"], +.progress-bar[aria-valuenow="2"] { + min-width: 30px; +} + +.progress-bar[aria-valuenow="0"] { + color: #666666; + min-width: 30px; + background-color: transparent; + background-image: none; + box-shadow: none; +} + +.progress-bar-success { + background-color: #28b309; +} + +.progress-striped .progress-bar-success { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} + +.progress-bar-info { + background-color: #0a94d4; +} + +.progress-striped .progress-bar-info { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} + +.progress-bar-warning { + background-color: #f0ad20; +} + +.progress-striped .progress-bar-warning { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} + +.progress-bar-danger { + background-color: #ef4a24; +} + +.progress-striped .progress-bar-danger { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} + +.media, +.media-body { + overflow: hidden; + zoom: 1; +} + + .media, + .media .media { + margin-top: 15px; + } + + .media:first-child { + margin-top: 0; + } + +.media-object { + display: block; +} + +.media-heading { + margin: 0 0 5px; +} + +.media > .pull-left { + margin-right: 10px; +} + +.media > .pull-right { + margin-left: 10px; +} + +.media-list { + padding-left: 0; + list-style: none; +} + +.list-group { + margin-bottom: 20px; + padding-left: 0; +} + +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #ffffff; + border: 1px solid #dddddd; +} + + .list-group-item:first-child { + border-top-right-radius: 1px; + border-top-left-radius: 1px; + } + + .list-group-item:last-child { + margin-bottom: 0; + border-bottom-right-radius: 1px; + border-bottom-left-radius: 1px; + } + + .list-group-item > .badge { + float: right; + } + + .list-group-item > .badge + .badge { + margin-right: 5px; + } + +a.list-group-item { + color: #555555; +} + + a.list-group-item .list-group-item-heading { + color: #333333; + } + + a.list-group-item:hover, + a.list-group-item:focus { + text-decoration: none; + color: #555555; + background-color: #f5f5f5; + } + +.list-group-item.disabled, +.list-group-item.disabled:hover, +.list-group-item.disabled:focus { + background-color: #cccccc; + color: #666666; +} + + .list-group-item.disabled .list-group-item-heading, + .list-group-item.disabled:hover .list-group-item-heading, + .list-group-item.disabled:focus .list-group-item-heading { + color: inherit; + } + + .list-group-item.disabled .list-group-item-text, + .list-group-item.disabled:hover .list-group-item-text, + .list-group-item.disabled:focus .list-group-item-text { + color: #666666; + } + +.list-group-item.active, +.list-group-item.active:hover, +.list-group-item.active:focus { + z-index: 2; + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; +} + + .list-group-item.active .list-group-item-heading, + .list-group-item.active:hover .list-group-item-heading, + .list-group-item.active:focus .list-group-item-heading, + .list-group-item.active .list-group-item-heading > small, + .list-group-item.active:hover .list-group-item-heading > small, + .list-group-item.active:focus .list-group-item-heading > small, + .list-group-item.active .list-group-item-heading > .small, + .list-group-item.active:hover .list-group-item-heading > .small, + .list-group-item.active:focus .list-group-item-heading > .small { + color: inherit; + } + + .list-group-item.active .list-group-item-text, + .list-group-item.active:hover .list-group-item-text, + .list-group-item.active:focus .list-group-item-text { + color: #b3b3b3; + } + +.list-group-item-success { + color: #125204; + background-color: #d3e5cf; +} + +a.list-group-item-success { + color: #125204; +} + + a.list-group-item-success .list-group-item-heading { + color: inherit; + } + + a.list-group-item-success:hover, + a.list-group-item-success:focus { + color: #125204; + background-color: #c4dcbe; + } + + a.list-group-item-success.active, + a.list-group-item-success.active:hover, + a.list-group-item-success.active:focus { + color: #fff; + background-color: #125204; + border-color: #125204; + } + +.list-group-item-info { + color: #0872a3; + background-color: #daebf2; +} + +a.list-group-item-info { + color: #0872a3; +} + + a.list-group-item-info .list-group-item-heading { + color: inherit; + } + + a.list-group-item-info:hover, + a.list-group-item-info:focus { + color: #0872a3; + background-color: #c7e1eb; + } + + a.list-group-item-info.active, + a.list-group-item-info.active:hover, + a.list-group-item-info.active:focus { + color: #fff; + background-color: #0872a3; + border-color: #0872a3; + } + +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3; +} + +a.list-group-item-warning { + color: #8a6d3b; +} + + a.list-group-item-warning .list-group-item-heading { + color: inherit; + } + + a.list-group-item-warning:hover, + a.list-group-item-warning:focus { + color: #8a6d3b; + background-color: #faf2cc; + } + + a.list-group-item-warning.active, + a.list-group-item-warning.active:hover, + a.list-group-item-warning.active:focus { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; + } + +.list-group-item-danger { + color: #d63510; + background-color: #f0dcd8; +} + +a.list-group-item-danger { + color: #d63510; +} + + a.list-group-item-danger .list-group-item-heading { + color: inherit; + } + + a.list-group-item-danger:hover, + a.list-group-item-danger:focus { + color: #d63510; + background-color: #e9cbc6; + } + + a.list-group-item-danger.active, + a.list-group-item-danger.active:hover, + a.list-group-item-danger.active:focus { + color: #fff; + background-color: #d63510; + border-color: #d63510; + } + +.list-group-item-heading { + margin-top: 0; + margin-bottom: 5px; +} + +.list-group-item-text { + margin-bottom: 0; + line-height: 1.3; +} + +.panel { + margin-bottom: 22px; + background-color: #ffffff; + border: 1px solid transparent; + border-radius: 1px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); +} + +.panel-body { + padding: 15px; +} + +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-right-radius: 0px; + border-top-left-radius: 0px; +} + + .panel-heading > .dropdown .dropdown-toggle { + color: inherit; + } + +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 18px; + color: inherit; +} + + .panel-title > a { + color: inherit; + } + +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #dddddd; + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; +} + +.panel > .list-group { + margin-bottom: 0; +} + + .panel > .list-group .list-group-item { + border-width: 1px 0; + border-radius: 0; + } + + .panel > .list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-right-radius: 0px; + border-top-left-radius: 0px; + } + + .panel > .list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; + } + +.panel-heading + .list-group .list-group-item:first-child { + border-top-width: 0; +} + +.list-group + .panel-footer { + border-top-width: 0; +} + +.panel > .table, +.panel > .table-responsive > .table, +.panel > .panel-collapse > .table { + margin-bottom: 0; +} + + .panel > .table:first-child, + .panel > .table-responsive:first-child > .table:first-child { + border-top-right-radius: 0px; + border-top-left-radius: 0px; + } + + .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, + .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, + .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, + .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, + .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, + .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, + .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, + .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { + border-top-left-radius: 0px; + } + + .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, + .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, + .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, + .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, + .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, + .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, + .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, + .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { + border-top-right-radius: 0px; + } + + .panel > .table:last-child, + .panel > .table-responsive:last-child > .table:last-child { + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; + } + + .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, + .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, + .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, + .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, + .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, + .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, + .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, + .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { + border-bottom-left-radius: 0px; + } + + .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, + .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, + .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, + .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, + .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, + .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, + .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, + .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { + border-bottom-right-radius: 0px; + } + +.panel > .panel-body + .table, +.panel > .panel-body + .table-responsive { + border-top: 1px solid #dddddd; +} + +.panel > .table > tbody:first-child > tr:first-child th, +.panel > .table > tbody:first-child > tr:first-child td { + border-top: 0; +} + +.panel > .table-bordered, +.panel > .table-responsive > .table-bordered { + border: 0; +} + + .panel > .table-bordered > thead > tr > th:first-child, + .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, + .panel > .table-bordered > tbody > tr > th:first-child, + .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, + .panel > .table-bordered > tfoot > tr > th:first-child, + .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, + .panel > .table-bordered > thead > tr > td:first-child, + .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, + .panel > .table-bordered > tbody > tr > td:first-child, + .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, + .panel > .table-bordered > tfoot > tr > td:first-child, + .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; + } + + .panel > .table-bordered > thead > tr > th:last-child, + .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, + .panel > .table-bordered > tbody > tr > th:last-child, + .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, + .panel > .table-bordered > tfoot > tr > th:last-child, + .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, + .panel > .table-bordered > thead > tr > td:last-child, + .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, + .panel > .table-bordered > tbody > tr > td:last-child, + .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, + .panel > .table-bordered > tfoot > tr > td:last-child, + .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; + } + + .panel > .table-bordered > thead > tr:first-child > td, + .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, + .panel > .table-bordered > tbody > tr:first-child > td, + .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, + .panel > .table-bordered > thead > tr:first-child > th, + .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, + .panel > .table-bordered > tbody > tr:first-child > th, + .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { + border-bottom: 0; + } + + .panel > .table-bordered > tbody > tr:last-child > td, + .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, + .panel > .table-bordered > tfoot > tr:last-child > td, + .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, + .panel > .table-bordered > tbody > tr:last-child > th, + .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, + .panel > .table-bordered > tfoot > tr:last-child > th, + .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; + } + +.panel > .table-responsive { + border: 0; + margin-bottom: 0; +} + +.panel-group { + margin-bottom: 22px; +} + + .panel-group .panel { + margin-bottom: 0; + border-radius: 1px; + } + + .panel-group .panel + .panel { + margin-top: 5px; + } + + .panel-group .panel-heading { + border-bottom: 0; + } + + .panel-group .panel-heading + .panel-collapse > .panel-body { + border-top: 1px solid #dddddd; + } + + .panel-group .panel-footer { + border-top: 0; + } + + .panel-group .panel-footer + .panel-collapse .panel-body { + border-bottom: 1px solid #dddddd; + } + +.panel-default { + border-color: #dddddd; +} + + .panel-default > .panel-heading { + color: #333333; + background-color: #f5f5f5; + border-color: #dddddd; + } + + .panel-default > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #dddddd; + } + + .panel-default > .panel-heading .badge { + color: #f5f5f5; + background-color: #333333; + } + + .panel-default > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #dddddd; + } + +.panel-primary { + border-color: #4d4d4d; +} + + .panel-primary > .panel-heading { + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; + } + + .panel-primary > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #4d4d4d; + } + + .panel-primary > .panel-heading .badge { + color: #4d4d4d; + background-color: #ffffff; + } + + .panel-primary > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #4d4d4d; + } + +.panel-success { + border-color: #c9dcbe; +} + + .panel-success > .panel-heading { + color: #125204; + background-color: #d3e5cf; + border-color: #c9dcbe; + } + + .panel-success > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #c9dcbe; + } + + .panel-success > .panel-heading .badge { + color: #d3e5cf; + background-color: #125204; + } + + .panel-success > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #c9dcbe; + } + +.panel-info { + border-color: #c0e4e9; +} + + .panel-info > .panel-heading { + color: #0872a3; + background-color: #daebf2; + border-color: #c0e4e9; + } + + .panel-info > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #c0e4e9; + } + + .panel-info > .panel-heading .badge { + color: #daebf2; + background-color: #0872a3; + } + + .panel-info > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #c0e4e9; + } + +.panel-warning { + border-color: #faebcc; +} + + .panel-warning > .panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; + } + + .panel-warning > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #faebcc; + } + + .panel-warning > .panel-heading .badge { + color: #fcf8e3; + background-color: #8a6d3b; + } + + .panel-warning > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #faebcc; + } + +.panel-danger { + border-color: #e9c6c6; +} + + .panel-danger > .panel-heading { + color: #d63510; + background-color: #f0dcd8; + border-color: #e9c6c6; + } + + .panel-danger > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #e9c6c6; + } + + .panel-danger > .panel-heading .badge { + color: #f0dcd8; + background-color: #d63510; + } + + .panel-danger > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #e9c6c6; + } + +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden; +} + + .embed-responsive .embed-responsive-item, + .embed-responsive iframe, + .embed-responsive embed, + .embed-responsive object { + position: absolute; + top: 0; + left: 0; + bottom: 0; + height: 100%; + width: 100%; + border: 0; + } + + .embed-responsive.embed-responsive-16by9 { + padding-bottom: 56.25%; + } + + .embed-responsive.embed-responsive-4by3 { + padding-bottom: 75%; + } + +.well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); +} + + .well blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, 0.15); + } + +.well-lg { + padding: 24px; + border-radius: 2px; +} + +.well-sm { + padding: 9px; + border-radius: 0; +} + +.close { + float: right; + font-size: 24px; + font-weight: bold; + line-height: 1; + color: #000000; + text-shadow: 0 1px 0 #ffffff; + opacity: 0.2; + filter: alpha(opacity=20); +} + + .close:hover, + .close:focus { + color: #000000; + text-decoration: none; + cursor: pointer; + opacity: 0.5; + filter: alpha(opacity=50); + } + +button.close { + padding: 0; + cursor: pointer; + background: transparent; + border: 0; + -webkit-appearance: none; +} + +.modal-open { + overflow: hidden; +} + +.modal { + display: none; + overflow: hidden; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + -webkit-overflow-scrolling: touch; + outline: 0; +} + + .modal.fade .modal-dialog { + -webkit-transform: translate3d(0, -25%, 0); + transform: translate3d(0, -25%, 0); + -webkit-transition: -webkit-transform 0.3s ease-out; + -moz-transition: -moz-transform 0.3s ease-out; + -o-transition: -o-transform 0.3s ease-out; + transition: transform 0.3s ease-out; + } + + .modal.in .modal-dialog { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + } + +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto; +} + +.modal-dialog { + position: relative; + width: auto; + margin: 10px; +} + +.modal-content { + position: relative; + background-color: #ffffff; + border: 1px solid #999999; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 2px; + -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + background-clip: padding-box; + outline: 0; +} + +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000000; +} + + .modal-backdrop.fade { + opacity: 0; + filter: alpha(opacity=0); + } + + .modal-backdrop.in { + opacity: 0.5; + filter: alpha(opacity=50); + } + +.modal-header { + padding: 15px; + border-bottom: 1px solid #e5e5e5; + min-height: 16.42857143px; +} + + .modal-header .close { + margin-top: -2px; + } + +.modal-title { + margin: 0; + line-height: 1.42857143; +} + +.modal-body { + position: relative; + padding: 15px; +} + +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5; +} + + .modal-footer .btn + .btn { + margin-left: 5px; + margin-bottom: 0; + } + + .modal-footer .btn-group .btn + .btn { + margin-left: -1px; + } + + .modal-footer .btn-block + .btn-block { + margin-left: 0; + } + +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll; +} + +@media (min-width: 768px) { + .modal-dialog { + width: 600px; + margin: 30px auto; + } + + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); + } + + .modal-sm { + width: 300px; + } +} + +@media (min-width: 992px) { + .modal-lg { + width: 900px; + } +} + +.tooltip { + position: absolute; + z-index: 1070; + display: block; + visibility: visible; + font-size: 14px; + line-height: 1.4; + opacity: 0; + filter: alpha(opacity=0); +} + + .tooltip.in { + opacity: 0.9; + filter: alpha(opacity=90); + } + + .tooltip.top { + margin-top: -3px; + padding: 5px 0; + } + + .tooltip.right { + margin-left: 3px; + padding: 0 5px; + } + + .tooltip.bottom { + margin-top: 3px; + padding: 5px 0; + } + + .tooltip.left { + margin-left: -3px; + padding: 0 5px; + } + +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #ffffff; + text-align: center; + text-decoration: none; + background-color: #000000; + border-radius: 1px; +} + +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} + +.tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000000; +} + +.tooltip.top-left .tooltip-arrow { + bottom: 0; + left: 5px; + border-width: 5px 5px 0; + border-top-color: #000000; +} + +.tooltip.top-right .tooltip-arrow { + bottom: 0; + right: 5px; + border-width: 5px 5px 0; + border-top-color: #000000; +} + +.tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000000; +} + +.tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000000; +} + +.tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; +} + +.tooltip.bottom-left .tooltip-arrow { + top: 0; + left: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; +} + +.tooltip.bottom-right .tooltip-arrow { + top: 0; + right: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; +} + +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: none; + max-width: 276px; + padding: 1px; + text-align: left; + background-color: #ffffff; + background-clip: padding-box; + border: 1px solid #cccccc; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 2px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + white-space: normal; +} + + .popover.top { + margin-top: -10px; + } + + .popover.right { + margin-left: 10px; + } + + .popover.bottom { + margin-top: 10px; + } + + .popover.left { + margin-left: -10px; + } + +.popover-title { + margin: 0; + padding: 8px 14px; + font-size: 16px; + font-weight: normal; + line-height: 18px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + border-radius: 1px 1px 0 0; +} + +.popover-content { + padding: 9px 14px; +} + +.popover > .arrow, +.popover > .arrow:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} + +.popover > .arrow { + border-width: 11px; +} + + .popover > .arrow:after { + border-width: 10px; + content: ""; + } + +.popover.top > .arrow { + left: 50%; + margin-left: -11px; + border-bottom-width: 0; + border-top-color: #999999; + border-top-color: rgba(0, 0, 0, 0.25); + bottom: -11px; +} + + .popover.top > .arrow:after { + content: " "; + bottom: 1px; + margin-left: -10px; + border-bottom-width: 0; + border-top-color: #ffffff; + } + +.popover.right > .arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-left-width: 0; + border-right-color: #999999; + border-right-color: rgba(0, 0, 0, 0.25); +} + + .popover.right > .arrow:after { + content: " "; + left: 1px; + bottom: -10px; + border-left-width: 0; + border-right-color: #ffffff; + } + +.popover.bottom > .arrow { + left: 50%; + margin-left: -11px; + border-top-width: 0; + border-bottom-color: #999999; + border-bottom-color: rgba(0, 0, 0, 0.25); + top: -11px; +} + + .popover.bottom > .arrow:after { + content: " "; + top: 1px; + margin-left: -10px; + border-top-width: 0; + border-bottom-color: #ffffff; + } + +.popover.left > .arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-right-width: 0; + border-left-color: #999999; + border-left-color: rgba(0, 0, 0, 0.25); +} + + .popover.left > .arrow:after { + content: " "; + right: 1px; + border-right-width: 0; + border-left-color: #ffffff; + bottom: -10px; + } + +.carousel { + position: relative; +} + +.carousel-inner { + position: relative; + overflow: hidden; + width: 100%; +} + + .carousel-inner > .item { + display: none; + position: relative; + -webkit-transition: 0.6s ease-in-out left; + -o-transition: 0.6s ease-in-out left; + transition: 0.6s ease-in-out left; + } + + .carousel-inner > .item > img, + .carousel-inner > .item > a > img { + line-height: 1; + } + + .carousel-inner > .active, + .carousel-inner > .next, + .carousel-inner > .prev { + display: block; + } + + .carousel-inner > .active { + left: 0; + } + + .carousel-inner > .next, + .carousel-inner > .prev { + position: absolute; + top: 0; + width: 100%; + } + + .carousel-inner > .next { + left: 100%; + } + + .carousel-inner > .prev { + left: -100%; + } + + .carousel-inner > .next.left, + .carousel-inner > .prev.right { + left: 0; + } + + .carousel-inner > .active.left { + left: -100%; + } + + .carousel-inner > .active.right { + left: 100%; + } + +.carousel-control { + position: absolute; + top: 0; + left: 0; + bottom: 0; + width: 15%; + opacity: 0.5; + filter: alpha(opacity=50); + font-size: 20px; + color: #ffffff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); +} + + .carousel-control.left { + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); + background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); + } + + .carousel-control.right { + left: auto; + right: 0; + background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); + background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); + background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); + } + + .carousel-control:hover, + .carousel-control:focus { + outline: 0; + color: #ffffff; + text-decoration: none; + opacity: 0.9; + filter: alpha(opacity=90); + } + + .carousel-control .icon-prev, + .carousel-control .icon-next, + .carousel-control .glyphicon-chevron-left, + .carousel-control .glyphicon-chevron-right { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; + } + + .carousel-control .icon-prev, + .carousel-control .glyphicon-chevron-left { + left: 50%; + margin-left: -10px; + } + + .carousel-control .icon-next, + .carousel-control .glyphicon-chevron-right { + right: 50%; + margin-right: -10px; + } + + .carousel-control .icon-prev, + .carousel-control .icon-next { + width: 20px; + height: 20px; + margin-top: -10px; + font-family: serif; + } + + .carousel-control .icon-prev:before { + content: '\2039'; + } + + .carousel-control .icon-next:before { + content: '\203a'; + } + +.carousel-indicators { + position: absolute; + bottom: 10px; + left: 50%; + z-index: 15; + width: 60%; + margin-left: -30%; + padding-left: 0; + list-style: none; + text-align: center; +} + + .carousel-indicators li { + display: inline-block; + width: 10px; + height: 10px; + margin: 1px; + text-indent: -999px; + border: 1px solid #ffffff; + border-radius: 10px; + cursor: pointer; + background-color: #000 \9; + background-color: rgba(0, 0, 0, 0); + } + + .carousel-indicators .active { + margin: 0; + width: 12px; + height: 12px; + background-color: #ffffff; + } + +.carousel-caption { + position: absolute; + left: 15%; + right: 15%; + bottom: 20px; + z-index: 10; + padding-top: 20px; + padding-bottom: 20px; + color: #ffffff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); +} + + .carousel-caption .btn { + text-shadow: none; + } + +@media screen and (min-width: 768px) { + .carousel-control .glyphicon-chevron-left, + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-prev, + .carousel-control .icon-next { + width: 30px; + height: 30px; + margin-top: -15px; + font-size: 30px; + } + + .carousel-control .glyphicon-chevron-left, + .carousel-control .icon-prev { + margin-left: -15px; + } + + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-next { + margin-right: -15px; + } + + .carousel-caption { + left: 20%; + right: 20%; + padding-bottom: 30px; + } + + .carousel-indicators { + bottom: 20px; + } +} + +.clearfix:before, +.clearfix:after, +.dl-horizontal dd:before, +.dl-horizontal dd:after, +.container:before, +.container:after, +.container-fluid:before, +.container-fluid:after, +.row:before, +.row:after, +.form-horizontal .form-group:before, +.form-horizontal .form-group:after, +.btn-toolbar:before, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:before, +.btn-group-vertical > .btn-group:after, +.nav:before, +.nav:after, +.navbar:before, +.navbar:after, +.navbar-header:before, +.navbar-header:after, +.navbar-collapse:before, +.navbar-collapse:after, +.pager:before, +.pager:after, +.panel-body:before, +.panel-body:after, +.modal-footer:before, +.modal-footer:after { + content: " "; + display: table; +} + +.clearfix:after, +.dl-horizontal dd:after, +.container:after, +.container-fluid:after, +.row:after, +.form-horizontal .form-group:after, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:after, +.nav:after, +.navbar:after, +.navbar-header:after, +.navbar-collapse:after, +.pager:after, +.panel-body:after, +.modal-footer:after { + clear: both; +} + +.center-block { + display: block; + margin-left: auto; + margin-right: auto; +} + +.pull-right { + float: right !important; +} + +.pull-left { + float: left !important; +} + +.hide { + display: none !important; +} + +.show { + display: block !important; +} + +.invisible { + visibility: hidden; +} + +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} + +.hidden { + display: none !important; + visibility: hidden !important; +} + +.affix { + position: fixed; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} + +@-ms-viewport { + width: device-width; +} + +.visible-xs, +.visible-sm, +.visible-md, +.visible-lg { + display: none !important; +} + +.visible-xs-block, +.visible-xs-inline, +.visible-xs-inline-block, +.visible-sm-block, +.visible-sm-inline, +.visible-sm-inline-block, +.visible-md-block, +.visible-md-inline, +.visible-md-inline-block, +.visible-lg-block, +.visible-lg-inline, +.visible-lg-inline-block { + display: none !important; +} + +@media (max-width: 767px) { + .visible-xs { + display: block !important; + } + + table.visible-xs { + display: table; + } + + tr.visible-xs { + display: table-row !important; + } + + th.visible-xs, + td.visible-xs { + display: table-cell !important; + } +} + +@media (max-width: 767px) { + .visible-xs-block { + display: block !important; + } +} + +@media (max-width: 767px) { + .visible-xs-inline { + display: inline !important; + } +} + +@media (max-width: 767px) { + .visible-xs-inline-block { + display: inline-block !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm { + display: block !important; + } + + table.visible-sm { + display: table; + } + + tr.visible-sm { + display: table-row !important; + } + + th.visible-sm, + td.visible-sm { + display: table-cell !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-block { + display: block !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline { + display: inline !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm-inline-block { + display: inline-block !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md { + display: block !important; + } + + table.visible-md { + display: table; + } + + tr.visible-md { + display: table-row !important; + } + + th.visible-md, + td.visible-md { + display: table-cell !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-block { + display: block !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-inline { + display: inline !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .visible-md-inline-block { + display: inline-block !important; + } +} + +@media (min-width: 1240px) { + .visible-lg { + display: block !important; + } + + table.visible-lg { + display: table; + } + + tr.visible-lg { + display: table-row !important; + } + + th.visible-lg, + td.visible-lg { + display: table-cell !important; + } +} + +@media (min-width: 1240px) { + .visible-lg-block { + display: block !important; + } +} + +@media (min-width: 1240px) { + .visible-lg-inline { + display: inline !important; + } +} + +@media (min-width: 1240px) { + .visible-lg-inline-block { + display: inline-block !important; + } +} + +@media (max-width: 767px) { + .hidden-xs { + display: none !important; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .hidden-sm { + display: none !important; + } +} + +@media (min-width: 992px) and (max-width: 1239px) { + .hidden-md { + display: none !important; + } +} + +@media (min-width: 1240px) { + .hidden-lg { + display: none !important; + } +} + +.visible-print { + display: none !important; +} + +@media print { + .visible-print { + display: block !important; + } + + table.visible-print { + display: table; + } + + tr.visible-print { + display: table-row !important; + } + + th.visible-print, + td.visible-print { + display: table-cell !important; + } +} + +.visible-print-block { + display: none !important; +} + +@media print { + .visible-print-block { + display: block !important; + } +} + +.visible-print-inline { + display: none !important; +} + +@media print { + .visible-print-inline { + display: inline !important; + } +} + +.visible-print-inline-block { + display: none !important; +} + +@media print { + .visible-print-inline-block { + display: inline-block !important; + } +} + +@media print { + .hidden-print { + display: none !important; + } +} + +@font-face { + font-family: 'Lato Light'; + src: url('../Fonts/lato-light-webfont.eot'); + src: url('../Fonts/lato-light-webfont.eot?#iefix') format('embedded-opentype'), url('../Fonts/lato-light-webfont.woff') format('woff'), url('../Fonts/lato-light-webfont.ttf') format('truetype'), url('../Fonts/lato-light-webfont.svg#latolight') format('svg'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'Lato'; + src: url('../Fonts/lato-regular-webfont.eot'); + src: url('../Fonts/lato-regular-webfont.eot?#iefix') format('embedded-opentype'), url('../Fonts/lato-regular-webfont.woff') format('woff'), url('../Fonts/lato-regular-webfont.ttf') format('truetype'), url('../Fonts/lato-regular-webfont.svg#latoregular') format('svg'); + font-weight: normal; + font-style: normal; +} + +.btn-ancillary { + color: #ffffff; + background-color: #4d4d4d; + border-color: #4d4d4d; +} + + .btn-ancillary:hover, + .btn-ancillary:focus, + .btn-ancillary:active, + .btn-ancillary.active, + .open > .dropdown-toggle.btn-ancillary { + color: #ffffff; + background-color: #333333; + border-color: #2e2e2e; + } + + .btn-ancillary:active, + .btn-ancillary.active, + .open > .dropdown-toggle.btn-ancillary { + background-image: none; + } + + .btn-ancillary.disabled, + .btn-ancillary[disabled], + fieldset[disabled] .btn-ancillary, + .btn-ancillary.disabled:hover, + .btn-ancillary[disabled]:hover, + fieldset[disabled] .btn-ancillary:hover, + .btn-ancillary.disabled:focus, + .btn-ancillary[disabled]:focus, + fieldset[disabled] .btn-ancillary:focus, + .btn-ancillary.disabled:active, + .btn-ancillary[disabled]:active, + fieldset[disabled] .btn-ancillary:active, + .btn-ancillary.disabled.active, + .btn-ancillary[disabled].active, + fieldset[disabled] .btn-ancillary.active { + background-color: #4d4d4d; + border-color: #4d4d4d; + } + + .btn-ancillary .badge { + color: #4d4d4d; + background-color: #ffffff; + } + + .btn-ancillary:hover, + .btn-ancillary:focus, + .btn-ancillary:active, + .btn-ancillary.active { + background-color: #262626; + border-color: #262626; + } + +body.Modal { + background-color: #ffffff; + /* width: 98%; */ +} + +#HeaderArea, +#HeaderContainer { + background-color: #1a1a1a; + min-height: 85px; +} + +#HeaderArea { + border-bottom: 1px solid #cccccc; +} + + #HeaderArea .Site-Name, + #HeaderArea .Page-Title-Area { + min-height: 84px; + } + + #HeaderArea .Site-Name h1, + #HeaderArea .Page-Title-Area h1, + #HeaderArea .Site-Name h2, + #HeaderArea .Page-Title-Area h2, + #HeaderArea .Site-Name h3, + #HeaderArea .Page-Title-Area h3, + #HeaderArea .Site-Name h4, + #HeaderArea .Page-Title-Area h4, + #HeaderArea .Site-Name h5, + #HeaderArea .Page-Title-Area h5, + #HeaderArea .Site-Name h6, + #HeaderArea .Page-Title-Area h6 { + line-height: 41px; + margin: 0; + } + + #HeaderArea .Site-Name { + background-color: #ef4a24; + min-height: 95px; + border: 1px solid #cccccc; + border-top: 0 none transparent; + margin-bottom: -9px; + } + + #HeaderArea .Page-Title-Area { + background-color: #1a1a1a; + } + + #HeaderArea .Page-Title-Area .Breadcrumbs { + font-size: 13px; + font-style: italic; + letter-spacing: 0.02em; + color: #cccccc; + padding-top: 9px; + margin-bottom: -3px; + margin-left: 3px; + } + + #HeaderArea .Site-Name h1, + #HeaderArea h2.Page-Title { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + font-size: 34px; + color: #ffffff; + padding-top: 25px; + } + + #HeaderArea .Site-Name h1 { + margin-left: -2px; + } + + #HeaderArea h2.Page-Title { + margin-left: 3px; + } + +select { + font-size: 14px; + color: #666666; + padding: 3px 5px; +} + + select option { + margin-bottom: 3px; + } + +.Sidebar { + padding-right: 0; + padding-left: 0; +} + + .Sidebar #TreeView { + margin: 45px 1px 0 -1px; + } + + .Sidebar #TreeView:before, + .Sidebar #TreeView:after { + content: " "; + display: table; + } + + .Sidebar #TreeView:after { + clear: both; + } + + .Sidebar #TreeView:before, + .Sidebar #TreeView:after { + content: " "; + display: table; + } + + .Sidebar #TreeView:after { + clear: both; + } + + .Sidebar .AddTopic, + .Sidebar .Add-Topic { + margin-left: 1.3em; + } + + .Sidebar select { + background-color: #eeeeee; + width: 95%; + border-radius: 2px; + } + +.Content-Container .Content[class*="col-"] { + padding-right: 0; + padding-left: 0; +} + +.Content-Container .Content .Page-Content.Primary { + position: relative; + color: #333333; +} + +[id*="DynamicForm"] { + background-color: #333333; + padding-top: 50px; +} + + [id*="DynamicForm"] .row.Messages-Area, + [id*="DynamicForm"] .row.Form-Area { + margin: 0; + } + + [id*="DynamicForm"] .Editor-Navbar { + width: 100%; + height: 50px; + background-color: #333333; + } + + [id*="DynamicForm"]#Modal_DynamicForm { + padding-top: 49px; + } + + [id*="DynamicForm"]#Modal_DynamicForm .row.Toolbar-Area { + margin: 0; + } + + [id*="DynamicForm"]#Modal_DynamicForm .row.Messages-Area { + padding-right: 5px; + padding-left: 5px; + } + + [id*="DynamicForm"]#Modal_DynamicForm div[class*="col-"] { + padding-right: 0; + padding-left: 0; + } + + [id*="DynamicForm"]#Modal_DynamicForm div[class*="col-"].Form-Body { + padding-right: 15px; + padding-left: 15px; + } + + [id*="DynamicForm"]#Modal_DynamicForm .Editor-Navbar { + top: 0; + } + + [id*="DynamicForm"]#Modal_DynamicForm .Messages-Area .close, + [id*="DynamicForm"]#Modal_DynamicForm .Messages-Area .alert-dismissable .close { + right: 0; + } + + [id*="DynamicForm"] .Messages-Area, + [id*="DynamicForm"] .Form-Area { + background-color: #ffffff; + } + + [id*="DynamicForm"] .Messages-Area div[class*="Error"], + [id*="DynamicForm"] .Messages-Area div[class*="alert"] { + font-size: 13px; + letter-spacing: 0.02em; + } + + [id*="DynamicForm"] .Messages-Area div[class*="Error"], + [id*="DynamicForm"] .Messages-Area .alert { + margin: 10px 5px 0; + } + + [id*="DynamicForm"] .Messages-Area .Error.Messaging font { + margin: 10px 5px 0; + background-color: #f0dcd8; + border-color: #e9c6c6; + color: #d63510; + display: block; + color: #d63510 !important; + padding: 10px; + border: 1px solid #e9c6c6; + margin: 0; + } + + [id*="DynamicForm"] .Messages-Area .Error.Messaging font a { + cursor: pointer; + } + + [id*="DynamicForm"] .Messages-Area .Error.Messaging font hr { + border-top-color: #e2b3b3; + } + + [id*="DynamicForm"] .Messages-Area .Error.Messaging font .alert-link { + color: #a6290c; + } + + [id*="DynamicForm"] .Messages-Area .Error.Messaging font ul { + list-style-type: square; + padding-left: 25px; + } + + [id*="DynamicForm"] .Messages-Area .alert { + padding: 10px; + } + + [id*="DynamicForm"] .Messages-Area .alert a { + cursor: pointer; + } + + [id*="DynamicForm"] .Messages-Area .alert-dismissable .close { + right: 0; + font-size: 20px; + margin-top: 0; + } + + [id*="DynamicForm"] .Actions.Top { + float: right; + padding: 0 8px; + margin-top: -2px; + } + + [id*="DynamicForm"] .Actions.Top button, + [id*="DynamicForm"] .Actions.Top input { + margin-left: 4px; + } + + [id*="DynamicForm"] .Actions.Top #VersionsDropdown .glyphicon { + margin-right: 2px; + } + + [id*="DynamicForm"] .Actions.Top #VersionsDropdown .caret { + margin-left: 2px; + } + + [id*="DynamicForm"] ul.nav-tabs { + padding-left: 15px; + border-bottom: 0 none transparent; + } + + [id*="DynamicForm"] .nav-tabs > li { + margin-bottom: 0; + } + + [id*="DynamicForm"] .nav-tabs > li > a { + color: #cccccc; + border: 0 none transparent; + border-bottom: 8px solid transparent; + margin-right: 10px; + } + + [id*="DynamicForm"] .nav-tabs > li > a:hover, + [id*="DynamicForm"] .nav-tabs > li > a:active, + [id*="DynamicForm"] .nav-tabs > li > a:focus { + color: #ffffff; + border-bottom-color: #cccccc; + } + + [id*="DynamicForm"] .nav-tabs > li.active > a, + [id*="DynamicForm"] .nav-tabs > li.active > a:hover, + [id*="DynamicForm"] .nav-tabs > li.active > a:focus { + color: #ffffff; + border: 0 none transparent; + border-bottom: 8px solid #cccccc; + } + + [id*="DynamicForm"] label { + font-weight: normal; + } + + [id*="DynamicForm"] input[type="text"] { + width: 100%; + max-width: 960px; + } + + [id*="DynamicForm"] input[type="text"].form-control { + border-radius: 2px; + } + + [id*="DynamicForm"] ::-webkit-input-placeholder { + color: #999; + } + + [id*="DynamicForm"] :-moz-placeholder { + color: #999; + } + + [id*="DynamicForm"] ::-moz-placeholder { + color: #999; + } + + [id*="DynamicForm"] :-ms-input-placeholder { + color: #999; + } + + [id*="DynamicForm"] input[type="radio"] + label { + font-size: 14px; + margin: 0 3px; + } + + [id*="DynamicForm"] select { + padding: 3px 5px; + border-radius: 2px; + } + + [id*="DynamicForm"] select option { + font-size: 14px; + margin-bottom: 3px; + } + + [id*="DynamicForm"] .Radio-Buttons li { + display: inline-block; + } + + [id*="DynamicForm"] input[class*="Error"] { + border-color: #ef4a24; + } + + [id*="DynamicForm"] input[class*="Error"]:focus { + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; + } + + [id*="DynamicForm"] .Last-Modified { + font-size: 14px; + color: #4d4d4d; + } + + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] { + width: 100%; + padding: 0; + } + + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Group-Item { + margin-bottom: 20px; + } + + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading { + margin-bottom: 5px; + } + + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .Content-Description { + position: relative; + font-size: 16px; + color: #959595; + text-decoration: none; + top: 2px; + left: 3px; + padding: 2px 5.5px 1px; + cursor: pointer; + } + + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .tooltip .tooltip-arrow { + border-right-color: #1a1a1a; + } + + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .tooltip .tooltip-inner { + background-color: #1a1a1a; + max-width: 550px; + font-size: 14px; + color: #eeeeee; + text-align: left; + padding: 5px 10px; + } + + [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .tab-pane { + background-color: #ffffff; + padding: 20px 5px; + overflow: auto; + } + + [id*="DynamicForm"] .Callout-Area { + background-color: #ffffff; + padding: 20px 5px 20px 0; + } + + [id*="DynamicForm"] .Callout-Area #FixedCallouts { + position: absolute; + background-color: transparent; + width: 100%; + right: -20px; + } + + [id*="DynamicForm"] .Callout-Area .Callout { + width: 100%; + } + + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info { + position: fixed; + background-color: #ffffff; + width: 16%; + max-width: 214px; + padding: 15px; + border: 1px solid #cccccc; + z-index: 0; + } + + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info h3, + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dt, + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dd { + color: #666666; + } + + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info h3 { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + margin-top: 0; + } + + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl { + font-size: 13px; + line-height: 18px; + margin-bottom: -13px; + } + + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dt { + font-weight: normal; + } + + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dt .fa { + width: 1em; + margin-right: 5px; + } + + [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dd { + margin-left: 1.7em; + margin-bottom: 8px; + } + +[id*="EditorModal"] .modal-header { + background-color: #1a1a1a; + padding: 20px; + border-bottom-color: #cccccc; +} + + [id*="EditorModal"] .modal-header .Page-Title { + font-family: 'Lato Light', Helvetica, Arial, sans-serif; + color: #ffffff; + margin: 0; + } + +[id*="EditorModal"] .modal-content { + background-color: #333333; +} + +[id*="EditorModal"] iframe { + display: block; + vertical-align: bottom; +} + +select[id*="ThemeColor"] option[value*="ThemeColor"], +select[id*="ThemeColor"] option[selected="selected"] { + color: #ffffff; + line-height: 1.6em; +} + + select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Blue"], + select[id*="ThemeColor"] option[selected="selected"][value*="Blue"] { + background-color: #02A3E0; + } + + select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Orange"], + select[id*="ThemeColor"] option[selected="selected"][value*="Orange"] { + background-color: #FF9E1A; + } + + select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Green"], + select[id*="ThemeColor"] option[selected="selected"][value*="Green"] { + background-color: #029A17; + } + + select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Purple"], + select[id*="ThemeColor"] option[selected="selected"][value*="Purple"] { + background-color: #9F5EB5; + } + + select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Red"], + select[id*="ThemeColor"] option[selected="selected"][value*="Red"] { + background-color: #E30046; + } + +@media screen and (max-width: 1024px) { + .Sidebar .AddTopic, + .Sidebar .Add-Topic { + margin-left: 0.5em; + } +} + +@media (min-width: 768px) { + .modal-dialog { + min-width: 700px; + width: 720px; + } +} + +@media (min-width: 768px) and (max-width: 991px) { + [id*="DynamicForm"] .Callout-Area #FixedCallouts { + position: relative; + right: 0; + } + + [id*="DynamicForm"] .Callout-Area #FixedCallouts .Callout.Page-Info { + position: relative; + top: -30px; + left: 20px; + width: 50%; + } +} +/* OVERRIDE NON-SELECTABLE NAV LINKS FOR IE9 */ +.x-tree-arrows .x-tree-elbow-plus, +.x-tree-arrows .x-tree-elbow-minus, +.x-unselectable, +.x-unselectable * { + -moz-user-select: all !important; + -khtml-user-select: all !important; + -webkit-user-select: all !important; + -ms-user-select: all !important; +} + +.x-tree-arrows .x-tree-elbow-minus, +.x-tree-arrows .x-tree-elbow-plus, +.x-tree-arrows .x-tree-elbow-end-plus, +.x-tree-arrows .x-tree-elbow-end-minus { + background-image: url('/!Admin/Topics/Images/Navigation/Arrows.png'); + background-repeat: no-repeat; + background-position: 4px 0; +} + +.x-tree-arrows .x-tree-elbow, +.x-tree-arrows .x-tree-elbow-end { + background-image: url('/!Admin/Topics/Images/Navigation/Dashes.png'); + background-repeat: no-repeat; + background-position: 3px 4px; +} + +.x-tree-node-collapsed .x-tree-node-icon, +.x-tree-node-expanded .x-tree-node-icon, +.x-tree-node-leaf .x-tree-node-icon { + display: none; + background-image: none; +} + +.x-tree-root-node > .x-tree-node { + padding-left: 3px; +} + +.x-tree-node { + font-size: 14px; + white-space: normal; + padding: 1px 0; +} + + .x-tree-node x-tree-selected, + .x-tree-node .x-tree-node-over { + background-color: transparent; + } + + .x-tree-node .x-tree-node-el { + overflow: hidden; + white-space: nowrap; + line-height: normal; + color: #cccccc; + text-overflow: ellipsis; + padding: 0 5px 0 3px; + border: 1px solid transparent; + } + + .x-tree-node .x-tree-node-el .x-tree-node-indent { + display: inline-block; + margin-right: 5px; + margin-left: 0; + } + + .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus, + .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus { + background-position: -50px 0; + margin-right: -2px; + margin-left: 1px; + } + + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus, + .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus { + background-position: -31px 0; + } + + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus, + .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus, + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus, + .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus { + background-position: -16px 0; + } + + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow, + .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow, + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end, + .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end { + background-position: -11px 4px; + } + + .x-tree-node .x-tree-node-el.x-tree-selected a, + .x-tree-node .x-tree-node-el.x-tree-node-over a { + text-decoration: none !important; + } + + .x-tree-node .x-tree-node-el.x-tree-selected a span, + .x-tree-node .x-tree-node-el.x-tree-node-over a span { + color: #ffffff; + } + + .x-tree-node .x-tree-node-el.x-tree-selected { + background-color: transparent; + } + + .x-tree-node .x-tree-node-el .x-tree-node-ct { + display: block; + overflow: visible; + padding: 1px 0; + margin-left: 0; + } + + .x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus { + background-position: 4px 0; + } + + .x-tree-node .x-tree-node-el a.x-tree-node-anchor { + padding-right: 5px; + padding-left: 5px; + } + + .x-tree-node .x-tree-node-el a span { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-size: 13px; + letter-spacing: 0.02em; + color: #cccccc; + } + +#DisplayGroupTabsContent .x-tree-root-ct { + margin: 0 0 5px; +} + + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node-indent:before { + color: #666666; + } + + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el { + padding: 0 0 5px 0; + } + + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected, + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over { + background-color: transparent; + border-color: transparent; + } + + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-node-indent:before, + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-node-indent:before { + color: #ef4a24; + } + + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span, + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span, + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span, + #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span { + color: #333333; + } + + #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el input[type="checkbox"] { + margin: 0 0 0 3px; + } + +#DisplayGroupTabsContent .cke_chrome { + width: 100%; + max-width: 960px; + padding: 0; + /* border: 0 none transparent; */ +} + + #DisplayGroupTabsContent .cke_chrome .cke_inner { + background: #DEDEDE; + border-radius: 0; + } + + #DisplayGroupTabsContent .cke_chrome .cke_editable { + font-size: 14px; + padding: 10px; + } + + #DisplayGroupTabsContent .cke_chrome .cke_editable ul, + #DisplayGroupTabsContent .cke_chrome .cke_editable ol { + padding-left: 25px; + } + + #DisplayGroupTabsContent .cke_chrome .cke_editable ul { + list-style-type: square; + } + + #DisplayGroupTabsContent .cke_chrome .cke_editable ol { + list-style-type: decimal; + } + +ul.token-input-list { + display: block; + width: 100%; + height: 36px; + padding: 6px 12px; + font-size: 16px; + line-height: 1.42857143; + color: #4d4d4d; + background-color: #ffffff; + background-image: none; + border: 1px solid #cccccc; + border-radius: 1px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + height: 33px; + padding: 5px 10px; + font-size: 14px; + line-height: 1.5; + border-radius: 0; + position: relative; + line-height: 115%; + padding: 2px 0; + border-radius: 2px; +} + + ul.token-input-list:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); + } + + ul.token-input-list::-moz-placeholder { + color: #666666; + opacity: 1; + } + + ul.token-input-list:-ms-input-placeholder { + color: #666666; + } + + ul.token-input-list::-webkit-input-placeholder { + color: #666666; + } + + ul.token-input-list[disabled], + ul.token-input-list[readonly], + fieldset[disabled] ul.token-input-list { + cursor: not-allowed; + background-color: #cccccc; + opacity: 1; + } + +textareaul.token-input-list { + height: auto; +} + +selectul.token-input-list { + height: 33px; + line-height: 33px; +} + +textareaul.token-input-list, +select[multiple]ul.token-input-list { + height: auto; +} + +ul.token-input-list.token-input-focused { + border-color: #66afe9; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; +} + +ul.token-input-list li { + display: inline-block; + padding: 3px 7px; + margin: 3px 1px 0 4px; +} + + ul.token-input-list li input[type="text"] { + font-family: 'Lato', Helvetica, Arial, sans-serif; + height: 19px; + line-height: 21px; + padding: 0; + } + + ul.token-input-list li.token-input-token { + background-color: #CEE7F2; + } + + ul.token-input-list li.token-input-token p, + ul.token-input-list li.token-input-token span { + display: inline-block; + } + + ul.token-input-list li.token-input-token p { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-weight: normal; + color: #4d4d4d; + margin-right: 5px; + } + + ul.token-input-list li.token-input-token span.token-input-delete-token { + position: relative; + top: -1px; + color: #959595; + } + + ul.token-input-list li.token-input-token ~ li.token-input-input-token { + position: absolute; + bottom: 2px; + padding-top: 1px; + padding-bottom: 4px; + margin-left: -1px; + } + +div.token-input-dropdown p { + font-family: 'Lato', Helvetica, Arial, sans-serif; + font-weight: normal; +} + +div.token-input-dropdown ul li { + color: #4d4d4d; +} + + div.token-input-dropdown ul li.token-input-dropdown-item { + background-color: #EEE; + } + + div.token-input-dropdown ul li.token-input-selected-dropdown-item { + background-color: #D4EFFA; + } + + div.token-input-dropdown ul li .Breadcrumbs { + color: #666666; + } + + div.token-input-dropdown ul li em { + font-weight: normal; + } From 4e6aaf8754eb51b0ea12e3cc31dd90f5e7468dd5 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 11:50:04 -0700 Subject: [PATCH 124/637] Added padding to tab content --- .../Areas/Editor/Shared/Styles/Base/_tabs.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss index 15f093dc..c57c5b8c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss @@ -48,5 +48,6 @@ // TAB PANELS //---------------------------------------------------------------------------------------------- .tab-content { + padding : 20px 0 20px 5px; background-color : $white; } From f679dca7d7492e8c0be62c9fdb1d3a2b68eaf1ba Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:15:13 -0700 Subject: [PATCH 125/637] Added lightest grey color variable --- .../Areas/Editor/Shared/Styles/_variables.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss index 27ed0eec..bb54ab73 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss @@ -16,6 +16,7 @@ $grey-dark : rgb(51, 51, 51); // #333333 $grey-medium : rgb(102, 102, 102); // #666666 $grey-light : rgb(149, 149, 149); // #959595 $grey-lighter : rgb(204, 204, 204); // #CCCCCC +$grey-lightest : rgb(238, 238, 238); // #EEEEEE $red : rgb(239, 74, 36); // #EF4A24 $blue : rgb(8, 114, 163); // #0872A3 From c8335ce5bfd6524ac2c24dc9169c8afbf083cb64 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:15:27 -0700 Subject: [PATCH 126/637] Added offset to tooltip placement --- .../Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml index f1ddd65c..dee4b4c0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml @@ -5,7 +5,7 @@
    @Html.LabelFor(m => m.Value, Model.Definition.Title) - +
    @Html.HiddenFor(m => m.Definition.Type) From 303cfef2ac1fd559d0a5a3840126d662d86f9173 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:16:06 -0700 Subject: [PATCH 127/637] Added tooltips CSS --- .../Editor/Shared/Styles/Base/_base.scss | 1 + .../Editor/Shared/Styles/Base/_tooltips.scss | 38 +++++++++++++++++++ .../Areas/Editor/Shared/Styles/Site.min.css | 1 + .../Areas/Editor/Shared/Styles/Style.css | 26 ++++++++++++- .../Ignia.Topics.Editor.Mvc.csproj | 1 + 5 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss index 0432f49f..0d438d5b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss @@ -15,6 +15,7 @@ @import "icons"; @import "buttons"; @import "tabs"; +@import "tooltips"; @import "utilities"; //---------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss new file mode 100644 index 00000000..a814fd81 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss @@ -0,0 +1,38 @@ +//============================================================================================== +// TOOLTIPS +//---------------------------------------------------------------------------------------------- +// Extends or overrides Bootstrap styles for tooltips +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import '../variables'; + +//---------------------------------------------------------------------------------------------- +// GLOBAL +//---------------------------------------------------------------------------------------------- +.tooltip-arrow { + border-right-color : $black-light; +} +.tooltip-inner { + padding : 5px 10px; + max-width : 550px; + font-size : 14px; + color : $grey-lightest; + text-align : left; + background-color : $black-light; +} + +//---------------------------------------------------------------------------------------------- +// ICONS +//---------------------------------------------------------------------------------------------- +.fa-info-circle { + position : relative; + top : 2px; + left : 3px; + padding : 2px 5.5px 1px; + font-size : 16px; + color : $grey-light; + cursor : pointer; +} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css new file mode 100644 index 00000000..536c8353 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css @@ -0,0 +1 @@ +ul.token-input-list{overflow:hidden;height:auto!important;height:1%;width:400px;border:1px solid #999;cursor:text;font-size:12px;font-family:Verdana,sans-serif;z-index:999;margin:0;padding:0;background-color:#fff;list-style-type:none;clear:left}ul.token-input-list li{list-style-type:none}ul.token-input-list li input{border:0;width:350px;padding:3px 8px;background-color:#fff;-webkit-appearance:caret}ul.token-input-disabled,ul.token-input-disabled li input{background-color:#e8e8e8}ul.token-input-disabled li.token-input-token{background-color:#d9e3ca;color:#7d7d7d}ul.token-input-disabled li.token-input-token span{color:#cfcfcf;cursor:default}li.token-input-token{overflow:hidden;height:auto!important;height:1%;margin:3px;padding:3px 5px;background-color:#d0efa0;color:#000;font-weight:700;cursor:default;display:block}li.token-input-token p{float:left;padding:0;margin:0}li.token-input-token span{float:right;color:#777;cursor:pointer}li.token-input-selected-token{background-color:#08844e;color:#fff}li.token-input-selected-token span{color:#bbb}div.token-input-dropdown{position:absolute;width:400px;background-color:#fff;overflow:hidden;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;cursor:default;font-size:12px;font-family:Verdana,sans-serif;z-index:1}div.token-input-dropdown p{margin:0;padding:5px;font-weight:700;color:#777}div.token-input-dropdown ul{margin:0;padding:0}div.token-input-dropdown ul li{background-color:#fff;padding:3px;list-style-type:none}div.token-input-dropdown ul li.token-input-dropdown-item{background-color:#fafafa}div.token-input-dropdown ul li.token-input-dropdown-item2{background-color:#fff}div.token-input-dropdown ul li em{font-weight:700;font-style:normal}div.token-input-dropdown ul li.token-input-selected-dropdown-item{background-color:#d0efa0}/*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}@media print{*{text-shadow:none!important;color:#000!important;background:0 0!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{font-family:Lato,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.42857143;color:#fff;background-color:#333}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#0a94d4;text-decoration:none}a:focus,a:hover{color:#07618b;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:2px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#333;border:1px solid #ddd;border-radius:1px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:22px;margin-bottom:22px;border:0;border-top:1px solid #ccc}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#666}.h1,.h2,.h3,h1,h2,h3{margin-top:22px;margin-bottom:11px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:11px;margin-bottom:11px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:41px}.h2,h2{font-size:34px}.h3,h3{font-size:28px}.h4,h4{font-size:20px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}p{margin:0 0 11px}.lead{margin-bottom:22px;font-size:18px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:24px}}.small,small{font-size:87%}cite{font-style:normal}.mark,mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#666}.text-primary{color:#4d4d4d}a.text-primary:hover{color:#333}.text-success{color:#125204}a.text-success:hover{color:#072102}.text-info{color:#0872a3}a.text-info:hover{color:#055073}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#d63510}a.text-danger:hover{color:#a6290c}.bg-primary{color:#fff;background-color:#4d4d4d}a.bg-primary:hover{background-color:#333}.bg-success{background-color:#d3e5cf}a.bg-success:hover{background-color:#b5d3ae}.bg-info{background-color:#daebf2}a.bg-info:hover{background-color:#b4d7e5}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f0dcd8}a.bg-danger:hover{background-color:#e2bbb3}.page-header{padding-bottom:10px;margin:44px 0 22px;border-bottom:1px solid #ccc}ol,ul{margin-top:0;margin-bottom:11px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:22px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #666}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:11px 22px;margin:0 0 22px;font-size:20px;border-left:5px solid #ccc}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#666}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #ccc;border-left:0;text-align:right}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}blockquote:after,blockquote:before{content:""}address{margin-bottom:22px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:1px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:0;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;box-shadow:none}pre{display:block;padding:10.5px;margin:0 0 11px;font-size:15px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:1px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:990px}}@media (min-width:1240px){.container{width:1220px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1240px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:22px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#333}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#d3e5cf}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#c4dcbe}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#daebf2}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c7e1eb}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f0dcd8}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#e9cbc6}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:16.5px;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:22px;font-size:24px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:16px;line-height:1.42857143;color:#4d4d4d}.form-control{display:block;width:100%;height:36px;padding:6px 12px;font-size:16px;line-height:1.42857143;color:#4d4d4d;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#666;opacity:1}.form-control:-ms-input-placeholder{color:#666}.form-control::-webkit-input-placeholder{color:#666}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#ccc;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{line-height:36px}input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:33px}input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:49px}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;min-height:22px;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.form-horizontal .form-group-sm .form-control,.input-sm{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}select.input-sm{height:33px;line-height:33px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-horizontal .form-group-lg .form-control,.input-lg{height:49px;padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}select.input-lg{height:49px;line-height:49px}select[multiple].input-lg,textarea.input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:45px}.form-control-feedback{position:absolute;top:27px;right:0;z-index:2;display:block;width:36px;height:36px;line-height:36px;text-align:center}.input-lg+.form-control-feedback{width:49px;height:49px;line-height:49px}.input-sm+.form-control-feedback{width:33px;height:33px;line-height:33px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline{color:#125204}.has-success .form-control{border-color:#125204;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#072102;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #28b309;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #28b309}.has-success .input-group-addon{color:#125204;border-color:#125204;background-color:#d3e5cf}.has-success .form-control-feedback{color:#125204}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline{color:#d63510}.has-error .form-control{border-color:#d63510;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#a6290c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f37558;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f37558}.has-error .input-group-addon{color:#d63510;border-color:#d63510;background-color:#f0dcd8}.has-error .form-control-feedback{color:#d63510}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#fff}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .checkbox,.form-horizontal .radio{min-height:29px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}@media (min-width:768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.3px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:16px;line-height:1.42857143;border-radius:1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active:focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:focus,.btn:hover{color:#fff;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#fff;background-color:#959595;border-color:#959595}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#fff;background-color:#7c7c7c;border-color:#767676}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#959595;border-color:#959595}.btn-default .badge{color:#959595;background-color:#fff}.btn-primary{color:#fff;background-color:#0a94d4;border-color:#0a94d4}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#0872a3;border-color:#076b9a}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#0a94d4;border-color:#0a94d4}.btn-primary .badge{color:#0a94d4;background-color:#fff}.btn-success{color:#fff;background-color:#28b309;border-color:#28b309}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#1d8207;border-color:#1b7906}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#28b309;border-color:#28b309}.btn-success .badge{color:#28b309;background-color:#fff}.btn-info{color:#fff;background-color:#0a94d4;border-color:#0a94d4}.btn-info.active,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#0872a3;border-color:#076b9a}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#0a94d4;border-color:#0a94d4}.btn-info .badge{color:#0a94d4;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad20;border-color:#f0ad20}.btn-warning.active,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#cf910e;border-color:#c68a0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad20;border-color:#f0ad20}.btn-warning .badge{color:#f0ad20;background-color:#fff}.btn-danger{color:#fff;background-color:#ef4a24;border-color:#ef4a24}.btn-danger.active,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#d1330f;border-color:#c7310f}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#ef4a24;border-color:#ef4a24}.btn-danger .badge{color:#ef4a24;background-color:#fff}.btn-link{color:#0a94d4;font-weight:400;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#07618b;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#666;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:14px;line-height:1.5;border-radius:0}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:16px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:1px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#4d4d4d}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#666}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:14px;line-height:1.42857143;color:#666;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group-vertical>.btn:focus,.btn-group>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:1px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:1px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn>input[type=checkbox],[data-toggle=buttons]>.btn>input[type=radio]{position:absolute;z-index:-1;opacity:0}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:49px;padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:49px;line-height:49px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:33px;line-height:33px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:16px;font-weight:400;line-height:1;color:#4d4d4d;text-align:center;background-color:#ccc;border:1px solid #ccc;border-radius:1px}.input-group-addon.input-sm{padding:5px 10px;font-size:14px;border-radius:0}.input-group-addon.input-lg{padding:10px 16px;font-size:20px;border-radius:2px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:5px 5px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:transparent}.nav>li.disabled>a{color:#666}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#666;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:transparent;border-color:#0a94d4}.nav .nav-divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:1px 1px 0 0}.nav-tabs>li>a:hover{border-color:#ccc #ccc #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#4d4d4d;background-color:#333;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:1px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:1px 1px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#333}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:1px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#4d4d4d}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:1px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:1px 1px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#333}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:22px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:1px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-left:0;padding-right:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:14px 15px;font-size:20px;line-height:22px;height:50px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:1px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:22px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:22px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:14px;padding-bottom:14px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin-top:7px;margin-bottom:7px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:7px;margin-bottom:7px}.navbar-btn.btn-sm{margin-top:8.5px;margin-bottom:8.5px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:14px;margin-bottom:14px}@media (min-width:768px){.navbar-text{float:left;margin-left:15px;margin-right:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background-color:#e7e7e7;color:#555}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#666}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#666}.navbar-inverse .navbar-nav>li>a{color:#666}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{background-color:#080808;color:#fff}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#666}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#666}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#666}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:22px;list-style:none;background-color:#f5f5f5;border-radius:1px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.breadcrumb>.active{color:#666}.pagination{display:inline-block;padding-left:0;margin:22px 0;border-radius:1px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;text-decoration:none;color:#0a94d4;background-color:#fff;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:1px;border-top-left-radius:1px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:1px;border-top-right-radius:1px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#07618b;background-color:#ccc;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;background-color:#4d4d4d;border-color:#4d4d4d;cursor:default}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#666;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:20px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:2px;border-top-left-radius:2px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:2px;border-top-right-radius:2px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:14px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:0;border-top-left-radius:0}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:0;border-top-right-radius:0}.pager{padding-left:0;margin:22px 0;list-style:none;text-align:center}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#ccc}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#666;background-color:#fff;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#666}.label-default[href]:focus,.label-default[href]:hover{background-color:#4d4d4d}.label-primary{background-color:#4d4d4d}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#333}.label-success{background-color:#28b309}.label-success[href]:focus,.label-success[href]:hover{background-color:#1d8207}.label-info{background-color:#0a94d4}.label-info[href]:focus,.label-info[href]:hover{background-color:#0872a3}.label-warning{background-color:#f0ad20}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#cf910e}.label-danger{background-color:#ef4a24}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#d1330f}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:14px;font-weight:700;color:#fff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#666;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.nav-pills>.active>a>.badge,a.list-group-item.active>.badge{color:#0a94d4;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;color:inherit;background-color:#ccc}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:24px;font-weight:200}.jumbotron>hr{border-top-color:#b3b3b3}.container .jumbotron{border-radius:2px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-left:60px;padding-right:60px}.jumbotron .h1,.jumbotron h1{font-size:72px}}.thumbnail{display:block;padding:4px;margin-bottom:22px;line-height:1.42857143;background-color:#333;border:1px solid #ddd;border-radius:1px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-left:auto;margin-right:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#0a94d4}.thumbnail .caption{padding:9px;color:#fff}.alert{padding:15px;margin-bottom:22px;border:1px solid transparent;border-radius:1px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#d3e5cf;border-color:#c9dcbe;color:#125204}.alert-success hr{border-top-color:#bbd3ae}.alert-success .alert-link{color:#072102}.alert-info{background-color:#daebf2;border-color:#c0e4e9;color:#0872a3}.alert-info hr{border-top-color:#addbe2}.alert-info .alert-link{color:#055073}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f0dcd8;border-color:#e9c6c6;color:#d63510}.alert-danger hr{border-top-color:#e2b3b3}.alert-danger .alert-link{color:#a6290c}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:22px;margin-bottom:22px;background-color:#f5f5f5;border-radius:1px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0%;height:100%;font-size:14px;line-height:22px;color:#fff;text-align:center;background-color:#4d4d4d;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar[aria-valuenow="1"],.progress-bar[aria-valuenow="2"]{min-width:30px}.progress-bar[aria-valuenow="0"]{color:#666;min-width:30px;background-color:transparent;background-image:none;box-shadow:none}.progress-bar-success{background-color:#28b309}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#0a94d4}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad20}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#ef4a24}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:1px;border-top-left-radius:1px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:1px;border-bottom-left-radius:1px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{text-decoration:none;color:#555;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{background-color:#ccc;color:#666}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#666}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#b3b3b3}.list-group-item-success{color:#125204;background-color:#d3e5cf}a.list-group-item-success{color:#125204}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#125204;background-color:#c4dcbe}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#125204;border-color:#125204}.list-group-item-info{color:#0872a3;background-color:#daebf2}a.list-group-item-info{color:#0872a3}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#0872a3;background-color:#c7e1eb}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#0872a3;border-color:#0872a3}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#d63510;background-color:#f0dcd8}a.list-group-item-danger{color:#d63510}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#d63510;background-color:#e9cbc6}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#d63510;border-color:#d63510}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:22px;background-color:#fff;border:1px solid transparent;border-radius:1px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:0;border-top-left-radius:0}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:18px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:0;border-bottom-left-radius:0}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:0;border-top-left-radius:0}.panel>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:0}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:0}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:0;border-bottom-left-radius:0}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:0}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:0}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{border:0;margin-bottom:0}.panel-group{margin-bottom:22px}.panel-group .panel{margin-bottom:0;border-radius:1px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#4d4d4d}.panel-primary>.panel-heading{color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#4d4d4d}.panel-primary>.panel-heading .badge{color:#4d4d4d;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#4d4d4d}.panel-success{border-color:#c9dcbe}.panel-success>.panel-heading{color:#125204;background-color:#d3e5cf;border-color:#c9dcbe}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#c9dcbe}.panel-success>.panel-heading .badge{color:#d3e5cf;background-color:#125204}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#c9dcbe}.panel-info{border-color:#c0e4e9}.panel-info>.panel-heading{color:#0872a3;background-color:#daebf2;border-color:#c0e4e9}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#c0e4e9}.panel-info>.panel-heading .badge{color:#daebf2;background-color:#0872a3}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#c0e4e9}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#e9c6c6}.panel-danger>.panel-heading{color:#d63510;background-color:#f0dcd8;border-color:#e9c6c6}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#e9c6c6}.panel-danger>.panel-heading .badge{color:#f0dcd8;background-color:#d63510}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#e9c6c6}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}.embed-responsive.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:2px}.well-sm{padding:9px;border-radius:0}.close{float:right;font-size:24px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate3d(0,-25%,0);transform:translate3d(0,-25%,0);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:2px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.in{opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;visibility:visible;font-size:14px;line-height:1.4;opacity:0}.tooltip.in{opacity:.9}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:1px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;right:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:2px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:16px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:1px 1px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.25)}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:.5;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{outline:0;color:#fff;text-decoration:none;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:rgba(0,0,0,0)}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1239px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1240px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1240px){.visible-lg-block{display:block!important}}@media (min-width:1240px){.visible-lg-inline{display:inline!important}}@media (min-width:1240px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1239px){.hidden-md{display:none!important}}@media (min-width:1240px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}@font-face{font-family:'Lato Light';src:url(../Fonts/lato-light-webfont.eot);src:url(../Fonts/lato-light-webfont.eot?#iefix) format('embedded-opentype'),url(../Fonts/lato-light-webfont.woff) format('woff'),url(../Fonts/lato-light-webfont.ttf) format('truetype'),url(../Fonts/lato-light-webfont.svg#latolight) format('svg');font-weight:400;font-style:normal}@font-face{font-family:Lato;src:url(../Fonts/lato-regular-webfont.eot);src:url(../Fonts/lato-regular-webfont.eot?#iefix) format('embedded-opentype'),url(../Fonts/lato-regular-webfont.woff) format('woff'),url(../Fonts/lato-regular-webfont.ttf) format('truetype'),url(../Fonts/lato-regular-webfont.svg#latoregular) format('svg');font-weight:400;font-style:normal}.btn-ancillary{color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary.active,.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover,.open>.dropdown-toggle.btn-ancillary{color:#fff;background-color:#333;border-color:#2e2e2e}.btn-ancillary.active,.btn-ancillary:active,.open>.dropdown-toggle.btn-ancillary{background-image:none}.btn-ancillary.disabled,.btn-ancillary.disabled.active,.btn-ancillary.disabled:active,.btn-ancillary.disabled:focus,.btn-ancillary.disabled:hover,.btn-ancillary[disabled],.btn-ancillary[disabled].active,.btn-ancillary[disabled]:active,.btn-ancillary[disabled]:focus,.btn-ancillary[disabled]:hover,fieldset[disabled] .btn-ancillary,fieldset[disabled] .btn-ancillary.active,fieldset[disabled] .btn-ancillary:active,fieldset[disabled] .btn-ancillary:focus,fieldset[disabled] .btn-ancillary:hover{background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary .badge{color:#4d4d4d;background-color:#fff}.btn-ancillary.active,.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{background-color:#262626;border-color:#262626}body.Modal{background-color:#fff}#HeaderArea,#HeaderContainer{background-color:#1a1a1a;min-height:85px}#HeaderArea{border-bottom:1px solid #ccc}#HeaderArea .Page-Title-Area,#HeaderArea .Site-Name{min-height:84px}#HeaderArea .Page-Title-Area h1,#HeaderArea .Page-Title-Area h2,#HeaderArea .Page-Title-Area h3,#HeaderArea .Page-Title-Area h4,#HeaderArea .Page-Title-Area h5,#HeaderArea .Page-Title-Area h6,#HeaderArea .Site-Name h1,#HeaderArea .Site-Name h2,#HeaderArea .Site-Name h3,#HeaderArea .Site-Name h4,#HeaderArea .Site-Name h5,#HeaderArea .Site-Name h6{line-height:41px;margin:0}#HeaderArea .Site-Name{background-color:#ef4a24;min-height:95px;border:1px solid #ccc;border-top:0 none transparent;margin-bottom:-9px}#HeaderArea .Page-Title-Area{background-color:#1a1a1a}#HeaderArea .Page-Title-Area .Breadcrumbs{font-size:13px;font-style:italic;letter-spacing:.02em;color:#ccc;padding-top:9px;margin-bottom:-3px;margin-left:3px}#HeaderArea .Site-Name h1,#HeaderArea h2.Page-Title{font-family:'Lato Light',Helvetica,Arial,sans-serif;font-size:34px;color:#fff;padding-top:25px}#HeaderArea .Site-Name h1{margin-left:-2px}#HeaderArea h2.Page-Title{margin-left:3px}select{font-size:14px;color:#666;padding:3px 5px}select option{margin-bottom:3px}.Sidebar{padding-right:0;padding-left:0}.Sidebar #TreeView{margin:45px 1px 0 -1px}.Sidebar #TreeView:after,.Sidebar #TreeView:before{content:" ";display:table}.Sidebar #TreeView:after{clear:both}.Sidebar #TreeView:after,.Sidebar #TreeView:before{content:" ";display:table}.Sidebar #TreeView:after{clear:both}.Sidebar .Add-Topic,.Sidebar .AddTopic{margin-left:1.3em}.Sidebar select{background-color:#eee;width:95%;border-radius:2px}.Content-Container .Content[class*=col-]{padding-right:0;padding-left:0}.Content-Container .Content .Page-Content.Primary{position:relative;color:#333}[id*=DynamicForm]{background-color:#333;padding-top:50px}[id*=DynamicForm] .row.Form-Area,[id*=DynamicForm] .row.Messages-Area{margin:0}[id*=DynamicForm] .Editor-Navbar{width:100%;height:50px;background-color:#333}[id*=DynamicForm]#Modal_DynamicForm{padding-top:49px}[id*=DynamicForm]#Modal_DynamicForm .row.Toolbar-Area{margin:0}[id*=DynamicForm]#Modal_DynamicForm .row.Messages-Area{padding-right:5px;padding-left:5px}[id*=DynamicForm]#Modal_DynamicForm div[class*=col-]{padding-right:0;padding-left:0}[id*=DynamicForm]#Modal_DynamicForm div[class*=col-].Form-Body{padding-right:15px;padding-left:15px}[id*=DynamicForm]#Modal_DynamicForm .Editor-Navbar{top:0}[id*=DynamicForm]#Modal_DynamicForm .Messages-Area .alert-dismissable .close,[id*=DynamicForm]#Modal_DynamicForm .Messages-Area .close{right:0}[id*=DynamicForm] .Form-Area,[id*=DynamicForm] .Messages-Area{background-color:#fff}[id*=DynamicForm] .Messages-Area div[class*=Error],[id*=DynamicForm] .Messages-Area div[class*=alert]{font-size:13px;letter-spacing:.02em}[id*=DynamicForm] .Messages-Area .alert,[id*=DynamicForm] .Messages-Area div[class*=Error]{margin:10px 5px 0}[id*=DynamicForm] .Messages-Area .Error.Messaging font{margin:10px 5px 0;background-color:#f0dcd8;border-color:#e9c6c6;color:#d63510;display:block;color:#d63510!important;padding:10px;border:1px solid #e9c6c6;margin:0}[id*=DynamicForm] .Messages-Area .Error.Messaging font a{cursor:pointer}[id*=DynamicForm] .Messages-Area .Error.Messaging font hr{border-top-color:#e2b3b3}[id*=DynamicForm] .Messages-Area .Error.Messaging font .alert-link{color:#a6290c}[id*=DynamicForm] .Messages-Area .Error.Messaging font ul{list-style-type:square;padding-left:25px}[id*=DynamicForm] .Messages-Area .alert{padding:10px}[id*=DynamicForm] .Messages-Area .alert a{cursor:pointer}[id*=DynamicForm] .Messages-Area .alert-dismissable .close{right:0;font-size:20px;margin-top:0}[id*=DynamicForm] .Actions.Top{float:right;padding:0 8px;margin-top:-2px}[id*=DynamicForm] .Actions.Top button,[id*=DynamicForm] .Actions.Top input{margin-left:4px}[id*=DynamicForm] .Actions.Top #VersionsDropdown .glyphicon{margin-right:2px}[id*=DynamicForm] .Actions.Top #VersionsDropdown .caret{margin-left:2px}[id*=DynamicForm] ul.nav-tabs{padding-left:15px;border-bottom:0 none transparent}[id*=DynamicForm] .nav-tabs>li{margin-bottom:0}[id*=DynamicForm] .nav-tabs>li>a{color:#ccc;border:0 none transparent;border-bottom:8px solid transparent;margin-right:10px}[id*=DynamicForm] .nav-tabs>li>a:active,[id*=DynamicForm] .nav-tabs>li>a:focus,[id*=DynamicForm] .nav-tabs>li>a:hover{color:#fff;border-bottom-color:#ccc}[id*=DynamicForm] .nav-tabs>li.active>a,[id*=DynamicForm] .nav-tabs>li.active>a:focus,[id*=DynamicForm] .nav-tabs>li.active>a:hover{color:#fff;border:0 none transparent;border-bottom:8px solid #ccc}[id*=DynamicForm] label{font-weight:400}[id*=DynamicForm] input[type=text]{width:100%;max-width:960px}[id*=DynamicForm] input[type=text].form-control{border-radius:2px}[id*=DynamicForm] ::-webkit-input-placeholder{color:#999}[id*=DynamicForm] :-moz-placeholder{color:#999}[id*=DynamicForm] ::-moz-placeholder{color:#999}[id*=DynamicForm] :-ms-input-placeholder{color:#999}[id*=DynamicForm] input[type=radio]+label{font-size:14px;margin:0 3px}[id*=DynamicForm] select{padding:3px 5px;border-radius:2px}[id*=DynamicForm] select option{font-size:14px;margin-bottom:3px}[id*=DynamicForm] .Radio-Buttons li{display:inline-block}[id*=DynamicForm] input[class*=Error]{border-color:#ef4a24}[id*=DynamicForm] input[class*=Error]:focus{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f69983;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f69983}[id*=DynamicForm] .Last-Modified{font-size:14px;color:#4d4d4d}[id*=DynamicForm] [id*=DisplayGroupTabsContent]{width:100%;padding:0}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Group-Item{margin-bottom:20px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading{margin-bottom:5px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .Content-Description{position:relative;font-size:16px;color:#959595;text-decoration:none;top:2px;left:3px;padding:2px 5.5px 1px;cursor:pointer}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .tooltip .tooltip-arrow{border-right-color:#1a1a1a}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .tooltip .tooltip-inner{background-color:#1a1a1a;max-width:550px;font-size:14px;color:#eee;text-align:left;padding:5px 10px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .tab-pane{background-color:#fff;padding:20px 5px;overflow:auto}[id*=DynamicForm] .Callout-Area{background-color:#fff;padding:20px 5px 20px 0}[id*=DynamicForm] .Callout-Area #FixedCallouts{position:absolute;background-color:transparent;width:100%;right:-20px}[id*=DynamicForm] .Callout-Area .Callout{width:100%}[id*=DynamicForm] .Callout-Area .Callout.Page-Info{position:fixed;background-color:#fff;width:16%;max-width:214px;padding:15px;border:1px solid #ccc;z-index:0}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dd,[id*=DynamicForm] .Callout-Area .Callout.Page-Info dt,[id*=DynamicForm] .Callout-Area .Callout.Page-Info h3{color:#666}[id*=DynamicForm] .Callout-Area .Callout.Page-Info h3{font-family:'Lato Light',Helvetica,Arial,sans-serif;margin-top:0}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl{font-size:13px;line-height:18px;margin-bottom:-13px}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dt{font-weight:400}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dt .fa{width:1em;margin-right:5px}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dd{margin-left:1.7em;margin-bottom:8px}[id*=EditorModal] .modal-header{background-color:#1a1a1a;padding:20px;border-bottom-color:#ccc}[id*=EditorModal] .modal-header .Page-Title{font-family:'Lato Light',Helvetica,Arial,sans-serif;color:#fff;margin:0}[id*=EditorModal] .modal-content{background-color:#333}[id*=EditorModal] iframe{display:block;vertical-align:bottom}select[id*=ThemeColor] option[selected=selected],select[id*=ThemeColor] option[value*=ThemeColor]{color:#fff;line-height:1.6em}select[id*=ThemeColor] option[selected=selected][value*=Blue],select[id*=ThemeColor] option[value*=ThemeColor][value*=Blue]{background-color:#02a3e0}select[id*=ThemeColor] option[selected=selected][value*=Orange],select[id*=ThemeColor] option[value*=ThemeColor][value*=Orange]{background-color:#ff9e1a}select[id*=ThemeColor] option[selected=selected][value*=Green],select[id*=ThemeColor] option[value*=ThemeColor][value*=Green]{background-color:#029a17}select[id*=ThemeColor] option[selected=selected][value*=Purple],select[id*=ThemeColor] option[value*=ThemeColor][value*=Purple]{background-color:#9f5eb5}select[id*=ThemeColor] option[selected=selected][value*=Red],select[id*=ThemeColor] option[value*=ThemeColor][value*=Red]{background-color:#e30046}@media screen and (max-width:1024px){.Sidebar .Add-Topic,.Sidebar .AddTopic{margin-left:.5em}}@media (min-width:768px){.modal-dialog{min-width:700px;width:720px}}@media (min-width:768px) and (max-width:991px){[id*=DynamicForm] .Callout-Area #FixedCallouts{position:relative;right:0}[id*=DynamicForm] .Callout-Area #FixedCallouts .Callout.Page-Info{position:relative;top:-30px;left:20px;width:50%}}.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus,.x-unselectable,.x-unselectable *{-moz-user-select:all!important;-khtml-user-select:all!important;-webkit-user-select:all!important;-ms-user-select:all!important}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(/!Admin/Topics/Images/Navigation/Arrows.png);background-repeat:no-repeat;background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(/!Admin/Topics/Images/Navigation/Dashes.png);background-repeat:no-repeat;background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{font-size:14px;white-space:normal;padding:1px 0}.x-tree-node .x-tree-node-over,.x-tree-node x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;white-space:nowrap;line-height:normal;color:#ccc;text-overflow:ellipsis;padding:0 5px 0 3px;border:1px solid transparent}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{background-position:-50px 0;margin-right:-2px;margin-left:1px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;padding:1px 0;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}#DisplayGroupTabsContent .x-tree-root-ct{margin:0 0 5px}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node-indent:before{color:#666}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px 0}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent;border-color:transparent}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-node-indent:before,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-node-indent:before{color:#ef4a24}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span{color:#333}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px}#DisplayGroupTabsContent .cke_chrome{width:100%;max-width:960px;padding:0}#DisplayGroupTabsContent .cke_chrome .cke_inner{background:#dedede;border-radius:0}#DisplayGroupTabsContent .cke_chrome .cke_editable{font-size:14px;padding:10px}#DisplayGroupTabsContent .cke_chrome .cke_editable ol,#DisplayGroupTabsContent .cke_chrome .cke_editable ul{padding-left:25px}#DisplayGroupTabsContent .cke_chrome .cke_editable ul{list-style-type:square}#DisplayGroupTabsContent .cke_chrome .cke_editable ol{list-style-type:decimal}ul.token-input-list{display:block;width:100%;height:36px;padding:6px 12px;font-size:16px;line-height:1.42857143;color:#4d4d4d;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0;position:relative;line-height:115%;padding:2px 0;border-radius:2px}ul.token-input-list:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}ul.token-input-list::-moz-placeholder{color:#666;opacity:1}ul.token-input-list:-ms-input-placeholder{color:#666}ul.token-input-list::-webkit-input-placeholder{color:#666}fieldset[disabled] ul.token-input-list,ul.token-input-list[disabled],ul.token-input-list[readonly]{cursor:not-allowed;background-color:#ccc;opacity:1}textareaul.token-input-list{height:auto}selectul.token-input-list{height:33px;line-height:33px}select[multiple]ul.token-input-list,textareaul.token-input-list{height:auto}ul.token-input-list.token-input-focused{border-color:#66afe9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #bfdef6;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #bfdef6}ul.token-input-list li{display:inline-block;padding:3px 7px;margin:3px 1px 0 4px}ul.token-input-list li input[type=text]{font-family:Lato,Helvetica,Arial,sans-serif;height:19px;line-height:21px;padding:0}ul.token-input-list li.token-input-token{background-color:#cee7f2}ul.token-input-list li.token-input-token p,ul.token-input-list li.token-input-token span{display:inline-block}ul.token-input-list li.token-input-token p{font-family:Lato,Helvetica,Arial,sans-serif;font-weight:400;color:#4d4d4d;margin-right:5px}ul.token-input-list li.token-input-token span.token-input-delete-token{position:relative;top:-1px;color:#959595}ul.token-input-list li.token-input-token~li.token-input-input-token{position:absolute;bottom:2px;padding-top:1px;padding-bottom:4px;margin-left:-1px}div.token-input-dropdown p{font-family:Lato,Helvetica,Arial,sans-serif;font-weight:400}div.token-input-dropdown ul li{color:#4d4d4d}div.token-input-dropdown ul li.token-input-dropdown-item{background-color:#eee}div.token-input-dropdown ul li.token-input-selected-dropdown-item{background-color:#d4effa}div.token-input-dropdown ul li .Breadcrumbs{color:#666}div.token-input-dropdown ul li em{font-weight:400} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index 2eb7e4aa..bc3277a3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -37,6 +37,9 @@ h6, .logotype.lockup a { text-decoration: none; } +.form { + background-color: white; } + fieldset legend { margin-bottom: rem-calc(18); padding-top: rem-calc(34); @@ -167,8 +170,29 @@ a { background-color: transparent; } .tab-content { + padding: 20px 0 20px 5px; background-color: white; } +.tooltip-arrow { + border-right-color: #1a1a1a; } + +.tooltip-inner { + padding: 5px 10px; + max-width: 550px; + font-size: 14px; + color: #eeeeee; + text-align: left; + background-color: #1a1a1a; } + +.fa-info-circle { + position: relative; + top: 2px; + left: 3px; + padding: 2px 5.5px 1px; + font-size: 16px; + color: #959595; + cursor: pointer; } + .hidden { display: none; } @@ -230,7 +254,7 @@ body { margin-left: 3px; } #MainContentArea #PageContentArea { - margin: 0 -15px; + margin: 0; padding: 50px 0 0; } #MainContentArea #Toolbar { diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index a69a858c..2f318f16 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -346,6 +346,7 @@ + From 24c9e9bbc939a15f0a85f0e557a172a6edb4e905 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:19:50 -0700 Subject: [PATCH 128/637] Removed tooltip offset --- .../Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml index dee4b4c0..f1ddd65c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml @@ -5,7 +5,7 @@
    @Html.LabelFor(m => m.Value, Model.Definition.Title) - +
    @Html.HiddenFor(m => m.Definition.Type) From 99b11b29552c8dc8a78673accc8ff0e1597872ff Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:28:48 -0700 Subject: [PATCH 129/637] Updated element for tooltip icon --- .../Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml index f1ddd65c..864b0b47 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml @@ -5,7 +5,7 @@
    @Html.LabelFor(m => m.Value, Model.Definition.Title) - +
    @Html.HiddenFor(m => m.Definition.Type) From f9bbdceb51da08a3abce9f48bceee5caf73a5ce9 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:29:03 -0700 Subject: [PATCH 130/637] Adjusted positioning for tooltips --- .../Areas/Editor/Shared/Styles/Base/_tooltips.scss | 4 ++-- Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css | 4 ++-- .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss index a814fd81..60ccc9d8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss @@ -29,9 +29,9 @@ //---------------------------------------------------------------------------------------------- .fa-info-circle { position : relative; - top : 2px; + top : 0; left : 3px; - padding : 2px 5.5px 1px; + padding-right : 12px; font-size : 16px; color : $grey-light; cursor : pointer; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index bc3277a3..9eddbdf6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -186,9 +186,9 @@ a { .fa-info-circle { position: relative; - top: 2px; + top: 1px; left: 3px; - padding: 2px 5.5px 1px; + padding-right: 12px; font-size: 16px; color: #959595; cursor: pointer; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index bc4b4374..8351f572 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{background-color:#fff}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea #PageContentArea{margin:0 -15px;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:1px;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px} \ No newline at end of file From 7ea6a0467a67ac8413c0515a637803efb8705967 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:30:31 -0700 Subject: [PATCH 131/637] Fixed base font setting --- .../Areas/Editor/Shared/Styles/Base/_typography.scss | 1 + Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css | 3 ++- .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss index 7f529481..c4e06da1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss @@ -20,6 +20,7 @@ p, td, ol, ul { + font-family : $base-font-family; font-size : rem-calc(16); line-height : 1.4; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index 9eddbdf6..550b2cc2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -4,6 +4,7 @@ p, td, ol, ul { + font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: rem-calc(16); line-height: 1.4; } @@ -186,7 +187,7 @@ a { .fa-info-circle { position: relative; - top: 1px; + top: 0; left: 3px; padding-right: 12px; font-size: 16px; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index 8351f572..9d5fdefd 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:1px;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px} \ No newline at end of file From 8f04c68f9fea8b923a9d1cd0f5c9966a6c4cadde Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:34:11 -0700 Subject: [PATCH 132/637] Added spacing between Attribute content blocks --- .../Areas/Editor/Shared/Styles/Base/_base.scss | 7 +++++++ .../Areas/Editor/Shared/Styles/Style.css | 3 +++ .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss index 0d438d5b..c463d99b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss @@ -39,3 +39,10 @@ //---------------------------------------------------------------------------------------------- main { } + +//---------------------------------------------------------------------------------------------- +// ATTRIBUTE BLOCKS +//---------------------------------------------------------------------------------------------- +.attribute { + margin-bottom : 20px; +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index 550b2cc2..72faf40c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -220,6 +220,9 @@ a { border-top: 0 none transparent; background-color: #ef4a24; } +.attribute { + margin-bottom: 20px; } + html { height: 100%; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index 9d5fdefd..232dec0a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px} \ No newline at end of file From aa5a0ef3a2f65aeb91b635976d08bb138f58c2f5 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 12:44:56 -0700 Subject: [PATCH 133/637] Adjusted layout for primary content area --- .../Editor/Shared/Styles/Layout/_layout.scss | 4 ++++ .../Areas/Editor/Shared/Styles/Style.css | 19 +++++++++++-------- .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- .../Areas/Editor/Views/Editor/Index.cshtml | 2 +- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss index b75cb2e6..7d57cf43 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss @@ -71,6 +71,7 @@ body { // PRIMARY CONTENT AREA //---------------------------------------------------------------------------------------------- #MainContentArea { + padding : 0; #PageContentArea { margin : 0; padding : 50px 0 0; @@ -80,4 +81,7 @@ body { position : fixed; padding-top : 10px; } + #FormArea { + margin : 0; + } } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index 72faf40c..82ae03ab 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -257,11 +257,14 @@ body { #HeaderContainer .page.title h1 { margin-left: 3px; } -#MainContentArea #PageContentArea { - margin: 0; - padding: 50px 0 0; } - -#MainContentArea #Toolbar { - z-index: 50; - position: fixed; - padding-top: 10px; } +#MainContentArea { + padding: 0; } + #MainContentArea #PageContentArea { + margin: 0; + padding: 50px 0 0; } + #MainContentArea #Toolbar { + z-index: 50; + position: fixed; + padding-top: 10px; } + #MainContentArea #FormArea { + margin: 0; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index 232dec0a..c80c8f5f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{-webkit-box-shadow:none;box-shadow:none}[type=color]:active,[type=color]:focus,[type=date]:active,[type=date]:focus,[type=datetime-local]:active,[type=datetime-local]:focus,[type=datetime]:active,[type=datetime]:focus,[type=email]:active,[type=email]:focus,[type=month]:active,[type=month]:focus,[type=number]:active,[type=number]:focus,[type=password]:active,[type=password]:focus,[type=search]:active,[type=search]:focus,[type=tel]:active,[type=tel]:focus,[type=text]:active,[type=text]:focus,[type=time]:active,[type=time]:focus,[type=url]:active,[type=url]:focus,[type=week]:active,[type=week]:focus,select:active,select:focus,textarea:active,textarea:focus{-webkit-box-shadow:none;box-shadow:none}input:active,input:focus{-webkit-box-shadow:none;box-shadow:none}input.submit{margin-bottom:0}textarea{min-height:rem-calc(128)}.checkbox label,.radio label{height:auto!important;line-height:rem-calc(20)!important}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#0872a3}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#0872a3}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #FormArea{margin:0} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml index 289bff17..a17feb57 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml @@ -8,7 +8,7 @@ @Html.Partial("_Toolbar") -
    +
    @{int index = 0;}
    From fa9438c0bda9c03e958aeb20e403f318ef9ba174 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Thu, 12 Oct 2017 14:20:41 -0700 Subject: [PATCH 134/637] Integrated structure for toolbar action buttons --- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 2364ea87..03d79dbd 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -3,9 +3,35 @@ @{ Layout = null; var displayGroups = Model.ContentType.SupportedAttributes.Select(a => a.DisplayGroup).Distinct().ToList(); + bool disableDelete = Model.ContentType.Attributes.GetValue("DisableDelete").Equals("1"); }
    + +
    + + + @if (Model.Topic.Parent.Attributes.GetValue("ContentType").Equals("List")) { + "class="btn btn-ancillary btn-sm">Cancel + } + + +
    + +
    -
    +
    +
    + +

    Topic Information

    +
    +
    Content Type
    +
    @Model.Topic.ContentType
    +
    Topic ID
    +
    @Model.Topic.Id
    +
    Current
    +
    View Page
    +
    + +
    +
    } From 9755e42371473e32ea039efcba5caa45839611f6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 13 Oct 2017 15:22:16 -0700 Subject: [PATCH 140/637] Implemented routes, actions The `EditorAreaRegistration` now correctly registers the site with an area prefix of `/OnTopic` and the inclusion of the action in the URL. The path is now `/OnTopic/Action/WebPath/`. --- .../Areas/Editor/Controllers/EditorController.cs | 2 +- .../Areas/Editor/EditorAreaRegistration.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 986059e1..c4146673 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -21,7 +21,7 @@ namespace Ignia.Topics.Editor.Mvc.Controllers { /// /// Provides data access and processing for editor related functions. /// - [RouteArea("Editor", AreaPrefix = "")] + [RouteArea("Editor", AreaPrefix = "OnTopic")] public class EditorController : Controller { /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs index 95cdddd3..888f2d90 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/EditorAreaRegistration.cs @@ -44,8 +44,8 @@ public override void RegisterArea(AreaRegistrationContext context) { \-----------------------------------------------------------------------------------------------------------------------*/ context.Routes.MapRoute( name: "TopicEditor", - url: "Web/{*path}", - defaults: new { controller = "Editor", action = "Index", id = UrlParameter.Optional } + url: "OnTopic/{action}/{*path}", + defaults: new { controller = "Editor", id = UrlParameter.Optional } ).DataTokens.Add("area", "Editor"); } From afc87eb54661a1c8241c9f32bb6237a462056e7c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 13 Oct 2017 15:23:07 -0700 Subject: [PATCH 141/637] Renamed `Index` action to `Edit` This provides more intuitive semantics. To edit a page, you now go to: `/OnTopic/Edit/WebPath/`. --- .../Areas/Editor/Controllers/EditorController.cs | 12 ++++++------ .../Views/Editor/{Index.cshtml => Edit.cshtml} | 0 .../Ignia.Topics.Editor.Mvc.csproj | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/{Index.cshtml => Edit.cshtml} (100%) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index c4146673..2b00311f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -81,12 +81,12 @@ protected ContentType GetContentType(string contentType) => TopicRepository .First(); /*========================================================================================================================== - | [GET] INDEX + | [GET] EDIT \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Present an editor view bound to a specific topic. /// - public ActionResult Index(bool isNew = false, string contentType = null, bool isModal = false) { + public ActionResult Edit(bool isNew = false, string contentType = null, bool isModal = false) { /*------------------------------------------------------------------------------------------------------------------------ | FILTER CONTENT TYPES @@ -129,14 +129,14 @@ public ActionResult Index(bool isNew = false, string contentType = null, bool is } /*========================================================================================================================== - | [POST] INDEX + | [POST] EDIT \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Handles postback from the editor, based on an . /// /// An instance of the constructed from the HTTP Post. [HttpPost] - public ActionResult Index(EditorBindingModel model, bool isNew = false, string contentType = null, bool isModal = false) { + public ActionResult Edit(EditorBindingModel model, bool isNew = false, string contentType = null, bool isModal = false) { /*------------------------------------------------------------------------------------------------------------------------ | SET TOPIC @@ -207,7 +207,7 @@ public ActionResult Index(EditorBindingModel model, bool isNew = false, string c /*------------------------------------------------------------------------------------------------------------------------ | RETURN INDEX \-----------------------------------------------------------------------------------------------------------------------*/ - return Index(); + return Edit(); } @@ -249,7 +249,7 @@ public ActionResult SetVersion(DateTime version) { /*-------------------------------------------------------------------------------------------------------------------------- | Render index \-------------------------------------------------------------------------------------------------------------------------*/ - return Index(); + return Edit(); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Index.cshtml rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 2f318f16..509579ed 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -197,7 +197,7 @@ Web.config - + From 7d82066869a34dcc44565515fc98f681cc35c0b8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 13 Oct 2017 17:55:56 -0700 Subject: [PATCH 142/637] Introduced support for JSON rendering --- .../Ignia.Topics.Editor.Models.csproj | 2 + .../JsonTopicViewModel.cs | 253 ++++++++++++++++++ .../JsonTopicViewModelOptions.cs | 165 ++++++++++++ .../Editor/Controllers/EditorController.cs | 38 ++- 4 files changed, 457 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Models/JsonTopicViewModel.cs create mode 100644 Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 8d307ae8..7ee21277 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -86,6 +86,8 @@ + + diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs new file mode 100644 index 00000000..90a70e95 --- /dev/null +++ b/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs @@ -0,0 +1,253 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using System.Linq; +using Ignia.Topics.Collections; +using Ignia.Topics.Repositories; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: JSON VIEW MODEL + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents a in a format optimized for JSON serialization. + /// + /// + /// + public class JsonTopicViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class using a to seed the + /// values. + /// + public JsonTopicViewModel(Topic topic, JsonTopicViewModelOptions options) : this( + topic.Id, + topic.Key, + options.UseKeyAsText? topic.Title : topic.Key, + topic.UniqueKey, + false, + topic.Attributes.GetValue("DisableDelete", "0").Equals("1") + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Handle options + \-----------------------------------------------------------------------------------------------------------------------*/ + if (options.ResultLimit > 0) { + options.ResultLimit--; + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Initialize collection + \-----------------------------------------------------------------------------------------------------------------------*/ + Children = new List(); + + /*------------------------------------------------------------------------------------------------------------------------ + | Populate children + \-----------------------------------------------------------------------------------------------------------------------*/ + if (options.IsRecursive) { + foreach (var child in topic.Children) { + if (JsonTopicViewModel.IsValidTopic(child, options)) { + Children.Add(new JsonTopicViewModel(child, options)); + } + } + } + + } + + /// + /// Initializes a new instance of the class by specifying each of the property values. + /// + public JsonTopicViewModel( + int id, + string key, + string title, + string uniqueKey, + bool isChecked = false, + bool isDraggable = true + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set properties + \-----------------------------------------------------------------------------------------------------------------------*/ + Id = id; + Key = key; + Title = title; + UniqueKey = uniqueKey; + WebPath = "/" + UniqueKey.Replace(':', '/'); + IsDraggable = isDraggable; + + /*------------------------------------------------------------------------------------------------------------------------ + | Initialize collection + \-----------------------------------------------------------------------------------------------------------------------*/ + Children = new List(); + + } + + /*========================================================================================================================== + | IS VALID TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Static method confirms whether a topic is valid based on the . + /// + public static bool IsValidTopic(Topic topic, JsonTopicViewModelOptions options) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish variables + \-----------------------------------------------------------------------------------------------------------------------*/ + var searchTerms = (options.Query ?? "").Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate basic properties + \-----------------------------------------------------------------------------------------------------------------------*/ + if (!options.ShowAll && !topic.IsVisible()) return false; + if (!options.ShowNestedTopics && topic.ContentType.Equals("List")) return false; + if (options.ResultLimit.Equals(0)) return false; + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate filtered attribute + \-----------------------------------------------------------------------------------------------------------------------*/ + if (!String.IsNullOrEmpty(options.AttributeName) && !String.IsNullOrEmpty(options.AttributeName)) { + if (options.UsePartialMatch) { + if (topic.Attributes.GetValue(options.AttributeName, "").IndexOf(options.AttributeValue) == -1) { + return false; + } + } + if (!topic.Attributes.GetValue(options.AttributeName, "").Equals(options.AttributeValue)) { + return false; + } + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate search results + \-----------------------------------------------------------------------------------------------------------------------*/ + if (searchTerms.Count > 0) { + if (!searchTerms.All( + searchTerm => topic.Attributes.Any( + a => a.Value.IndexOf(searchTerm, 0, StringComparison.InvariantCultureIgnoreCase) >= 0 + ) + )) { + return false; + } + } + + return true; + + } + + /*========================================================================================================================== + | ID + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The unique identifier as set in the database as the primary key. + /// + public int Id { + get; + } + + /*========================================================================================================================== + | KEY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The key property of the topic. + /// + public string Key { + get; + } + + /*========================================================================================================================== + | TITLE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The title of the topic, which will fall back to if not set. + /// + public string Title { + get; + } + + /*========================================================================================================================== + | UNIQUE KEY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The fully-qualified, unique key for the topic, in OnTopic format. + /// + public string UniqueKey { + get; + } + + /*========================================================================================================================== + | WEB PATH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The fully-qualified, unique path to the topic, in HTTP format. + /// + public string WebPath { + get; + } + + /*========================================================================================================================== + | IS CHECKED? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether the current topic is selected or not. + /// + public bool IsChecked { + get; + } + + /*========================================================================================================================== + | IS DRAGGABLE? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether the current topic is intended to be draggable or not. + /// + public bool IsDraggable { + get; + } + + /*========================================================================================================================== + | IS LEAF? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether the current topic is a leaf node or not. + /// + public bool IsLeaf { + get => Children.Count.Equals(0); + } + + /*========================================================================================================================== + | CHILDREN + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a collection of child objects. + /// + public List Children { + get; + } + + /*========================================================================================================================== + | AS FLAT STRUCTURE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a flat list of the current . + /// + public List AsFlatStructure(List output = null) { + output = output?? new List(); + output.Add(this); + foreach (var topic in Children) { + output = topic.AsFlatStructure(output); + } + Children.Clear(); + return output; + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs new file mode 100644 index 00000000..6836ddb8 --- /dev/null +++ b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs @@ -0,0 +1,165 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using Ignia.Topics.Collections; +using Ignia.Topics.Repositories; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: JSON VIEW MODEL OPTIONS + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Tracks options for the class. + /// + public class JsonTopicViewModelOptions { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public JsonTopicViewModelOptions() { + + /*-------------------------------------------------------------------------------------------------------------------------- + | Set default values + \-------------------------------------------------------------------------------------------------------------------------*/ + ShowRoot = false; + ShowAll = true; + UseKeyAsText = false; + IsRecursive = true; + FlattenStructure = false; + ShowNestedTopics = false; + UsePartialMatch = false; + ResultLimit = -1; + AttributeName = null; + AttributeValue = null; + Query = null; + + } + + /*========================================================================================================================== + | SHOW ROOT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determine whether or not the root passed should be displayed in the tree view, or if it should only display children. + /// + public bool ShowRoot { + get; + set; + } + + /*========================================================================================================================== + | SHOW ALL + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determine whether or not hidden and inactive children should be displayed; typically used exclusively for the editor. + /// + public bool ShowAll { + get; + set; + } + + /*========================================================================================================================== + | USE KEY AS TEXT + >--------------------------------------------------------------------------------------------------------------------------- + | Determines if the name should be displayed using the Title (if available) or the Key. Defaults to Title. + \-------------------------------------------------------------------------------------------------------------------------*/ + public bool UseKeyAsText { + get; + set; + } + + /*========================================================================================================================== + | IS RECURSIVE + >--------------------------------------------------------------------------------------------------------------------------- + | Determine whether grandchildren of the RootTopic should be displayed, or whether the tree should only show one tier of + | Topics. Defaults to recursive. + \-------------------------------------------------------------------------------------------------------------------------*/ + public bool IsRecursive { + get; + set; + } + + /*========================================================================================================================== + | FLATTEN STRUCTURE + >--------------------------------------------------------------------------------------------------------------------------- + | Determine whether all Topics should be added to the output at the same (top) level, or whether sub-tiers of Topics should + | be added to the output under a "children" array (of the parent). + \-------------------------------------------------------------------------------------------------------------------------*/ + public bool FlattenStructure { + get; + set; + } + + /*========================================================================================================================== + | SHOW NESTED TOPICS + >--------------------------------------------------------------------------------------------------------------------------- + | Determine whether or not nested topics (i.e., topics within List ContentTypes) should be displayed or not. By default, it + | is assumed that they should not be displayed. + \-------------------------------------------------------------------------------------------------------------------------*/ + public bool ShowNestedTopics { + get; + set; + } + + /*========================================================================================================================== + | USE PARTIAL MATCH + >--------------------------------------------------------------------------------------------------------------------------- + | If set, changes the FilterChildren query to find Topics based on a partial match against the specified AttributeName's + | AttributeValue, if both are present; otherwise, the query returns only exact matches. + \-------------------------------------------------------------------------------------------------------------------------*/ + public bool UsePartialMatch { + get; + set; + } + + /*========================================================================================================================== + | RESULT LIMIT + >--------------------------------------------------------------------------------------------------------------------------- + | If set, should limit the number of Topics loaded/output to the JSON. Includes setter in order to be decremented along with + | resultLimit in AddNodeToOutput(). + \-------------------------------------------------------------------------------------------------------------------------*/ + public int ResultLimit { + get; + set; + } + + /*========================================================================================================================== + | ATTRIBUTE NAME + >--------------------------------------------------------------------------------------------------------------------------- + | May optionally filter out topics based on attribute values; if so, this property defines the attribute name. + \-------------------------------------------------------------------------------------------------------------------------*/ + public string AttributeName { + get; + set; + } + + /*========================================================================================================================== + | ATTRIBUTE VALUE + >--------------------------------------------------------------------------------------------------------------------------- + | May optionally filter out topics based on attribute values; if so, this property defines the attribute value. + \-------------------------------------------------------------------------------------------------------------------------*/ + public string AttributeValue { + get; + set; + } + + /*========================================================================================================================== + | QUERY + >--------------------------------------------------------------------------------------------------------------------------- + | May optionally filter out topics based on attribute values; if so, this property defines the attribute value. + \-------------------------------------------------------------------------------------------------------------------------*/ + public string Query { + get; + set; + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 2b00311f..934f339e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -338,6 +338,42 @@ public ActionResult Move(int topicId, int targetTopicId, int siblingId) { } - } //Class + /*========================================================================================================================== + | JSON + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves JSON the specified topic, and all of its children. + /// + public JsonResult Json(JsonTopicViewModelOptions options) { + + /*-------------------------------------------------------------------------------------------------------------------------- + | Assembly view model + \-------------------------------------------------------------------------------------------------------------------------*/ + var jsonTopicViewModel = new JsonTopicViewModel(CurrentTopic, options); + + /*-------------------------------------------------------------------------------------------------------------------------- + | Return flat view model, if requested + \-------------------------------------------------------------------------------------------------------------------------*/ + if (options.FlattenStructure) { + var flatJsonTopicViewModel = jsonTopicViewModel.AsFlatStructure(); + if (!options.ShowRoot) { + flatJsonTopicViewModel.RemoveAt(0); + } + return Json(flatJsonTopicViewModel, JsonRequestBehavior.AllowGet); + } + + /*-------------------------------------------------------------------------------------------------------------------------- + | Otherwise, return hierarchical view model + \-------------------------------------------------------------------------------------------------------------------------*/ + if (options.ShowRoot) { + return Json(jsonTopicViewModel, JsonRequestBehavior.AllowGet); + } + else { + return Json(jsonTopicViewModel.Children, JsonRequestBehavior.AllowGet); + } + + } + +} //Class } //Namespace \ No newline at end of file From 793a7642e7441fe11f53f3928d05a18aefc0156f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 13 Oct 2017 18:17:46 -0700 Subject: [PATCH 143/637] Converted comments to XML summaries --- .../JsonTopicViewModelOptions.cs | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs index 6836ddb8..9c501180 100644 --- a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs +++ b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs @@ -67,9 +67,10 @@ public bool ShowAll { /*========================================================================================================================== | USE KEY AS TEXT - >--------------------------------------------------------------------------------------------------------------------------- - | Determines if the name should be displayed using the Title (if available) or the Key. Defaults to Title. \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines if the name should be displayed using the Title (if available) or the Key. Defaults to Title. + /// public bool UseKeyAsText { get; set; @@ -77,10 +78,11 @@ public bool UseKeyAsText { /*========================================================================================================================== | IS RECURSIVE - >--------------------------------------------------------------------------------------------------------------------------- - | Determine whether grandchildren of the RootTopic should be displayed, or whether the tree should only show one tier of - | Topics. Defaults to recursive. \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determine whether grandchildren of the RootTopic should be displayed, or whether the tree should only show one tier of + /// Topics. Defaults to recursive. + /// public bool IsRecursive { get; set; @@ -88,10 +90,11 @@ public bool IsRecursive { /*========================================================================================================================== | FLATTEN STRUCTURE - >--------------------------------------------------------------------------------------------------------------------------- - | Determine whether all Topics should be added to the output at the same (top) level, or whether sub-tiers of Topics should - | be added to the output under a "children" array (of the parent). \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determine whether all Topics should be added to the output at the same (top) level, or whether sub-tiers of Topics + /// should be added to the output under a "children" array (of the parent). + /// public bool FlattenStructure { get; set; @@ -99,10 +102,11 @@ public bool FlattenStructure { /*========================================================================================================================== | SHOW NESTED TOPICS - >--------------------------------------------------------------------------------------------------------------------------- - | Determine whether or not nested topics (i.e., topics within List ContentTypes) should be displayed or not. By default, it - | is assumed that they should not be displayed. \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determine whether or not nested topics (i.e., topics within List ContentTypes) should be displayed or not. By default, + /// it is assumed that they should not be displayed. + /// public bool ShowNestedTopics { get; set; @@ -110,10 +114,11 @@ public bool ShowNestedTopics { /*========================================================================================================================== | USE PARTIAL MATCH - >--------------------------------------------------------------------------------------------------------------------------- - | If set, changes the FilterChildren query to find Topics based on a partial match against the specified AttributeName's - | AttributeValue, if both are present; otherwise, the query returns only exact matches. \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// If set, changes the FilterChildren query to find Topics based on a partial match against the specified AttributeName's + /// AttributeValue, if both are present; otherwise, the query returns only exact matches. + /// public bool UsePartialMatch { get; set; @@ -121,10 +126,11 @@ public bool UsePartialMatch { /*========================================================================================================================== | RESULT LIMIT - >--------------------------------------------------------------------------------------------------------------------------- - | If set, should limit the number of Topics loaded/output to the JSON. Includes setter in order to be decremented along with - | resultLimit in AddNodeToOutput(). \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// If set, should limit the number of Topics loaded/output to the JSON. Includes setter in order to be decremented along + /// with resultLimit in AddNodeToOutput(). + /// public int ResultLimit { get; set; @@ -132,9 +138,10 @@ public int ResultLimit { /*========================================================================================================================== | ATTRIBUTE NAME - >--------------------------------------------------------------------------------------------------------------------------- - | May optionally filter out topics based on attribute values; if so, this property defines the attribute name. \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// May optionally filter out topics based on attribute values; if so, this property defines the attribute name. + /// public string AttributeName { get; set; @@ -142,9 +149,10 @@ public string AttributeName { /*========================================================================================================================== | ATTRIBUTE VALUE - >--------------------------------------------------------------------------------------------------------------------------- - | May optionally filter out topics based on attribute values; if so, this property defines the attribute value. \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// May optionally filter out topics based on attribute values; if so, this property defines the attribute value. + /// public string AttributeValue { get; set; @@ -152,9 +160,10 @@ public string AttributeValue { /*========================================================================================================================== | QUERY - >--------------------------------------------------------------------------------------------------------------------------- - | May optionally filter out topics based on attribute values; if so, this property defines the attribute value. \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// May optionally filter out topics based on attribute values; if so, this property defines the attribute value. + /// public string Query { get; set; From 79381f0195a52443d51974503b4f8efe36cb4405 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 13 Oct 2017 18:18:34 -0700 Subject: [PATCH 144/637] Added option placeholders for `RelatedTopicId` and `RelatedNamespace` These are not yet implemented, but they are in place in anticipation of upcoming support. --- .../JsonTopicViewModelOptions.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs index 9c501180..5c509c83 100644 --- a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs +++ b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs @@ -169,6 +169,28 @@ public string Query { set; } + /*========================================================================================================================== + | RELATED TOPIC ID + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The identifier of the topic to use to determine if items are marked as checked, based on its relationships. + /// + public int RelatedTopicId { + get; + set; + } + + /*========================================================================================================================== + | RELATED NAMESPACE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The name of the relationship scope to use with the . + /// + public string RelatedNamespace { + get; + set; + } + } //Class } //Namespace From 419ad33278b1fc2fe41fed8aae4b9ad98380c6d2 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 13 Oct 2017 18:38:24 -0700 Subject: [PATCH 145/637] Added new `MarkRelated` property This will automatically be set if `RelatedTopicId` or `RelatedNamespace` are set. If it is set manually, then `RelatedTopicId` will default to the current topic. --- .../JsonTopicViewModelOptions.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs index 5c509c83..c4690241 100644 --- a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs +++ b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs @@ -18,6 +18,11 @@ namespace Ignia.Topics.Editor.Models { /// public class JsonTopicViewModelOptions { + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + bool _markRelated = false; + /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ @@ -40,6 +45,9 @@ public JsonTopicViewModelOptions() { AttributeName = null; AttributeValue = null; Query = null; + MarkRelated = false; + RelatedTopicId = -1; + RelatedNamespace = null; } @@ -169,6 +177,22 @@ public string Query { set; } + /*========================================================================================================================== + | MARK RELATED + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether s should be marked as + /// based on their presence in related topics. + /// + /// + /// This will automatically be set to true is or are set. If + /// is not set, then the current should be assumed. + /// + public bool MarkRelated { + get => (RelatedTopicId > 0 || String.IsNullOrEmpty(RelatedNamespace) || _markRelated); + set => _markRelated = value; + } + /*========================================================================================================================== | RELATED TOPIC ID \-------------------------------------------------------------------------------------------------------------------------*/ From 0f0d37078e735f21deef53876475709a867e3ab4 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 13 Oct 2017 19:08:24 -0700 Subject: [PATCH 146/637] Fixed `IsModal` assignment --- Ignia.Topics.Editor.Models/EditorViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/EditorViewModel.cs b/Ignia.Topics.Editor.Models/EditorViewModel.cs index daf9ea61..55d732ec 100644 --- a/Ignia.Topics.Editor.Models/EditorViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditorViewModel.cs @@ -45,7 +45,7 @@ bool isModal ContentType = contentType; PermittedContentTypes = permittedContentTypes; TopicRepository = topicRepository; - isModal = isModal; + IsModal = isModal; } From 3076db95f63aa8d2b6857a5026ec00204fcede69 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 13 Oct 2017 19:16:14 -0700 Subject: [PATCH 147/637] Added support for `RelatedTopicId` and `RelatedNamespace` Will also operate off the local topic if `MarkRelated` or `RelatedNamespace` is checked. --- .../JsonTopicViewModel.cs | 13 ++++++++--- .../Editor/Controllers/EditorController.cs | 23 ++++++++++++++++++- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs index 90a70e95..44fda27c 100644 --- a/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs @@ -28,12 +28,18 @@ public class JsonTopicViewModel { /// Initializes a new instance of the class using a to seed the /// values. /// - public JsonTopicViewModel(Topic topic, JsonTopicViewModelOptions options) : this( + public JsonTopicViewModel(Topic topic, JsonTopicViewModelOptions options) : this(topic, null, options) { } + + public JsonTopicViewModel( + Topic topic, + ReadOnlyTopicCollection related, + JsonTopicViewModelOptions options + ) : this( topic.Id, topic.Key, options.UseKeyAsText? topic.Title : topic.Key, topic.UniqueKey, - false, + options.MarkRelated? related.Contains(topic) : true, topic.Attributes.GetValue("DisableDelete", "0").Equals("1") ) { @@ -55,7 +61,7 @@ public JsonTopicViewModel(Topic topic, JsonTopicViewModelOptions options) : this if (options.IsRecursive) { foreach (var child in topic.Children) { if (JsonTopicViewModel.IsValidTopic(child, options)) { - Children.Add(new JsonTopicViewModel(child, options)); + Children.Add(new JsonTopicViewModel(child, related, options)); } } } @@ -82,6 +88,7 @@ public JsonTopicViewModel( Title = title; UniqueKey = uniqueKey; WebPath = "/" + UniqueKey.Replace(':', '/'); + IsChecked = isChecked; IsDraggable = isDraggable; /*------------------------------------------------------------------------------------------------------------------------ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 934f339e..144e7e36 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -346,10 +346,31 @@ public ActionResult Move(int topicId, int targetTopicId, int siblingId) { /// public JsonResult Json(JsonTopicViewModelOptions options) { + /*-------------------------------------------------------------------------------------------------------------------------- + | Get related topics + \-------------------------------------------------------------------------------------------------------------------------*/ + var relatedTopics = (ReadOnlyTopicCollection)null; + + if (options.MarkRelated) { + + var relatedTopic = CurrentTopic; + if (options.RelatedTopicId > 0) { + relatedTopic = TopicRepository.Load().GetTopic(options.RelatedTopicId); + } + + if (!String.IsNullOrWhiteSpace(options.RelatedNamespace)) { + relatedTopics = new ReadOnlyTopicCollection(relatedTopic.Relationships.GetTopics(options.RelatedNamespace)); + } + else { + relatedTopics = relatedTopic.Relationships.GetAllTopics(); + } + + } + /*-------------------------------------------------------------------------------------------------------------------------- | Assembly view model \-------------------------------------------------------------------------------------------------------------------------*/ - var jsonTopicViewModel = new JsonTopicViewModel(CurrentTopic, options); + var jsonTopicViewModel = new JsonTopicViewModel(CurrentTopic, relatedTopics, options); /*-------------------------------------------------------------------------------------------------------------------------- | Return flat view model, if requested From 255e244cf29b0ff9916f88c07e3854ffc262bb96 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 16 Oct 2017 12:37:32 -0700 Subject: [PATCH 148/637] Corrected boolean logic for `MarkRelated` This was causing `MarkRelated` to be set to true if the `RelatedNamespace` was null or empty, thus resulting in `IsChecked` always being evaluated against the current topic's `Relationships.GetAllTopics()` collection. --- Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs index c4690241..b04816aa 100644 --- a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs +++ b/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs @@ -189,7 +189,7 @@ public string Query { /// is not set, then the current should be assumed. /// public bool MarkRelated { - get => (RelatedTopicId > 0 || String.IsNullOrEmpty(RelatedNamespace) || _markRelated); + get => (RelatedTopicId > 0 || !String.IsNullOrEmpty(RelatedNamespace) || _markRelated); set => _markRelated = value; } From abd1db438873b5dcbb086e0c685e2b49b7e4e754 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Mon, 16 Oct 2017 14:25:57 -0700 Subject: [PATCH 149/637] Added ExtJS files to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ffedd3b9..dc5064eb 100644 --- a/.gitignore +++ b/.gitignore @@ -303,3 +303,4 @@ config.yml /_site compilerconfig.json compilerconfig.json.defaults +**/ExtJS/* From cb23897cf875a8f1652b2a96b2225e39e5ebf70a Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Mon, 16 Oct 2017 14:26:13 -0700 Subject: [PATCH 150/637] Content includes for ExtJS --- .../Ignia.Topics.Editor.Mvc.csproj | 967 ++++++++++++++++-- 1 file changed, 890 insertions(+), 77 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 509579ed..2505b41c 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -166,6 +166,871 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -203,85 +1068,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -347,6 +1135,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + From 77accf6b2651842e77f102af9c933b0fd5a82e2a Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Mon, 16 Oct 2017 14:27:03 -0700 Subject: [PATCH 151/637] Initial scaffolding for ExtJS treeview --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 3 + .../Views/Shared/_TreeViewScript.cshtml | 109 ++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index b4c2a796..d4ac79a8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -77,6 +77,7 @@ @@ -92,6 +93,8 @@ + @Html.Partial("_TreeviewScript") + @RenderSection("scripts", required: false) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml new file mode 100644 index 00000000..2dcac933 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml @@ -0,0 +1,109 @@ +@model Ignia.Topics.Editor.Models.EditorViewModel + +@{ + Layout = null; +} + + From 55755bcb442a452f9a4ff0bfb43c5ee66cbfdade Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Mon, 16 Oct 2017 15:12:44 -0700 Subject: [PATCH 152/637] Updated node attributes to new JSON identifiers --- .../Editor/Views/Shared/_TreeViewScript.cshtml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml index 2dcac933..955ea31a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml @@ -2,6 +2,7 @@ @{ Layout = null; + var rootTopic = Model.TopicRepository.Load("Web"); } From d9779c78f4693e9050a2a031cc8b01249baa971e Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Mon, 16 Oct 2017 15:23:58 -0700 Subject: [PATCH 153/637] Added TreeView component stylesheet --- .../Styles/Components/TreeView/_treeView.scss | 17 +++++++++++++++++ .../Shared/Styles/Components/_components.scss | 16 ++++++++++++++++ .../Areas/Editor/Shared/Styles/Style.css | 3 +++ .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- .../Areas/Editor/Shared/Styles/Style.scss | 2 +- 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/_components.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss new file mode 100644 index 00000000..05282767 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss @@ -0,0 +1,17 @@ +//============================================================================================== +// TREE VIEW +//---------------------------------------------------------------------------------------------- +// Defines styles associated with the ExtJS treeview / navigation panel. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import '../../variables'; + +//---------------------------------------------------------------------------------------------- +// LAYOUT +//---------------------------------------------------------------------------------------------- +.sidebar { + padding-top : 50px; +} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/_components.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/_components.scss new file mode 100644 index 00000000..479993bb --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/_components.scss @@ -0,0 +1,16 @@ +//============================================================================================== +// COMPONENTS +//---------------------------------------------------------------------------------------------- +// Components represent reusable blocks that are expected to be applied multiple times across a +// site. Components will often map to reusable blocks of HTML (e.g., partial views) or +// JavaScript (e.g., controls); in these cases, the components should share the same name as +// their counterparts. +//---------------------------------------------------------------------------------------------- +// NOTE: Since components are intended to be self-contained, they should each be included in +// their own file (e.g., in /Components/_component.scss) and imported into this manifest. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import "TreeView/treeView"; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index 5e380c91..a64576e8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -251,3 +251,6 @@ body { padding: 0 8px; } #MainContentArea #FormArea { margin: 0; } + +.sidebar { + padding-top: 50px; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index 7cf8a607..677a8596 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0}.sidebar{padding-top:50px} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss index 82780cf6..a2e1b4e4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss @@ -22,6 +22,6 @@ // @import "Helpers/mixins"; @import "Base/base"; @import "Layout/layout"; -// @import "Components/components"; +@import "Components/components"; // @import "Views/views"; // @import "Overrides/overrides"; From f81165664a9c2c4b2f6aa3fadde572844834c9b5 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Mon, 16 Oct 2017 15:37:52 -0700 Subject: [PATCH 154/637] Flipped UseKeyAsText conditional values --- Ignia.Topics.Editor.Models/JsonTopicViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs index 44fda27c..7a642522 100644 --- a/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs @@ -37,7 +37,7 @@ JsonTopicViewModelOptions options ) : this( topic.Id, topic.Key, - options.UseKeyAsText? topic.Title : topic.Key, + options.UseKeyAsText? topic.Key : topic.Title, topic.UniqueKey, options.MarkRelated? related.Contains(topic) : true, topic.Attributes.GetValue("DisableDelete", "0").Equals("1") From 4989671a804d680ce120cc4b96ff246357cbe463 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 07:13:53 -0700 Subject: [PATCH 155/637] Added TreeView images --- .../Areas/Editor/Images/Navigation/Arrows.png | Bin 0 -> 184 bytes .../Areas/Editor/Images/Navigation/Dashes.png | Bin 0 -> 131 bytes .../Ignia.Topics.Editor.Mvc.csproj | 5 ++++- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Arrows.png create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Dashes.png diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Arrows.png b/Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Arrows.png new file mode 100644 index 0000000000000000000000000000000000000000..1491fa37b631639990ba2c2ffcebac4aa64bedf0 GIT binary patch literal 184 zcmeAS@N?(olHy`uVBq!ia0vp^Za^%^!VDxQbszr$r1%4TLR^9LnKNhJd#P;Ry!ni~ zrbuD&SD+AMNswPKgTu2MX+Tc6r;B5V#`)w0`Uyt_0uKlziaCfE9x^#05ZlnI)Eu%v z?SN+Djyj9xlZ$ZEB(ovMO^FqbFYYBB d5kJSw#-P;07PQLbZz|9V22WQ%mvv4FO#q-yJ177E literal 0 HcmV?d00001 diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Dashes.png b/Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Dashes.png new file mode 100644 index 0000000000000000000000000000000000000000..37ad980bd5ff32546260ff3964a71918d665bfee GIT binary patch literal 131 zcmeAS@N?(olHy`uVBq!ia0vp^azM<%!VDy3CI*QEDgFST5LY05=FFMRn>U|v*L?4# zqE~9-0u*8_3GxeOaCmkj4aiaQba4#fxSp&aYrw_D#h@uBF3xT+-_z5R(Zf($T6#jB Z1Vc?I<9~}qz6C(l44$rjF6*2UngBKe9?Sp$ literal 0 HcmV?d00001 diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 2505b41c..e9dbb061 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -160,6 +160,8 @@ + + @@ -1074,7 +1076,6 @@ - @@ -1160,6 +1161,8 @@ + + From fc5e8182be26acaa57c24d38bcb53ade2deb09ec Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 08:16:51 -0700 Subject: [PATCH 156/637] Ported ExtJS treeview CSS overrides --- .../Styles/Components/TreeView/_treeView.scss | 155 +++++++++++++++++- .../Areas/Editor/Shared/Styles/Style.css | 101 ++++++++++++ .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- 3 files changed, 256 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss index 05282767..478a3689 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss @@ -14,4 +14,157 @@ //---------------------------------------------------------------------------------------------- .sidebar { padding-top : 50px; -} \ No newline at end of file +} + +//---------------------------------------------------------------------------------------------- +// CORE +//---------------------------------------------------------------------------------------------- + + +//---------------------------------------------------------------------------------------------- +// OVERRIDES +//---------------------------------------------------------------------------------------------- +.x-tree-arrows { + .x-tree-elbow-minus, + .x-tree-elbow-plus, + .x-tree-elbow-end-minus, + .x-tree-elbow-end-plus, + .x-tree-elbow, + .x-tree-elbow-end { + background-repeat : no-repeat; + } + .x-tree-elbow-minus, + .x-tree-elbow-plus, + .x-tree-elbow-end-minus, + .x-tree-elbow-end-plus { + background-image : url('../../Images/Navigation/Arrows.png'); + background-position : 4px 0; + } + .x-tree-elbow, + .x-tree-elbow-end { + background-image : url('../../Images/Navigation/Dashes.png'); + background-position : 3px 4px; + } +} +.x-tree-node-collapsed, +.x-tree-node-expanded, +.x-tree-node-leaf { + .x-tree-node-icon { + display : none; + background-image : none; + } +} +.x-tree-root-node { + > .x-tree-node { + padding-left : 3px; + } +} +.x-tree-node { + padding : 1px 0; + font-size : 14px; + white-space : normal; + .x-tree-selected, + .x-tree-node-over { + background-color : transparent; + } + .x-tree-node-el { + overflow : hidden; + border : 1px solid transparent; + padding : 0 5px 0 3px; + line-height : normal; + color : $grey-lighter; + white-space : nowrap; + text-overflow : ellipsis; + &.x-tree-node-expanded { + .x-tree-elbow-minus, + .x-tree-elbow-end-minus { + margin-right : -2px; + margin-left : 1px; + background-position : -50px 0; + } + } + &.x-tree-selected, + &.x-tree-node-over { + background-color : transparent; + .x-tree-elbow, + .x-tree-elbow-end { + background-position : -11px 4px; + } + .x-tree-elbow-plus { + background-position : -31px 0; + } + .x-tree-elbow-minus, + .x-tree-elbow-end-minus { + background-position : -16px 0; + } + a { + text-decoration : none !important; + span { + color : $white; + } + } + } + a { + &.x-tree-node-anchor { + padding-right : 5px; + padding-left : 5px; + } + span { + font-family : $base-font-family; + font-size : 13px; + letter-spacing : 0.02em; + color : $grey-lighter; + } + } + .x-tree-node-indent { + display : inline-block; + margin-right : 5px; + margin-left : 0; + } + .x-tree-node-ct { + display : block; + overflow : visible; + margin-left : 0; + padding : 1px 0; + .x-tree-ec-icon { + .x-tree-elbow-plus { + background-position : 4px 0; + } + } + } + } +} + +.tab-content { + .x-tree-root-ct { + margin : 0 0 5px; + .x-tree-node-indent { + &:before { + color : $grey-lighter; + } + } + .x-tree-node { + .x-tree-node-el { + padding : 0 0 5px; + &.x-tree-selected, + &.x-tree-node-over { + border-color : transparent; + background-color : transparent; + .tree-node-indent { + &:before { + color : $red; + } + } + } + a { + span { + color : $grey-dark; + } + } + input[type="checkbox"] { + margin : 0 0 0 3px; + } + } + } + } +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index a64576e8..d21af622 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -254,3 +254,104 @@ body { .sidebar { padding-top: 50px; } + +.x-tree-arrows .x-tree-elbow-minus, +.x-tree-arrows .x-tree-elbow-plus, +.x-tree-arrows .x-tree-elbow-end-minus, +.x-tree-arrows .x-tree-elbow-end-plus, +.x-tree-arrows .x-tree-elbow, +.x-tree-arrows .x-tree-elbow-end { + background-repeat: no-repeat; } + +.x-tree-arrows .x-tree-elbow-minus, +.x-tree-arrows .x-tree-elbow-plus, +.x-tree-arrows .x-tree-elbow-end-minus, +.x-tree-arrows .x-tree-elbow-end-plus { + background-image: url("../../Images/Navigation/Arrows.png"); + background-position: 4px 0; } + +.x-tree-arrows .x-tree-elbow, +.x-tree-arrows .x-tree-elbow-end { + background-image: url("../../Images/Navigation/Dashes.png"); + background-position: 3px 4px; } + +.x-tree-node-collapsed .x-tree-node-icon, +.x-tree-node-expanded .x-tree-node-icon, +.x-tree-node-leaf .x-tree-node-icon { + display: none; + background-image: none; } + +.x-tree-root-node > .x-tree-node { + padding-left: 3px; } + +.x-tree-node { + padding: 1px 0; + font-size: 14px; + white-space: normal; } + .x-tree-node .x-tree-selected, + .x-tree-node .x-tree-node-over { + background-color: transparent; } + .x-tree-node .x-tree-node-el { + overflow: hidden; + border: 1px solid transparent; + padding: 0 5px 0 3px; + line-height: normal; + color: #cccccc; + white-space: nowrap; + text-overflow: ellipsis; } + .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus, + .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus { + margin-right: -2px; + margin-left: 1px; + background-position: -50px 0; } + .x-tree-node .x-tree-node-el.x-tree-selected, .x-tree-node .x-tree-node-el.x-tree-node-over { + background-color: transparent; } + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow, + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow, + .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end { + background-position: -11px 4px; } + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus { + background-position: -31px 0; } + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus, + .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus, + .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus { + background-position: -16px 0; } + .x-tree-node .x-tree-node-el.x-tree-selected a, .x-tree-node .x-tree-node-el.x-tree-node-over a { + text-decoration: none !important; } + .x-tree-node .x-tree-node-el.x-tree-selected a span, .x-tree-node .x-tree-node-el.x-tree-node-over a span { + color: white; } + .x-tree-node .x-tree-node-el a.x-tree-node-anchor { + padding-right: 5px; + padding-left: 5px; } + .x-tree-node .x-tree-node-el a span { + font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 13px; + letter-spacing: 0.02em; + color: #cccccc; } + .x-tree-node .x-tree-node-el .x-tree-node-indent { + display: inline-block; + margin-right: 5px; + margin-left: 0; } + .x-tree-node .x-tree-node-el .x-tree-node-ct { + display: block; + overflow: visible; + margin-left: 0; + padding: 1px 0; } + .x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus { + background-position: 4px 0; } + +.tab-content .x-tree-root-ct { + margin: 0 0 5px; } + .tab-content .x-tree-root-ct .x-tree-node-indent:before { + color: #cccccc; } + .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el { + padding: 0 0 5px; } + .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected, .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over { + border-color: transparent; + background-color: transparent; } + .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .tree-node-indent:before, .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .tree-node-indent:before { + color: #ef4a24; } + .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el a span { + color: #333333; } + .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el input[type="checkbox"] { + margin: 0 0 0 3px; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index 677a8596..73e2d3db 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0}.sidebar{padding-top:50px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0}.sidebar{padding-top:50px}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end,.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-repeat:no-repeat}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(../../Images/Navigation/Arrows.png);background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(../../Images/Navigation/Dashes.png);background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{padding:1px 0;font-size:14px;white-space:normal}.x-tree-node .x-tree-node-over,.x-tree-node .x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;border:1px solid transparent;padding:0 5px 0 3px;line-height:normal;color:#ccc;white-space:nowrap;text-overflow:ellipsis}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{margin-right:-2px;margin-left:1px;background-position:-50px 0}.x-tree-node .x-tree-node-el.x-tree-node-over,.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;margin-left:0;padding:1px 0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.tab-content .x-tree-root-ct{margin:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node-indent:before{color:#ccc}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{border-color:transparent;background-color:transparent}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .tree-node-indent:before,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .tree-node-indent:before{color:#ef4a24}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el a span{color:#333}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px} \ No newline at end of file From 17006e36d10c1284960c9c93e2da602c7c6a5c81 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 08:43:15 -0700 Subject: [PATCH 157/637] Added cache buster to stylesheet reference --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index d4ac79a8..50b94afb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -32,7 +32,7 @@ - + From 76832500f500d6e24591da59943265c36858d0a9 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 09:04:42 -0700 Subject: [PATCH 158/637] Added callout styles --- .../Editor/Shared/Styles/Base/_base.scss | 1 + .../Editor/Shared/Styles/Base/_callouts.scss | 61 +++++++++++++++++++ .../Areas/Editor/Shared/Styles/Style.css | 33 ++++++++++ .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- .../Ignia.Topics.Editor.Mvc.csproj | 1 + 5 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_callouts.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss index c463d99b..4a3fc23e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss @@ -15,6 +15,7 @@ @import "icons"; @import "buttons"; @import "tabs"; +@import "callouts"; @import "tooltips"; @import "utilities"; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_callouts.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_callouts.scss new file mode 100644 index 00000000..264cf2e0 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_callouts.scss @@ -0,0 +1,61 @@ +//============================================================================================== +// CALLOUTS +//---------------------------------------------------------------------------------------------- +// Defines styles associated with callout blocks. +//============================================================================================== + +//---------------------------------------------------------------------------------------------- +// IMPORTS +//---------------------------------------------------------------------------------------------- +@import '../variables'; + +//---------------------------------------------------------------------------------------------- +// GLOBAL +//---------------------------------------------------------------------------------------------- +.callouts { + padding-top : 20px; + padding-right : 20px; +} + +//---------------------------------------------------------------------------------------------- +// SPECIFIC CALLOUTS +//---------------------------------------------------------------------------------------------- +.callout { + &.topic-info { + position : fixed; + border : 1px solid $grey-lighter; + padding : 15px; + width : 10.5%; + max-width : 214px; + h3, + dt, + dd { + color : $grey-medium; + } + h3 { + margin-top : 0; + margin-bottom : 12px; + font-size : 1rem; + font-weight : 300; + } + dl { + margin-bottom : -13px; + font-size : 13px; + line-height : 18px; + dt, + dd { + font-weight : normal; + } + dt { + .fa { + margin-right : 5px; + width : 1em; + } + } + dd { + margin-bottom : 8px; + margin-left : 22px; + } + } + } +} diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index d21af622..dbed66c6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -153,6 +153,39 @@ a { padding: 20px 0 20px 5px; background-color: white; } +.callouts { + padding-top: 20px; + padding-right: 20px; } + +.callout.topic-info { + position: fixed; + border: 1px solid #cccccc; + padding: 15px; + width: 10.5%; + max-width: 214px; } + .callout.topic-info h3, + .callout.topic-info dt, + .callout.topic-info dd { + color: #666666; } + .callout.topic-info h3 { + margin-top: 0; + margin-bottom: 12px; + font-size: 1rem; + font-weight: 300; } + .callout.topic-info dl { + margin-bottom: -13px; + font-size: 13px; + line-height: 18px; } + .callout.topic-info dl dt, + .callout.topic-info dl dd { + font-weight: normal; } + .callout.topic-info dl dt .fa { + margin-right: 5px; + width: 1em; } + .callout.topic-info dl dd { + margin-bottom: 8px; + margin-left: 22px; } + .tooltip-arrow { border-right-color: #1a1a1a; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index 73e2d3db..9b10d6ee 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0}.sidebar{padding-top:50px}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end,.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-repeat:no-repeat}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(../../Images/Navigation/Arrows.png);background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(../../Images/Navigation/Dashes.png);background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{padding:1px 0;font-size:14px;white-space:normal}.x-tree-node .x-tree-node-over,.x-tree-node .x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;border:1px solid transparent;padding:0 5px 0 3px;line-height:normal;color:#ccc;white-space:nowrap;text-overflow:ellipsis}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{margin-right:-2px;margin-left:1px;background-position:-50px 0}.x-tree-node .x-tree-node-el.x-tree-node-over,.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;margin-left:0;padding:1px 0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.tab-content .x-tree-root-ct{margin:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node-indent:before{color:#ccc}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{border-color:transparent;background-color:transparent}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .tree-node-indent:before,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .tree-node-indent:before{color:#ef4a24}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el a span{color:#333}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.callouts{padding-top:20px;padding-right:20px}.callout.topic-info{position:fixed;border:1px solid #ccc;padding:15px;width:10.5%;max-width:214px}.callout.topic-info dd,.callout.topic-info dt,.callout.topic-info h3{color:#666}.callout.topic-info h3{margin-top:0;margin-bottom:12px;font-size:1rem;font-weight:300}.callout.topic-info dl{margin-bottom:-13px;font-size:13px;line-height:18px}.callout.topic-info dl dd,.callout.topic-info dl dt{font-weight:400}.callout.topic-info dl dt .fa{margin-right:5px;width:1em}.callout.topic-info dl dd{margin-bottom:8px;margin-left:22px}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0}.sidebar{padding-top:50px}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end,.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-repeat:no-repeat}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(../../Images/Navigation/Arrows.png);background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(../../Images/Navigation/Dashes.png);background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{padding:1px 0;font-size:14px;white-space:normal}.x-tree-node .x-tree-node-over,.x-tree-node .x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;border:1px solid transparent;padding:0 5px 0 3px;line-height:normal;color:#ccc;white-space:nowrap;text-overflow:ellipsis}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{margin-right:-2px;margin-left:1px;background-position:-50px 0}.x-tree-node .x-tree-node-el.x-tree-node-over,.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;margin-left:0;padding:1px 0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.tab-content .x-tree-root-ct{margin:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node-indent:before{color:#ccc}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{border-color:transparent;background-color:transparent}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .tree-node-indent:before,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .tree-node-indent:before{color:#ef4a24}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el a span{color:#333}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index e9dbb061..815db413 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -1163,6 +1163,7 @@ + From a4d3f32ec70bfd70844f8b15b95e671208cfeffa Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 10:10:11 -0700 Subject: [PATCH 159/637] Updated to radio buttons --- .../Views/Editor/EditorTemplates/Boolean.cshtml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml index 2b06a367..d3d475f1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml @@ -4,4 +4,13 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } -@Html.CheckBox("Value", Model.Value?.Equals("1")?? false) \ No newline at end of file +
    + +
    +
    + +
    From e096b3a50214f981c888a84271cb645a980ec9e6 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 10:35:14 -0700 Subject: [PATCH 160/637] Added Display Group prefix to avoid duplicates Because the Attributes are grouped by Display Group, the "Attributes[" + i + "]" declaration was causing duplicate form element IDs and names. --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 9ea13f0c..73ca4a55 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -30,7 +30,7 @@ continue; } - @Html.EditorFor(m => attributeViewModel, type, "Attributes[" + i + "]") + @Html.EditorFor(m => attributeViewModel, type, displayGroup + "Attributes[" + i + "]") } From b02ffe61a2f5f48be5b0f820da03348c839ea0d3 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 10:35:50 -0700 Subject: [PATCH 161/637] Removed specific name attribute setting from radio buttons --- .../Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml index d3d475f1..35369cc5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/Boolean.cshtml @@ -6,11 +6,11 @@
    From 6c19d44ed5b985836e1fefe08d8dc94d64c8dd4d Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 11:12:46 -0700 Subject: [PATCH 162/637] Incorporated Model.Topic.LastModified value --- .../Editor/Views/Editor/EditorTemplates/LastModified.cshtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml index 9c732b9c..2f9af649 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModified.cshtml @@ -4,4 +4,6 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } -@Model.Value \ No newline at end of file +
    + @(Model.Value ?? ((Model.Topic.LastModified != null && Model.Topic.LastModified != DateTime.MinValue) ? Model.Topic.LastModified.ToString() : DateTime.Now.ToString())) +
    From e5f09421cc29061415701967ac3d69f25b7d6cab Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 11:32:47 -0700 Subject: [PATCH 163/637] Added HTML ID and CSS class attributes Also added Bootstrap 4 compliant markup --- .../EditorTemplates/DisplayOptions.cshtml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml index b4c8ed52..8754d644 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/DisplayOptions.cshtml @@ -4,6 +4,18 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } -@Html.RadioButtonFor(m => m.Value, "Default") @Html.LabelFor(m => m.Value, "Desktop and Mobile")
    -@Html.RadioButtonFor(m => m.Value, "Desktop") @Html.LabelFor(m => m.Value, "Desktop Only")
    -@Html.RadioButtonFor(m => m.Value, "Mobile") @Html.LabelFor(m => m.Value, "Mobile Only") \ No newline at end of file +
    + +
    +
    + +
    +
    + +
    From be01a286d9591638846a134ba6a2ef284f5ee2aa Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 17 Oct 2017 12:25:03 -0700 Subject: [PATCH 164/637] Established new `Json` namespace --- Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj | 4 ++-- Ignia.Topics.Editor.Models/{ => Json}/JsonTopicViewModel.cs | 0 .../{ => Json}/JsonTopicViewModelOptions.cs | 0 .../Areas/Editor/Controllers/EditorController.cs | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) rename Ignia.Topics.Editor.Models/{ => Json}/JsonTopicViewModel.cs (100%) rename Ignia.Topics.Editor.Models/{ => Json}/JsonTopicViewModelOptions.cs (100%) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 7ee21277..eff5de37 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -86,8 +86,8 @@ - - + + diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs similarity index 100% rename from Ignia.Topics.Editor.Models/JsonTopicViewModel.cs rename to Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs diff --git a/Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs similarity index 100% rename from Ignia.Topics.Editor.Models/JsonTopicViewModelOptions.cs rename to Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 144e7e36..9b10d481 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -11,6 +11,7 @@ using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Attributes; +using Ignia.Topics.Editor.Models.Json; using Ignia.Topics.Repositories; namespace Ignia.Topics.Editor.Mvc.Controllers { From 403c65f6154f7a2519b317428d566bf912166f92 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 17 Oct 2017 12:26:24 -0700 Subject: [PATCH 165/637] Established new `JsonResult` By default, this will return results that are `camelCase`. Will also pay attention to `JsonProperty` attributes in model definitions. --- .../Ignia.Topics.Editor.Models.csproj | 3 + .../Json/JsonNetResult.cs | 167 ++++++++++++++++++ .../Editor/Controllers/EditorController.cs | 12 +- .../Ignia.Topics.Editor.Mvc.csproj | 5 +- 4 files changed, 177 insertions(+), 10 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Json/JsonNetResult.cs diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index eff5de37..72c3201f 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -36,8 +36,10 @@ ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll @@ -86,6 +88,7 @@ + diff --git a/Ignia.Topics.Editor.Models/Json/JsonNetResult.cs b/Ignia.Topics.Editor.Models/Json/JsonNetResult.cs new file mode 100644 index 00000000..932f2e4c --- /dev/null +++ b/Ignia.Topics.Editor.Models/Json/JsonNetResult.cs @@ -0,0 +1,167 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Web; +using System.Web.Mvc; +using Ignia.Topics.Collections; +using Ignia.Topics.Repositories; +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; + +namespace Ignia.Topics.Editor.Models.Json { + + /*============================================================================================================================ + | CLASS: JSON VIEW MODEL + >----------------------------------------------------------------------------------------------------------------------------- + | Code largely based on https://stackoverflow.com/questions/15040838/mvc-jsonresult-camelcase-serialization. + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents a in a format optimized for JSON serialization. + /// + public class JsonNetResult : ActionResult { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public JsonNetResult( + object responseBody = null, + JsonRequestBehavior requestBehavior = JsonRequestBehavior.DenyGet, + JsonSerializerSettings settings = null + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set variables + \-----------------------------------------------------------------------------------------------------------------------*/ + ResponseBody = responseBody; + Settings = settings; + + /*------------------------------------------------------------------------------------------------------------------------ + | Ensure camelCase by default + \-----------------------------------------------------------------------------------------------------------------------*/ + if (Settings == null) { + Settings = new JsonSerializerSettings() { + ContractResolver = new CamelCasePropertyNamesContractResolver() + }; + } + + } + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the serializer settings. + /// + public JsonSerializerSettings Settings { get; set; } + + /*========================================================================================================================== + | PROPERTY: JSON REQUEST BEHAVIOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the of the response. + /// + public JsonRequestBehavior JsonRequestBehavior { get; set; } + + /*========================================================================================================================== + | PROPERTY: CONTENT ENCODING + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the encoding of the response. + /// + public Encoding ContentEncoding { get; set; } + + /*========================================================================================================================== + | PROPERTY: CONTENT TYPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the HTTP content type for the response. + /// + public string ContentType { get; set; } + + /*========================================================================================================================== + | PROPERTY: RESPONSE BODY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the body of the response. + /// + public object ResponseBody { get; set; } + + /*========================================================================================================================== + | PROPERTY: FORMATTING + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets the formatting types depending on whether we are in debug mode + /// + private Formatting Formatting { + get { + return Debugger.IsAttached ? Formatting.Indented : Formatting.None; + } + } + + /*========================================================================================================================== + | METHOD: EXECUTE RESULT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Serialises the response and writes it out to the response object + /// + /// The execution context + public override void ExecuteResult(ControllerContext context) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate input + \-----------------------------------------------------------------------------------------------------------------------*/ + if (context == null) { + throw new ArgumentNullException("context"); + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate context + \-----------------------------------------------------------------------------------------------------------------------*/ + if ( + JsonRequestBehavior == JsonRequestBehavior.DenyGet && + context.HttpContext.Request.HttpMethod.Equals("GET", StringComparison.OrdinalIgnoreCase) + ) { + throw new InvalidOperationException("Cannot return JSON via GET with JsonRequestBehavior set to DenyGet."); + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Set content type + \-----------------------------------------------------------------------------------------------------------------------*/ + HttpResponseBase response = context.HttpContext.Response; + + if (!string.IsNullOrEmpty(ContentType)) { + response.ContentType = ContentType; + } + else { + response.ContentType = "application/json"; + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Set encoding + \-----------------------------------------------------------------------------------------------------------------------*/ + // set content encoding + if (ContentEncoding != null) { + response.ContentEncoding = ContentEncoding; + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Return response + \-----------------------------------------------------------------------------------------------------------------------*/ + if (ResponseBody != null) { + response.Write(JsonConvert.SerializeObject(ResponseBody, Formatting, Settings)); + } + } + + } //Class + +} //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 9b10d481..d40854f6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -345,7 +345,7 @@ public ActionResult Move(int topicId, int targetTopicId, int siblingId) { /// /// Retrieves JSON the specified topic, and all of its children. /// - public JsonResult Json(JsonTopicViewModelOptions options) { + public JsonNetResult Json(JsonTopicViewModelOptions options) { /*-------------------------------------------------------------------------------------------------------------------------- | Get related topics @@ -381,21 +381,21 @@ public JsonResult Json(JsonTopicViewModelOptions options) { if (!options.ShowRoot) { flatJsonTopicViewModel.RemoveAt(0); } - return Json(flatJsonTopicViewModel, JsonRequestBehavior.AllowGet); + return new JsonNetResult(flatJsonTopicViewModel, JsonRequestBehavior.AllowGet); } /*-------------------------------------------------------------------------------------------------------------------------- | Otherwise, return hierarchical view model \-------------------------------------------------------------------------------------------------------------------------*/ if (options.ShowRoot) { - return Json(jsonTopicViewModel, JsonRequestBehavior.AllowGet); + return new JsonNetResult(jsonTopicViewModel, JsonRequestBehavior.AllowGet); } else { - return Json(jsonTopicViewModel.Children, JsonRequestBehavior.AllowGet); + return new JsonNetResult(jsonTopicViewModel.Children, JsonRequestBehavior.AllowGet); } - } + } -} //Class + } //Class } //Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 815db413..7b79fa8f 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -90,10 +90,7 @@ ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll True - - ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll - True - + From b0bd8384c875ec81978e3f2e2c9aa09bf8a51957 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 17 Oct 2017 12:27:18 -0700 Subject: [PATCH 166/637] Set properties to ExtJS expectations Currently, the editor uses ExtJS's `TreePanel` control, which expects the JSON data that it binds to to be in a specific format. This ensures consistency with that format. --- Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs index 7a642522..d996ea09 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs @@ -8,8 +8,9 @@ using System.Linq; using Ignia.Topics.Collections; using Ignia.Topics.Repositories; +using Newtonsoft.Json; -namespace Ignia.Topics.Editor.Models { +namespace Ignia.Topics.Editor.Models.Json { /*============================================================================================================================ | CLASS: JSON VIEW MODEL @@ -175,6 +176,7 @@ public string Key { /// /// The title of the topic, which will fall back to if not set. /// + [JsonProperty(PropertyName = "text")] public string Title { get; } @@ -195,6 +197,7 @@ public string UniqueKey { /// /// The fully-qualified, unique path to the topic, in HTTP format. /// + [JsonProperty(PropertyName = "path")] public string WebPath { get; } @@ -205,6 +208,7 @@ public string WebPath { /// /// Determines whether the current topic is selected or not. /// + [JsonProperty(PropertyName = "checked")] public bool IsChecked { get; } @@ -215,6 +219,7 @@ public bool IsChecked { /// /// Determines whether the current topic is intended to be draggable or not. /// + [JsonProperty(PropertyName = "draggable")] public bool IsDraggable { get; } @@ -225,6 +230,7 @@ public bool IsDraggable { /// /// Determines whether the current topic is a leaf node or not. /// + [JsonProperty(PropertyName = "leaf")] public bool IsLeaf { get => Children.Count.Equals(0); } From 6365b2be3cd67f3b1d355f610f7f33d23ad24618 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 17 Oct 2017 12:36:29 -0700 Subject: [PATCH 167/637] Fixed bug with `WebPath` `WebPath` was previously being returned with the `Root:` prefix. Also corrected spacing. --- .../Json/JsonTopicViewModel.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs index d996ea09..9961e759 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs @@ -40,6 +40,7 @@ JsonTopicViewModelOptions options topic.Key, options.UseKeyAsText? topic.Key : topic.Title, topic.UniqueKey, + topic.WebPath, options.MarkRelated? related.Contains(topic) : true, topic.Attributes.GetValue("DisableDelete", "0").Equals("1") ) { @@ -77,6 +78,7 @@ public JsonTopicViewModel( string key, string title, string uniqueKey, + string webPath, bool isChecked = false, bool isDraggable = true ) { @@ -84,13 +86,13 @@ public JsonTopicViewModel( /*------------------------------------------------------------------------------------------------------------------------ | Set properties \-----------------------------------------------------------------------------------------------------------------------*/ - Id = id; - Key = key; - Title = title; - UniqueKey = uniqueKey; - WebPath = "/" + UniqueKey.Replace(':', '/'); - IsChecked = isChecked; - IsDraggable = isDraggable; + Id = id; + Key = key; + Title = title; + UniqueKey = uniqueKey; + WebPath = webPath; + IsChecked = isChecked; + IsDraggable = isDraggable; /*------------------------------------------------------------------------------------------------------------------------ | Initialize collection From a1ccc3f4f5c7f89af20e8146db8855511ff0ce66 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 12:44:04 -0700 Subject: [PATCH 168/637] Moved "path" property decoration to UniqueKey --- Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs index 9961e759..bed81ea3 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs @@ -189,6 +189,7 @@ public string Title { /// /// The fully-qualified, unique key for the topic, in OnTopic format. /// + [JsonProperty(PropertyName = "path")] public string UniqueKey { get; } @@ -199,7 +200,6 @@ public string UniqueKey { /// /// The fully-qualified, unique path to the topic, in HTTP format. /// - [JsonProperty(PropertyName = "path")] public string WebPath { get; } From a6a2ebe1b716a688f404d46df95d3725ac4ad3ae Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 17 Oct 2017 14:59:36 -0700 Subject: [PATCH 169/637] Implemented `GetConfigurationValue()` passthrough This will search both `ViewData` for a local match as well as the `Attribute` definition before falling back to a `defaultValue`. --- .../AttributeViewModel.cs | 28 ++++++++++++++++++- .../Areas/Editor/Views/Editor/Edit.cshtml | 2 +- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index 1a5d860c..55701bb6 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using System; +using System.Web.Mvc; using Ignia.Topics.Collections; using Ignia.Topics.Repositories; @@ -29,7 +30,7 @@ public class AttributeViewModel { /// /// Initializes a new instance of the class, using the specified key/value pair. /// - public AttributeViewModel(Attribute attribute, Topic topic, ITopicRepository topicRepository) { + public AttributeViewModel(Attribute attribute, Topic topic, ITopicRepository topicRepository, ViewDataDictionary viewData) { /*------------------------------------------------------------------------------------------------------------------------ | Set properties @@ -37,6 +38,7 @@ public AttributeViewModel(Attribute attribute, Topic topic, ITopicRepository top Definition = attribute; Topic = topic; TopicRepository = topicRepository; + ViewData = viewData; /*------------------------------------------------------------------------------------------------------------------------ | Set values @@ -111,6 +113,30 @@ public ITopicRepository TopicRepository { get; } + /*========================================================================================================================== + | VIEW DATA + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the for the request. + /// + private ViewDataDictionary ViewData { + get; + } + + /*========================================================================================================================== + | PROPERTY: GET CONFIGURATION VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves a configuration value from the dictionary; if the value doesn't exist, then + /// optionally returns a default value. + /// + public string GetConfigurationValue(string key, string defaultValue = null) { + if (ViewData != null && ViewData.ContainsKey(key) && ViewData[key] != null) { + return ViewData[key].ToString(); + } + return Definition.GetConfigurationValue(key, defaultValue); + } + } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 73ca4a55..b6e413f8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -23,7 +23,7 @@ @for (int i = 0; i < supportedAttributes.Count(); i++) { var attribute = supportedAttributes.ElementAt(i); - var attributeViewModel = new AttributeViewModel(attribute, Model.Topic, Model.TopicRepository); + var attributeViewModel = new AttributeViewModel(attribute, Model.Topic, Model.TopicRepository, ViewData); var type = attribute.Type.Replace(".ascx", ""); if (attribute.Attributes.GetValue("IsHidden", "0").Equals("1")) { From 69e703416f75aad8f561e63e88c9c034bd191ca3 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 15:03:28 -0700 Subject: [PATCH 170/637] Updated JSON attributes to original definitions --- .../Areas/Editor/Views/Shared/_TreeViewScript.cshtml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml index 955ea31a..fa69cc66 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml @@ -27,7 +27,7 @@ containerScroll : true, border : false, baseCls : 'TreeView', - dataUrl : '/OnTopic/JSON/Web/?ShowAll=true&UseKeyAsText=true', + dataUrl : '/OnTopic/JSON/Root/?ShowAll=true&UseKeyAsText=true', root: new Ext.tree.AsyncTreeNode({ text : 'Web', draggable : false, @@ -36,7 +36,7 @@ rootVisible : false, listeners: { click : function(n) { - location.href = "/OnTopic/Edit" + n.attributes.WebPath; + location.href = "/OnTopic/Edit" + n.attributes.webPath; }, load: function(n) { if (!n) return; @@ -47,12 +47,12 @@ console.log('n.attributes'); console.log(n.attributes); if (currentPosition <= currentTopic.length && currentPosition >= 0) { - currentNode = currentNode.findChild('UniqueKey', currentTopic.substring(0, currentPosition)); + currentNode = currentNode.findChild('path', currentTopic.substring(0, currentPosition)); if (currentPosition == currentTopic.length) { currentPosition++; } else { - currentPosition = currentTopic.indexOf(':', currentNode.attributes.UniqueKey.length + 1); + currentPosition = currentTopic.indexOf(':', currentNode.attributes.path.length + 1); } if (currentPosition < 0) { currentPosition = currentTopic.length; @@ -64,13 +64,13 @@ } currentNode.ensureVisible(); tree.selectPath( - currentNode.getPath('Title'), + currentNode.getPath('text'), 'text' ); currentNode.select(currentNode); }, startdrag: function(tree, node, event) { - node.draggable = (node.attributes.Draggable == 'false'); + node.draggable = (node.attributes.draggable == 'false'); oldPosition = node.parentNode.indexOf(node); oldNextSibling = node.nextSibling; }, From 7750a6f993c12d0258a8442afd5f30251eb51030 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 15:12:28 -0700 Subject: [PATCH 171/637] Updated base CSS class --- .../Areas/Editor/Views/Shared/_TreeViewScript.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml index fa69cc66..993f30c2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml @@ -26,7 +26,7 @@ enableDD : true, containerScroll : true, border : false, - baseCls : 'TreeView', + baseCls : 'treeview', dataUrl : '/OnTopic/JSON/Root/?ShowAll=true&UseKeyAsText=true', root: new Ext.tree.AsyncTreeNode({ text : 'Web', From a5690acefe63e99c1f272c50d094f900a968af13 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 17 Oct 2017 15:14:16 -0700 Subject: [PATCH 172/637] Hid checkboxes in navigation treeview --- .../Shared/Styles/Components/TreeView/_treeView.scss | 8 ++++++++ .../Areas/Editor/Shared/Styles/Style.css | 2 ++ .../Areas/Editor/Shared/Styles/Style.min.css | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss index 478a3689..2922680f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss @@ -14,6 +14,11 @@ //---------------------------------------------------------------------------------------------- .sidebar { padding-top : 50px; + .treeview { + input[type="checkbox"] { + display : none; + } + } } //---------------------------------------------------------------------------------------------- @@ -135,6 +140,9 @@ } } +//---------------------------------------------------------------------------------------------- +// RELATIONSHIPS TREEVIEW OVERRIDES +//---------------------------------------------------------------------------------------------- .tab-content { .x-tree-root-ct { margin : 0 0 5px; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css index dbed66c6..f90fd713 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css @@ -287,6 +287,8 @@ body { .sidebar { padding-top: 50px; } + .sidebar .treeview input[type="checkbox"] { + display: none; } .x-tree-arrows .x-tree-elbow-minus, .x-tree-arrows .x-tree-elbow-plus, diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css index 9b10d6ee..2de093f7 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.callouts{padding-top:20px;padding-right:20px}.callout.topic-info{position:fixed;border:1px solid #ccc;padding:15px;width:10.5%;max-width:214px}.callout.topic-info dd,.callout.topic-info dt,.callout.topic-info h3{color:#666}.callout.topic-info h3{margin-top:0;margin-bottom:12px;font-size:1rem;font-weight:300}.callout.topic-info dl{margin-bottom:-13px;font-size:13px;line-height:18px}.callout.topic-info dl dd,.callout.topic-info dl dt{font-weight:400}.callout.topic-info dl dt .fa{margin-right:5px;width:1em}.callout.topic-info dl dd{margin-bottom:8px;margin-left:22px}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0}.sidebar{padding-top:50px}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end,.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-repeat:no-repeat}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(../../Images/Navigation/Arrows.png);background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(../../Images/Navigation/Dashes.png);background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{padding:1px 0;font-size:14px;white-space:normal}.x-tree-node .x-tree-node-over,.x-tree-node .x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;border:1px solid transparent;padding:0 5px 0 3px;line-height:normal;color:#ccc;white-space:nowrap;text-overflow:ellipsis}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{margin-right:-2px;margin-left:1px;background-position:-50px 0}.x-tree-node .x-tree-node-el.x-tree-node-over,.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;margin-left:0;padding:1px 0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.tab-content .x-tree-root-ct{margin:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node-indent:before{color:#ccc}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{border-color:transparent;background-color:transparent}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .tree-node-indent:before,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .tree-node-indent:before{color:#ef4a24}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el a span{color:#333}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.callouts{padding-top:20px;padding-right:20px}.callout.topic-info{position:fixed;border:1px solid #ccc;padding:15px;width:10.5%;max-width:214px}.callout.topic-info dd,.callout.topic-info dt,.callout.topic-info h3{color:#666}.callout.topic-info h3{margin-top:0;margin-bottom:12px;font-size:1rem;font-weight:300}.callout.topic-info dl{margin-bottom:-13px;font-size:13px;line-height:18px}.callout.topic-info dl dd,.callout.topic-info dl dt{font-weight:400}.callout.topic-info dl dt .fa{margin-right:5px;width:1em}.callout.topic-info dl dd{margin-bottom:8px;margin-left:22px}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0}.sidebar{padding-top:50px}.sidebar .treeview input[type=checkbox]{display:none}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end,.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-repeat:no-repeat}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(../../Images/Navigation/Arrows.png);background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(../../Images/Navigation/Dashes.png);background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{padding:1px 0;font-size:14px;white-space:normal}.x-tree-node .x-tree-node-over,.x-tree-node .x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;border:1px solid transparent;padding:0 5px 0 3px;line-height:normal;color:#ccc;white-space:nowrap;text-overflow:ellipsis}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{margin-right:-2px;margin-left:1px;background-position:-50px 0}.x-tree-node .x-tree-node-el.x-tree-node-over,.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;margin-left:0;padding:1px 0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.tab-content .x-tree-root-ct{margin:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node-indent:before{color:#ccc}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{border-color:transparent;background-color:transparent}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .tree-node-indent:before,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .tree-node-indent:before{color:#ef4a24}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el a span{color:#333}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px} \ No newline at end of file From d64ac5dcc204a22d14d9f5ee55e7fb297b463619 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 18 Oct 2017 12:48:11 -0700 Subject: [PATCH 173/637] Updated `Attribute` to `AttributeDescriptor` --- Ignia.Topics.Editor.Models/AttributeViewModel.cs | 16 ++++++++++------ .../Areas/Editor/Controllers/EditorController.cs | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index 55701bb6..17430460 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -30,12 +30,16 @@ public class AttributeViewModel { /// /// Initializes a new instance of the class, using the specified key/value pair. /// - public AttributeViewModel(Attribute attribute, Topic topic, ITopicRepository topicRepository, ViewDataDictionary viewData) { + public AttributeViewModel( + AttributeDescriptor attributeDescriptor, + Topic topic, ITopicRepository topicRepository, + ViewDataDictionary viewData + ) { /*------------------------------------------------------------------------------------------------------------------------ | Set properties \-----------------------------------------------------------------------------------------------------------------------*/ - Definition = attribute; + Definition = attributeDescriptor; Topic = topic; TopicRepository = topicRepository; ViewData = viewData; @@ -43,9 +47,9 @@ public AttributeViewModel(Attribute attribute, Topic topic, ITopicRepository top /*------------------------------------------------------------------------------------------------------------------------ | Set values \-----------------------------------------------------------------------------------------------------------------------*/ - Key = attribute.Key; - Value = topic.Attributes.GetValue(attribute.Key, null, false, false); - InheritedValue = topic.Attributes.GetValue(attribute.Key); + Key = attributeDescriptor.Key; + Value = topic.Attributes.GetValue(attributeDescriptor.Key, null, false, false); + InheritedValue = topic.Attributes.GetValue(attributeDescriptor.Key); } @@ -55,7 +59,7 @@ public AttributeViewModel(Attribute attribute, Topic topic, ITopicRepository top /// /// Provides the global definition for the attribute, as defined on the corresponding . /// - public Attribute Definition { + public AttributeDescriptor Definition { get; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index d40854f6..992205ee 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -218,7 +218,7 @@ public ActionResult Edit(EditorBindingModel model, bool isNew = false, string co /// /// Private helper function that saves relationship values to the topic. /// - private void SetRelationships(Topic topic, Attribute attribute, EditorAttribute attributeValue) { + private void SetRelationships(Topic topic, AttributeDescriptor attribute, EditorAttribute attributeValue) { var relatedTopics = attributeValue.Value.Split(',').ToList(); topic.Relationships.ClearTopics(attribute.Key); foreach (var topicIdString in relatedTopics) { From 9e47622c867d3000838571bb8ae209a1ac6fd5fb Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 18 Oct 2017 13:00:52 -0700 Subject: [PATCH 174/637] Updated `TopicRoutingService` constructor For compatibility with updated constructor signature, which now accepts `Uri` instead of a string for the URL. --- Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs b/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs index 15c8aada..602883ba 100644 --- a/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs +++ b/Ignia.Topics.Editor.Mvc/EditorControllerFactory.cs @@ -54,7 +54,11 @@ protected override IController GetControllerInstance(RequestContext requestConte | Register \-----------------------------------------------------------------------------------------------------------------------*/ var rootTopic = _topicRepository.Load(); - var topicRoutingService = new TopicRoutingService(_topicRepository, requestContext); + var topicRoutingService = new TopicRoutingService( + _topicRepository, + requestContext.HttpContext.Request.Url, + requestContext.RouteData + ); /*------------------------------------------------------------------------------------------------------------------------ | Resolve From 52d87c0ac012f9dfd2ef2dab0b2b5b7df464c5d4 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 19 Oct 2017 13:43:35 -0700 Subject: [PATCH 175/637] Changed references to `ContentTypeDescriptor` and `AttributeDescriptors` --- Ignia.Topics.Editor.Models/EditorViewModel.cs | 14 +++++++------- .../Areas/Editor/Controllers/EditorController.cs | 8 ++++---- .../Areas/Editor/Views/Editor/Edit.cshtml | 4 ++-- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Ignia.Topics.Editor.Models/EditorViewModel.cs b/Ignia.Topics.Editor.Models/EditorViewModel.cs index 55d732ec..f1f585f7 100644 --- a/Ignia.Topics.Editor.Models/EditorViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditorViewModel.cs @@ -32,8 +32,8 @@ public class EditorViewModel { /// public EditorViewModel( Topic topic, - ContentType contentType, - ReadOnlyTopicCollection permittedContentTypes, + ContentTypeDescriptor contentTypeDescriptor, + ReadOnlyTopicCollection permittedContentTypes, ITopicRepository topicRepository, bool isModal ) { @@ -42,7 +42,7 @@ bool isModal | Set properties \-----------------------------------------------------------------------------------------------------------------------*/ Topic = topic; - ContentType = contentType; + ContentTypeDescriptor = contentTypeDescriptor; PermittedContentTypes = permittedContentTypes; TopicRepository = topicRepository; IsModal = isModal; @@ -60,12 +60,12 @@ public Topic Topic { } /*========================================================================================================================== - | CONTENT TYPE + | CONTENT TYPE DESCRIPTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Read-only reference to the current associated with the request. + /// Read-only reference to the current associated with the request. /// - public ContentType ContentType { + public ContentTypeDescriptor ContentTypeDescriptor { get; } @@ -78,7 +78,7 @@ public ContentType ContentType { /// /// This is intended to be bound to the list of new content types available in the interface. /// - public ReadOnlyTopicCollection PermittedContentTypes { + public ReadOnlyTopicCollection PermittedContentTypes { get; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 992205ee..77265921 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -76,8 +76,8 @@ protected Topic CurrentTopic { /// Provides a reference to the a strongly typed content type, if available. /// /// The Content Type associated with the current request. - protected ContentType GetContentType(string contentType) => TopicRepository - .GetContentTypes() + protected ContentTypeDescriptor GetContentType(string contentType) => TopicRepository + .GetContentTypeDescriptors() .Where(t => t.Key.Equals(contentType)) .First(); @@ -96,7 +96,7 @@ public ActionResult Edit(bool isNew = false, string contentType = null, bool isM var contentTypes = currentContentType.PermittedContentTypes; if (contentTypes.Count.Equals(0)) { - contentTypes = TopicRepository.GetContentTypes().AsReadOnly(); + contentTypes = TopicRepository.GetContentTypeDescriptors().AsReadOnly(); } /*------------------------------------------------------------------------------------------------------------------------ @@ -154,7 +154,7 @@ public ActionResult Edit(EditorBindingModel model, bool isNew = false, string co /*------------------------------------------------------------------------------------------------------------------------ | SET ATTRIBUTES \-----------------------------------------------------------------------------------------------------------------------*/ - foreach (var attribute in GetContentType(contentType).SupportedAttributes) { + foreach (var attribute in GetContentType(contentType).AttributeDescriptors) { //Handle hidden attributes if (attribute.IsHidden) { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index b6e413f8..6c56c904 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -12,9 +12,9 @@
    @{int index = 0;}
    - @foreach (string category in Model.ContentType.SupportedAttributes.Select(a => a.DisplayGroup).Distinct()) { + @foreach (string category in Model.ContentTypeDescriptor.AttributeDescriptors.Select(a => a.DisplayGroup).Distinct()) { - var supportedAttributes = Model.ContentType.SupportedAttributes.Where(a => a.DisplayGroup.Equals(category)); + var supportedAttributes = Model.ContentTypeDescriptor.AttributeDescriptors.Where(a => a.DisplayGroup.Equals(category)); var displayGroup = category.Replace(" ", "");
    diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 03d79dbd..fd892c55 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -2,8 +2,8 @@ @{ Layout = null; - var displayGroups = Model.ContentType.SupportedAttributes.Select(a => a.DisplayGroup).Distinct().ToList(); - bool disableDelete = Model.ContentType.Attributes.GetValue("DisableDelete").Equals("1"); + var displayGroups = Model.ContentTypeDescriptor.AttributeDescriptors.Select(a => a.DisplayGroup).Distinct().ToList(); + bool disableDelete = Model.ContentTypeDescriptor.Attributes.GetValue("DisableDelete").Equals("1"); }
    From 36f377db2e2c74f04e3b5ca1d25ec4ce18eff7c6 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 24 Oct 2017 16:10:17 -0700 Subject: [PATCH 176/637] Removed legacy CSS --- Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css deleted file mode 100644 index 536c8353..00000000 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.min.css +++ /dev/null @@ -1 +0,0 @@ -ul.token-input-list{overflow:hidden;height:auto!important;height:1%;width:400px;border:1px solid #999;cursor:text;font-size:12px;font-family:Verdana,sans-serif;z-index:999;margin:0;padding:0;background-color:#fff;list-style-type:none;clear:left}ul.token-input-list li{list-style-type:none}ul.token-input-list li input{border:0;width:350px;padding:3px 8px;background-color:#fff;-webkit-appearance:caret}ul.token-input-disabled,ul.token-input-disabled li input{background-color:#e8e8e8}ul.token-input-disabled li.token-input-token{background-color:#d9e3ca;color:#7d7d7d}ul.token-input-disabled li.token-input-token span{color:#cfcfcf;cursor:default}li.token-input-token{overflow:hidden;height:auto!important;height:1%;margin:3px;padding:3px 5px;background-color:#d0efa0;color:#000;font-weight:700;cursor:default;display:block}li.token-input-token p{float:left;padding:0;margin:0}li.token-input-token span{float:right;color:#777;cursor:pointer}li.token-input-selected-token{background-color:#08844e;color:#fff}li.token-input-selected-token span{color:#bbb}div.token-input-dropdown{position:absolute;width:400px;background-color:#fff;overflow:hidden;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;cursor:default;font-size:12px;font-family:Verdana,sans-serif;z-index:1}div.token-input-dropdown p{margin:0;padding:5px;font-weight:700;color:#777}div.token-input-dropdown ul{margin:0;padding:0}div.token-input-dropdown ul li{background-color:#fff;padding:3px;list-style-type:none}div.token-input-dropdown ul li.token-input-dropdown-item{background-color:#fafafa}div.token-input-dropdown ul li.token-input-dropdown-item2{background-color:#fff}div.token-input-dropdown ul li em{font-weight:700;font-style:normal}div.token-input-dropdown ul li.token-input-selected-dropdown-item{background-color:#d0efa0}/*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}@media print{*{text-shadow:none!important;color:#000!important;background:0 0!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{font-family:Lato,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.42857143;color:#fff;background-color:#333}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#0a94d4;text-decoration:none}a:focus,a:hover{color:#07618b;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:2px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#333;border:1px solid #ddd;border-radius:1px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:22px;margin-bottom:22px;border:0;border-top:1px solid #ccc}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#666}.h1,.h2,.h3,h1,h2,h3{margin-top:22px;margin-bottom:11px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:11px;margin-bottom:11px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:41px}.h2,h2{font-size:34px}.h3,h3{font-size:28px}.h4,h4{font-size:20px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}p{margin:0 0 11px}.lead{margin-bottom:22px;font-size:18px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:24px}}.small,small{font-size:87%}cite{font-style:normal}.mark,mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#666}.text-primary{color:#4d4d4d}a.text-primary:hover{color:#333}.text-success{color:#125204}a.text-success:hover{color:#072102}.text-info{color:#0872a3}a.text-info:hover{color:#055073}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#d63510}a.text-danger:hover{color:#a6290c}.bg-primary{color:#fff;background-color:#4d4d4d}a.bg-primary:hover{background-color:#333}.bg-success{background-color:#d3e5cf}a.bg-success:hover{background-color:#b5d3ae}.bg-info{background-color:#daebf2}a.bg-info:hover{background-color:#b4d7e5}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f0dcd8}a.bg-danger:hover{background-color:#e2bbb3}.page-header{padding-bottom:10px;margin:44px 0 22px;border-bottom:1px solid #ccc}ol,ul{margin-top:0;margin-bottom:11px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:22px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #666}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:11px 22px;margin:0 0 22px;font-size:20px;border-left:5px solid #ccc}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#666}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #ccc;border-left:0;text-align:right}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}blockquote:after,blockquote:before{content:""}address{margin-bottom:22px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:1px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:0;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;box-shadow:none}pre{display:block;padding:10.5px;margin:0 0 11px;font-size:15px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:1px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:990px}}@media (min-width:1240px){.container{width:1220px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1240px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:22px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#333}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#d3e5cf}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#c4dcbe}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#daebf2}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c7e1eb}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f0dcd8}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#e9cbc6}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:16.5px;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:22px;font-size:24px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:16px;line-height:1.42857143;color:#4d4d4d}.form-control{display:block;width:100%;height:36px;padding:6px 12px;font-size:16px;line-height:1.42857143;color:#4d4d4d;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#666;opacity:1}.form-control:-ms-input-placeholder{color:#666}.form-control::-webkit-input-placeholder{color:#666}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#ccc;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{line-height:36px}input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:33px}input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:49px}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;min-height:22px;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.form-horizontal .form-group-sm .form-control,.input-sm{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}select.input-sm{height:33px;line-height:33px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-horizontal .form-group-lg .form-control,.input-lg{height:49px;padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}select.input-lg{height:49px;line-height:49px}select[multiple].input-lg,textarea.input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:45px}.form-control-feedback{position:absolute;top:27px;right:0;z-index:2;display:block;width:36px;height:36px;line-height:36px;text-align:center}.input-lg+.form-control-feedback{width:49px;height:49px;line-height:49px}.input-sm+.form-control-feedback{width:33px;height:33px;line-height:33px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline{color:#125204}.has-success .form-control{border-color:#125204;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#072102;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #28b309;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #28b309}.has-success .input-group-addon{color:#125204;border-color:#125204;background-color:#d3e5cf}.has-success .form-control-feedback{color:#125204}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline{color:#d63510}.has-error .form-control{border-color:#d63510;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#a6290c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f37558;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f37558}.has-error .input-group-addon{color:#d63510;border-color:#d63510;background-color:#f0dcd8}.has-error .form-control-feedback{color:#d63510}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#fff}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .checkbox,.form-horizontal .radio{min-height:29px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}@media (min-width:768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.3px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:16px;line-height:1.42857143;border-radius:1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active:focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:focus,.btn:hover{color:#fff;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#fff;background-color:#959595;border-color:#959595}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#fff;background-color:#7c7c7c;border-color:#767676}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#959595;border-color:#959595}.btn-default .badge{color:#959595;background-color:#fff}.btn-primary{color:#fff;background-color:#0a94d4;border-color:#0a94d4}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#0872a3;border-color:#076b9a}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#0a94d4;border-color:#0a94d4}.btn-primary .badge{color:#0a94d4;background-color:#fff}.btn-success{color:#fff;background-color:#28b309;border-color:#28b309}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#1d8207;border-color:#1b7906}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#28b309;border-color:#28b309}.btn-success .badge{color:#28b309;background-color:#fff}.btn-info{color:#fff;background-color:#0a94d4;border-color:#0a94d4}.btn-info.active,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#0872a3;border-color:#076b9a}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#0a94d4;border-color:#0a94d4}.btn-info .badge{color:#0a94d4;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad20;border-color:#f0ad20}.btn-warning.active,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#cf910e;border-color:#c68a0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad20;border-color:#f0ad20}.btn-warning .badge{color:#f0ad20;background-color:#fff}.btn-danger{color:#fff;background-color:#ef4a24;border-color:#ef4a24}.btn-danger.active,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#d1330f;border-color:#c7310f}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#ef4a24;border-color:#ef4a24}.btn-danger .badge{color:#ef4a24;background-color:#fff}.btn-link{color:#0a94d4;font-weight:400;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#07618b;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#666;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:14px;line-height:1.5;border-radius:0}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:16px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:1px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#4d4d4d}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#666}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:14px;line-height:1.42857143;color:#666;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group-vertical>.btn:focus,.btn-group>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:1px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:1px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn>input[type=checkbox],[data-toggle=buttons]>.btn>input[type=radio]{position:absolute;z-index:-1;opacity:0}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:49px;padding:10px 16px;font-size:20px;line-height:1.33;border-radius:2px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:49px;line-height:49px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:33px;line-height:33px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:16px;font-weight:400;line-height:1;color:#4d4d4d;text-align:center;background-color:#ccc;border:1px solid #ccc;border-radius:1px}.input-group-addon.input-sm{padding:5px 10px;font-size:14px;border-radius:0}.input-group-addon.input-lg{padding:10px 16px;font-size:20px;border-radius:2px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:5px 5px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:transparent}.nav>li.disabled>a{color:#666}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#666;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:transparent;border-color:#0a94d4}.nav .nav-divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:1px 1px 0 0}.nav-tabs>li>a:hover{border-color:#ccc #ccc #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#4d4d4d;background-color:#333;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:1px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:1px 1px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#333}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:1px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#4d4d4d}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:1px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:1px 1px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#333}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:22px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:1px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-left:0;padding-right:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:14px 15px;font-size:20px;line-height:22px;height:50px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:1px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:22px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:22px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:14px;padding-bottom:14px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin-top:7px;margin-bottom:7px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:7px;margin-bottom:7px}.navbar-btn.btn-sm{margin-top:8.5px;margin-bottom:8.5px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:14px;margin-bottom:14px}@media (min-width:768px){.navbar-text{float:left;margin-left:15px;margin-right:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background-color:#e7e7e7;color:#555}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#666}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#666}.navbar-inverse .navbar-nav>li>a{color:#666}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{background-color:#080808;color:#fff}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#666}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#666}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#666}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:22px;list-style:none;background-color:#f5f5f5;border-radius:1px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.breadcrumb>.active{color:#666}.pagination{display:inline-block;padding-left:0;margin:22px 0;border-radius:1px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;text-decoration:none;color:#0a94d4;background-color:#fff;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:1px;border-top-left-radius:1px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:1px;border-top-right-radius:1px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#07618b;background-color:#ccc;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;background-color:#4d4d4d;border-color:#4d4d4d;cursor:default}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#666;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:20px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:2px;border-top-left-radius:2px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:2px;border-top-right-radius:2px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:14px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:0;border-top-left-radius:0}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:0;border-top-right-radius:0}.pager{padding-left:0;margin:22px 0;list-style:none;text-align:center}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#ccc}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#666;background-color:#fff;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#666}.label-default[href]:focus,.label-default[href]:hover{background-color:#4d4d4d}.label-primary{background-color:#4d4d4d}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#333}.label-success{background-color:#28b309}.label-success[href]:focus,.label-success[href]:hover{background-color:#1d8207}.label-info{background-color:#0a94d4}.label-info[href]:focus,.label-info[href]:hover{background-color:#0872a3}.label-warning{background-color:#f0ad20}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#cf910e}.label-danger{background-color:#ef4a24}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#d1330f}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:14px;font-weight:700;color:#fff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#666;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.nav-pills>.active>a>.badge,a.list-group-item.active>.badge{color:#0a94d4;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;color:inherit;background-color:#ccc}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:24px;font-weight:200}.jumbotron>hr{border-top-color:#b3b3b3}.container .jumbotron{border-radius:2px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-left:60px;padding-right:60px}.jumbotron .h1,.jumbotron h1{font-size:72px}}.thumbnail{display:block;padding:4px;margin-bottom:22px;line-height:1.42857143;background-color:#333;border:1px solid #ddd;border-radius:1px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-left:auto;margin-right:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#0a94d4}.thumbnail .caption{padding:9px;color:#fff}.alert{padding:15px;margin-bottom:22px;border:1px solid transparent;border-radius:1px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#d3e5cf;border-color:#c9dcbe;color:#125204}.alert-success hr{border-top-color:#bbd3ae}.alert-success .alert-link{color:#072102}.alert-info{background-color:#daebf2;border-color:#c0e4e9;color:#0872a3}.alert-info hr{border-top-color:#addbe2}.alert-info .alert-link{color:#055073}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f0dcd8;border-color:#e9c6c6;color:#d63510}.alert-danger hr{border-top-color:#e2b3b3}.alert-danger .alert-link{color:#a6290c}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:22px;margin-bottom:22px;background-color:#f5f5f5;border-radius:1px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0%;height:100%;font-size:14px;line-height:22px;color:#fff;text-align:center;background-color:#4d4d4d;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar[aria-valuenow="1"],.progress-bar[aria-valuenow="2"]{min-width:30px}.progress-bar[aria-valuenow="0"]{color:#666;min-width:30px;background-color:transparent;background-image:none;box-shadow:none}.progress-bar-success{background-color:#28b309}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#0a94d4}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad20}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#ef4a24}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:1px;border-top-left-radius:1px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:1px;border-bottom-left-radius:1px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{text-decoration:none;color:#555;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{background-color:#ccc;color:#666}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#666}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#b3b3b3}.list-group-item-success{color:#125204;background-color:#d3e5cf}a.list-group-item-success{color:#125204}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#125204;background-color:#c4dcbe}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#125204;border-color:#125204}.list-group-item-info{color:#0872a3;background-color:#daebf2}a.list-group-item-info{color:#0872a3}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#0872a3;background-color:#c7e1eb}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#0872a3;border-color:#0872a3}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#d63510;background-color:#f0dcd8}a.list-group-item-danger{color:#d63510}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#d63510;background-color:#e9cbc6}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#d63510;border-color:#d63510}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:22px;background-color:#fff;border:1px solid transparent;border-radius:1px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:0;border-top-left-radius:0}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:18px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:0;border-bottom-left-radius:0}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:0;border-top-left-radius:0}.panel>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:0}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:0}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:0;border-bottom-left-radius:0}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:0}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:0}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{border:0;margin-bottom:0}.panel-group{margin-bottom:22px}.panel-group .panel{margin-bottom:0;border-radius:1px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#4d4d4d}.panel-primary>.panel-heading{color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#4d4d4d}.panel-primary>.panel-heading .badge{color:#4d4d4d;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#4d4d4d}.panel-success{border-color:#c9dcbe}.panel-success>.panel-heading{color:#125204;background-color:#d3e5cf;border-color:#c9dcbe}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#c9dcbe}.panel-success>.panel-heading .badge{color:#d3e5cf;background-color:#125204}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#c9dcbe}.panel-info{border-color:#c0e4e9}.panel-info>.panel-heading{color:#0872a3;background-color:#daebf2;border-color:#c0e4e9}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#c0e4e9}.panel-info>.panel-heading .badge{color:#daebf2;background-color:#0872a3}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#c0e4e9}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#e9c6c6}.panel-danger>.panel-heading{color:#d63510;background-color:#f0dcd8;border-color:#e9c6c6}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#e9c6c6}.panel-danger>.panel-heading .badge{color:#f0dcd8;background-color:#d63510}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#e9c6c6}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}.embed-responsive.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:2px}.well-sm{padding:9px;border-radius:0}.close{float:right;font-size:24px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate3d(0,-25%,0);transform:translate3d(0,-25%,0);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:2px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.in{opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;visibility:visible;font-size:14px;line-height:1.4;opacity:0}.tooltip.in{opacity:.9}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:1px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;right:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:2px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:16px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:1px 1px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.25)}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:.5;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{outline:0;color:#fff;text-decoration:none;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:rgba(0,0,0,0)}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1239px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1239px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1240px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1240px){.visible-lg-block{display:block!important}}@media (min-width:1240px){.visible-lg-inline{display:inline!important}}@media (min-width:1240px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1239px){.hidden-md{display:none!important}}@media (min-width:1240px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}@font-face{font-family:'Lato Light';src:url(../Fonts/lato-light-webfont.eot);src:url(../Fonts/lato-light-webfont.eot?#iefix) format('embedded-opentype'),url(../Fonts/lato-light-webfont.woff) format('woff'),url(../Fonts/lato-light-webfont.ttf) format('truetype'),url(../Fonts/lato-light-webfont.svg#latolight) format('svg');font-weight:400;font-style:normal}@font-face{font-family:Lato;src:url(../Fonts/lato-regular-webfont.eot);src:url(../Fonts/lato-regular-webfont.eot?#iefix) format('embedded-opentype'),url(../Fonts/lato-regular-webfont.woff) format('woff'),url(../Fonts/lato-regular-webfont.ttf) format('truetype'),url(../Fonts/lato-regular-webfont.svg#latoregular) format('svg');font-weight:400;font-style:normal}.btn-ancillary{color:#fff;background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary.active,.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover,.open>.dropdown-toggle.btn-ancillary{color:#fff;background-color:#333;border-color:#2e2e2e}.btn-ancillary.active,.btn-ancillary:active,.open>.dropdown-toggle.btn-ancillary{background-image:none}.btn-ancillary.disabled,.btn-ancillary.disabled.active,.btn-ancillary.disabled:active,.btn-ancillary.disabled:focus,.btn-ancillary.disabled:hover,.btn-ancillary[disabled],.btn-ancillary[disabled].active,.btn-ancillary[disabled]:active,.btn-ancillary[disabled]:focus,.btn-ancillary[disabled]:hover,fieldset[disabled] .btn-ancillary,fieldset[disabled] .btn-ancillary.active,fieldset[disabled] .btn-ancillary:active,fieldset[disabled] .btn-ancillary:focus,fieldset[disabled] .btn-ancillary:hover{background-color:#4d4d4d;border-color:#4d4d4d}.btn-ancillary .badge{color:#4d4d4d;background-color:#fff}.btn-ancillary.active,.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{background-color:#262626;border-color:#262626}body.Modal{background-color:#fff}#HeaderArea,#HeaderContainer{background-color:#1a1a1a;min-height:85px}#HeaderArea{border-bottom:1px solid #ccc}#HeaderArea .Page-Title-Area,#HeaderArea .Site-Name{min-height:84px}#HeaderArea .Page-Title-Area h1,#HeaderArea .Page-Title-Area h2,#HeaderArea .Page-Title-Area h3,#HeaderArea .Page-Title-Area h4,#HeaderArea .Page-Title-Area h5,#HeaderArea .Page-Title-Area h6,#HeaderArea .Site-Name h1,#HeaderArea .Site-Name h2,#HeaderArea .Site-Name h3,#HeaderArea .Site-Name h4,#HeaderArea .Site-Name h5,#HeaderArea .Site-Name h6{line-height:41px;margin:0}#HeaderArea .Site-Name{background-color:#ef4a24;min-height:95px;border:1px solid #ccc;border-top:0 none transparent;margin-bottom:-9px}#HeaderArea .Page-Title-Area{background-color:#1a1a1a}#HeaderArea .Page-Title-Area .Breadcrumbs{font-size:13px;font-style:italic;letter-spacing:.02em;color:#ccc;padding-top:9px;margin-bottom:-3px;margin-left:3px}#HeaderArea .Site-Name h1,#HeaderArea h2.Page-Title{font-family:'Lato Light',Helvetica,Arial,sans-serif;font-size:34px;color:#fff;padding-top:25px}#HeaderArea .Site-Name h1{margin-left:-2px}#HeaderArea h2.Page-Title{margin-left:3px}select{font-size:14px;color:#666;padding:3px 5px}select option{margin-bottom:3px}.Sidebar{padding-right:0;padding-left:0}.Sidebar #TreeView{margin:45px 1px 0 -1px}.Sidebar #TreeView:after,.Sidebar #TreeView:before{content:" ";display:table}.Sidebar #TreeView:after{clear:both}.Sidebar #TreeView:after,.Sidebar #TreeView:before{content:" ";display:table}.Sidebar #TreeView:after{clear:both}.Sidebar .Add-Topic,.Sidebar .AddTopic{margin-left:1.3em}.Sidebar select{background-color:#eee;width:95%;border-radius:2px}.Content-Container .Content[class*=col-]{padding-right:0;padding-left:0}.Content-Container .Content .Page-Content.Primary{position:relative;color:#333}[id*=DynamicForm]{background-color:#333;padding-top:50px}[id*=DynamicForm] .row.Form-Area,[id*=DynamicForm] .row.Messages-Area{margin:0}[id*=DynamicForm] .Editor-Navbar{width:100%;height:50px;background-color:#333}[id*=DynamicForm]#Modal_DynamicForm{padding-top:49px}[id*=DynamicForm]#Modal_DynamicForm .row.Toolbar-Area{margin:0}[id*=DynamicForm]#Modal_DynamicForm .row.Messages-Area{padding-right:5px;padding-left:5px}[id*=DynamicForm]#Modal_DynamicForm div[class*=col-]{padding-right:0;padding-left:0}[id*=DynamicForm]#Modal_DynamicForm div[class*=col-].Form-Body{padding-right:15px;padding-left:15px}[id*=DynamicForm]#Modal_DynamicForm .Editor-Navbar{top:0}[id*=DynamicForm]#Modal_DynamicForm .Messages-Area .alert-dismissable .close,[id*=DynamicForm]#Modal_DynamicForm .Messages-Area .close{right:0}[id*=DynamicForm] .Form-Area,[id*=DynamicForm] .Messages-Area{background-color:#fff}[id*=DynamicForm] .Messages-Area div[class*=Error],[id*=DynamicForm] .Messages-Area div[class*=alert]{font-size:13px;letter-spacing:.02em}[id*=DynamicForm] .Messages-Area .alert,[id*=DynamicForm] .Messages-Area div[class*=Error]{margin:10px 5px 0}[id*=DynamicForm] .Messages-Area .Error.Messaging font{margin:10px 5px 0;background-color:#f0dcd8;border-color:#e9c6c6;color:#d63510;display:block;color:#d63510!important;padding:10px;border:1px solid #e9c6c6;margin:0}[id*=DynamicForm] .Messages-Area .Error.Messaging font a{cursor:pointer}[id*=DynamicForm] .Messages-Area .Error.Messaging font hr{border-top-color:#e2b3b3}[id*=DynamicForm] .Messages-Area .Error.Messaging font .alert-link{color:#a6290c}[id*=DynamicForm] .Messages-Area .Error.Messaging font ul{list-style-type:square;padding-left:25px}[id*=DynamicForm] .Messages-Area .alert{padding:10px}[id*=DynamicForm] .Messages-Area .alert a{cursor:pointer}[id*=DynamicForm] .Messages-Area .alert-dismissable .close{right:0;font-size:20px;margin-top:0}[id*=DynamicForm] .Actions.Top{float:right;padding:0 8px;margin-top:-2px}[id*=DynamicForm] .Actions.Top button,[id*=DynamicForm] .Actions.Top input{margin-left:4px}[id*=DynamicForm] .Actions.Top #VersionsDropdown .glyphicon{margin-right:2px}[id*=DynamicForm] .Actions.Top #VersionsDropdown .caret{margin-left:2px}[id*=DynamicForm] ul.nav-tabs{padding-left:15px;border-bottom:0 none transparent}[id*=DynamicForm] .nav-tabs>li{margin-bottom:0}[id*=DynamicForm] .nav-tabs>li>a{color:#ccc;border:0 none transparent;border-bottom:8px solid transparent;margin-right:10px}[id*=DynamicForm] .nav-tabs>li>a:active,[id*=DynamicForm] .nav-tabs>li>a:focus,[id*=DynamicForm] .nav-tabs>li>a:hover{color:#fff;border-bottom-color:#ccc}[id*=DynamicForm] .nav-tabs>li.active>a,[id*=DynamicForm] .nav-tabs>li.active>a:focus,[id*=DynamicForm] .nav-tabs>li.active>a:hover{color:#fff;border:0 none transparent;border-bottom:8px solid #ccc}[id*=DynamicForm] label{font-weight:400}[id*=DynamicForm] input[type=text]{width:100%;max-width:960px}[id*=DynamicForm] input[type=text].form-control{border-radius:2px}[id*=DynamicForm] ::-webkit-input-placeholder{color:#999}[id*=DynamicForm] :-moz-placeholder{color:#999}[id*=DynamicForm] ::-moz-placeholder{color:#999}[id*=DynamicForm] :-ms-input-placeholder{color:#999}[id*=DynamicForm] input[type=radio]+label{font-size:14px;margin:0 3px}[id*=DynamicForm] select{padding:3px 5px;border-radius:2px}[id*=DynamicForm] select option{font-size:14px;margin-bottom:3px}[id*=DynamicForm] .Radio-Buttons li{display:inline-block}[id*=DynamicForm] input[class*=Error]{border-color:#ef4a24}[id*=DynamicForm] input[class*=Error]:focus{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f69983;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #f69983}[id*=DynamicForm] .Last-Modified{font-size:14px;color:#4d4d4d}[id*=DynamicForm] [id*=DisplayGroupTabsContent]{width:100%;padding:0}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Group-Item{margin-bottom:20px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading{margin-bottom:5px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .Content-Description{position:relative;font-size:16px;color:#959595;text-decoration:none;top:2px;left:3px;padding:2px 5.5px 1px;cursor:pointer}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .tooltip .tooltip-arrow{border-right-color:#1a1a1a}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .Content-Heading .tooltip .tooltip-inner{background-color:#1a1a1a;max-width:550px;font-size:14px;color:#eee;text-align:left;padding:5px 10px}[id*=DynamicForm] [id*=DisplayGroupTabsContent] .tab-pane{background-color:#fff;padding:20px 5px;overflow:auto}[id*=DynamicForm] .Callout-Area{background-color:#fff;padding:20px 5px 20px 0}[id*=DynamicForm] .Callout-Area #FixedCallouts{position:absolute;background-color:transparent;width:100%;right:-20px}[id*=DynamicForm] .Callout-Area .Callout{width:100%}[id*=DynamicForm] .Callout-Area .Callout.Page-Info{position:fixed;background-color:#fff;width:16%;max-width:214px;padding:15px;border:1px solid #ccc;z-index:0}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dd,[id*=DynamicForm] .Callout-Area .Callout.Page-Info dt,[id*=DynamicForm] .Callout-Area .Callout.Page-Info h3{color:#666}[id*=DynamicForm] .Callout-Area .Callout.Page-Info h3{font-family:'Lato Light',Helvetica,Arial,sans-serif;margin-top:0}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl{font-size:13px;line-height:18px;margin-bottom:-13px}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dt{font-weight:400}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dt .fa{width:1em;margin-right:5px}[id*=DynamicForm] .Callout-Area .Callout.Page-Info dl dd{margin-left:1.7em;margin-bottom:8px}[id*=EditorModal] .modal-header{background-color:#1a1a1a;padding:20px;border-bottom-color:#ccc}[id*=EditorModal] .modal-header .Page-Title{font-family:'Lato Light',Helvetica,Arial,sans-serif;color:#fff;margin:0}[id*=EditorModal] .modal-content{background-color:#333}[id*=EditorModal] iframe{display:block;vertical-align:bottom}select[id*=ThemeColor] option[selected=selected],select[id*=ThemeColor] option[value*=ThemeColor]{color:#fff;line-height:1.6em}select[id*=ThemeColor] option[selected=selected][value*=Blue],select[id*=ThemeColor] option[value*=ThemeColor][value*=Blue]{background-color:#02a3e0}select[id*=ThemeColor] option[selected=selected][value*=Orange],select[id*=ThemeColor] option[value*=ThemeColor][value*=Orange]{background-color:#ff9e1a}select[id*=ThemeColor] option[selected=selected][value*=Green],select[id*=ThemeColor] option[value*=ThemeColor][value*=Green]{background-color:#029a17}select[id*=ThemeColor] option[selected=selected][value*=Purple],select[id*=ThemeColor] option[value*=ThemeColor][value*=Purple]{background-color:#9f5eb5}select[id*=ThemeColor] option[selected=selected][value*=Red],select[id*=ThemeColor] option[value*=ThemeColor][value*=Red]{background-color:#e30046}@media screen and (max-width:1024px){.Sidebar .Add-Topic,.Sidebar .AddTopic{margin-left:.5em}}@media (min-width:768px){.modal-dialog{min-width:700px;width:720px}}@media (min-width:768px) and (max-width:991px){[id*=DynamicForm] .Callout-Area #FixedCallouts{position:relative;right:0}[id*=DynamicForm] .Callout-Area #FixedCallouts .Callout.Page-Info{position:relative;top:-30px;left:20px;width:50%}}.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus,.x-unselectable,.x-unselectable *{-moz-user-select:all!important;-khtml-user-select:all!important;-webkit-user-select:all!important;-ms-user-select:all!important}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(/!Admin/Topics/Images/Navigation/Arrows.png);background-repeat:no-repeat;background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(/!Admin/Topics/Images/Navigation/Dashes.png);background-repeat:no-repeat;background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{font-size:14px;white-space:normal;padding:1px 0}.x-tree-node .x-tree-node-over,.x-tree-node x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;white-space:nowrap;line-height:normal;color:#ccc;text-overflow:ellipsis;padding:0 5px 0 3px;border:1px solid transparent}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{background-position:-50px 0;margin-right:-2px;margin-left:1px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;padding:1px 0;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}#DisplayGroupTabsContent .x-tree-root-ct{margin:0 0 5px}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node-indent:before{color:#666}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px 0}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent;border-color:transparent}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-node-indent:before,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-node-indent:before{color:#ef4a24}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span,#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span,#Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span{color:#333}#DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px}#DisplayGroupTabsContent .cke_chrome{width:100%;max-width:960px;padding:0}#DisplayGroupTabsContent .cke_chrome .cke_inner{background:#dedede;border-radius:0}#DisplayGroupTabsContent .cke_chrome .cke_editable{font-size:14px;padding:10px}#DisplayGroupTabsContent .cke_chrome .cke_editable ol,#DisplayGroupTabsContent .cke_chrome .cke_editable ul{padding-left:25px}#DisplayGroupTabsContent .cke_chrome .cke_editable ul{list-style-type:square}#DisplayGroupTabsContent .cke_chrome .cke_editable ol{list-style-type:decimal}ul.token-input-list{display:block;width:100%;height:36px;padding:6px 12px;font-size:16px;line-height:1.42857143;color:#4d4d4d;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:1px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:0;position:relative;line-height:115%;padding:2px 0;border-radius:2px}ul.token-input-list:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}ul.token-input-list::-moz-placeholder{color:#666;opacity:1}ul.token-input-list:-ms-input-placeholder{color:#666}ul.token-input-list::-webkit-input-placeholder{color:#666}fieldset[disabled] ul.token-input-list,ul.token-input-list[disabled],ul.token-input-list[readonly]{cursor:not-allowed;background-color:#ccc;opacity:1}textareaul.token-input-list{height:auto}selectul.token-input-list{height:33px;line-height:33px}select[multiple]ul.token-input-list,textareaul.token-input-list{height:auto}ul.token-input-list.token-input-focused{border-color:#66afe9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #bfdef6;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #bfdef6}ul.token-input-list li{display:inline-block;padding:3px 7px;margin:3px 1px 0 4px}ul.token-input-list li input[type=text]{font-family:Lato,Helvetica,Arial,sans-serif;height:19px;line-height:21px;padding:0}ul.token-input-list li.token-input-token{background-color:#cee7f2}ul.token-input-list li.token-input-token p,ul.token-input-list li.token-input-token span{display:inline-block}ul.token-input-list li.token-input-token p{font-family:Lato,Helvetica,Arial,sans-serif;font-weight:400;color:#4d4d4d;margin-right:5px}ul.token-input-list li.token-input-token span.token-input-delete-token{position:relative;top:-1px;color:#959595}ul.token-input-list li.token-input-token~li.token-input-input-token{position:absolute;bottom:2px;padding-top:1px;padding-bottom:4px;margin-left:-1px}div.token-input-dropdown p{font-family:Lato,Helvetica,Arial,sans-serif;font-weight:400}div.token-input-dropdown ul li{color:#4d4d4d}div.token-input-dropdown ul li.token-input-dropdown-item{background-color:#eee}div.token-input-dropdown ul li.token-input-selected-dropdown-item{background-color:#d4effa}div.token-input-dropdown ul li .Breadcrumbs{color:#666}div.token-input-dropdown ul li em{font-weight:400} \ No newline at end of file From 917dff9d6722717da20aebf56f0e0d6ee87b5f8e Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 24 Oct 2017 16:10:42 -0700 Subject: [PATCH 177/637] Commented out stylesheet settings --- .../Areas/Editor/Shared/Styles/Stylesheet.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css index de9eb5b8..e9503efe 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css @@ -1,3 +1,5 @@ +/* + body { font-family: sans-serif; font-size: 14px; @@ -9,3 +11,4 @@ body { font-size: 1.2em; } +*/ From 76028a9ad14e37880cf127ca6034e82af7af28a9 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 24 Oct 2017 16:11:15 -0700 Subject: [PATCH 178/637] Added authenticated user name --- .../Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml index 9c732b9c..e671acaa 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/LastModifiedBy.cshtml @@ -4,4 +4,6 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } -@Model.Value \ No newline at end of file +@Model.Value + +@HttpContext.Current.User.Identity.Name \ No newline at end of file From 30bf326f3ca4a798b705f23c79cdfeb170359771 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 24 Oct 2017 16:11:39 -0700 Subject: [PATCH 179/637] Added ID and CSS class --- .../Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml index ad77f2e8..00b33ef3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/EditorTemplates/WYSIWYG.cshtml @@ -4,4 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/EditorTemplates/_Layout.cshtml"; } -@Html.TextAreaFor(m => m.Value, 15, 100, null) \ No newline at end of file +@Html.TextAreaFor(m => m.Value, 15, 100, new { id = "Wysiwyg_" + Model.Key, @class = "form-control" }) \ No newline at end of file From 99d73a9b69c15fb5f1b5109e776588255c183f12 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Tue, 24 Oct 2017 16:11:59 -0700 Subject: [PATCH 180/637] Updated Action URL --- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 03d79dbd..0a34749f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -18,7 +18,7 @@ From 3df19e2c048fc2f713cb07e3c7f88e6c2594b74a Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 25 Oct 2017 13:56:01 -0700 Subject: [PATCH 181/637] Updated SetVersion to GET --- .../Areas/Editor/Controllers/EditorController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 77265921..2f6b8bfb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -239,7 +239,7 @@ private void SetRelationships(Topic topic, AttributeDescriptor attribute, Editor /// /// Calls Topic.Rollback() with the selected version datetime to set the data to that version and re-save the Topic. /// - [HttpPost] + [HttpGet] public ActionResult SetVersion(DateTime version) { /*-------------------------------------------------------------------------------------------------------------------------- From c5d026621045d36fe159b3e7b6bc12fd3e54e46c Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 25 Oct 2017 13:58:44 -0700 Subject: [PATCH 182/637] Added tooltip script comment --- .../Areas/Editor/Views/Editor/Edit.cshtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 6c56c904..07a69ef1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -63,8 +63,13 @@ @section scripts { } \ No newline at end of file From 3eb70ecd9893356b908f5513e9ac17ffb333e6c9 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 25 Oct 2017 14:01:48 -0700 Subject: [PATCH 183/637] Fixed SetVersion Action reference --- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 965f3425..21f30a1b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -18,7 +18,7 @@ From 7a98e746b66b1c658cb52c076e5ca45188b26dd8 Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 25 Oct 2017 14:05:00 -0700 Subject: [PATCH 184/637] Added confirmDelete function --- .../Areas/Editor/Views/Editor/Edit.cshtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 07a69ef1..6e377000 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -71,5 +71,12 @@ $('[data-toggle="tooltip"]').tooltip(); }); + /** + * Force the user to confirm they wish to delete a Topic before performing the deletion + */ + function confirmDelete() { + return confirm('Are you sure you want to delete the "@Model.Topic.Title.Replace("'", "’")" topic? The topic and all descendants will be permanently deleted.'); + } + -} \ No newline at end of file +} From c6ac1b59b77f65d8faf80ef6240012b1a14a58fa Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Wed, 25 Oct 2017 14:05:30 -0700 Subject: [PATCH 185/637] Moved tooltip script comment --- .../Areas/Editor/Views/Editor/Edit.cshtml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 6e377000..57ac4cae 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -64,11 +64,13 @@ @section scripts { - @Html.Partial("_TreeviewScript") + @RenderSection("scripts", required: false) From e2a26bb229b7aafb16d19a18e10894fe552dcc7f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 18 Mar 2019 05:34:25 -0700 Subject: [PATCH 234/637] Established user secret The user secret allows secrets to be stored on a user-secured location on the local drive instead of in the project file, where it will be committed to git. On a production server, this can instead use e.g. an environmental variable or, on *Azure*, a server-side connection string (since we're currently using it for connection strings). --- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 44f646bd..a4ea4a04 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -3,6 +3,7 @@ netcoreapp2.2 InProcess + aff0d52c-eab2-4c07-88b2-5af34649f874 From 734d6b597f9b9dabcadf6e708b16f74c7436c166 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 19 Mar 2019 01:12:39 -0700 Subject: [PATCH 235/637] Introduced `TopicViewModel`s for `Metadata` descriptors Introduced a `ContentTypeDescriptorTopicViewModel` and an `AttributeDescriptorTopicViewModel` to represent, respectively, the `ContentTypeDescriptor` and `AttributeDescriptor` classes. This allows these classes to be mapped to strongly-typed view models via the `ITopicMappingService`. --- .../AttributeDescriptorTopicViewModel.cs | 109 ++++++++++++++++++ .../ContentTypeDescriptorTopicViewModel.cs | 72 ++++++++++++ 2 files changed, 181 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs create mode 100644 Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs diff --git a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs new file mode 100644 index 00000000..d65daca2 --- /dev/null +++ b/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs @@ -0,0 +1,109 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System.Collections.Generic; +using Ignia.Topics.Metadata; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: ATTRIBUTE DESCRIPTOR TOPIC VIEW MODEL + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides core properties from a to a view component. + /// + public class AttributeDescriptorTopicViewModel: ViewModels.TopicViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public AttributeDescriptorTopicViewModel() {} + + /*========================================================================================================================== + | PROPERTY: DESCRIPTION + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a friendly description for the , intended as documentation for users of the + /// editor. + /// + public string Description { get; set; } + + /*========================================================================================================================== + | PROPERTY: MODEL TYPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines how the attribute is modeled in terms of the object-oriented code (e.g., as a relationship? An attribute?). + /// + public ModelType ModelType { get; set; } + + /*========================================================================================================================== + | PROPERTY: EDITOR TYPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the view to use to reprensent this attribute in the topic editor. + /// + public string EditorType { get; set; } + + /*========================================================================================================================== + | PROPERTY: DISPLAY GROUP + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines what group of attributes to associate the current attribute with. + /// + public string DisplayGroup { get; set; } + + /*========================================================================================================================== + | PROPERTY: DEFAULT CONFIGURATION + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides the raw string representation of any optional values needed to configure the attribute editor. + /// + public string DefaultConfiguration { get; set; } + + /*========================================================================================================================== + | PROPERTY: CONFIGURATION + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a parsed version of the , with key/value pairs being represented in a + /// dictionary for easy reference. + /// + public Dictionary Configuration { get; set; } + + /*========================================================================================================================== + | METHOD: GET CONFIGURATION VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves a configuration value from the dictionary; if the value doesn't exist, then + /// optionally returns a default value. + /// + public string GetConfigurationValue(string key, string defaultValue = null) { + if (Configuration != null && Configuration.ContainsKey(key) && Configuration[key] != null) { + return Configuration[key].ToString(); + } + return defaultValue; + } + + /*========================================================================================================================== + | PROPERTY: IS REQUIRED? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether the attribute should be considered required or not. + /// + public bool IsRequired { get; set; } + + /*========================================================================================================================== + | PROPERTY: DEFAULT VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes the default value to use if the use doesn't enter a value. + /// + public string DefaultValue { get; set; } + + } // Class + +} // Namespace diff --git a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs new file mode 100644 index 00000000..7d0f31ab --- /dev/null +++ b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs @@ -0,0 +1,72 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System.Collections.Generic; +using Ignia.Topics.Metadata; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: CONTENT TYPE DESCRIPTOR (TOPIC VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides core properties from a to provide to the editor interface. Specifically, + /// the is critical in providing the schema of attributes to be presented. + /// + public class ContentTypeDescriptorTopicViewModel: TopicViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public ContentTypeDescriptorTopicViewModel(): base() {} + + /*========================================================================================================================== + | PROPERTY: ATTRIBUTE DESCRIPTORS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// A list of instances representing each of the permitted by the underlying . + /// + public List AttributeDescriptors { get; } = new List(); + + /*========================================================================================================================== + | PROPERTY: DESCRIPTION + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a friendly description for the , intended as documentation for users of the editor. + /// + public string Description { get; set; } + + /*========================================================================================================================== + | PROPERTY: DISABLE CHILD TOPICS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether child topics are permitted to be created under the scope of the represented . + /// + public bool DisableChildTopics { get; set; } + + /*========================================================================================================================== + | PROPERTY: DISABLE DELETE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether a topic is permitted to be deleted via the user interface. This is disabled for certain out-of-the- + /// box topics, such as Root and Configuration. + /// + public bool DisableDelete { get; set; } + + /*========================================================================================================================== + | PROPERTY: PERMITTED CONTENT TYPES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines which s, if any, are permitted to be created under s of the + /// current . + /// + public List PermittedContentTypes { get; } = new List(); + + } // Class +} // Namespace From ad5a85e965c2e74c14a100d66b9a1670e9d22103 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 19 Mar 2019 01:14:39 -0700 Subject: [PATCH 236/637] Introduced the `TopicViewModel` The `TopicViewModel` extends the OOTB `TopicViewModel` by adding the `VersionHistory` data required by the editor. Note that this introduces some ambiguity in the name, which may be worth resolving by renaming this class; I'm still putting some thought into that. --- Ignia.Topics.Editor.Models/TopicViewModel.cs | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/TopicViewModel.cs diff --git a/Ignia.Topics.Editor.Models/TopicViewModel.cs b/Ignia.Topics.Editor.Models/TopicViewModel.cs new file mode 100644 index 00000000..1e83124d --- /dev/null +++ b/Ignia.Topics.Editor.Models/TopicViewModel.cs @@ -0,0 +1,48 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: TOPIC VIEW MODEL + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents a model for a . Since attributes are handled via the , the + /// needn't account for them. It only accounts for items that will be exposed to the general + /// interface of the Topic Editor. + /// + public class TopicViewModel: ViewModels.TopicViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public TopicViewModel() : base() {} + + /*========================================================================================================================== + | PROPERTY: WEB PATH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the result. + /// + public string WebPath { get; set; } + + /*========================================================================================================================== + | PROPERTY: VERSION HISTORY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a collection of instances during which the represented was + /// modified. + /// + public List VersionHistory { get; set; } + + } // Class + +} // Namespace From 1440970b6d6ac4d3980f55f03e0fe0ebeaedf53a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 19 Mar 2019 01:18:26 -0700 Subject: [PATCH 237/637] Modified to use view models Previously, the `EditorViewModel` returned entity objects (e.g., `Topic` and `ContentTypeDescriptor`) as well as services (e.g., `ITopicRepository`). This is not a best practice. The new version is setup to instead return `TopicViewModel` and `ContentTypeDescriptorTopicViewModel`, which are limited exclusively to the properties required by the interface. The `ITopicRepository` is no longer returned; other approaches should be discovered for addressing this (such as `ViewComponent`s). --- Ignia.Topics.Editor.Models/EditorViewModel.cs | 53 +++++-------------- 1 file changed, 12 insertions(+), 41 deletions(-) diff --git a/Ignia.Topics.Editor.Models/EditorViewModel.cs b/Ignia.Topics.Editor.Models/EditorViewModel.cs index 52c82bfb..b14510ea 100644 --- a/Ignia.Topics.Editor.Models/EditorViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditorViewModel.cs @@ -5,7 +5,6 @@ \=============================================================================================================================*/ using Ignia.Topics.Collections; using Ignia.Topics.Metadata; -using Ignia.Topics.Repositories; namespace Ignia.Topics.Editor.Models { @@ -13,8 +12,7 @@ namespace Ignia.Topics.Editor.Models { | CLASS: EDITOR VIEW MODEL \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// Represents a model for interacting with the editor interface, including the established list of - /// and their values. + /// Represents a model for interacting with the editor interface. /// public class EditorViewModel { @@ -22,24 +20,20 @@ public class EditorViewModel { | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// public EditorViewModel( - Topic topic, - ContentTypeDescriptor contentTypeDescriptor, - ReadOnlyTopicCollection permittedContentTypes, - ITopicRepository topicRepository, + TopicViewModel topic, + ContentTypeDescriptorTopicViewModel contentTypeDescriptor, bool isModal ) { /*------------------------------------------------------------------------------------------------------------------------ | Set properties \-----------------------------------------------------------------------------------------------------------------------*/ - Topic = topic; - ContentTypeDescriptor = contentTypeDescriptor; - PermittedContentTypes = permittedContentTypes; - TopicRepository = topicRepository; - IsModal = isModal; + Topic = topic; + ContentTypeDescriptor = contentTypeDescriptor; + IsModal = isModal; } @@ -47,9 +41,9 @@ bool isModal | TOPIC \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Read-only reference to the current topic being edited, for familiar access to the full context. + /// The representing the core properties of the currently selected . /// - public Topic Topic { + public TopicViewModel Topic { get; } @@ -57,22 +51,10 @@ public Topic Topic { | CONTENT TYPE DESCRIPTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Read-only reference to the current associated with the request. + /// The representing the core properties of the 's + /// . /// - public ContentTypeDescriptor ContentTypeDescriptor { - get; - } - - /*========================================================================================================================== - | PERMITTED CONTENT TYPES - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Read-only reference to the full list of instances permitted as child topics. - /// - /// - /// This is intended to be bound to the list of new content types available in the interface. - /// - public ReadOnlyTopicCollection PermittedContentTypes { + public ContentTypeDescriptorTopicViewModel ContentTypeDescriptor { get; } @@ -86,16 +68,5 @@ public bool IsModal { get; } - /*========================================================================================================================== - | TOPIC REPOSITORY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides a reference to the for dynamic access to the entire topic graph. - /// - public ITopicRepository TopicRepository { - get; - } - } // Class - } // Namespace From 6ec803fb6251f74cef40c085f556a09bc04d342b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 19 Mar 2019 01:23:01 -0700 Subject: [PATCH 238/637] Updated `EditorController` to use full dependencies Previously, the `EditorController` was still relying on the a directly-injected `Topic` entity. This is updated to instead accept an `ITopicRoutingService`, as is used for `TopicController`. In addition, injecting `TopicMappingService` in so we can provide better support for view models. --- .../Editor/Controllers/EditorController.cs | 33 +++++++++++++++---- Ignia.Topics.Editor.Mvc/SampleActivator.cs | 2 +- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 17619c48..14c26c6f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -10,6 +10,8 @@ using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Attributes; using Ignia.Topics.Editor.Models.Json; +using Ignia.Topics.Internal.Diagnostics; +using Ignia.Topics.Mapping; using Ignia.Topics.Metadata; using Ignia.Topics.Repositories; using Microsoft.AspNetCore.Mvc; @@ -29,6 +31,8 @@ public class EditorController : Controller { | PRIVATE VARIABLES \-------------------------------------------------------------------------------------------------------------------------*/ private ITopicRepository _topicRepository = null; + private ITopicRoutingService _topicRoutingService = null; + private ITopicMappingService _topicMappingService = null; private Topic _currentTopic = null; /*========================================================================================================================== @@ -38,9 +42,26 @@ public class EditorController : Controller { /// Initializes a new instance of a Topic Controller with necessary dependencies. /// /// A topic controller for loading OnTopic views. - public EditorController(ITopicRepository topicRepository, Topic currentTopic) { + public EditorController( + ITopicRepository topicRepository, + ITopicRoutingService topicRoutingService, + ITopicMappingService topicMappingService + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate input + \-----------------------------------------------------------------------------------------------------------------------*/ + Contract.Requires(topicRepository != null, "A concrete implementation of an ITopicRepository is required."); + Contract.Requires(topicRoutingService != null, "A concrete implementation of an ITopicRoutingService is required."); + Contract.Requires(topicMappingService != null, "A concrete implementation of an ITopicMappingService is required."); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set values locally + \-----------------------------------------------------------------------------------------------------------------------*/ _topicRepository = topicRepository; - _currentTopic = currentTopic; + _topicRoutingService = topicRoutingService; + _topicMappingService = topicMappingService; + } /*========================================================================================================================== @@ -65,11 +86,11 @@ protected ITopicRepository TopicRepository { /// The Topic associated with the current request. protected Topic CurrentTopic { get { + if (_currentTopic == null) { + _currentTopic = _topicRoutingService.GetCurrentTopic(); + } return _currentTopic; } - set { - _currentTopic = value; - } } /*========================================================================================================================== @@ -79,7 +100,7 @@ protected Topic CurrentTopic { /// Provides a reference to the a strongly typed content type, if available. /// /// The Content Type associated with the current request. - protected ContentTypeDescriptor GetContentType(string contentType) => TopicRepository + protected ContentTypeDescriptor GetContentType(string contentType) => _topicRepository .GetContentTypeDescriptors() .Where(t => t.Key.Equals(contentType)) .First(); diff --git a/Ignia.Topics.Editor.Mvc/SampleActivator.cs b/Ignia.Topics.Editor.Mvc/SampleActivator.cs index 0b4dffa1..ec7327f5 100644 --- a/Ignia.Topics.Editor.Mvc/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc/SampleActivator.cs @@ -152,7 +152,7 @@ private EditorController CreateEditorController(ControllerContext context) { /*------------------------------------------------------------------------------------------------------------------------ | Return TopicController \-----------------------------------------------------------------------------------------------------------------------*/ - return new EditorController(_topicRepository, mvcTopicRoutingService.GetCurrentTopic()); + return new EditorController(_topicRepository, mvcTopicRoutingService, _topicMappingService); } From 76f26f6438db6ed1fe9d6651f0728f8e5d52ee71 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 19 Mar 2019 01:24:49 -0700 Subject: [PATCH 239/637] Implemented `async` actions Updated the `EditorController` to return `IActionResult` instead of `ActionResult` per *ASP.NET Core* preferences. Also made actions `async` as appropriate, particularly in preparation for using the `ITopicMappingService`. --- .../Areas/Editor/Controllers/EditorController.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 14c26c6f..c7f5caf2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -6,6 +6,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Threading.Tasks; using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Attributes; @@ -111,7 +112,7 @@ protected ContentTypeDescriptor GetContentType(string contentType) => _topicRepo /// /// Present an editor view bound to a specific topic. /// - public ActionResult Edit(bool isNew = false, string contentType = null, bool isModal = false) { + public async Task Edit(bool isNew = false, string contentType = null, bool isModal = false) { /*------------------------------------------------------------------------------------------------------------------------ | FILTER CONTENT TYPES @@ -161,7 +162,7 @@ public ActionResult Edit(bool isNew = false, string contentType = null, bool isM /// /// An instance of the constructed from the HTTP Post. [HttpPost] - public ActionResult Edit(EditorBindingModel model, bool isNew = false, string contentType = null, bool isModal = false) { + public async Task Edit(EditorBindingModel model, bool isNew = false, string contentType = null, bool isModal = false) { /*------------------------------------------------------------------------------------------------------------------------ | SET TOPIC @@ -232,7 +233,7 @@ public ActionResult Edit(EditorBindingModel model, bool isNew = false, string co /*------------------------------------------------------------------------------------------------------------------------ | RETURN INDEX \-----------------------------------------------------------------------------------------------------------------------*/ - return Edit(); + return await Edit(); } @@ -264,7 +265,7 @@ private void SetRelationships(Topic topic, AttributeDescriptor attribute, Editor /// Calls Topic.Rollback() with the selected version datetime to set the data to that version and re-save the Topic. /// [HttpGet] - public ActionResult SetVersion(DateTime version) { + public async Task SetVersion(DateTime version) { /*-------------------------------------------------------------------------------------------------------------------------- | Initiate rollback @@ -274,7 +275,7 @@ public ActionResult SetVersion(DateTime version) { /*-------------------------------------------------------------------------------------------------------------------------- | Render index \-------------------------------------------------------------------------------------------------------------------------*/ - return Edit(); + return await Edit(); } @@ -285,7 +286,7 @@ public ActionResult SetVersion(DateTime version) { /// Fires when the user clicks the "Delete" button; deletes the current topic and any child attributes. /// [HttpPost] - public ActionResult Delete(bool isModal = false) { + public IActionResult Delete(bool isModal = false) { /*-------------------------------------------------------------------------------------------------------------------------- | Define variables @@ -334,7 +335,7 @@ public ActionResult Delete(bool isModal = false) { /// "failure" error on "false". /// [HttpPost] - public ActionResult Move(int topicId, int targetTopicId, int siblingId) { + public IActionResult Move(int topicId, int targetTopicId, int siblingId) { /*-------------------------------------------------------------------------------------------------------------------------- | Retrieve the source and destination topics From 9db511bfaa3e89218d7c4727aaa6b13a8f6ccd23 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 19 Mar 2019 01:29:22 -0700 Subject: [PATCH 240/637] Return view models from `EditorController` The `EditorController` is now updated to use the lated `EditorViewModel` which includes actual view models, instead of simply referencing original entities such as `Topic` and `ContentTypeDescriptor`. As part of this, needed to update references that depended on `Topic`, such as `GetWebPath()` (now `WebPath`), `GetUniqueKey()` (now `UniqueKey`), and calls to e.g. specific `AttributeDescriptor` attributes (now accessible via properties). --- .../Editor/Controllers/EditorController.cs | 28 +++++++++---------- .../Areas/Editor/Views/Editor/Edit.cshtml | 10 +++---- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 6 ++-- .../Views/Shared/_TreeViewScript.cshtml | 7 +++-- 4 files changed, 27 insertions(+), 24 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index c7f5caf2..306be4ca 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -115,13 +115,17 @@ protected ContentTypeDescriptor GetContentType(string contentType) => _topicRepo public async Task Edit(bool isNew = false, string contentType = null, bool isModal = false) { /*------------------------------------------------------------------------------------------------------------------------ - | FILTER CONTENT TYPES + | ESTABLISH CONTENT TYPE VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - var currentContentType = GetContentType(CurrentTopic.ContentType); - var contentTypes = currentContentType.PermittedContentTypes; - - if (contentTypes.Count.Equals(0)) { - contentTypes = TopicRepository.GetContentTypeDescriptors().AsReadOnly(); + var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); + var contentTypeViewModel = await _topicMappingService.MapAsync(contentTypeDescriptor); + + if (contentTypeViewModel.PermittedContentTypes.Count.Equals(0)) { + foreach (var contentTypeReference in _topicRepository.GetContentTypeDescriptors()) { + contentTypeViewModel.PermittedContentTypes.Add( + await _topicMappingService.MapAsync(contentTypeReference) + ); + } } /*------------------------------------------------------------------------------------------------------------------------ @@ -130,19 +134,15 @@ public async Task Edit(bool isNew = false, string contentType = n EditorViewModel editorViewModel; if (isNew) { editorViewModel = new EditorViewModel( - TopicFactory.Create("NewTopic", contentType), - GetContentType(contentType), - contentTypes, - TopicRepository, + new TopicViewModel() { ContentType = contentType }, + contentTypeViewModel, isModal ); } else { editorViewModel = new EditorViewModel( - CurrentTopic, - GetContentType(CurrentTopic.ContentType), - contentTypes, - TopicRepository, + await _topicMappingService.MapAsync(CurrentTopic), + contentTypeViewModel, isModal ); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 3fa43a2b..361ba800 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -27,7 +27,7 @@ var attributeViewModel = new AttributeViewModel(attribute, Model.Topic, Model.TopicRepository, ViewData); var type = attribute.EditorType.Replace(".ascx", ""); - if (attribute.Attributes.GetValue("IsHidden", "0").Equals("1")) { + if (attribute.IsHidden) { continue; } @@ -53,7 +53,7 @@
    Topic ID
    @Model.Topic.Id
    Current
    -
    View Page
    +
    View Page
    @@ -78,7 +78,7 @@ $('#SavePageButton').click(function() { $.ajax({ - url : '@Url.Action("Edit" + Model.Topic.GetWebPath(), "Editor")', + url : '@Url.Action("Edit" + Model.Topic.WebPath, "Editor")', type : 'POST', data : @bindingModel, success: function (result) { @@ -96,10 +96,10 @@ */ $('#DeletePageButton').click(function () { - var topicToDelete = '@Model.Topic.GetUniqueKey()'; + var topicToDelete = '@Model.Topic.UniqueKey'; $.ajax({ - url : '@Url.Action("Delete" + Model.Topic.GetWebPath(), "Editor")', + url : '@Url.Action("Delete" + Model.Topic.WebPath, "Editor")', type : 'POST', success: function (result) { if (result == true) { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 1f09eac5..40cf719f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -3,7 +3,7 @@ @{ Layout = null; var displayGroups = Model.ContentTypeDescriptor.AttributeDescriptors.Select(a => a.DisplayGroup).Distinct().ToList(); - bool disableDelete = Model.ContentTypeDescriptor.Attributes.GetValue("DisableDelete").Equals("1"); + bool disableDelete = Model.ContentTypeDescriptor.DisableDelete; }
    @@ -20,7 +20,7 @@ @@ -29,7 +29,7 @@ - @if (Model.Topic.Parent.Attributes.GetValue("ContentType").Equals("List")) { + @if (Model.Topic.Parent.ContentType.Equals("List")) { "class="btn btn-ancillary btn-sm">Cancel } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml index 358f2e2b..5576a31b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml @@ -2,7 +2,10 @@ @{ Layout = null; - var rootTopic = Model.TopicRepository.Load("Web"); + var rootTopic = (Ignia.Topics.ViewModels.TopicViewModel)Model.Topic; + while (rootTopic.Parent.Parent != null) { + rootTopic = rootTopic.Parent; + } } - - + + + - - + + - + - - - + + + @@ -91,7 +91,7 @@
    - + diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.eot b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.eot rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.svg b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.svg rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.ttf b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.ttf rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.woff b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Fonts/glyphicons-halflings-regular.woff rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Common.Functions.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Common.Functions.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Common.Functions.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Common.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Modal.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Modal.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Modal.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Modal.js diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TokenizedTopicList.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TokenizedTopicList.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TopicList.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TopicList.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TopicList.js diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TreeView.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/TreeView.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Window.Primary.Functions.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Scripts/Window.Primary.Functions.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Window.Primary.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_base.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_base.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_base.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_buttons.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_buttons.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_buttons.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_buttons.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_callouts.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_callouts.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_callouts.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_callouts.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_fonts.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_fonts.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_fonts.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_fonts.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_forms.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_forms.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_forms.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_icons.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_icons.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_icons.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_icons.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_links.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_links.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_links.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tabs.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tabs.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tabs.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tooltips.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_tooltips.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tooltips.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_typography.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_typography.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_typography.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_utilities.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_utilities.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Base/_utilities.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_utilities.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.min.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/CKEditor.min.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/TreeView/_treeView.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/TreeView/_treeView.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/TreeView/_treeView.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/_components.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/_components.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Components/_components.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/_components.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Layout/_layout.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Layout/_layout.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Layout/_layout.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Site.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.min.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Style.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.scss diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Stylesheet.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-facebook.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-facebook.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-mac.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input-mac.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/Vendor/TokenInput/token-input.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/_variables.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Shared/Styles/_variables.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/_variables.scss From 13a2b052fef3f3b59ac06aa8cb6cb0be7a23dcae Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 20 Mar 2019 00:33:49 -0700 Subject: [PATCH 286/637] Exclude `/Vendor` directory Vendor scripts, such as *BootStrap*, *ExtJs*, &c. should not be included in the source code, but downloaded as dependencies via the package manager. To prevent this, exclude the `/Vendor` directories. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index dc5064eb..3143ef69 100644 --- a/.gitignore +++ b/.gitignore @@ -304,3 +304,4 @@ config.yml compilerconfig.json compilerconfig.json.defaults **/ExtJS/* +**/Vendor/* \ No newline at end of file From 2c1fe3ce3c265c3ada69e01e03a8b42a4876e9dc Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 20 Mar 2019 00:54:07 -0700 Subject: [PATCH 287/637] Moved `/Images` to `/wwwroot` --- .../Editor => wwwroot}/Images/Navigation/Arrows.png | Bin .../Editor => wwwroot}/Images/Navigation/Dashes.png | Bin 2 files changed, 0 insertions(+), 0 deletions(-) rename Ignia.Topics.Editor.Mvc/{Areas/Editor => wwwroot}/Images/Navigation/Arrows.png (100%) rename Ignia.Topics.Editor.Mvc/{Areas/Editor => wwwroot}/Images/Navigation/Dashes.png (100%) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Arrows.png b/Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Arrows.png similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Arrows.png rename to Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Arrows.png diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Dashes.png b/Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Dashes.png similarity index 100% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Images/Navigation/Dashes.png rename to Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Dashes.png From ddca47a872d036fe8eef6ac52c1ba4c4dbf27f88 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 20 Mar 2019 03:19:58 -0700 Subject: [PATCH 288/637] Updated all *Node.js* packages Uninstalled *Bower* since it's deprecated, and not being used on this project. --- Ignia.Topics.Editor.Mvc/package-lock.json | 4842 ++++++++++----------- Ignia.Topics.Editor.Mvc/package.json | 25 +- 2 files changed, 2392 insertions(+), 2475 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/package-lock.json b/Ignia.Topics.Editor.Mvc/package-lock.json index 29ca580d..a2b09bd4 100644 --- a/Ignia.Topics.Editor.Mvc/package-lock.json +++ b/Ignia.Topics.Editor.Mvc/package-lock.json @@ -5,30 +5,16 @@ "requires": true, "dependencies": { "@gulp-sourcemaps/identity-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-1.0.1.tgz", - "integrity": "sha1-z6I7xYQPkQTOMqZedNt+epdLvuE=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-1.0.2.tgz", + "integrity": "sha512-ciiioYMLdo16ShmfHBXJBOFm3xPC4AuwO4xeRpFeHz7WK9PYsWCmigagG2XyzZpubK4a3qNKoUBDhbzHfa50LQ==", "dev": true, "requires": { - "acorn": "5.1.2", - "css": "2.2.1", - "normalize-path": "2.1.1", - "source-map": "0.5.7", - "through2": "2.0.3" - }, - "dependencies": { - "acorn": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.1.2.tgz", - "integrity": "sha512-o96FZLJBPY1lvTuJylGA9Bk3t/GKPPJG8H0ydQQl01crzwJgspa4AEIq/pVTXigmK0PHVQhiAtn8WMBLL9D2WA==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "acorn": "^5.0.3", + "css": "^2.2.1", + "normalize-path": "^2.1.1", + "source-map": "^0.6.0", + "through2": "^2.0.3" } }, "@gulp-sourcemaps/map-sources": { @@ -37,8 +23,8 @@ "integrity": "sha1-iQrnxdjId/bThIYCFazp1+yUW9o=", "dev": true, "requires": { - "normalize-path": "2.1.1", - "through2": "2.0.3" + "normalize-path": "^2.0.1", + "through2": "^2.0.3" } }, "abbrev": { @@ -48,39 +34,48 @@ "dev": true }, "accepts": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.2.13.tgz", - "integrity": "sha1-5fHzkoxtlf2WVYw27D2dDeSm7Oo=", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", + "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "dev": true, "requires": { - "mime-types": "2.1.17", - "negotiator": "0.5.3" + "mime-types": "~2.1.18", + "negotiator": "0.6.1" + }, + "dependencies": { + "mime-db": { + "version": "1.38.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", + "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==", + "dev": true + }, + "mime-types": { + "version": "2.1.22", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", + "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", + "dev": true, + "requires": { + "mime-db": "~1.38.0" + } + } } }, "acorn": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", - "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", "dev": true }, "ajv": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.2.3.tgz", - "integrity": "sha1-wG9Zh3jETGsWGrr+NGa4GtGBTtI=", + "version": "6.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", + "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", "dev": true, "requires": { - "co": "4.6.0", - "fast-deep-equal": "1.0.0", - "json-schema-traverse": "0.3.1", - "json-stable-stringify": "1.0.1" - }, - "dependencies": { - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true - } + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" } }, "amdefine": { @@ -89,6 +84,42 @@ "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "dev": true }, + "ansi-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", + "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "dev": true, + "requires": { + "ansi-wrap": "^0.1.0" + } + }, + "ansi-cyan": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", + "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-gray": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", + "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", @@ -101,6 +132,12 @@ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, + "ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", + "dev": true + }, "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", @@ -113,7 +150,7 @@ "integrity": "sha1-nNnABpV+vpX62tW9YJiUKoE3N/Y=", "dev": true, "requires": { - "file-type": "3.9.0" + "file-type": "^3.1.0" }, "dependencies": { "file-type": { @@ -131,13 +168,13 @@ "dev": true }, "are-we-there-yet": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", - "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "dev": true, "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.3" + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" }, "dependencies": { "isarray": { @@ -146,28 +183,34 @@ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -185,7 +228,7 @@ "dev": true, "optional": true, "requires": { - "sprintf-js": "1.0.3" + "sprintf-js": "~1.0.2" } }, "arr-diff": { @@ -194,7 +237,7 @@ "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", "dev": true, "requires": { - "arr-flatten": "1.1.0" + "arr-flatten": "^1.0.1" } }, "arr-flatten": { @@ -203,6 +246,12 @@ "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "dev": true }, + "arr-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", + "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", + "dev": true + }, "array-differ": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", @@ -233,7 +282,7 @@ "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", "dev": true, "requires": { - "array-uniq": "1.0.3" + "array-uniq": "^1.0.1" } }, "array-uniq": { @@ -249,10 +298,13 @@ "dev": true }, "asn1": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", - "dev": true + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } }, "assert-plus": { "version": "1.0.0", @@ -260,6 +312,12 @@ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, "async": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", @@ -285,23 +343,23 @@ "dev": true }, "atob": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/atob/-/atob-1.1.3.tgz", - "integrity": "sha1-lfE2KbEsOlGl0hWr3OKqnzL4B3M=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", "dev": true }, "autoprefixer": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.1.5.tgz", - "integrity": "sha512-sMN453qIm8Z+tunzYWW+Y490wWkICHhCYm/VohLjjl+N7ARSFuF5au7E6tr7oEbeeXj8mNjpSw2kxjJaO6YCOw==", + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.2.6.tgz", + "integrity": "sha512-Iq8TRIB+/9eQ8rbGhcP7ct5cYb/3qjNYAR2SnzLCEcwF6rvVOax8+9+fccgXk4bEhQGjOZd5TLhsksmAdsbGqQ==", "dev": true, "requires": { - "browserslist": "2.5.1", - "caniuse-lite": "1.0.30000745", - "normalize-range": "0.1.2", - "num2fraction": "1.2.2", - "postcss": "6.0.13", - "postcss-value-parser": "3.3.0" + "browserslist": "^2.11.3", + "caniuse-lite": "^1.0.30000805", + "normalize-range": "^0.1.2", + "num2fraction": "^1.2.2", + "postcss": "^6.0.17", + "postcss-value-parser": "^3.2.3" } }, "aws-sign2": { @@ -311,9 +369,9 @@ "dev": true }, "aws4": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", - "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", "dev": true }, "babel-code-frame": { @@ -322,42 +380,51 @@ "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", "dev": true, "requires": { - "chalk": "1.1.3", - "esutils": "2.0.2", - "js-tokens": "3.0.2" + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" } }, "babel-core": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", - "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", - "dev": true, - "requires": { - "babel-code-frame": "6.26.0", - "babel-generator": "6.26.0", - "babel-helpers": "6.24.1", - "babel-messages": "6.23.0", - "babel-register": "6.26.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "convert-source-map": "1.5.0", - "debug": "2.6.9", - "json5": "0.5.1", - "lodash": "4.17.4", - "minimatch": "3.0.4", - "path-is-absolute": "1.0.1", - "private": "0.1.7", - "slash": "1.0.0", - "source-map": "0.5.7" + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" }, "dependencies": { + "convert-source-map": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "minimatch": { @@ -366,7 +433,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } }, "source-map": { @@ -378,25 +445,25 @@ } }, "babel-generator": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.0.tgz", - "integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", - "dev": true, - "requires": { - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "detect-indent": "4.0.0", - "jsesc": "1.3.0", - "lodash": "4.17.4", - "source-map": "0.5.7", - "trim-right": "1.0.1" + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" }, "dependencies": { "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "source-map": { @@ -413,8 +480,8 @@ "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-messages": { @@ -423,7 +490,7 @@ "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-register": { @@ -432,19 +499,19 @@ "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", "dev": true, "requires": { - "babel-core": "6.26.0", - "babel-runtime": "6.26.0", - "core-js": "2.5.1", - "home-or-tmp": "2.0.0", - "lodash": "4.17.4", - "mkdirp": "0.5.1", - "source-map-support": "0.4.18" + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" }, "dependencies": { "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true } } @@ -455,8 +522,8 @@ "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "dev": true, "requires": { - "core-js": "2.5.1", - "regenerator-runtime": "0.11.0" + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" } }, "babel-template": { @@ -465,17 +532,17 @@ "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "lodash": "4.17.4" + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" }, "dependencies": { "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true } } @@ -486,21 +553,21 @@ "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "debug": "2.6.9", - "globals": "9.18.0", - "invariant": "2.2.2", - "lodash": "4.17.4" + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" }, "dependencies": { "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true } } @@ -511,16 +578,16 @@ "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "esutils": "2.0.2", - "lodash": "4.17.4", - "to-fast-properties": "1.0.3" + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" }, "dependencies": { "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true } } @@ -537,38 +604,19 @@ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, - "base64-url": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/base64-url/-/base64-url-1.2.1.tgz", - "integrity": "sha1-GZ/WYXAqDnt9yubgaYuwicUvbXg=", - "dev": true - }, - "basic-auth": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.0.4.tgz", - "integrity": "sha1-Awk1sB3nyblKgksp8/zLdQ06UpA=", - "dev": true - }, - "basic-auth-connect": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/basic-auth-connect/-/basic-auth-connect-1.0.0.tgz", - "integrity": "sha1-/bC0OWLKe0BFanwrtI/hc9otISI=", - "dev": true - }, "batch": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.5.3.tgz", - "integrity": "sha1-PzQU84AyF0O/wQQvmoP/HVgk1GQ=", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", "dev": true }, "bcrypt-pbkdf": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", - "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, - "optional": true, "requires": { - "tweetnacl": "0.14.5" + "tweetnacl": "^0.14.3" } }, "beeper": { @@ -583,13 +631,13 @@ "integrity": "sha1-EfjdYfcP/Por3KpbRvXo/t1CIcw=", "dev": true, "requires": { - "archive-type": "3.2.0", - "decompress": "3.0.0", - "download": "4.4.3", - "exec-series": "1.0.3", - "rimraf": "2.6.2", - "tempfile": "1.1.1", - "url-regex": "3.2.0" + "archive-type": "^3.0.1", + "decompress": "^3.0.0", + "download": "^4.1.2", + "exec-series": "^1.0.0", + "rimraf": "^2.2.6", + "tempfile": "^1.0.0", + "url-regex": "^3.0.0" }, "dependencies": { "tempfile": { @@ -598,8 +646,8 @@ "integrity": "sha1-W8xOrsxKsscH2LwR2ZzMmiyyh/I=", "dev": true, "requires": { - "os-tmpdir": "1.0.2", - "uuid": "2.0.3" + "os-tmpdir": "^1.0.0", + "uuid": "^2.0.1" } }, "uuid": { @@ -616,7 +664,7 @@ "integrity": "sha1-hvjm9CU4k99g3DFpV/WvAqywWTA=", "dev": true, "requires": { - "executable": "1.1.0" + "executable": "^1.0.0" } }, "bin-version": { @@ -625,7 +673,7 @@ "integrity": "sha1-nrSY7m/Xb3q5p8FgQ2+JV5Q1144=", "dev": true, "requires": { - "find-versions": "1.2.1" + "find-versions": "^1.0.0" } }, "bin-version-check": { @@ -634,10 +682,10 @@ "integrity": "sha1-5OXfKQuQaffRETJAMe/BP90RpbA=", "dev": true, "requires": { - "bin-version": "1.0.4", - "minimist": "1.2.0", - "semver": "4.3.6", - "semver-truncate": "1.1.2" + "bin-version": "^1.0.0", + "minimist": "^1.1.0", + "semver": "^4.0.3", + "semver-truncate": "^1.0.0" } }, "bin-wrapper": { @@ -646,12 +694,12 @@ "integrity": "sha1-Z9MwYmLksaXy+I7iNGT2plVneus=", "dev": true, "requires": { - "bin-check": "2.0.0", - "bin-version-check": "2.1.0", - "download": "4.4.3", - "each-async": "1.1.1", - "lazy-req": "1.1.0", - "os-filter-obj": "1.0.3" + "bin-check": "^2.0.0", + "bin-version-check": "^2.1.0", + "download": "^4.0.0", + "each-async": "^1.1.1", + "lazy-req": "^1.0.0", + "os-filter-obj": "^1.0.0" } }, "bl": { @@ -660,7 +708,7 @@ "integrity": "sha1-ysMo977kVzDUBLaSID/LWQ4XLV4=", "dev": true, "requires": { - "readable-stream": "2.3.3" + "readable-stream": "^2.0.5" }, "dependencies": { "isarray": { @@ -675,13 +723,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -690,7 +738,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -701,66 +749,40 @@ "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", "dev": true, "requires": { - "inherits": "2.0.3" + "inherits": "~2.0.0" } }, - "body-parser": { - "version": "1.13.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.13.3.tgz", - "integrity": "sha1-wIzzMMM1jhUQFqBXRvE/ApyX+pc=", + "body": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/body/-/body-5.1.0.tgz", + "integrity": "sha1-5LoM5BCkaTYyM2dgnstOZVMSUGk=", "dev": true, "requires": { - "bytes": "2.1.0", - "content-type": "1.0.4", - "debug": "2.2.0", - "depd": "1.0.1", - "http-errors": "1.3.1", - "iconv-lite": "0.4.11", - "on-finished": "2.3.0", - "qs": "4.0.0", - "raw-body": "2.1.7", - "type-is": "1.6.15" + "continuable-cache": "^0.3.1", + "error": "^7.0.0", + "raw-body": "~1.1.0", + "safe-json-parse": "~1.0.1" }, "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "raw-body": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.1.7.tgz", + "integrity": "sha1-HQJ8K/oRasxmI7yo8AAWVyqH1CU=", "dev": true, "requires": { - "ms": "0.7.1" + "bytes": "1", + "string_decoder": "0.10" } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true } } }, - "boom": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", - "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", - "dev": true, - "requires": { - "hoek": "4.2.0" - } - }, - "bower": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/bower/-/bower-1.8.2.tgz", - "integrity": "sha1-rfU1KcjUrwLvJPuNU0HBQZ0z4vc=", - "dev": true - }, "brace-expansion": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", "dev": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -770,19 +792,19 @@ "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", "dev": true, "requires": { - "expand-range": "1.8.2", - "preserve": "0.2.0", - "repeat-element": "1.1.2" + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" } }, "browserslist": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.5.1.tgz", - "integrity": "sha512-jAvM2ku7YDJ+leAq3bFH1DE0Ylw+F+EQDq4GkqZfgPEqpWYw9ofQH85uKSB9r3Tv7XDbfqVtE+sdvKJW7IlPJA==", + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.3.tgz", + "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", "dev": true, "requires": { - "caniuse-lite": "1.0.30000745", - "electron-to-chromium": "1.3.24" + "caniuse-lite": "^1.0.30000792", + "electron-to-chromium": "^1.3.30" } }, "buffer-crc32": { @@ -797,10 +819,10 @@ "integrity": "sha1-APFfruOreh3aLN5tkSG//dB7ImI=", "dev": true, "requires": { - "file-type": "3.9.0", - "readable-stream": "2.3.3", - "uuid": "2.0.3", - "vinyl": "1.2.0" + "file-type": "^3.1.0", + "readable-stream": "^2.0.2", + "uuid": "^2.0.1", + "vinyl": "^1.0.0" }, "dependencies": { "file-type": { @@ -821,13 +843,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -836,7 +858,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "uuid": { @@ -851,8 +873,8 @@ "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", "dev": true, "requires": { - "clone": "1.0.2", - "clone-stats": "0.0.1", + "clone": "^1.0.0", + "clone-stats": "^0.0.1", "replace-ext": "0.0.1" } } @@ -865,9 +887,9 @@ "dev": true }, "bytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.1.0.tgz", - "integrity": "sha1-rJPEEOL/ycx89LRks4KJBn9eR7Q=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz", + "integrity": "sha1-NWnt6Lo0MV+rmcPpLLBMciDeH6g=", "dev": true }, "camelcase": { @@ -882,14 +904,14 @@ "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", "dev": true, "requires": { - "camelcase": "2.1.1", - "map-obj": "1.0.1" + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" } }, "caniuse-lite": { - "version": "1.0.30000745", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000745.tgz", - "integrity": "sha1-INb+3hFXpJNRM1ApRvx+DmuIDaU=", + "version": "1.0.30000951", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000951.tgz", + "integrity": "sha512-eRhP+nQ6YUkIcNQ6hnvdhMkdc7n3zadog0KXNRxAZTT2kHjUb1yGn71OrPhSn8MOvlX97g5CR97kGVj8fMsXWg==", "dev": true }, "capture-stack-trace": { @@ -910,10 +932,10 @@ "integrity": "sha1-/7Im/n78VHKI3GLuPpcHPCEtEDQ=", "dev": true, "requires": { - "get-proxy": "1.1.0", - "is-obj": "1.0.1", - "object-assign": "3.0.0", - "tunnel-agent": "0.4.3" + "get-proxy": "^1.0.1", + "is-obj": "^1.0.0", + "object-assign": "^3.0.0", + "tunnel-agent": "^0.4.0" } }, "chalk": { @@ -922,11 +944,11 @@ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" } }, "clap": { @@ -936,24 +958,16 @@ "dev": true, "optional": true, "requires": { - "chalk": "1.1.3" + "chalk": "^1.1.3" } }, "clean-css": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.9.tgz", - "integrity": "sha1-Nc7ornaHpJuYA09w3gDE7dOCYwE=", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz", + "integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==", "dev": true, "requires": { - "source-map": "0.5.7" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "source-map": "~0.6.0" } }, "cli": { @@ -963,30 +977,30 @@ "dev": true, "requires": { "exit": "0.1.2", - "glob": "7.1.2" + "glob": "^7.1.1" }, "dependencies": { "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.3.3", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } } } @@ -997,12 +1011,12 @@ "integrity": "sha1-3hiM3Ekp2DtnrqBBEPvtQP2/Z3U=", "dev": true, "requires": { - "ansi-regex": "2.1.1", - "d": "0.1.1", - "es5-ext": "0.10.31", - "es6-iterator": "2.0.1", - "memoizee": "0.3.10", - "timers-ext": "0.1.2" + "ansi-regex": "2", + "d": "^0.1.1", + "es5-ext": "^0.10.8", + "es6-iterator": "2", + "memoizee": "^0.3.9", + "timers-ext": "0.1" } }, "cliui": { @@ -1011,9 +1025,9 @@ "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wrap-ansi": "2.1.0" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" } }, "clone": { @@ -1040,9 +1054,9 @@ "integrity": "sha1-pikNQT8hemEjL5XkWP84QYz7ARc=", "dev": true, "requires": { - "inherits": "2.0.3", - "process-nextick-args": "1.0.7", - "through2": "2.0.3" + "inherits": "^2.0.1", + "process-nextick-args": "^1.0.6", + "through2": "^2.0.1" } }, "co": { @@ -1058,7 +1072,7 @@ "dev": true, "optional": true, "requires": { - "q": "1.5.0" + "q": "^1.1.2" } }, "code-point-at": { @@ -1073,8 +1087,8 @@ "integrity": "sha1-iQwHw/1OZJU3Y4kRz2keVFi2/KU=", "dev": true, "requires": { - "color-convert": "0.5.3", - "color-string": "0.3.0" + "color-convert": "^0.5.0", + "color-string": "^0.3.0" }, "dependencies": { "color-convert": { @@ -1091,7 +1105,7 @@ "integrity": "sha1-Gsz5fdc5uYO/mU1W/sj5WFNkG3o=", "dev": true, "requires": { - "color-name": "1.1.3" + "color-name": "^1.1.1" } }, "color-name": { @@ -1106,9 +1120,15 @@ "integrity": "sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE=", "dev": true, "requires": { - "color-name": "1.1.3" + "color-name": "^1.0.0" } }, + "color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true + }, "colornames": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/colornames/-/colornames-0.0.2.tgz", @@ -1128,17 +1148,17 @@ "integrity": "sha1-yZx5btMRKLmHalLh7l7gOkpxl0k=", "dev": true, "requires": { - "color": "0.8.0", - "text-hex": "0.0.0" + "color": "0.8.x", + "text-hex": "0.0.x" } }, "combined-stream": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", - "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", "dev": true, "requires": { - "delayed-stream": "1.0.0" + "delayed-stream": "~1.0.0" } }, "commander": { @@ -1147,47 +1167,7 @@ "integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", "dev": true, "requires": { - "graceful-readlink": "1.0.1" - } - }, - "compressible": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.11.tgz", - "integrity": "sha1-FnGKdd4oPtjmBAQWJaIGRYZ5fYo=", - "dev": true, - "requires": { - "mime-db": "1.30.0" - } - }, - "compression": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.5.2.tgz", - "integrity": "sha1-sDuNhub4rSloPLqN+R3cb/x3s5U=", - "dev": true, - "requires": { - "accepts": "1.2.13", - "bytes": "2.1.0", - "compressible": "2.0.11", - "debug": "2.2.0", - "on-headers": "1.0.1", - "vary": "1.0.1" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - } + "graceful-readlink": ">= 1.0.0" } }, "concat-map": { @@ -1202,9 +1182,9 @@ "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.3", - "typedarray": "0.0.6" + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" }, "dependencies": { "isarray": { @@ -1219,13 +1199,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -1234,7 +1214,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -1245,7 +1225,7 @@ "integrity": "sha1-9Vs74q60dgGxCi1SWcz7cP0vHdY=", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "^0.5.1" }, "dependencies": { "source-map": { @@ -1257,103 +1237,30 @@ } }, "connect": { - "version": "2.30.2", - "resolved": "https://registry.npmjs.org/connect/-/connect-2.30.2.tgz", - "integrity": "sha1-jam8vooFTT0xjXTf7JA7XDmhtgk=", - "dev": true, - "requires": { - "basic-auth-connect": "1.0.0", - "body-parser": "1.13.3", - "bytes": "2.1.0", - "compression": "1.5.2", - "connect-timeout": "1.6.2", - "content-type": "1.0.4", - "cookie": "0.1.3", - "cookie-parser": "1.3.5", - "cookie-signature": "1.0.6", - "csurf": "1.8.3", - "debug": "2.2.0", - "depd": "1.0.1", - "errorhandler": "1.4.3", - "express-session": "1.11.3", - "finalhandler": "0.4.0", - "fresh": "0.3.0", - "http-errors": "1.3.1", - "method-override": "2.3.10", - "morgan": "1.6.1", - "multiparty": "3.3.2", - "on-headers": "1.0.1", - "parseurl": "1.3.2", - "pause": "0.1.0", - "qs": "4.0.0", - "response-time": "2.3.2", - "serve-favicon": "2.3.2", - "serve-index": "1.7.3", - "serve-static": "1.10.3", - "type-is": "1.6.15", - "utils-merge": "1.0.0", - "vhost": "3.0.2" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - } + "version": "3.6.6", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.6.tgz", + "integrity": "sha1-Ce/2xVr3I24TcTWnJXSFi2eG9SQ=", + "dev": true, + "requires": { + "debug": "2.6.9", + "finalhandler": "1.1.0", + "parseurl": "~1.3.2", + "utils-merge": "1.0.1" } }, "connect-livereload": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/connect-livereload/-/connect-livereload-0.5.4.tgz", - "integrity": "sha1-gBV9E3HJ83zBQDmrGJWXDRGdw7w=", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/connect-livereload/-/connect-livereload-0.6.1.tgz", + "integrity": "sha512-3R0kMOdL7CjJpU66fzAkCe6HNtd3AavCS4m+uW4KtJjrdGPT0SQEZieAYd+cm+lJoBznNQ4lqipYWkhBMgk00g==", "dev": true }, - "connect-timeout": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/connect-timeout/-/connect-timeout-1.6.2.tgz", - "integrity": "sha1-3ppexh4zoStu2qt7XwYumMWZuI4=", - "dev": true, - "requires": { - "debug": "2.2.0", - "http-errors": "1.3.1", - "ms": "0.7.1", - "on-headers": "1.0.1" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - } - } - }, "console-browserify": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", "dev": true, "requires": { - "date-now": "0.1.4" + "date-now": "^0.1.4" } }, "console-control-strings": { @@ -1374,38 +1281,22 @@ "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", "dev": true }, + "continuable-cache": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/continuable-cache/-/continuable-cache-0.3.1.tgz", + "integrity": "sha1-vXJ6f67XfnH/OYWskzUakSczrQ8=", + "dev": true + }, "convert-source-map": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.0.tgz", "integrity": "sha1-ms1whRxtXf3ZPZKC5e35SgP/RrU=", "dev": true }, - "cookie": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.3.tgz", - "integrity": "sha1-5zSlwUF/zkctWu+Cw4HKu2TRpDU=", - "dev": true - }, - "cookie-parser": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.3.5.tgz", - "integrity": "sha1-nXVVcPtdF4kHcSJ6AjFNm+fPg1Y=", - "dev": true, - "requires": { - "cookie": "0.1.3", - "cookie-signature": "1.0.6" - } - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", - "dev": true - }, "core-js": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.1.tgz", - "integrity": "sha1-rmh03GaTd4m4B1T/VCjfZoGcpQs=", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.5.tgz", + "integrity": "sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A==", "dev": true }, "core-util-is": { @@ -1414,19 +1305,13 @@ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "crc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/crc/-/crc-3.3.0.tgz", - "integrity": "sha1-+mIuG8OIvyVzCQgta2UgDOZwkLo=", - "dev": true - }, "create-error-class": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", "dev": true, "requires": { - "capture-stack-trace": "1.0.0" + "capture-stack-trace": "^1.0.0" } }, "cross-spawn": { @@ -1435,9 +1320,9 @@ "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { - "lru-cache": "4.1.1", - "shebang-command": "1.2.0", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" }, "dependencies": { "lru-cache": { @@ -1446,64 +1331,22 @@ "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", "dev": true, "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } } } }, - "cryptiles": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", - "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", - "dev": true, - "requires": { - "boom": "5.2.0" - }, - "dependencies": { - "boom": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", - "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", - "dev": true, - "requires": { - "hoek": "4.2.0" - } - } - } - }, - "csrf": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/csrf/-/csrf-3.0.6.tgz", - "integrity": "sha1-thEg3c7q/JHnbtUxO7XAsmZ7cQo=", - "dev": true, - "requires": { - "rndm": "1.2.0", - "tsscmp": "1.0.5", - "uid-safe": "2.1.4" - } - }, "css": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.1.tgz", - "integrity": "sha1-c6TIHehdtmTU7mdPfUcIXjstVdw=", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", "dev": true, "requires": { - "inherits": "2.0.3", - "source-map": "0.1.43", - "source-map-resolve": "0.3.1", - "urix": "0.1.0" - }, - "dependencies": { - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", - "dev": true, - "requires": { - "amdefine": "1.0.1" - } - } + "inherits": "^2.0.3", + "source-map": "^0.6.1", + "source-map-resolve": "^0.5.2", + "urix": "^0.1.0" } }, "csso": { @@ -1513,8 +1356,8 @@ "dev": true, "optional": true, "requires": { - "clap": "1.2.3", - "source-map": "0.5.7" + "clap": "^1.0.9", + "source-map": "^0.5.3" }, "dependencies": { "source-map": { @@ -1526,25 +1369,13 @@ } } }, - "csurf": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/csurf/-/csurf-1.8.3.tgz", - "integrity": "sha1-I/KhO/HY/OHQyZZYg5RELLqGpWo=", - "dev": true, - "requires": { - "cookie": "0.1.3", - "cookie-signature": "1.0.6", - "csrf": "3.0.6", - "http-errors": "1.3.1" - } - }, "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", "dev": true, "requires": { - "array-find-index": "1.0.2" + "array-find-index": "^1.0.1" } }, "d": { @@ -1553,7 +1384,7 @@ "integrity": "sha1-2hhMU10Y2O57oqoim5FACfrhEwk=", "dev": true, "requires": { - "es5-ext": "0.10.31" + "es5-ext": "~0.10.2" } }, "dashdash": { @@ -1562,7 +1393,7 @@ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "dev": true, "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "date-now": { @@ -1587,14 +1418,14 @@ } }, "debug-fabulous": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/debug-fabulous/-/debug-fabulous-0.2.1.tgz", - "integrity": "sha512-u0TV6HcfLsZ03xLBhdhSViQMldaiQ2o+8/nSILaXkuNSWvxkx66vYJUAam0Eu7gAilJRX/69J4kKdqajQPaPyw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/debug-fabulous/-/debug-fabulous-1.1.0.tgz", + "integrity": "sha512-GZqvGIgKNlUnHUPQhepnUZFIMoi3dgZKQBzKDeL2g7oJF9SNAji/AAu36dusFUas0O+pae74lNeoIPHqXWDkLg==", "dev": true, "requires": { - "debug": "3.1.0", - "memoizee": "0.4.11", - "object-assign": "4.1.1" + "debug": "3.X", + "memoizee": "0.4.X", + "object-assign": "4.X" }, "dependencies": { "d": { @@ -1603,16 +1434,38 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "0.10.31" + "es5-ext": "^0.10.9" } }, "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "es5-ext": { + "version": "0.10.49", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.49.tgz", + "integrity": "sha512-3NMEhi57E31qdzmYp2jwRArIUsj1HI/RxbQ4bgnSB+AIKIxsAmTiK83bYMifIcpWvEc3P1X30DhUKOqEtF/kvg==", + "dev": true, + "requires": { + "es6-iterator": "~2.0.3", + "es6-symbol": "~3.1.1", + "next-tick": "^1.0.0" + } + }, + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", "dev": true, "requires": { - "ms": "2.0.0" + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" } }, "es6-weak-map": { @@ -1621,28 +1474,34 @@ "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.31", - "es6-iterator": "2.0.1", - "es6-symbol": "3.1.1" + "d": "1", + "es5-ext": "^0.10.14", + "es6-iterator": "^2.0.1", + "es6-symbol": "^3.1.1" } }, "memoizee": { - "version": "0.4.11", - "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.11.tgz", - "integrity": "sha1-vemBdmPJ5A/bKk6hw2cpYIeujI8=", + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.14.tgz", + "integrity": "sha512-/SWFvWegAIYAO4NQMpcX+gcra0yEZu4OntmUdrBaWrJncxOqAziGFlHxc7yjKVK2uu3lpPW27P27wkR82wA8mg==", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.31", - "es6-weak-map": "2.0.2", - "event-emitter": "0.3.5", - "is-promise": "2.1.0", - "lru-queue": "0.1.0", - "next-tick": "1.0.0", - "timers-ext": "0.1.2" + "d": "1", + "es5-ext": "^0.10.45", + "es6-weak-map": "^2.0.2", + "event-emitter": "^0.3.5", + "is-promise": "^2.1", + "lru-queue": "0.1", + "next-tick": "1", + "timers-ext": "^0.1.5" } }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, "next-tick": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", @@ -1654,6 +1513,16 @@ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true + }, + "timers-ext": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", + "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", + "dev": true, + "requires": { + "es5-ext": "~0.10.46", + "next-tick": "1" + } } } }, @@ -1663,21 +1532,27 @@ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true + }, "decompress": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/decompress/-/decompress-3.0.0.tgz", "integrity": "sha1-rx3VDQbjv8QyRh033hGzjA2ZG+0=", "dev": true, "requires": { - "buffer-to-vinyl": "1.1.0", - "concat-stream": "1.6.0", - "decompress-tar": "3.1.0", - "decompress-tarbz2": "3.1.0", - "decompress-targz": "3.1.0", - "decompress-unzip": "3.4.0", - "stream-combiner2": "1.1.1", - "vinyl-assign": "1.2.1", - "vinyl-fs": "2.4.4" + "buffer-to-vinyl": "^1.0.0", + "concat-stream": "^1.4.6", + "decompress-tar": "^3.0.0", + "decompress-tarbz2": "^3.0.0", + "decompress-targz": "^3.0.0", + "decompress-unzip": "^3.0.0", + "stream-combiner2": "^1.1.1", + "vinyl-assign": "^1.0.1", + "vinyl-fs": "^2.2.0" }, "dependencies": { "glob": { @@ -1686,11 +1561,11 @@ "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", "dev": true, "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "2.0.10", - "once": "1.3.3", - "path-is-absolute": "1.0.1" + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "glob-parent": { @@ -1699,8 +1574,8 @@ "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { - "is-glob": "3.1.0", - "path-dirname": "1.0.2" + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" } }, "glob-stream": { @@ -1709,14 +1584,14 @@ "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", "dev": true, "requires": { - "extend": "3.0.1", - "glob": "5.0.15", - "glob-parent": "3.1.0", - "micromatch": "2.3.11", - "ordered-read-streams": "0.3.0", - "through2": "0.6.5", - "to-absolute-glob": "0.1.1", - "unique-stream": "2.2.1" + "extend": "^3.0.0", + "glob": "^5.0.3", + "glob-parent": "^3.0.0", + "micromatch": "^2.3.7", + "ordered-read-streams": "^0.3.0", + "through2": "^0.6.0", + "to-absolute-glob": "^0.1.1", + "unique-stream": "^2.0.2" }, "dependencies": { "isarray": { @@ -1731,10 +1606,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "string_decoder": { @@ -1749,8 +1624,8 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } } } @@ -1767,11 +1642,11 @@ "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", "dev": true, "requires": { - "convert-source-map": "1.5.0", - "graceful-fs": "4.1.11", - "strip-bom": "2.0.0", - "through2": "2.0.3", - "vinyl": "1.2.0" + "convert-source-map": "^1.1.1", + "graceful-fs": "^4.1.2", + "strip-bom": "^2.0.0", + "through2": "^2.0.0", + "vinyl": "^1.0.0" } }, "is-extglob": { @@ -1786,7 +1661,7 @@ "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { - "is-extglob": "2.1.1" + "is-extglob": "^2.1.0" } }, "isarray": { @@ -1807,8 +1682,8 @@ "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", "dev": true, "requires": { - "is-stream": "1.1.0", - "readable-stream": "2.3.3" + "is-stream": "^1.0.1", + "readable-stream": "^2.0.1" } }, "readable-stream": { @@ -1817,13 +1692,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -1832,7 +1707,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "strip-bom": { @@ -1841,7 +1716,7 @@ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.0" } }, "unique-stream": { @@ -1850,8 +1725,8 @@ "integrity": "sha1-WqADz76Uxf+GbE59ZouxxNuts2k=", "dev": true, "requires": { - "json-stable-stringify": "1.0.1", - "through2-filter": "2.0.0" + "json-stable-stringify": "^1.0.0", + "through2-filter": "^2.0.0" } }, "vinyl": { @@ -1860,8 +1735,8 @@ "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", "dev": true, "requires": { - "clone": "1.0.2", - "clone-stats": "0.0.1", + "clone": "^1.0.0", + "clone-stats": "^0.0.1", "replace-ext": "0.0.1" } }, @@ -1871,23 +1746,23 @@ "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", "dev": true, "requires": { - "duplexify": "3.5.1", - "glob-stream": "5.3.5", - "graceful-fs": "4.1.11", + "duplexify": "^3.2.0", + "glob-stream": "^5.3.2", + "graceful-fs": "^4.0.0", "gulp-sourcemaps": "1.6.0", - "is-valid-glob": "0.3.0", - "lazystream": "1.0.0", - "lodash.isequal": "4.5.0", - "merge-stream": "1.0.1", - "mkdirp": "0.5.1", - "object-assign": "4.1.1", - "readable-stream": "2.3.3", - "strip-bom": "2.0.0", - "strip-bom-stream": "1.0.0", - "through2": "2.0.3", - "through2-filter": "2.0.0", - "vali-date": "1.0.0", - "vinyl": "1.2.0" + "is-valid-glob": "^0.3.0", + "lazystream": "^1.0.0", + "lodash.isequal": "^4.0.0", + "merge-stream": "^1.0.0", + "mkdirp": "^0.5.0", + "object-assign": "^4.0.0", + "readable-stream": "^2.0.4", + "strip-bom": "^2.0.0", + "strip-bom-stream": "^1.0.0", + "through2": "^2.0.0", + "through2-filter": "^2.0.0", + "vali-date": "^1.0.0", + "vinyl": "^1.0.0" } } } @@ -1898,12 +1773,12 @@ "integrity": "sha1-IXx4n5uURQ76rcXF5TeXj8MzxGY=", "dev": true, "requires": { - "is-tar": "1.0.0", - "object-assign": "2.1.1", - "strip-dirs": "1.1.1", - "tar-stream": "1.5.4", - "through2": "0.6.5", - "vinyl": "0.4.6" + "is-tar": "^1.0.0", + "object-assign": "^2.0.0", + "strip-dirs": "^1.0.0", + "tar-stream": "^1.1.1", + "through2": "^0.6.1", + "vinyl": "^0.4.3" }, "dependencies": { "clone": { @@ -1924,10 +1799,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "through2": { @@ -1936,8 +1811,8 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } }, "vinyl": { @@ -1946,8 +1821,8 @@ "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", "dev": true, "requires": { - "clone": "0.2.0", - "clone-stats": "0.0.1" + "clone": "^0.2.0", + "clone-stats": "^0.0.1" } } } @@ -1958,13 +1833,13 @@ "integrity": "sha1-iyOTVoE1X58YnYclag+L3ZbZZm0=", "dev": true, "requires": { - "is-bzip2": "1.0.0", - "object-assign": "2.1.1", - "seek-bzip": "1.0.5", - "strip-dirs": "1.1.1", - "tar-stream": "1.5.4", - "through2": "0.6.5", - "vinyl": "0.4.6" + "is-bzip2": "^1.0.0", + "object-assign": "^2.0.0", + "seek-bzip": "^1.0.3", + "strip-dirs": "^1.0.0", + "tar-stream": "^1.1.1", + "through2": "^0.6.1", + "vinyl": "^0.4.3" }, "dependencies": { "clone": { @@ -1985,10 +1860,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "through2": { @@ -1997,8 +1872,8 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } }, "vinyl": { @@ -2007,8 +1882,8 @@ "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", "dev": true, "requires": { - "clone": "0.2.0", - "clone-stats": "0.0.1" + "clone": "^0.2.0", + "clone-stats": "^0.0.1" } } } @@ -2019,12 +1894,12 @@ "integrity": "sha1-ssE9+YFmJomRtxXWRH9kLpaW9aA=", "dev": true, "requires": { - "is-gzip": "1.0.0", - "object-assign": "2.1.1", - "strip-dirs": "1.1.1", - "tar-stream": "1.5.4", - "through2": "0.6.5", - "vinyl": "0.4.6" + "is-gzip": "^1.0.0", + "object-assign": "^2.0.0", + "strip-dirs": "^1.0.0", + "tar-stream": "^1.1.1", + "through2": "^0.6.1", + "vinyl": "^0.4.3" }, "dependencies": { "clone": { @@ -2045,10 +1920,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "through2": { @@ -2057,8 +1932,8 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } }, "vinyl": { @@ -2067,8 +1942,8 @@ "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", "dev": true, "requires": { - "clone": "0.2.0", - "clone-stats": "0.0.1" + "clone": "^0.2.0", + "clone-stats": "^0.0.1" } } } @@ -2079,13 +1954,13 @@ "integrity": "sha1-YUdbQVIGa74/7hL51inRX+ZHjus=", "dev": true, "requires": { - "is-zip": "1.0.0", - "read-all-stream": "3.1.0", - "stat-mode": "0.2.2", - "strip-dirs": "1.1.1", - "through2": "2.0.3", - "vinyl": "1.2.0", - "yauzl": "2.8.0" + "is-zip": "^1.0.0", + "read-all-stream": "^3.0.0", + "stat-mode": "^0.2.0", + "strip-dirs": "^1.0.0", + "through2": "^2.0.0", + "vinyl": "^1.0.0", + "yauzl": "^2.2.1" }, "dependencies": { "vinyl": { @@ -2094,8 +1969,8 @@ "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", "dev": true, "requires": { - "clone": "1.0.2", - "clone-stats": "0.0.1", + "clone": "^1.0.0", + "clone-stats": "^0.0.1", "replace-ext": "0.0.1" } } @@ -2113,7 +1988,7 @@ "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", "dev": true, "requires": { - "clone": "1.0.2" + "clone": "^1.0.2" } }, "del": { @@ -2122,12 +1997,12 @@ "integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=", "dev": true, "requires": { - "globby": "6.1.0", - "is-path-cwd": "1.0.0", - "is-path-in-cwd": "1.0.0", - "p-map": "1.2.0", - "pify": "3.0.0", - "rimraf": "2.6.2" + "globby": "^6.1.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "p-map": "^1.1.1", + "pify": "^3.0.0", + "rimraf": "^2.2.8" } }, "delayed-stream": { @@ -2143,9 +2018,9 @@ "dev": true }, "depd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.0.1.tgz", - "integrity": "sha1-gK7GTJ1tl+ZcwqnKqTwKpqv3Oqo=", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", "dev": true }, "deprecated": { @@ -2166,7 +2041,7 @@ "integrity": "sha1-STXe39lIhkjgBrASlWbpOGcR6mM=", "dev": true, "requires": { - "fs-exists-sync": "0.1.0" + "fs-exists-sync": "^0.1.0" } }, "detect-indent": { @@ -2175,7 +2050,7 @@ "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", "dev": true, "requires": { - "repeating": "2.0.1" + "repeating": "^2.0.0" } }, "detect-newline": { @@ -2190,9 +2065,9 @@ "integrity": "sha1-rM2wgMgrsl0N1zQwqeaof7tDFUE=", "dev": true, "requires": { - "colorspace": "1.0.1", - "enabled": "1.0.2", - "kuler": "0.0.0" + "colorspace": "1.0.x", + "enabled": "1.0.x", + "kuler": "0.0.x" } }, "dom-serializer": { @@ -2201,8 +2076,8 @@ "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", "dev": true, "requires": { - "domelementtype": "1.1.3", - "entities": "1.1.1" + "domelementtype": "~1.1.1", + "entities": "~1.1.1" }, "dependencies": { "domelementtype": { @@ -2225,7 +2100,7 @@ "integrity": "sha1-iS5HAAqZvlW783dP/qBWHYh5wlk=", "dev": true, "requires": { - "domelementtype": "1.3.0" + "domelementtype": "1" } }, "domutils": { @@ -2234,8 +2109,8 @@ "integrity": "sha1-GVjMC0yUJuntNn+xyOhUiRsPo/8=", "dev": true, "requires": { - "dom-serializer": "0.1.0", - "domelementtype": "1.3.0" + "dom-serializer": "0", + "domelementtype": "1" } }, "download": { @@ -2244,21 +2119,21 @@ "integrity": "sha1-qlX9rTktldS2jowr4D4MKqIbqaw=", "dev": true, "requires": { - "caw": "1.2.0", - "concat-stream": "1.6.0", - "each-async": "1.1.1", - "filenamify": "1.2.1", - "got": "5.7.1", - "gulp-decompress": "1.2.0", - "gulp-rename": "1.2.2", - "is-url": "1.2.2", - "object-assign": "4.1.1", - "read-all-stream": "3.1.0", - "readable-stream": "2.3.3", - "stream-combiner2": "1.1.1", - "vinyl": "1.2.0", - "vinyl-fs": "2.4.4", - "ware": "1.3.0" + "caw": "^1.0.1", + "concat-stream": "^1.4.7", + "each-async": "^1.0.0", + "filenamify": "^1.0.1", + "got": "^5.0.0", + "gulp-decompress": "^1.2.0", + "gulp-rename": "^1.2.0", + "is-url": "^1.2.0", + "object-assign": "^4.0.1", + "read-all-stream": "^3.0.0", + "readable-stream": "^2.0.2", + "stream-combiner2": "^1.1.1", + "vinyl": "^1.0.0", + "vinyl-fs": "^2.2.0", + "ware": "^1.2.0" }, "dependencies": { "glob": { @@ -2267,11 +2142,11 @@ "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", "dev": true, "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "2.0.10", - "once": "1.3.3", - "path-is-absolute": "1.0.1" + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "glob-parent": { @@ -2280,8 +2155,8 @@ "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { - "is-glob": "3.1.0", - "path-dirname": "1.0.2" + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" } }, "glob-stream": { @@ -2290,14 +2165,14 @@ "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", "dev": true, "requires": { - "extend": "3.0.1", - "glob": "5.0.15", - "glob-parent": "3.1.0", - "micromatch": "2.3.11", - "ordered-read-streams": "0.3.0", - "through2": "0.6.5", - "to-absolute-glob": "0.1.1", - "unique-stream": "2.2.1" + "extend": "^3.0.0", + "glob": "^5.0.3", + "glob-parent": "^3.0.0", + "micromatch": "^2.3.7", + "ordered-read-streams": "^0.3.0", + "through2": "^0.6.0", + "to-absolute-glob": "^0.1.1", + "unique-stream": "^2.0.2" }, "dependencies": { "isarray": { @@ -2312,10 +2187,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "string_decoder": { @@ -2330,8 +2205,8 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } } } @@ -2348,11 +2223,11 @@ "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", "dev": true, "requires": { - "convert-source-map": "1.5.0", - "graceful-fs": "4.1.11", - "strip-bom": "2.0.0", - "through2": "2.0.3", - "vinyl": "1.2.0" + "convert-source-map": "^1.1.1", + "graceful-fs": "^4.1.2", + "strip-bom": "^2.0.0", + "through2": "^2.0.0", + "vinyl": "^1.0.0" } }, "is-extglob": { @@ -2367,7 +2242,7 @@ "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { - "is-extglob": "2.1.1" + "is-extglob": "^2.1.0" } }, "isarray": { @@ -2388,8 +2263,8 @@ "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", "dev": true, "requires": { - "is-stream": "1.1.0", - "readable-stream": "2.3.3" + "is-stream": "^1.0.1", + "readable-stream": "^2.0.1" } }, "readable-stream": { @@ -2398,13 +2273,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -2413,7 +2288,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "strip-bom": { @@ -2422,7 +2297,7 @@ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.0" } }, "unique-stream": { @@ -2431,8 +2306,8 @@ "integrity": "sha1-WqADz76Uxf+GbE59ZouxxNuts2k=", "dev": true, "requires": { - "json-stable-stringify": "1.0.1", - "through2-filter": "2.0.0" + "json-stable-stringify": "^1.0.0", + "through2-filter": "^2.0.0" } }, "vinyl": { @@ -2441,8 +2316,8 @@ "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", "dev": true, "requires": { - "clone": "1.0.2", - "clone-stats": "0.0.1", + "clone": "^1.0.0", + "clone-stats": "^0.0.1", "replace-ext": "0.0.1" } }, @@ -2452,23 +2327,23 @@ "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", "dev": true, "requires": { - "duplexify": "3.5.1", - "glob-stream": "5.3.5", - "graceful-fs": "4.1.11", + "duplexify": "^3.2.0", + "glob-stream": "^5.3.2", + "graceful-fs": "^4.0.0", "gulp-sourcemaps": "1.6.0", - "is-valid-glob": "0.3.0", - "lazystream": "1.0.0", - "lodash.isequal": "4.5.0", - "merge-stream": "1.0.1", - "mkdirp": "0.5.1", - "object-assign": "4.1.1", - "readable-stream": "2.3.3", - "strip-bom": "2.0.0", - "strip-bom-stream": "1.0.0", - "through2": "2.0.3", - "through2-filter": "2.0.0", - "vali-date": "1.0.0", - "vinyl": "1.2.0" + "is-valid-glob": "^0.3.0", + "lazystream": "^1.0.0", + "lodash.isequal": "^4.0.0", + "merge-stream": "^1.0.0", + "mkdirp": "^0.5.0", + "object-assign": "^4.0.0", + "readable-stream": "^2.0.4", + "strip-bom": "^2.0.0", + "strip-bom-stream": "^1.0.0", + "through2": "^2.0.0", + "through2-filter": "^2.0.0", + "vali-date": "^1.0.0", + "vinyl": "^1.0.0" } } } @@ -2485,7 +2360,7 @@ "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", "dev": true, "requires": { - "readable-stream": "1.1.14" + "readable-stream": "~1.1.9" } }, "duplexify": { @@ -2494,10 +2369,10 @@ "integrity": "sha512-j5goxHTwVED1Fpe5hh3q9R93Kip0Bg2KVAt4f8CEYM3UEwYcPSvWbXaUQOzdX/HtiNomipv+gU7ASQPDbV7pGQ==", "dev": true, "requires": { - "end-of-stream": "1.4.0", - "inherits": "2.0.3", - "readable-stream": "2.3.3", - "stream-shift": "1.0.0" + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" }, "dependencies": { "end-of-stream": { @@ -2506,7 +2381,7 @@ "integrity": "sha1-epDYM+/abPpurA9JSduw+tOmMgY=", "dev": true, "requires": { - "once": "1.4.0" + "once": "^1.4.0" } }, "isarray": { @@ -2521,7 +2396,7 @@ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "readable-stream": { @@ -2530,13 +2405,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -2545,7 +2420,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -2556,18 +2431,18 @@ "integrity": "sha1-3uUim98KtrogEqOV4bhpq/iBNHM=", "dev": true, "requires": { - "onetime": "1.1.0", - "set-immediate-shim": "1.0.1" + "onetime": "^1.0.0", + "set-immediate-shim": "^1.0.0" } }, "ecc-jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, - "optional": true, "requires": { - "jsbn": "0.1.1" + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" } }, "ee-first": { @@ -2577,9 +2452,9 @@ "dev": true }, "electron-to-chromium": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.24.tgz", - "integrity": "sha1-m3uIuwXOufoBahd4M8wt3jiPIbY=", + "version": "1.3.116", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.116.tgz", + "integrity": "sha512-NKwKAXzur5vFCZYBHpdWjTMO8QptNLNP80nItkSIgUOapPAo9Uia+RvkCaZJtO7fhQaVElSvBPWEc2ku6cKsPA==", "dev": true }, "emits": { @@ -2594,16 +2469,22 @@ "integrity": "sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M=", "dev": true, "requires": { - "env-variable": "0.0.3" + "env-variable": "0.0.x" } }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "dev": true + }, "end-of-stream": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz", "integrity": "sha1-jhdyBsPICDfYVjLouTWd/osvbq8=", "dev": true, "requires": { - "once": "1.3.3" + "once": "~1.3.0" } }, "entities": { @@ -2618,41 +2499,23 @@ "integrity": "sha1-uGwWQb5WECZ9UG8YBx6nbXBwl8s=", "dev": true }, - "error-ex": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", - "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "error": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/error/-/error-7.0.2.tgz", + "integrity": "sha1-pfdf/02ZJhJt2sDqXcOOaJFTywI=", "dev": true, "requires": { - "is-arrayish": "0.2.1" + "string-template": "~0.2.1", + "xtend": "~4.0.0" } }, - "errorhandler": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.4.3.tgz", - "integrity": "sha1-t7cO2PNZ6duICS8tIMD4MUIK2D8=", + "error-ex": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", + "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", "dev": true, "requires": { - "accepts": "1.3.4", - "escape-html": "1.0.3" - }, - "dependencies": { - "accepts": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz", - "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=", - "dev": true, - "requires": { - "mime-types": "2.1.17", - "negotiator": "0.6.1" - } - }, - "negotiator": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", - "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", - "dev": true - } + "is-arrayish": "^0.2.1" } }, "es5-ext": { @@ -2661,8 +2524,8 @@ "integrity": "sha1-e7k4yVp/G59ygJLcCcQe3MOY7v4=", "dev": true, "requires": { - "es6-iterator": "2.0.1", - "es6-symbol": "3.1.1" + "es6-iterator": "~2.0.1", + "es6-symbol": "~3.1.1" } }, "es6-iterator": { @@ -2671,9 +2534,9 @@ "integrity": "sha1-jjGcnwRTv1ddN0lAplWSDlnKVRI=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.31", - "es6-symbol": "3.1.1" + "d": "1", + "es5-ext": "^0.10.14", + "es6-symbol": "^3.1" }, "dependencies": { "d": { @@ -2682,7 +2545,7 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "0.10.31" + "es5-ext": "^0.10.9" } } } @@ -2693,8 +2556,8 @@ "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.31" + "d": "1", + "es5-ext": "~0.10.14" }, "dependencies": { "d": { @@ -2703,7 +2566,7 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "0.10.31" + "es5-ext": "^0.10.9" } } } @@ -2714,10 +2577,10 @@ "integrity": "sha1-cGzvnpmqI2undmwjnIueKG6n0ig=", "dev": true, "requires": { - "d": "0.1.1", - "es5-ext": "0.10.31", - "es6-iterator": "0.1.3", - "es6-symbol": "2.0.1" + "d": "~0.1.1", + "es5-ext": "~0.10.6", + "es6-iterator": "~0.1.3", + "es6-symbol": "~2.0.1" }, "dependencies": { "es6-iterator": { @@ -2726,9 +2589,9 @@ "integrity": "sha1-1vWLjE/EE8JJtLqhl2j45NfIlE4=", "dev": true, "requires": { - "d": "0.1.1", - "es5-ext": "0.10.31", - "es6-symbol": "2.0.1" + "d": "~0.1.1", + "es5-ext": "~0.10.5", + "es6-symbol": "~2.0.1" } }, "es6-symbol": { @@ -2737,8 +2600,8 @@ "integrity": "sha1-dhtcZ8/U8dGK+yNPaR1nhoLLO/M=", "dev": true, "requires": { - "d": "0.1.1", - "es5-ext": "0.10.31" + "d": "~0.1.1", + "es5-ext": "~0.10.5" } } } @@ -2769,9 +2632,9 @@ "dev": true }, "etag": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.7.0.tgz", - "integrity": "sha1-A9MLX2fdbmMtKUXTDWZScxo01dg=", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", "dev": true }, "event-emitter": { @@ -2780,8 +2643,8 @@ "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.31" + "d": "1", + "es5-ext": "~0.10.14" }, "dependencies": { "d": { @@ -2790,7 +2653,7 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "0.10.31" + "es5-ext": "^0.10.9" } } } @@ -2801,13 +2664,13 @@ "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", "dev": true, "requires": { - "duplexer": "0.1.1", - "from": "0.1.7", - "map-stream": "0.1.0", + "duplexer": "~0.1.1", + "from": "~0", + "map-stream": "~0.1.0", "pause-stream": "0.0.11", - "split": "0.3.3", - "stream-combiner": "0.0.4", - "through": "2.3.8" + "split": "0.3", + "stream-combiner": "~0.0.4", + "through": "~2.3.1" } }, "exec-buffer": { @@ -2816,11 +2679,11 @@ "integrity": "sha512-wsiD+2Tp6BWHoVv3B+5Dcx6E7u5zky+hUwOHjuH2hKSLR3dvRmX8fk8UD8uqQixHs4Wk6eDmiegVrMPjKj7wpA==", "dev": true, "requires": { - "execa": "0.7.0", - "p-finally": "1.0.0", - "pify": "3.0.0", - "rimraf": "2.6.2", - "tempfile": "2.0.0" + "execa": "^0.7.0", + "p-finally": "^1.0.0", + "pify": "^3.0.0", + "rimraf": "^2.5.4", + "tempfile": "^2.0.0" } }, "exec-series": { @@ -2829,8 +2692,8 @@ "integrity": "sha1-bSV6m+rEgqhyx3g7yGFYOfx3FDo=", "dev": true, "requires": { - "async-each-series": "1.1.0", - "object-assign": "4.1.1" + "async-each-series": "^1.1.0", + "object-assign": "^4.1.0" }, "dependencies": { "object-assign": { @@ -2847,13 +2710,13 @@ "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", "dev": true, "requires": { - "cross-spawn": "5.1.0", - "get-stream": "3.0.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" } }, "executable": { @@ -2862,7 +2725,7 @@ "integrity": "sha1-h3mA6REvM5EGbaNyZd562ENKtNk=", "dev": true, "requires": { - "meow": "3.7.0" + "meow": "^3.1.0" } }, "exit": { @@ -2877,7 +2740,7 @@ "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", "dev": true, "requires": { - "is-posix-bracket": "0.1.1" + "is-posix-bracket": "^0.1.0" } }, "expand-range": { @@ -2886,7 +2749,7 @@ "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { - "fill-range": "2.2.3" + "fill-range": "^2.1.0" } }, "expand-tilde": { @@ -2895,50 +2758,7 @@ "integrity": "sha1-C4HrqJflo9MdHD0QL48BRB5VlEk=", "dev": true, "requires": { - "os-homedir": "1.0.2" - } - }, - "express-session": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.11.3.tgz", - "integrity": "sha1-XMmPP1/4Ttg1+Ry/CqvQxxB0AK8=", - "dev": true, - "requires": { - "cookie": "0.1.3", - "cookie-signature": "1.0.6", - "crc": "3.3.0", - "debug": "2.2.0", - "depd": "1.0.1", - "on-headers": "1.0.1", - "parseurl": "1.3.2", - "uid-safe": "2.0.0", - "utils-merge": "1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - }, - "uid-safe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.0.0.tgz", - "integrity": "sha1-p/PGymSh9qXQTsDvPkw9U2cxcTc=", - "dev": true, - "requires": { - "base64-url": "1.2.1" - } - } + "os-homedir": "^1.0.1" } }, "extend": { @@ -2953,7 +2773,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } }, "extglob": { @@ -2962,7 +2782,7 @@ "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "extsprintf": { @@ -2977,14 +2797,20 @@ "integrity": "sha1-Rb4X0Cu5kX1gzP/UmVyZnmyMmUg=", "dev": true, "requires": { - "chalk": "1.1.3", - "time-stamp": "1.1.0" + "chalk": "^1.1.1", + "time-stamp": "^1.0.0" } }, "fast-deep-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz", - "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", "dev": true }, "faye-websocket": { @@ -2993,7 +2819,7 @@ "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", "dev": true, "requires": { - "websocket-driver": "0.7.0" + "websocket-driver": ">=0.5.1" } }, "fd-slicer": { @@ -3002,7 +2828,7 @@ "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", "dev": true, "requires": { - "pend": "1.2.0" + "pend": "~1.2.0" } }, "figures": { @@ -3011,8 +2837,8 @@ "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5", - "object-assign": "4.1.1" + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" }, "dependencies": { "object-assign": { @@ -3047,9 +2873,9 @@ "integrity": "sha1-qfL/0RxQO+0wABUCknI3jx8TZaU=", "dev": true, "requires": { - "filename-reserved-regex": "1.0.0", - "strip-outer": "1.0.0", - "trim-repeated": "1.0.0" + "filename-reserved-regex": "^1.0.0", + "strip-outer": "^1.0.0", + "trim-repeated": "^1.0.0" } }, "fill-range": { @@ -3058,46 +2884,26 @@ "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", "dev": true, "requires": { - "is-number": "2.1.0", - "isobject": "2.1.0", - "randomatic": "1.1.7", - "repeat-element": "1.1.2", - "repeat-string": "1.6.1" + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^1.1.3", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" } }, "finalhandler": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.4.0.tgz", - "integrity": "sha1-llpS2ejQXSuFdUhUH7ibU6JJfZs=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz", + "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", "dev": true, "requires": { - "debug": "2.2.0", - "escape-html": "1.0.2", - "on-finished": "2.3.0", - "unpipe": "1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "escape-html": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.2.tgz", - "integrity": "sha1-130y+pjjjC9BroXpJ44ODmuhAiw=", - "dev": true - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - } + "debug": "2.6.9", + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.2", + "statuses": "~1.3.1", + "unpipe": "~1.0.0" } }, "find-index": { @@ -3112,8 +2918,8 @@ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "find-versions": { @@ -3122,10 +2928,10 @@ "integrity": "sha1-y96fEuOFdaCvG+G5osXV/Y8Ya2I=", "dev": true, "requires": { - "array-uniq": "1.0.3", - "get-stdin": "4.0.1", - "meow": "3.7.0", - "semver-regex": "1.0.0" + "array-uniq": "^1.0.0", + "get-stdin": "^4.0.1", + "meow": "^3.5.0", + "semver-regex": "^1.0.0" } }, "findup-sync": { @@ -3134,10 +2940,10 @@ "integrity": "sha1-QAQ5Kee8YK3wt/SCfExudaDeyhI=", "dev": true, "requires": { - "detect-file": "0.1.0", - "is-glob": "2.0.1", - "micromatch": "2.3.11", - "resolve-dir": "0.1.1" + "detect-file": "^0.1.0", + "is-glob": "^2.0.1", + "micromatch": "^2.3.7", + "resolve-dir": "^0.1.0" } }, "fined": { @@ -3146,11 +2952,11 @@ "integrity": "sha1-s33IRLdqL15wgeiE98CuNE8VNHY=", "dev": true, "requires": { - "expand-tilde": "2.0.2", - "is-plain-object": "2.0.4", - "object.defaults": "1.1.0", - "object.pick": "1.3.0", - "parse-filepath": "1.0.1" + "expand-tilde": "^2.0.2", + "is-plain-object": "^2.0.3", + "object.defaults": "^1.1.0", + "object.pick": "^1.2.0", + "parse-filepath": "^1.0.1" }, "dependencies": { "expand-tilde": { @@ -3159,7 +2965,7 @@ "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", "dev": true, "requires": { - "homedir-polyfill": "1.0.1" + "homedir-polyfill": "^1.0.1" } } } @@ -3188,7 +2994,7 @@ "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", "dev": true, "requires": { - "for-in": "1.0.2" + "for-in": "^1.0.1" } }, "forever-agent": { @@ -3204,20 +3010,20 @@ "dev": true }, "form-data": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.1.tgz", - "integrity": "sha1-b7lPvXGIUwbXPRXMSX/kzE7NRL8=", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "dev": true, "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.5", - "mime-types": "2.1.17" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" } }, "fresh": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz", - "integrity": "sha1-ZR+DjiJCTnVm3hYdg1jKoZn4PU8=", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", "dev": true }, "from": { @@ -3244,34 +3050,40 @@ "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "inherits": "2.0.3", - "mkdirp": "0.5.1", - "rimraf": "2.6.2" + "graceful-fs": "^4.1.2", + "inherits": "~2.0.0", + "mkdirp": ">=0.5 0", + "rimraf": "2" }, "dependencies": { "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", "dev": true } } }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, "gauge": { "version": "2.7.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" }, "dependencies": { "object-assign": { @@ -3288,13 +3100,13 @@ "integrity": "sha1-QLcJU30k0dRXZ9takIaJ3+aaxE8=", "dev": true, "requires": { - "globule": "0.1.0" + "globule": "~0.1.0" } }, "get-caller-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", "dev": true }, "get-proxy": { @@ -3303,7 +3115,7 @@ "integrity": "sha1-iUhUSRvFkbDxR9euVw9cZ4tyVus=", "dev": true, "requires": { - "rc": "1.2.1" + "rc": "^1.1.2" } }, "get-stdin": { @@ -3324,7 +3136,7 @@ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "gifsicle": { @@ -3334,9 +3146,9 @@ "dev": true, "optional": true, "requires": { - "bin-build": "2.2.0", - "bin-wrapper": "3.0.2", - "logalot": "2.1.0" + "bin-build": "^2.0.0", + "bin-wrapper": "^3.0.0", + "logalot": "^2.0.0" } }, "glob": { @@ -3345,10 +3157,10 @@ "integrity": "sha1-xstz0yJsHv7wTePFbQEvAzd+4V8=", "dev": true, "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "2.0.10", - "once": "1.3.3" + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^2.0.1", + "once": "^1.3.0" } }, "glob-base": { @@ -3357,8 +3169,8 @@ "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", "dev": true, "requires": { - "glob-parent": "2.0.0", - "is-glob": "2.0.1" + "glob-parent": "^2.0.0", + "is-glob": "^2.0.0" } }, "glob-parent": { @@ -3367,7 +3179,7 @@ "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, "requires": { - "is-glob": "2.0.1" + "is-glob": "^2.0.0" } }, "glob-stream": { @@ -3376,12 +3188,12 @@ "integrity": "sha1-kXCl8St5Awb9/lmPMT+PeVT9FDs=", "dev": true, "requires": { - "glob": "4.5.3", - "glob2base": "0.0.12", - "minimatch": "2.0.10", - "ordered-read-streams": "0.1.0", - "through2": "0.6.5", - "unique-stream": "1.0.0" + "glob": "^4.3.1", + "glob2base": "^0.0.12", + "minimatch": "^2.0.1", + "ordered-read-streams": "^0.1.0", + "through2": "^0.6.1", + "unique-stream": "^1.0.0" }, "dependencies": { "readable-stream": { @@ -3390,10 +3202,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "through2": { @@ -3402,8 +3214,8 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } } } @@ -3414,7 +3226,7 @@ "integrity": "sha1-uVtKjfdLOcgymLDAXJeLTZo7cQs=", "dev": true, "requires": { - "gaze": "0.5.2" + "gaze": "^0.5.1" } }, "glob2base": { @@ -3423,7 +3235,7 @@ "integrity": "sha1-nUGbPijxLoOjYhZKJ3BVkiycDVY=", "dev": true, "requires": { - "find-index": "0.1.1" + "find-index": "^0.1.1" } }, "global-modules": { @@ -3432,8 +3244,8 @@ "integrity": "sha1-6lo77ULG1s6ZWk+KEmm12uIjgo0=", "dev": true, "requires": { - "global-prefix": "0.1.5", - "is-windows": "0.2.0" + "global-prefix": "^0.1.4", + "is-windows": "^0.2.0" } }, "global-prefix": { @@ -3442,10 +3254,10 @@ "integrity": "sha1-jTvGuNo8qBEqFg2NSW/wRiv+948=", "dev": true, "requires": { - "homedir-polyfill": "1.0.1", - "ini": "1.3.4", - "is-windows": "0.2.0", - "which": "1.3.0" + "homedir-polyfill": "^1.0.0", + "ini": "^1.3.4", + "is-windows": "^0.2.0", + "which": "^1.2.12" } }, "globals": { @@ -3460,11 +3272,11 @@ "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", "dev": true, "requires": { - "array-union": "1.0.2", - "glob": "7.1.2", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" }, "dependencies": { "glob": { @@ -3473,12 +3285,12 @@ "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.3.3", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "minimatch": { @@ -3487,7 +3299,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } }, "object-assign": { @@ -3510,9 +3322,9 @@ "integrity": "sha1-2cjt3h2nnRJaFRt5UzuXhnY0auU=", "dev": true, "requires": { - "glob": "3.1.21", - "lodash": "1.0.2", - "minimatch": "0.2.14" + "glob": "~3.1.21", + "lodash": "~1.0.1", + "minimatch": "~0.2.11" }, "dependencies": { "glob": { @@ -3521,9 +3333,9 @@ "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", "dev": true, "requires": { - "graceful-fs": "1.2.3", - "inherits": "1.0.2", - "minimatch": "0.2.14" + "graceful-fs": "~1.2.0", + "inherits": "1", + "minimatch": "~0.2.11" } }, "graceful-fs": { @@ -3544,8 +3356,8 @@ "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", "dev": true, "requires": { - "lru-cache": "2.7.3", - "sigmund": "1.0.1" + "lru-cache": "2", + "sigmund": "~1.0.0" } } } @@ -3556,7 +3368,7 @@ "integrity": "sha1-f+DxmfV6yQbPUS/urY+Q7kooT8U=", "dev": true, "requires": { - "sparkles": "1.0.0" + "sparkles": "^1.0.0" } }, "got": { @@ -3565,21 +3377,21 @@ "integrity": "sha1-X4FjWmHkplifGAVp6k44FoClHzU=", "dev": true, "requires": { - "create-error-class": "3.0.2", - "duplexer2": "0.1.4", - "is-redirect": "1.0.0", - "is-retry-allowed": "1.1.0", - "is-stream": "1.1.0", - "lowercase-keys": "1.0.0", - "node-status-codes": "1.0.0", - "object-assign": "4.1.1", - "parse-json": "2.2.0", - "pinkie-promise": "2.0.1", - "read-all-stream": "3.1.0", - "readable-stream": "2.3.3", - "timed-out": "3.1.3", - "unzip-response": "1.0.2", - "url-parse-lax": "1.0.0" + "create-error-class": "^3.0.1", + "duplexer2": "^0.1.4", + "is-redirect": "^1.0.0", + "is-retry-allowed": "^1.0.0", + "is-stream": "^1.0.0", + "lowercase-keys": "^1.0.0", + "node-status-codes": "^1.0.0", + "object-assign": "^4.0.1", + "parse-json": "^2.1.0", + "pinkie-promise": "^2.0.0", + "read-all-stream": "^3.0.0", + "readable-stream": "^2.0.5", + "timed-out": "^3.0.0", + "unzip-response": "^1.0.2", + "url-parse-lax": "^1.0.0" }, "dependencies": { "duplexer2": { @@ -3588,7 +3400,7 @@ "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", "dev": true, "requires": { - "readable-stream": "2.3.3" + "readable-stream": "^2.0.2" } }, "isarray": { @@ -3609,13 +3421,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -3624,7 +3436,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -3635,7 +3447,7 @@ "integrity": "sha1-dhPHeKGv6mLyXGMKCG1/Osu92Bg=", "dev": true, "requires": { - "natives": "1.1.0" + "natives": "^1.1.0" } }, "graceful-readlink": { @@ -3656,66 +3468,169 @@ "integrity": "sha1-VxzkWSjdQK9lFPxAEYZgFsE4RbQ=", "dev": true, "requires": { - "archy": "1.0.0", - "chalk": "1.1.3", - "deprecated": "0.0.1", - "gulp-util": "3.0.8", - "interpret": "1.0.4", - "liftoff": "2.3.0", - "minimist": "1.2.0", - "orchestrator": "0.3.8", - "pretty-hrtime": "1.0.3", - "semver": "4.3.6", - "tildify": "1.2.0", - "v8flags": "2.1.1", - "vinyl-fs": "0.3.14" + "archy": "^1.0.0", + "chalk": "^1.0.0", + "deprecated": "^0.0.1", + "gulp-util": "^3.0.0", + "interpret": "^1.0.0", + "liftoff": "^2.1.0", + "minimist": "^1.1.0", + "orchestrator": "^0.3.0", + "pretty-hrtime": "^1.0.0", + "semver": "^4.1.0", + "tildify": "^1.0.0", + "v8flags": "^2.0.2", + "vinyl-fs": "^0.3.0" } }, "gulp-autoprefixer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/gulp-autoprefixer/-/gulp-autoprefixer-4.0.0.tgz", - "integrity": "sha1-4AqMVxuF0GUWrCY0G+kN/Z/B6rA=", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/gulp-autoprefixer/-/gulp-autoprefixer-4.1.0.tgz", + "integrity": "sha1-Bkr3PMAsrayP800L+T/9+5TqEqo=", "dev": true, "requires": { - "autoprefixer": "7.1.5", - "gulp-util": "3.0.8", - "postcss": "6.0.13", - "through2": "2.0.3", - "vinyl-sourcemaps-apply": "0.2.1" + "autoprefixer": "^7.0.0", + "fancy-log": "^1.3.2", + "plugin-error": "^0.1.2", + "postcss": "^6.0.1", + "through2": "^2.0.0", + "vinyl-sourcemaps-apply": "^0.2.0" + }, + "dependencies": { + "fancy-log": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", + "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", + "dev": true, + "requires": { + "ansi-gray": "^0.1.1", + "color-support": "^1.1.3", + "parse-node-version": "^1.0.0", + "time-stamp": "^1.0.0" + } + } } }, "gulp-babel": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/gulp-babel/-/gulp-babel-6.1.2.tgz", - "integrity": "sha1-fAF25Lo/JExgWIoMSzIKRdGt784=", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/gulp-babel/-/gulp-babel-6.1.3.tgz", + "integrity": "sha512-tm15R3rt4gO59WXCuqrwf4QXJM9VIJC+0J2NPYSC6xZn+cZRD5y5RPGAiHaDxCJq7Rz5BDljlrk3cEjWADF+wQ==", "dev": true, "requires": { - "babel-core": "6.26.0", - "gulp-util": "3.0.8", - "object-assign": "4.1.1", + "babel-core": "^6.23.1", + "object-assign": "^4.0.1", + "plugin-error": "^1.0.1", "replace-ext": "0.0.1", - "through2": "2.0.3", - "vinyl-sourcemaps-apply": "0.2.1" + "through2": "^2.0.0", + "vinyl-sourcemaps-apply": "^0.2.0" }, "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true + }, + "plugin-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", + "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", + "dev": true, + "requires": { + "ansi-colors": "^1.0.1", + "arr-diff": "^4.0.0", + "arr-union": "^3.1.0", + "extend-shallow": "^3.0.2" + } } } }, "gulp-clean-css": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-3.9.0.tgz", - "integrity": "sha512-CsqaSO2ZTMQI/WwbWloZWBudhsRMKgxBthzxt4bbcbWrjOY4pRFziyK9IH6YbTpaWAPKEwWpopPkpiAEoDofxw==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-3.10.0.tgz", + "integrity": "sha512-7Isf9Y690o/Q5MVjEylH1H7L8WeZ89woW7DnhD5unTintOdZb67KdOayRgp9trUFo+f9UyJtuatV42e/+kghPg==", "dev": true, "requires": { - "clean-css": "4.1.9", - "gulp-util": "3.0.8", + "clean-css": "4.2.1", + "plugin-error": "1.0.1", "through2": "2.0.3", "vinyl-sourcemaps-apply": "0.2.1" + }, + "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "plugin-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", + "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", + "dev": true, + "requires": { + "ansi-colors": "^1.0.1", + "arr-diff": "^4.0.0", + "arr-union": "^3.1.0", + "extend-shallow": "^3.0.2" + } + } } }, "gulp-concat": { @@ -3724,9 +3639,9 @@ "integrity": "sha1-Yz0WyV2IUEYorQJmVmPO5aR5M1M=", "dev": true, "requires": { - "concat-with-sourcemaps": "1.0.4", - "through2": "2.0.3", - "vinyl": "2.1.0" + "concat-with-sourcemaps": "^1.0.0", + "through2": "^2.0.0", + "vinyl": "^2.0.0" }, "dependencies": { "clone": { @@ -3753,27 +3668,57 @@ "integrity": "sha1-Ah+cLPlR1rk5lDyJ617lrdT9kkw=", "dev": true, "requires": { - "clone": "2.1.1", - "clone-buffer": "1.0.0", - "clone-stats": "1.0.0", - "cloneable-readable": "1.0.0", - "remove-trailing-separator": "1.1.0", - "replace-ext": "1.0.0" + "clone": "^2.1.1", + "clone-buffer": "^1.0.0", + "clone-stats": "^1.0.0", + "cloneable-readable": "^1.0.0", + "remove-trailing-separator": "^1.0.1", + "replace-ext": "^1.0.0" } } } }, "gulp-connect": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/gulp-connect/-/gulp-connect-5.0.0.tgz", - "integrity": "sha1-8v3zBq6RFGg2jCKF8teC8T7dr04=", - "dev": true, - "requires": { - "connect": "2.30.2", - "connect-livereload": "0.5.4", - "event-stream": "3.3.4", - "gulp-util": "3.0.8", - "tiny-lr": "0.2.1" + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/gulp-connect/-/gulp-connect-5.7.0.tgz", + "integrity": "sha512-8tRcC6wgXMLakpPw9M7GRJIhxkYdgZsXwn7n56BA2bQYGLR9NOPhMzx7js+qYDy6vhNkbApGKURjAw1FjY4pNA==", + "dev": true, + "requires": { + "ansi-colors": "^2.0.5", + "connect": "^3.6.6", + "connect-livereload": "^0.6.0", + "fancy-log": "^1.3.2", + "map-stream": "^0.0.7", + "send": "^0.16.2", + "serve-index": "^1.9.1", + "serve-static": "^1.13.2", + "tiny-lr": "^1.1.1" + }, + "dependencies": { + "ansi-colors": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-2.0.5.tgz", + "integrity": "sha512-yAdfUZ+c2wetVNIFsNRn44THW+Lty6S5TwMpUfLA/UaGhiXbBv/F8E60/1hMLd0cnF/CDoWH8vzVaI5bAcHCjw==", + "dev": true + }, + "fancy-log": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", + "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", + "dev": true, + "requires": { + "ansi-gray": "^0.1.1", + "color-support": "^1.1.3", + "parse-node-version": "^1.0.0", + "time-stamp": "^1.0.0" + } + }, + "map-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", + "dev": true + } } }, "gulp-decompress": { @@ -3782,10 +3727,10 @@ "integrity": "sha1-jutlpeAV+O2FMsr+KEVJYGJvDcc=", "dev": true, "requires": { - "archive-type": "3.2.0", - "decompress": "3.0.0", - "gulp-util": "3.0.8", - "readable-stream": "2.3.3" + "archive-type": "^3.0.0", + "decompress": "^3.0.0", + "gulp-util": "^3.0.1", + "readable-stream": "^2.0.2" }, "dependencies": { "isarray": { @@ -3800,13 +3745,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -3815,7 +3760,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -3826,9 +3771,9 @@ "integrity": "sha1-pJe351cwBQQcqivIt92jyARE1ik=", "dev": true, "requires": { - "gulp-match": "1.0.3", - "ternary-stream": "2.0.1", - "through2": "2.0.3" + "gulp-match": "^1.0.3", + "ternary-stream": "^2.0.1", + "through2": "^2.0.1" } }, "gulp-imagemin": { @@ -3837,16 +3782,16 @@ "integrity": "sha1-I6jUxRM/UKKnCKyofKSy1ut8RAM=", "dev": true, "requires": { - "chalk": "2.1.0", - "gulp-util": "3.0.8", - "imagemin": "5.3.1", - "imagemin-gifsicle": "5.2.0", - "imagemin-jpegtran": "5.0.2", - "imagemin-optipng": "5.2.1", - "imagemin-svgo": "5.2.2", - "plur": "2.1.2", - "pretty-bytes": "4.0.2", - "through2-concurrent": "1.1.1" + "chalk": "^2.1.0", + "gulp-util": "^3.0.8", + "imagemin": "^5.3.1", + "imagemin-gifsicle": "^5.2.0", + "imagemin-jpegtran": "^5.0.2", + "imagemin-optipng": "^5.2.1", + "imagemin-svgo": "^5.2.2", + "plur": "^2.1.2", + "pretty-bytes": "^4.0.2", + "through2-concurrent": "^1.1.1" }, "dependencies": { "ansi-styles": { @@ -3855,7 +3800,7 @@ "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", "dev": true, "requires": { - "color-convert": "1.9.0" + "color-convert": "^1.9.0" } }, "chalk": { @@ -3864,9 +3809,9 @@ "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==", "dev": true, "requires": { - "ansi-styles": "3.2.0", - "escape-string-regexp": "1.0.5", - "supports-color": "4.4.0" + "ansi-styles": "^3.1.0", + "escape-string-regexp": "^1.0.5", + "supports-color": "^4.0.0" } }, "supports-color": { @@ -3875,50 +3820,50 @@ "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", "dev": true, "requires": { - "has-flag": "2.0.0" + "has-flag": "^2.0.0" } } } }, "gulp-jshint": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/gulp-jshint/-/gulp-jshint-2.0.4.tgz", - "integrity": "sha1-84KxhWSxBy3vDJqvdTwUba208Og=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/gulp-jshint/-/gulp-jshint-2.1.0.tgz", + "integrity": "sha512-sP3NK8Y/1e58O0PH9t6s7DAr/lKDSUbIY207oWSeufM6/VclB7jJrIBcPCsyhrFTCDUl9DauePbt6VqP2vPM5w==", "dev": true, "requires": { - "gulp-util": "3.0.8", - "lodash": "4.17.4", - "minimatch": "3.0.4", - "rcloader": "0.2.2", - "through2": "2.0.3" + "lodash": "^4.12.0", + "minimatch": "^3.0.3", + "plugin-error": "^0.1.2", + "rcloader": "^0.2.2", + "through2": "^2.0.0" }, "dependencies": { "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } } } }, "gulp-jsonminify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gulp-jsonminify/-/gulp-jsonminify-1.0.0.tgz", - "integrity": "sha1-xCtogSxlfm4KEuk8KqIXs+s4xwo=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/gulp-jsonminify/-/gulp-jsonminify-1.1.0.tgz", + "integrity": "sha512-nkqH5aRajfCGD8HB2yN+QSEQG0SMEpS7UyOp3HS966Og4DqUX0y8sPF5SU8uSsGLLLXbnHwyHbDkxauYO/pSpQ==", "dev": true, "requires": { - "gulp-util": "3.0.8", - "jsonminify": "0.2.3", - "through2": "0.6.5" + "jsonminify": "~0.2.3", + "plugin-error": "^0.1.2", + "through2": "~0.6.5" }, "dependencies": { "jsonminify": { @@ -3933,10 +3878,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "through2": { @@ -3945,8 +3890,8 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } } } @@ -3957,12 +3902,12 @@ "integrity": "sha1-APdEstdJ0+njdGWJyKRKysd5tQ8=", "dev": true, "requires": { - "chalk": "0.5.1", - "debug": "2.6.9", - "event-stream": "3.3.4", - "gulp-util": "3.0.8", - "lodash.assign": "3.2.0", - "mini-lr": "0.1.9" + "chalk": "^0.5.1", + "debug": "^2.1.0", + "event-stream": "^3.1.7", + "gulp-util": "^3.0.2", + "lodash.assign": "^3.0.0", + "mini-lr": "^0.1.8" }, "dependencies": { "ansi-regex": { @@ -3983,11 +3928,11 @@ "integrity": "sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ=", "dev": true, "requires": { - "ansi-styles": "1.1.0", - "escape-string-regexp": "1.0.5", - "has-ansi": "0.1.0", - "strip-ansi": "0.3.0", - "supports-color": "0.2.0" + "ansi-styles": "^1.1.0", + "escape-string-regexp": "^1.0.0", + "has-ansi": "^0.1.0", + "strip-ansi": "^0.3.0", + "supports-color": "^0.2.0" } }, "has-ansi": { @@ -3996,7 +3941,7 @@ "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=", "dev": true, "requires": { - "ansi-regex": "0.2.1" + "ansi-regex": "^0.2.0" } }, "lodash.assign": { @@ -4005,9 +3950,9 @@ "integrity": "sha1-POnwI0tLIiPilrj6CsH+6OvKZPo=", "dev": true, "requires": { - "lodash._baseassign": "3.2.0", - "lodash._createassigner": "3.1.1", - "lodash.keys": "3.1.2" + "lodash._baseassign": "^3.0.0", + "lodash._createassigner": "^3.0.0", + "lodash.keys": "^3.0.0" } }, "strip-ansi": { @@ -4016,7 +3961,7 @@ "integrity": "sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA=", "dev": true, "requires": { - "ansi-regex": "0.2.1" + "ansi-regex": "^0.2.1" } }, "supports-color": { @@ -4033,7 +3978,7 @@ "integrity": "sha1-kcfA1/Kb7NZgbVfYCn+Hdqh6uo4=", "dev": true, "requires": { - "minimatch": "3.0.4" + "minimatch": "^3.0.3" }, "dependencies": { "minimatch": { @@ -4042,7 +3987,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } } } @@ -4053,9 +3998,9 @@ "integrity": "sha1-+Ufz8TlHW74bCP/+cUxHKfH/Bwo=", "dev": true, "requires": { - "gulp-util": "3.0.8", - "minimize": "1.8.1", - "through2": "0.6.5" + "gulp-util": "^3.0.3", + "minimize": "^1.5.0", + "through2": "^0.6.1" }, "dependencies": { "readable-stream": { @@ -4064,10 +4009,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "through2": { @@ -4076,33 +4021,47 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } } } }, "gulp-notify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/gulp-notify/-/gulp-notify-3.0.0.tgz", - "integrity": "sha1-oEuK+azb5OY8hFZ4zgw9MGlMWaM=", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/gulp-notify/-/gulp-notify-3.2.0.tgz", + "integrity": "sha512-qEocs1UVoDKKUjfsxJNMNwkRla0PbsyJwsqNNXpzYWsLQ29LhxRMY3wnTGZcc4hMHtalnvah/Dwlwb4NijH/0A==", "dev": true, "requires": { - "gulp-util": "3.0.8", - "lodash.template": "4.4.0", - "node-notifier": "5.1.2", - "node.extend": "1.1.6", - "through2": "2.0.3" + "ansi-colors": "^1.0.1", + "fancy-log": "^1.3.2", + "lodash.template": "^4.4.0", + "node-notifier": "^5.2.1", + "node.extend": "^2.0.0", + "plugin-error": "^0.1.2", + "through2": "^2.0.3" }, "dependencies": { + "fancy-log": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", + "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", + "dev": true, + "requires": { + "ansi-gray": "^0.1.1", + "color-support": "^1.1.3", + "parse-node-version": "^1.0.0", + "time-stamp": "^1.0.0" + } + }, "lodash.template": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.4.0.tgz", "integrity": "sha1-5zoDhcg1VZF0bgILmWecaQ5o+6A=", "dev": true, "requires": { - "lodash._reinterpolate": "3.0.0", - "lodash.templatesettings": "4.1.0" + "lodash._reinterpolate": "~3.0.0", + "lodash.templatesettings": "^4.0.0" } }, "lodash.templatesettings": { @@ -4111,7 +4070,7 @@ "integrity": "sha1-K01OlbpEDZFf8IvImeRVNmZxMxY=", "dev": true, "requires": { - "lodash._reinterpolate": "3.0.0" + "lodash._reinterpolate": "~3.0.0" } } } @@ -4123,86 +4082,102 @@ "dev": true }, "gulp-sass": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/gulp-sass/-/gulp-sass-3.1.0.tgz", - "integrity": "sha1-U9xLaKH13f5EJKtMJHZVJpqLdLc=", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/gulp-sass/-/gulp-sass-3.2.1.tgz", + "integrity": "sha512-UATbRpSDsyXCnpYSPBUEvdvtSEzksJs7/oQ0CujIpzKqKrO6vlnYwhX2UTsGrf4rNLwqlSSaM271It0uHYvJ3Q==", "dev": true, "requires": { - "gulp-util": "3.0.8", - "lodash.clonedeep": "4.5.0", - "node-sass": "4.5.3", - "through2": "2.0.3", - "vinyl-sourcemaps-apply": "0.2.1" + "gulp-util": "^3.0", + "lodash.clonedeep": "^4.3.2", + "node-sass": "^4.8.3", + "through2": "^2.0.0", + "vinyl-sourcemaps-apply": "^0.2.0" } }, "gulp-sass-unicode": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gulp-sass-unicode/-/gulp-sass-unicode-1.0.1.tgz", - "integrity": "sha1-shE5l7U+x0Fj43bEy6Rjtogh1CY=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/gulp-sass-unicode/-/gulp-sass-unicode-1.0.2.tgz", + "integrity": "sha512-0VYKzvCP1tPuEStQJEuWx0kLITs4nkc30KCJzGTJoqjZ6K4ofiAq/6Kxbm2DNu+x45eVXbJvz/aDu3lXW7DPxw==", "dev": true, "requires": { - "gulp-util": "3.0.8", - "through2": "2.0.3" + "gulp-util": "^3.0.7", + "through2": "^2.0.1" } }, "gulp-sourcemaps": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-2.6.1.tgz", - "integrity": "sha512-1qHCI3hdmsMdq/SUotxwUh/L8YzlI6J9zQ5ifNOtx4Y6KV5y5sGuORv1KZzWhuKtz/mXNh5xLESUtwC4EndCjA==", - "dev": true, - "requires": { - "@gulp-sourcemaps/identity-map": "1.0.1", - "@gulp-sourcemaps/map-sources": "1.0.0", - "acorn": "4.0.13", - "convert-source-map": "1.5.0", - "css": "2.2.1", - "debug-fabulous": "0.2.1", - "detect-newline": "2.1.0", - "graceful-fs": "4.1.11", - "source-map": "0.6.1", - "strip-bom-string": "1.0.0", - "through2": "2.0.3", - "vinyl": "1.2.0" + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-2.6.5.tgz", + "integrity": "sha512-SYLBRzPTew8T5Suh2U8jCSDKY+4NARua4aqjj8HOysBh2tSgT9u4jc1FYirAdPx1akUxxDeK++fqw6Jg0LkQRg==", + "dev": true, + "requires": { + "@gulp-sourcemaps/identity-map": "1.X", + "@gulp-sourcemaps/map-sources": "1.X", + "acorn": "5.X", + "convert-source-map": "1.X", + "css": "2.X", + "debug-fabulous": "1.X", + "detect-newline": "2.X", + "graceful-fs": "4.X", + "source-map": "~0.6.0", + "strip-bom-string": "1.X", + "through2": "2.X" }, "dependencies": { "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", "dev": true - }, - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", - "dev": true, - "requires": { - "clone": "1.0.2", - "clone-stats": "0.0.1", - "replace-ext": "0.0.1" - } } } }, "gulp-uglify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/gulp-uglify/-/gulp-uglify-3.0.0.tgz", - "integrity": "sha1-DfAzHXKg0wLj434QlIXd3zPG0co=", - "dev": true, - "requires": { - "gulplog": "1.0.0", - "has-gulplog": "0.1.0", - "lodash": "4.17.4", - "make-error-cause": "1.2.2", - "through2": "2.0.3", - "uglify-js": "3.1.3", - "vinyl-sourcemaps-apply": "0.2.1" + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gulp-uglify/-/gulp-uglify-3.0.2.tgz", + "integrity": "sha512-gk1dhB74AkV2kzqPMQBLA3jPoIAPd/nlNzP2XMDSG8XZrqnlCiDGAqC+rZOumzFvB5zOphlFh6yr3lgcAb/OOg==", + "dev": true, + "requires": { + "array-each": "^1.0.1", + "extend-shallow": "^3.0.2", + "gulplog": "^1.0.0", + "has-gulplog": "^0.1.0", + "isobject": "^3.0.1", + "make-error-cause": "^1.1.1", + "safe-buffer": "^5.1.2", + "through2": "^2.0.0", + "uglify-js": "^3.0.5", + "vinyl-sourcemaps-apply": "^0.2.0" }, "dependencies": { - "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true } } @@ -4213,24 +4188,24 @@ "integrity": "sha1-AFTh50RQLifATBh8PsxQXdVLu08=", "dev": true, "requires": { - "array-differ": "1.0.0", - "array-uniq": "1.0.3", - "beeper": "1.1.1", - "chalk": "1.1.3", - "dateformat": "2.2.0", - "fancy-log": "1.3.0", - "gulplog": "1.0.0", - "has-gulplog": "0.1.0", - "lodash._reescape": "3.0.0", - "lodash._reevaluate": "3.0.0", - "lodash._reinterpolate": "3.0.0", - "lodash.template": "3.6.2", - "minimist": "1.2.0", - "multipipe": "0.1.2", - "object-assign": "3.0.0", + "array-differ": "^1.0.0", + "array-uniq": "^1.0.2", + "beeper": "^1.0.0", + "chalk": "^1.0.0", + "dateformat": "^2.0.0", + "fancy-log": "^1.1.0", + "gulplog": "^1.0.0", + "has-gulplog": "^0.1.0", + "lodash._reescape": "^3.0.0", + "lodash._reevaluate": "^3.0.0", + "lodash._reinterpolate": "^3.0.0", + "lodash.template": "^3.0.0", + "minimist": "^1.1.0", + "multipipe": "^0.1.2", + "object-assign": "^3.0.0", "replace-ext": "0.0.1", - "through2": "2.0.3", - "vinyl": "0.5.3" + "through2": "^2.0.0", + "vinyl": "^0.5.0" } }, "gulplog": { @@ -4239,7 +4214,7 @@ "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", "dev": true, "requires": { - "glogg": "1.0.0" + "glogg": "^1.0.0" } }, "har-schema": { @@ -4249,13 +4224,22 @@ "dev": true }, "har-validator": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", - "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "dev": true, + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, "requires": { - "ajv": "5.2.3", - "har-schema": "2.0.0" + "function-bind": "^1.1.1" } }, "has-ansi": { @@ -4264,7 +4248,7 @@ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "has-flag": { @@ -4279,7 +4263,7 @@ "integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=", "dev": true, "requires": { - "sparkles": "1.0.0" + "sparkles": "^1.0.0" } }, "has-unicode": { @@ -4288,32 +4272,14 @@ "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true }, - "hawk": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", - "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", - "dev": true, - "requires": { - "boom": "4.3.1", - "cryptiles": "3.1.2", - "hoek": "4.2.0", - "sntp": "2.0.2" - } - }, - "hoek": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.0.tgz", - "integrity": "sha512-v0XCLxICi9nPfYrS9RL8HbYnXi9obYAeLbSP00BmnZwCK9+Ih9WOjoZ8YoHCoav2csqn4FOz4Orldsy2dmDwmQ==", - "dev": true - }, "home-or-tmp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", "dev": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" } }, "homedir-polyfill": { @@ -4322,7 +4288,7 @@ "integrity": "sha1-TCu8inWJmP7r9e1oWA921GdotLw=", "dev": true, "requires": { - "parse-passwd": "1.0.0" + "parse-passwd": "^1.0.0" } }, "hosted-git-info": { @@ -4344,12 +4310,12 @@ "integrity": "sha1-G9+HrMoPP55T+k/M6w9LTLsAszg=", "dev": true, "requires": { - "domelementtype": "1.3.0", - "domhandler": "2.4.1", - "domutils": "1.6.2", - "entities": "1.1.1", - "inherits": "2.0.3", - "readable-stream": "2.3.3" + "domelementtype": "^1.3.0", + "domhandler": "^2.3.0", + "domutils": "^1.5.1", + "entities": "^1.1.1", + "inherits": "^2.0.1", + "readable-stream": "^2.0.2" }, "dependencies": { "isarray": { @@ -4364,13 +4330,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -4379,7 +4345,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -4390,8 +4356,8 @@ "integrity": "sha1-GX4izevUGYWF6GlO9nhhl7ke2UI=", "dev": true, "requires": { - "inherits": "2.0.3", - "statuses": "1.3.1" + "inherits": "~2.0.1", + "statuses": "1" } }, "http-parser-js": { @@ -4406,29 +4372,23 @@ "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "dev": true, "requires": { - "assert-plus": "1.0.0", - "jsprim": "1.4.1", - "sshpk": "1.13.1" + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" } }, - "iconv-lite": { - "version": "0.4.11", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.11.tgz", - "integrity": "sha1-LstC/SlHRJIiCaLnxATayHk9it4=", - "dev": true - }, "imagemin": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/imagemin/-/imagemin-5.3.1.tgz", "integrity": "sha1-8Zwu7h5xumxlWMUV+fyWaAGJptQ=", "dev": true, "requires": { - "file-type": "4.4.0", - "globby": "6.1.0", - "make-dir": "1.0.0", - "p-pipe": "1.2.0", - "pify": "2.3.0", - "replace-ext": "1.0.0" + "file-type": "^4.1.0", + "globby": "^6.1.0", + "make-dir": "^1.0.0", + "p-pipe": "^1.1.0", + "pify": "^2.3.0", + "replace-ext": "^1.0.0" }, "dependencies": { "pify": { @@ -4452,9 +4412,9 @@ "dev": true, "optional": true, "requires": { - "exec-buffer": "3.2.0", - "gifsicle": "3.0.4", - "is-gif": "1.0.0" + "exec-buffer": "^3.0.0", + "gifsicle": "^3.0.0", + "is-gif": "^1.0.0" } }, "imagemin-jpegtran": { @@ -4464,9 +4424,9 @@ "dev": true, "optional": true, "requires": { - "exec-buffer": "3.2.0", - "is-jpg": "1.0.0", - "jpegtran-bin": "3.2.0" + "exec-buffer": "^3.0.0", + "is-jpg": "^1.0.0", + "jpegtran-bin": "^3.0.0" } }, "imagemin-optipng": { @@ -4476,9 +4436,9 @@ "dev": true, "optional": true, "requires": { - "exec-buffer": "3.2.0", - "is-png": "1.1.0", - "optipng-bin": "3.1.4" + "exec-buffer": "^3.0.0", + "is-png": "^1.0.0", + "optipng-bin": "^3.0.0" } }, "imagemin-pngcrush": { @@ -4487,9 +4447,9 @@ "integrity": "sha1-gbTP5JSuvY4d0162MMsy9d8reM8=", "dev": true, "requires": { - "exec-buffer": "3.2.0", - "is-png": "1.1.0", - "pngcrush-bin": "3.1.1" + "exec-buffer": "^3.0.0", + "is-png": "^1.0.0", + "pngcrush-bin": "^3.0.0" } }, "imagemin-svgo": { @@ -4499,8 +4459,8 @@ "dev": true, "optional": true, "requires": { - "is-svg": "2.1.0", - "svgo": "0.7.2" + "is-svg": "^2.0.0", + "svgo": "^0.7.0" } }, "in-publish": { @@ -4515,7 +4475,7 @@ "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", "dev": true, "requires": { - "repeating": "2.0.1" + "repeating": "^2.0.0" } }, "inflight": { @@ -4524,8 +4484,8 @@ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "once": "1.3.3", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -4547,12 +4507,12 @@ "dev": true }, "invariant": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz", - "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "dev": true, "requires": { - "loose-envify": "1.3.1" + "loose-envify": "^1.0.0" } }, "invert-kv": { @@ -4574,9 +4534,9 @@ "dev": true }, "is": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/is/-/is-3.2.1.tgz", - "integrity": "sha1-0Kwq1V63sL7JJqUmb2xmKqqD3KU=", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/is/-/is-3.3.0.tgz", + "integrity": "sha512-nW24QBoPcFGGHJGUwnfpI7Yc5CdqWNdsyHQszVE/z2pKHXzh7FZ5GWhJqSyaQ9wMkQnsTx+kAI8bHlCX4tKdbg==", "dev": true }, "is-absolute": { @@ -4585,8 +4545,8 @@ "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", "dev": true, "requires": { - "is-relative": "0.2.1", - "is-windows": "0.2.0" + "is-relative": "^0.2.1", + "is-windows": "^0.2.0" } }, "is-arrayish": { @@ -4607,7 +4567,7 @@ "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { - "builtin-modules": "1.1.1" + "builtin-modules": "^1.0.0" } }, "is-bzip2": { @@ -4628,7 +4588,7 @@ "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", "dev": true, "requires": { - "is-primitive": "2.0.0" + "is-primitive": "^2.0.0" } }, "is-extendable": { @@ -4649,7 +4609,7 @@ "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-fullwidth-code-point": { @@ -4658,7 +4618,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-gif": { @@ -4674,7 +4634,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "is-gzip": { @@ -4702,7 +4662,7 @@ "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "is-obj": { @@ -4723,7 +4683,7 @@ "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", "dev": true, "requires": { - "is-path-inside": "1.0.0" + "is-path-inside": "^1.0.0" } }, "is-path-inside": { @@ -4732,7 +4692,7 @@ "integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=", "dev": true, "requires": { - "path-is-inside": "1.0.2" + "path-is-inside": "^1.0.1" } }, "is-plain-object": { @@ -4741,7 +4701,7 @@ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { - "isobject": "3.0.1" + "isobject": "^3.0.1" }, "dependencies": { "isobject": { @@ -4788,7 +4748,7 @@ "integrity": "sha1-0n9MfVFtF1+2ENuEu+7yPDvJeqU=", "dev": true, "requires": { - "is-unc-path": "0.1.2" + "is-unc-path": "^0.1.1" } }, "is-retry-allowed": { @@ -4810,7 +4770,7 @@ "dev": true, "optional": true, "requires": { - "html-comment-regex": "1.1.1" + "html-comment-regex": "^1.1.0" } }, "is-tar": { @@ -4831,7 +4791,7 @@ "integrity": "sha1-arBTpyVzwQJQ/0FqOBTDUXivObk=", "dev": true, "requires": { - "unc-path-regex": "0.1.2" + "unc-path-regex": "^0.1.0" } }, "is-url": { @@ -4858,6 +4818,12 @@ "integrity": "sha1-3hqm1j6indJIc3tp8f+LgALSEIw=", "dev": true }, + "is-wsl": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", + "dev": true + }, "is-zip": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-zip/-/is-zip-1.0.0.tgz", @@ -4906,15 +4872,15 @@ "dev": true, "optional": true, "requires": { - "bin-build": "2.2.0", - "bin-wrapper": "3.0.2", - "logalot": "2.1.0" + "bin-build": "^2.0.0", + "bin-wrapper": "^3.0.0", + "logalot": "^2.0.0" } }, "js-base64": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.3.2.tgz", - "integrity": "sha512-Y2/+DnfJJXT1/FCwUebUhLWb3QihxiSC42+ctHLGogmW2jPY6LCapMdFZXRvVP2z6qyKW7s6qncE/9gSqZiArw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz", + "integrity": "sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw==", "dev": true }, "js-tokens": { @@ -4930,16 +4896,15 @@ "dev": true, "optional": true, "requires": { - "argparse": "1.0.9", - "esprima": "2.7.3" + "argparse": "^1.0.7", + "esprima": "^2.6.0" } }, "jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true, - "optional": true + "dev": true }, "jsesc": { "version": "1.3.0", @@ -4948,19 +4913,19 @@ "dev": true }, "jshint": { - "version": "2.9.5", - "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.9.5.tgz", - "integrity": "sha1-HnJSkVzmgbQIJ+4UJIxG006apiw=", - "dev": true, - "requires": { - "cli": "1.0.1", - "console-browserify": "1.1.0", - "exit": "0.1.2", - "htmlparser2": "3.8.3", - "lodash": "3.7.0", - "minimatch": "3.0.4", - "shelljs": "0.3.0", - "strip-json-comments": "1.0.4" + "version": "2.10.2", + "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.10.2.tgz", + "integrity": "sha512-e7KZgCSXMJxznE/4WULzybCMNXNAd/bf5TSrvVEq78Q/K8ZwFpmBqQeDtNiHc3l49nV4E/+YeHU/JZjSUIrLAA==", + "dev": true, + "requires": { + "cli": "~1.0.0", + "console-browserify": "1.1.x", + "exit": "0.1.x", + "htmlparser2": "3.8.x", + "lodash": "~4.17.11", + "minimatch": "~3.0.2", + "shelljs": "0.3.x", + "strip-json-comments": "1.0.x" }, "dependencies": { "domhandler": { @@ -4969,7 +4934,7 @@ "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", "dev": true, "requires": { - "domelementtype": "1.3.0" + "domelementtype": "1" } }, "domutils": { @@ -4978,8 +4943,8 @@ "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", "dev": true, "requires": { - "dom-serializer": "0.1.0", - "domelementtype": "1.3.0" + "dom-serializer": "0", + "domelementtype": "1" } }, "entities": { @@ -4994,26 +4959,26 @@ "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", "dev": true, "requires": { - "domelementtype": "1.3.0", - "domhandler": "2.3.0", - "domutils": "1.5.1", - "entities": "1.0.0", - "readable-stream": "1.1.14" + "domelementtype": "1", + "domhandler": "2.3", + "domutils": "1.5", + "entities": "1.0", + "readable-stream": "1.1" } }, "lodash": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.7.0.tgz", - "integrity": "sha1-Nni9irmVBXwHreg27S7wh9qBHUU=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } }, "strip-json-comments": { @@ -5031,9 +4996,9 @@ "dev": true }, "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, "json-stable-stringify": { @@ -5042,7 +5007,7 @@ "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", "dev": true, "requires": { - "jsonify": "0.0.0" + "jsonify": "~0.0.0" } }, "json-stringify-safe": { @@ -5087,7 +5052,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.5" + "is-buffer": "^1.1.5" } }, "kuler": { @@ -5111,7 +5076,7 @@ "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", "dev": true, "requires": { - "readable-stream": "2.3.3" + "readable-stream": "^2.0.5" }, "dependencies": { "isarray": { @@ -5126,13 +5091,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -5141,7 +5106,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -5152,7 +5117,7 @@ "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { - "invert-kv": "1.0.0" + "invert-kv": "^1.0.0" } }, "liftoff": { @@ -5161,15 +5126,15 @@ "integrity": "sha1-qY8v9nGD2Lp8+soQVIvX/wVQs4U=", "dev": true, "requires": { - "extend": "3.0.1", - "findup-sync": "0.4.3", - "fined": "1.1.0", - "flagged-respawn": "0.3.2", - "lodash.isplainobject": "4.0.6", - "lodash.isstring": "4.0.1", - "lodash.mapvalues": "4.6.0", - "rechoir": "0.6.2", - "resolve": "1.4.0" + "extend": "^3.0.0", + "findup-sync": "^0.4.2", + "fined": "^1.0.1", + "flagged-respawn": "^0.3.2", + "lodash.isplainobject": "^4.0.4", + "lodash.isstring": "^4.0.1", + "lodash.mapvalues": "^4.4.0", + "rechoir": "^0.6.2", + "resolve": "^1.1.7" } }, "livereload-js": { @@ -5184,11 +5149,11 @@ "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "strip-bom": "2.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" }, "dependencies": { "graceful-fs": { @@ -5209,7 +5174,7 @@ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.0" } } } @@ -5226,8 +5191,8 @@ "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", "dev": true, "requires": { - "lodash._basecopy": "3.0.1", - "lodash.keys": "3.1.2" + "lodash._basecopy": "^3.0.0", + "lodash.keys": "^3.0.0" } }, "lodash._basecopy": { @@ -5260,9 +5225,9 @@ "integrity": "sha1-g4pbri/aymOsIt7o4Z+k5taXCxE=", "dev": true, "requires": { - "lodash._bindcallback": "3.0.1", - "lodash._isiterateecall": "3.0.9", - "lodash.restparam": "3.6.1" + "lodash._bindcallback": "^3.0.0", + "lodash._isiterateecall": "^3.0.0", + "lodash.restparam": "^3.0.0" } }, "lodash._getnative": { @@ -5319,7 +5284,7 @@ "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", "dev": true, "requires": { - "lodash._root": "3.0.1" + "lodash._root": "^3.0.0" } }, "lodash.isarguments": { @@ -5364,9 +5329,9 @@ "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", "dev": true, "requires": { - "lodash._getnative": "3.9.1", - "lodash.isarguments": "3.1.0", - "lodash.isarray": "3.0.4" + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" } }, "lodash.mapvalues": { @@ -5376,15 +5341,15 @@ "dev": true }, "lodash.merge": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.0.tgz", - "integrity": "sha1-aYhLoUSsM/5plzemCG3v+t0PicU=", + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.1.tgz", + "integrity": "sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ==", "dev": true }, "lodash.mergewith": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz", - "integrity": "sha1-FQzwoWeR9ZA7iJHqsVRgknS96lU=", + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", + "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", "dev": true }, "lodash.restparam": { @@ -5399,15 +5364,15 @@ "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", "dev": true, "requires": { - "lodash._basecopy": "3.0.1", - "lodash._basetostring": "3.0.1", - "lodash._basevalues": "3.0.0", - "lodash._isiterateecall": "3.0.9", - "lodash._reinterpolate": "3.0.0", - "lodash.escape": "3.2.0", - "lodash.keys": "3.1.2", - "lodash.restparam": "3.6.1", - "lodash.templatesettings": "3.1.1" + "lodash._basecopy": "^3.0.0", + "lodash._basetostring": "^3.0.0", + "lodash._basevalues": "^3.0.0", + "lodash._isiterateecall": "^3.0.0", + "lodash._reinterpolate": "^3.0.0", + "lodash.escape": "^3.0.0", + "lodash.keys": "^3.0.0", + "lodash.restparam": "^3.0.0", + "lodash.templatesettings": "^3.0.0" } }, "lodash.templatesettings": { @@ -5416,8 +5381,8 @@ "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", "dev": true, "requires": { - "lodash._reinterpolate": "3.0.0", - "lodash.escape": "3.2.0" + "lodash._reinterpolate": "^3.0.0", + "lodash.escape": "^3.0.0" } }, "logalot": { @@ -5426,8 +5391,8 @@ "integrity": "sha1-X46MkNME7fElMJUaVVSruMXj9VI=", "dev": true, "requires": { - "figures": "1.7.0", - "squeak": "1.3.0" + "figures": "^1.3.5", + "squeak": "^1.0.0" } }, "longest": { @@ -5437,12 +5402,12 @@ "dev": true }, "loose-envify": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", - "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, "requires": { - "js-tokens": "3.0.2" + "js-tokens": "^3.0.0 || ^4.0.0" } }, "loud-rejection": { @@ -5451,8 +5416,8 @@ "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", "dev": true, "requires": { - "currently-unhandled": "0.4.1", - "signal-exit": "3.0.2" + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" } }, "lowercase-keys": { @@ -5467,10 +5432,10 @@ "integrity": "sha1-IfYArBwwlcPG5JfuZyce4ISB/p4=", "dev": true, "requires": { - "get-stdin": "4.0.1", - "indent-string": "2.1.0", - "longest": "1.0.1", - "meow": "3.7.0" + "get-stdin": "^4.0.1", + "indent-string": "^2.1.0", + "longest": "^1.0.0", + "meow": "^3.3.0" } }, "lru-cache": { @@ -5485,7 +5450,7 @@ "integrity": "sha1-Jzi9nw089PhEkMVzbEhpmsYyzaM=", "dev": true, "requires": { - "es5-ext": "0.10.31" + "es5-ext": "~0.10.2" } }, "make-dir": { @@ -5494,7 +5459,7 @@ "integrity": "sha1-l6ARdR6R3YfPre9Ygy67BJNt6Xg=", "dev": true, "requires": { - "pify": "2.3.0" + "pify": "^2.3.0" }, "dependencies": { "pify": { @@ -5506,9 +5471,9 @@ } }, "make-error": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz", - "integrity": "sha1-Uq06M5zPEM5itAQLcI/nByRLi5Y=", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", + "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", "dev": true }, "make-error-cause": { @@ -5517,7 +5482,7 @@ "integrity": "sha1-3wOI/NCzeBbf8KX7gQiTl3fcvJ0=", "dev": true, "requires": { - "make-error": "1.3.0" + "make-error": "^1.2.0" } }, "map-cache": { @@ -5550,13 +5515,13 @@ "integrity": "sha1-TsoNiu057J0Bf0xcLy9kMvQuXI8=", "dev": true, "requires": { - "d": "0.1.1", - "es5-ext": "0.10.31", - "es6-weak-map": "0.1.4", - "event-emitter": "0.3.5", - "lru-queue": "0.1.0", - "next-tick": "0.2.2", - "timers-ext": "0.1.2" + "d": "~0.1.1", + "es5-ext": "~0.10.11", + "es6-weak-map": "~0.1.4", + "event-emitter": "~0.3.4", + "lru-queue": "0.1", + "next-tick": "~0.2.2", + "timers-ext": "0.1" } }, "meow": { @@ -5565,16 +5530,16 @@ "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "dev": true, "requires": { - "camelcase-keys": "2.1.0", - "decamelize": "1.2.0", - "loud-rejection": "1.6.0", - "map-obj": "1.0.1", - "minimist": "1.2.0", - "normalize-package-data": "2.4.0", - "object-assign": "4.1.1", - "read-pkg-up": "1.0.1", - "redent": "1.0.0", - "trim-newlines": "1.0.0" + "camelcase-keys": "^2.0.0", + "decamelize": "^1.1.2", + "loud-rejection": "^1.0.0", + "map-obj": "^1.0.1", + "minimist": "^1.1.3", + "normalize-package-data": "^2.3.4", + "object-assign": "^4.0.1", + "read-pkg-up": "^1.0.1", + "redent": "^1.0.0", + "trim-newlines": "^1.0.0" }, "dependencies": { "object-assign": { @@ -5591,7 +5556,7 @@ "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", "dev": true, "requires": { - "readable-stream": "2.3.3" + "readable-stream": "^2.0.1" }, "dependencies": { "isarray": { @@ -5606,13 +5571,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -5621,62 +5586,36 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } }, - "method-override": { - "version": "2.3.10", - "resolved": "https://registry.npmjs.org/method-override/-/method-override-2.3.10.tgz", - "integrity": "sha1-49r41d7hDdLc59SuiNYrvud0drQ=", - "dev": true, - "requires": { - "debug": "2.6.9", - "methods": "1.1.2", - "parseurl": "1.3.2", - "vary": "1.1.2" - }, - "dependencies": { - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", - "dev": true - } - } - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", - "dev": true - }, "micromatch": { "version": "2.3.11", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", "dev": true, "requires": { - "arr-diff": "2.0.0", - "array-unique": "0.2.1", - "braces": "1.8.5", - "expand-brackets": "0.1.5", - "extglob": "0.3.2", - "filename-regex": "2.0.1", - "is-extglob": "1.0.0", - "is-glob": "2.0.1", - "kind-of": "3.2.2", - "normalize-path": "2.1.1", - "object.omit": "2.0.1", - "parse-glob": "3.0.4", - "regex-cache": "0.4.4" + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" } }, "mime": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", - "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", + "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==", "dev": true }, "mime-db": { @@ -5691,7 +5630,7 @@ "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", "dev": true, "requires": { - "mime-db": "1.30.0" + "mime-db": "~1.30.0" } }, "mini-lr": { @@ -5700,12 +5639,12 @@ "integrity": "sha1-AhmdJzR5U9H9HW297UJh8Yey0PY=", "dev": true, "requires": { - "body-parser": "1.14.2", - "debug": "2.6.9", - "faye-websocket": "0.7.3", - "livereload-js": "2.2.2", - "parseurl": "1.3.2", - "qs": "2.2.5" + "body-parser": "~1.14.0", + "debug": "^2.2.0", + "faye-websocket": "~0.7.2", + "livereload-js": "^2.2.0", + "parseurl": "~1.3.0", + "qs": "~2.2.3" }, "dependencies": { "body-parser": { @@ -5715,15 +5654,15 @@ "dev": true, "requires": { "bytes": "2.2.0", - "content-type": "1.0.4", - "debug": "2.2.0", - "depd": "1.1.1", - "http-errors": "1.3.1", + "content-type": "~1.0.1", + "debug": "~2.2.0", + "depd": "~1.1.0", + "http-errors": "~1.3.1", "iconv-lite": "0.4.13", - "on-finished": "2.3.0", + "on-finished": "~2.3.0", "qs": "5.2.0", - "raw-body": "2.1.7", - "type-is": "1.6.15" + "raw-body": "~2.1.5", + "type-is": "~1.6.10" }, "dependencies": { "debug": { @@ -5761,7 +5700,7 @@ "integrity": "sha1-zEB0x/Sk39A69U3WXDVLE1EyzhE=", "dev": true, "requires": { - "websocket-driver": "0.7.0" + "websocket-driver": ">=0.3.6" } }, "iconv-lite": { @@ -5790,7 +5729,7 @@ "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.0.0" } }, "minimist": { @@ -5805,13 +5744,13 @@ "integrity": "sha1-o2dK3pPyinX/ojuODzZc3CPWnYs=", "dev": true, "requires": { - "argh": "0.1.4", - "async": "1.5.2", - "cli-color": "1.1.0", - "diagnostics": "1.0.1", - "emits": "3.0.0", - "htmlparser2": "3.9.2", - "node-uuid": "1.4.8" + "argh": "~0.1.4", + "async": "~1.5.2", + "cli-color": "~1.1.0", + "diagnostics": "~1.0.1", + "emits": "~3.0.0", + "htmlparser2": "~3.9.0", + "node-uuid": "~1.4.7" }, "dependencies": { "node-uuid": { @@ -5839,52 +5778,12 @@ } } }, - "morgan": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.6.1.tgz", - "integrity": "sha1-X9gYOYxoGcuiinzWZk8pL+HAu/I=", - "dev": true, - "requires": { - "basic-auth": "1.0.4", - "debug": "2.2.0", - "depd": "1.0.1", - "on-finished": "2.3.0", - "on-headers": "1.0.1" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - } - } - }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, - "multiparty": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/multiparty/-/multiparty-3.3.2.tgz", - "integrity": "sha1-Nd5oBNwZZD5SSfPT473GyM4wHT8=", - "dev": true, - "requires": { - "readable-stream": "1.1.14", - "stream-counter": "0.2.0" - } - }, "multipipe": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", @@ -5895,9 +5794,9 @@ } }, "nan": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz", - "integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.1.tgz", + "integrity": "sha512-I6YB/YEuDeUZMmhscXKxGgZlFnhsn5y0hgOZBadkzfTRrZBtJDZeg6eQf7PYMIEclwmorTKK8GztsyOUSVBREA==", "dev": true }, "natives": { @@ -5907,9 +5806,9 @@ "dev": true }, "negotiator": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.5.3.tgz", - "integrity": "sha1-Jp1cR2gQ7JLtvntsLygxY4T5p+g=", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", + "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", "dev": true }, "next-tick": { @@ -5919,44 +5818,43 @@ "dev": true }, "node-gyp": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.6.2.tgz", - "integrity": "sha1-m/vlRWIoYoSDjnUOrAUpWFP6HGA=", - "dev": true, - "requires": { - "fstream": "1.0.11", - "glob": "7.1.2", - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "nopt": "3.0.6", - "npmlog": "4.1.2", - "osenv": "0.1.4", - "request": "2.83.0", - "rimraf": "2.6.2", - "semver": "5.3.0", - "tar": "2.2.1", - "which": "1.3.0" + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz", + "integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==", + "dev": true, + "requires": { + "fstream": "^1.0.0", + "glob": "^7.0.3", + "graceful-fs": "^4.1.2", + "mkdirp": "^0.5.0", + "nopt": "2 || 3", + "npmlog": "0 || 1 || 2 || 3 || 4", + "osenv": "0", + "request": "^2.87.0", + "rimraf": "2", + "semver": "~5.3.0", + "tar": "^2.0.0", + "which": "1" }, "dependencies": { "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.3.3", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", "dev": true }, "minimatch": { @@ -5965,7 +5863,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } }, "semver": { @@ -5977,49 +5875,51 @@ } }, "node-notifier": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.1.2.tgz", - "integrity": "sha1-L6nhJgX6EACdRFSdb82KY93g5P8=", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.4.0.tgz", + "integrity": "sha512-SUDEb+o71XR5lXSTyivXd9J7fCloE3SyP4lSgt3lU2oSANiox+SxlNRGPjDKrwU1YN3ix2KN/VGGCg0t01rttQ==", "dev": true, "requires": { - "growly": "1.3.0", - "semver": "5.4.1", - "shellwords": "0.1.1", - "which": "1.3.0" + "growly": "^1.3.0", + "is-wsl": "^1.1.0", + "semver": "^5.5.0", + "shellwords": "^0.1.1", + "which": "^1.3.0" }, "dependencies": { "semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", "dev": true } } }, "node-sass": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.5.3.tgz", - "integrity": "sha1-0JydEXlkEjnRuX/8YjH9zsU+FWg=", - "dev": true, - "requires": { - "async-foreach": "0.1.3", - "chalk": "1.1.3", - "cross-spawn": "3.0.1", - "gaze": "1.1.2", - "get-stdin": "4.0.1", - "glob": "7.1.2", - "in-publish": "2.0.0", - "lodash.assign": "4.2.0", - "lodash.clonedeep": "4.5.0", - "lodash.mergewith": "4.6.0", - "meow": "3.7.0", - "mkdirp": "0.5.1", - "nan": "2.7.0", - "node-gyp": "3.6.2", - "npmlog": "4.1.2", - "request": "2.83.0", - "sass-graph": "2.2.4", - "stdout-stream": "1.4.0" + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.11.0.tgz", + "integrity": "sha512-bHUdHTphgQJZaF1LASx0kAviPH7sGlcyNhWade4eVIpFp6tsn7SV8xNMTbsQFpEV9VXpnwTTnNYlfsZXgGgmkA==", + "dev": true, + "requires": { + "async-foreach": "^0.1.3", + "chalk": "^1.1.1", + "cross-spawn": "^3.0.0", + "gaze": "^1.0.0", + "get-stdin": "^4.0.1", + "glob": "^7.0.3", + "in-publish": "^2.0.0", + "lodash.assign": "^4.2.0", + "lodash.clonedeep": "^4.3.2", + "lodash.mergewith": "^4.6.0", + "meow": "^3.7.0", + "mkdirp": "^0.5.1", + "nan": "^2.10.0", + "node-gyp": "^3.8.0", + "npmlog": "^4.0.0", + "request": "^2.88.0", + "sass-graph": "^2.2.4", + "stdout-stream": "^1.4.0", + "true-case-path": "^1.0.2" }, "dependencies": { "cross-spawn": { @@ -6028,58 +5928,58 @@ "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", "dev": true, "requires": { - "lru-cache": "4.1.1", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "which": "^1.2.9" } }, "gaze": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.2.tgz", - "integrity": "sha1-hHIkZ3rbiHDWeSV+0ziP22HkAQU=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", + "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", "dev": true, "requires": { - "globule": "1.2.0" + "globule": "^1.0.0" } }, "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.3.3", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "globule": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.0.tgz", - "integrity": "sha1-HcScaCLdnoovoAuiopUAboZkvQk=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.1.tgz", + "integrity": "sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ==", "dev": true, "requires": { - "glob": "7.1.2", - "lodash": "4.17.4", - "minimatch": "3.0.4" + "glob": "~7.1.1", + "lodash": "~4.17.10", + "minimatch": "~3.0.2" } }, "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "lru-cache": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", - "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", "dev": true, "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, "minimatch": { @@ -6088,7 +5988,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } } } @@ -6100,12 +6000,13 @@ "dev": true }, "node.extend": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/node.extend/-/node.extend-1.1.6.tgz", - "integrity": "sha1-p7iCyC1sk6SGOlUEvV3o7IYli5Y=", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/node.extend/-/node.extend-2.0.2.tgz", + "integrity": "sha512-pDT4Dchl94/+kkgdwyS2PauDFjZG0Hk0IcHIB+LkW27HLDtdoeMxHTxZh39DYbPP8UflWXWj9JcdDozF+YDOpQ==", "dev": true, "requires": { - "is": "3.2.1" + "has": "^1.0.3", + "is": "^3.2.1" } }, "nopt": { @@ -6114,7 +6015,7 @@ "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", "dev": true, "requires": { - "abbrev": "1.1.1" + "abbrev": "1" } }, "normalize-package-data": { @@ -6123,10 +6024,10 @@ "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "dev": true, "requires": { - "hosted-git-info": "2.5.0", - "is-builtin-module": "1.0.0", - "semver": "4.3.6", - "validate-npm-package-license": "3.0.1" + "hosted-git-info": "^2.1.4", + "is-builtin-module": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" } }, "normalize-path": { @@ -6135,7 +6036,7 @@ "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { - "remove-trailing-separator": "1.1.0" + "remove-trailing-separator": "^1.0.1" } }, "normalize-range": { @@ -6150,7 +6051,7 @@ "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, "requires": { - "path-key": "2.0.1" + "path-key": "^2.0.0" } }, "npmlog": { @@ -6159,10 +6060,10 @@ "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, "num2fraction": { @@ -6178,9 +6079,9 @@ "dev": true }, "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", "dev": true }, "object-assign": { @@ -6195,10 +6096,10 @@ "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=", "dev": true, "requires": { - "array-each": "1.0.1", - "array-slice": "1.0.0", - "for-own": "1.0.0", - "isobject": "3.0.1" + "array-each": "^1.0.1", + "array-slice": "^1.0.0", + "for-own": "^1.0.0", + "isobject": "^3.0.0" }, "dependencies": { "for-own": { @@ -6207,7 +6108,7 @@ "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", "dev": true, "requires": { - "for-in": "1.0.2" + "for-in": "^1.0.1" } }, "isobject": { @@ -6224,8 +6125,8 @@ "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", "dev": true, "requires": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" + "for-own": "^0.1.4", + "is-extendable": "^0.1.1" } }, "object.pick": { @@ -6234,7 +6135,7 @@ "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, "requires": { - "isobject": "3.0.1" + "isobject": "^3.0.1" }, "dependencies": { "isobject": { @@ -6254,19 +6155,13 @@ "ee-first": "1.1.1" } }, - "on-headers": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", - "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=", - "dev": true - }, "once": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA=", "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "onetime": { @@ -6282,9 +6177,9 @@ "dev": true, "optional": true, "requires": { - "bin-build": "2.2.0", - "bin-wrapper": "3.0.2", - "logalot": "2.1.0" + "bin-build": "^2.0.0", + "bin-wrapper": "^3.0.0", + "logalot": "^2.0.0" } }, "orchestrator": { @@ -6293,9 +6188,9 @@ "integrity": "sha1-FOfp4nZPcxX7rBhOUGx6pt+UrX4=", "dev": true, "requires": { - "end-of-stream": "0.1.5", - "sequencify": "0.0.7", - "stream-consume": "0.1.0" + "end-of-stream": "~0.1.5", + "sequencify": "~0.0.7", + "stream-consume": "~0.1.0" } }, "ordered-read-streams": { @@ -6322,7 +6217,7 @@ "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "dev": true, "requires": { - "lcid": "1.0.0" + "lcid": "^1.0.0" } }, "os-tmpdir": { @@ -6332,13 +6227,13 @@ "dev": true }, "osenv": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz", - "integrity": "sha1-Qv5tWVPfBsgGS+bxdsPQWqqjRkQ=", + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, "p-finally": { @@ -6365,9 +6260,9 @@ "integrity": "sha1-FZ1hVdQ5BNFsEO9piRHaHpGWm3M=", "dev": true, "requires": { - "is-absolute": "0.2.6", - "map-cache": "0.2.2", - "path-root": "0.1.1" + "is-absolute": "^0.2.3", + "map-cache": "^0.2.0", + "path-root": "^0.1.1" } }, "parse-glob": { @@ -6376,10 +6271,10 @@ "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", "dev": true, "requires": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" + "glob-base": "^0.3.0", + "is-dotfile": "^1.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.0" } }, "parse-json": { @@ -6388,9 +6283,15 @@ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { - "error-ex": "1.3.1" + "error-ex": "^1.2.0" } }, + "parse-node-version": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", + "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", + "dev": true + }, "parse-passwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", @@ -6415,7 +6316,7 @@ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { - "pinkie-promise": "2.0.1" + "pinkie-promise": "^2.0.0" } }, "path-is-absolute": { @@ -6448,7 +6349,7 @@ "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", "dev": true, "requires": { - "path-root-regex": "0.1.2" + "path-root-regex": "^0.1.0" } }, "path-root-regex": { @@ -6463,9 +6364,9 @@ "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" }, "dependencies": { "graceful-fs": { @@ -6482,19 +6383,13 @@ } } }, - "pause": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/pause/-/pause-0.1.0.tgz", - "integrity": "sha1-68ikqGGf8LioGsFRPDQ0/0af23Q=", - "dev": true - }, "pause-stream": { "version": "0.0.11", "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", "dev": true, "requires": { - "through": "2.3.8" + "through": "~2.3" } }, "pend": { @@ -6527,7 +6422,53 @@ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { - "pinkie": "2.0.4" + "pinkie": "^2.0.0" + } + }, + "plugin-error": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", + "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", + "dev": true, + "requires": { + "ansi-cyan": "^0.1.1", + "ansi-red": "^0.1.1", + "arr-diff": "^1.0.1", + "arr-union": "^2.0.1", + "extend-shallow": "^1.1.2" + }, + "dependencies": { + "arr-diff": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", + "integrity": "sha1-aHwydYFjWI/vfeezb6vklesaOZo=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1", + "array-slice": "^0.2.3" + } + }, + "array-slice": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", + "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", + "dev": true + }, + "extend-shallow": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", + "integrity": "sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE=", + "dev": true, + "requires": { + "kind-of": "^1.1.0" + } + }, + "kind-of": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", + "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=", + "dev": true + } } }, "plur": { @@ -6536,7 +6477,7 @@ "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", "dev": true, "requires": { - "irregular-plurals": "1.3.0" + "irregular-plurals": "^1.0.0" } }, "pngcrush-bin": { @@ -6545,57 +6486,63 @@ "integrity": "sha512-Sb60BVQpIKYRaVVCQ7ZIMAuA4kOFJKj4AeC8KSyVcgSCRNszh+pc87sCTi30WyvxVKsKtSXJNQP4K9sONGxr7Q==", "dev": true, "requires": { - "bin-build": "2.2.0", - "bin-wrapper": "3.0.2", - "logalot": "2.1.0" + "bin-build": "^2.2.0", + "bin-wrapper": "^3.0.0", + "logalot": "^2.0.0" } }, "postcss": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.13.tgz", - "integrity": "sha512-nHsrD1PPTMSJDfU+osVsLtPkSP9YGeoOz4FDLN4r1DW4N5vqL1J+gACzTQHsfwIiWG/0/nV4yCzjTMo1zD8U1g==", + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", "dev": true, "requires": { - "chalk": "2.1.0", - "source-map": "0.6.1", - "supports-color": "4.4.0" + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" }, "dependencies": { "ansi-styles": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", - "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.0" + "color-convert": "^1.9.0" } }, "chalk": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz", - "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { - "ansi-styles": "3.2.0", - "escape-string-regexp": "1.0.5", - "supports-color": "4.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, "supports-color": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", - "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "has-flag": "2.0.0" + "has-flag": "^3.0.0" } } } }, "postcss-value-parser": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", - "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", "dev": true }, "prepend-http": { @@ -6623,9 +6570,9 @@ "dev": true }, "private": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.7.tgz", - "integrity": "sha1-aM5eih7woju1cMwoU3tTMqumPvE=", + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", "dev": true }, "process-nextick-args": { @@ -6640,10 +6587,16 @@ "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", "dev": true }, + "psl": { + "version": "1.1.31", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz", + "integrity": "sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw==", + "dev": true + }, "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "dev": true }, "q": { @@ -6654,15 +6607,9 @@ "optional": true }, "qs": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-4.0.0.tgz", - "integrity": "sha1-wx2bdOwn33XlQ6hseHKO2NRiNgc=", - "dev": true - }, - "random-bytes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", - "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.6.0.tgz", + "integrity": "sha512-KIJqT9jQJDQx5h5uAVPimw6yVg2SekOKu959OCtktD3FjzbpvaPr8i4zzg07DOMz+igA4W/aNM7OV8H37pFYfA==", "dev": true }, "randomatic": { @@ -6671,8 +6618,8 @@ "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", "dev": true, "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" + "is-number": "^3.0.0", + "kind-of": "^4.0.0" }, "dependencies": { "is-number": { @@ -6681,7 +6628,7 @@ "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -6690,7 +6637,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.5" + "is-buffer": "^1.1.5" } } } @@ -6701,15 +6648,15 @@ "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", "dev": true, "requires": { - "is-buffer": "1.1.5" + "is-buffer": "^1.1.5" } } } }, "range-parser": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.3.tgz", - "integrity": "sha1-aHKCNTXGkuLCoBA4Jq/YLC4P8XU=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=", "dev": true }, "raw-body": { @@ -6743,10 +6690,10 @@ "integrity": "sha1-LgPo5C7kULjLPc5lvhv4l04d/ZU=", "dev": true, "requires": { - "deep-extend": "0.4.2", - "ini": "1.3.4", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "~0.4.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" } }, "rcfinder": { @@ -6755,7 +6702,7 @@ "integrity": "sha1-8+gPOH3fmugK4wpBADKWQuroERU=", "dev": true, "requires": { - "lodash.clonedeep": "4.5.0" + "lodash.clonedeep": "^4.3.2" } }, "rcloader": { @@ -6764,10 +6711,10 @@ "integrity": "sha1-WNIpi0YtC5v9ITPSoex0+9cFxxc=", "dev": true, "requires": { - "lodash.assign": "4.2.0", - "lodash.isobject": "3.0.2", - "lodash.merge": "4.6.0", - "rcfinder": "0.1.9" + "lodash.assign": "^4.2.0", + "lodash.isobject": "^3.0.2", + "lodash.merge": "^4.6.0", + "rcfinder": "^0.1.6" } }, "read-all-stream": { @@ -6776,8 +6723,8 @@ "integrity": "sha1-NcPhd/IHjveJ7kv6+kNzB06u9Po=", "dev": true, "requires": { - "pinkie-promise": "2.0.1", - "readable-stream": "2.3.3" + "pinkie-promise": "^2.0.0", + "readable-stream": "^2.0.0" }, "dependencies": { "isarray": { @@ -6792,13 +6739,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -6807,7 +6754,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -6818,9 +6765,9 @@ "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", "dev": true, "requires": { - "load-json-file": "1.1.0", - "normalize-package-data": "2.4.0", - "path-type": "1.1.0" + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" } }, "read-pkg-up": { @@ -6829,8 +6776,8 @@ "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", "dev": true, "requires": { - "find-up": "1.1.2", - "read-pkg": "1.1.0" + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" } }, "readable-stream": { @@ -6839,10 +6786,10 @@ "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "rechoir": { @@ -6851,7 +6798,7 @@ "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", "dev": true, "requires": { - "resolve": "1.4.0" + "resolve": "^1.1.6" } }, "redent": { @@ -6860,14 +6807,14 @@ "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", "dev": true, "requires": { - "indent-string": "2.1.0", - "strip-indent": "1.0.1" + "indent-string": "^2.1.0", + "strip-indent": "^1.0.1" } }, "regenerator-runtime": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz", - "integrity": "sha512-/aA0kLeRb5N9K0d4fw7ooEbI+xDe+DKD499EQqygGqeS8N3xto15p09uY2xj7ixP81sNPXvRLnAQIqdVStgb1A==", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", "dev": true }, "regex-cache": { @@ -6876,7 +6823,7 @@ "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", "dev": true, "requires": { - "is-equal-shallow": "0.1.3" + "is-equal-shallow": "^0.1.3" } }, "remove-trailing-separator": { @@ -6903,7 +6850,7 @@ "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", "dev": true, "requires": { - "is-finite": "1.0.2" + "is-finite": "^1.0.0" } }, "replace-ext": { @@ -6913,39 +6860,64 @@ "dev": true }, "request": { - "version": "2.83.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz", - "integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==", - "dev": true, - "requires": { - "aws-sign2": "0.7.0", - "aws4": "1.6.0", - "caseless": "0.12.0", - "combined-stream": "1.0.5", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.3.1", - "har-validator": "5.0.3", - "hawk": "6.0.2", - "http-signature": "1.2.0", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.17", - "oauth-sign": "0.8.2", - "performance-now": "2.1.0", - "qs": "6.5.1", - "safe-buffer": "5.1.1", - "stringstream": "0.0.5", - "tough-cookie": "2.3.3", - "tunnel-agent": "0.6.0", - "uuid": "3.1.0" + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" }, "dependencies": { + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "mime-db": { + "version": "1.38.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", + "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==", + "dev": true + }, + "mime-types": { + "version": "2.1.22", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", + "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", + "dev": true, + "requires": { + "mime-db": "~1.38.0" + } + }, "qs": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", - "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==", + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, "tunnel-agent": { @@ -6954,8 +6926,14 @@ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "^5.0.1" } + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", + "dev": true } } }, @@ -6977,7 +6955,7 @@ "integrity": "sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==", "dev": true, "requires": { - "path-parse": "1.0.5" + "path-parse": "^1.0.5" } }, "resolve-dir": { @@ -6986,8 +6964,8 @@ "integrity": "sha1-shklmlYC+sXFxJatiUpujMQwJh4=", "dev": true, "requires": { - "expand-tilde": "1.2.2", - "global-modules": "0.2.3" + "expand-tilde": "^1.2.2", + "global-modules": "^0.2.3" } }, "resolve-url": { @@ -6996,31 +6974,13 @@ "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", "dev": true }, - "response-time": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/response-time/-/response-time-2.3.2.tgz", - "integrity": "sha1-/6cbq5UtYvfB1Jt0NDVfvGjf/Fo=", - "dev": true, - "requires": { - "depd": "1.1.1", - "on-headers": "1.0.1" - }, - "dependencies": { - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", - "dev": true - } - } - }, "rimraf": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" }, "dependencies": { "glob": { @@ -7029,12 +6989,12 @@ "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.3.3", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "minimatch": { @@ -7043,53 +7003,59 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } } } }, - "rndm": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/rndm/-/rndm-1.2.0.tgz", - "integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w=", - "dev": true - }, "safe-buffer": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", "dev": true }, + "safe-json-parse": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-1.0.1.tgz", + "integrity": "sha1-PnZyPjjf3aE8mx0poeB//uSzC1c=", + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, "sass-graph": { "version": "2.2.4", "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", "dev": true, "requires": { - "glob": "7.1.2", - "lodash": "4.17.4", - "scss-tokenizer": "0.2.3", - "yargs": "7.1.0" + "glob": "^7.0.0", + "lodash": "^4.0.0", + "scss-tokenizer": "^0.2.3", + "yargs": "^7.0.0" }, "dependencies": { "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.3.3", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "minimatch": { @@ -7098,7 +7064,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } } } @@ -7116,8 +7082,8 @@ "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", "dev": true, "requires": { - "js-base64": "2.3.2", - "source-map": "0.4.4" + "js-base64": "^2.1.8", + "source-map": "^0.4.2" }, "dependencies": { "source-map": { @@ -7126,7 +7092,7 @@ "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "dev": true, "requires": { - "amdefine": "1.0.1" + "amdefine": ">=0.0.4" } } } @@ -7137,7 +7103,7 @@ "integrity": "sha1-z+kXyz0nS8/6x5J1ivUxc+sfq9w=", "dev": true, "requires": { - "commander": "2.8.1" + "commander": "~2.8.1" } }, "semver": { @@ -7158,7 +7124,7 @@ "integrity": "sha1-V/Qd5pcHpicJp+AQS6IRcQnqR+g=", "dev": true, "requires": { - "semver": "5.4.1" + "semver": "^5.3.0" }, "dependencies": { "semver": { @@ -7170,50 +7136,42 @@ } }, "send": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.13.2.tgz", - "integrity": "sha1-dl52B8gFVFK7pvCwUllTUJhgNt4=", - "dev": true, - "requires": { - "debug": "2.2.0", - "depd": "1.1.1", - "destroy": "1.0.4", - "escape-html": "1.0.3", - "etag": "1.7.0", - "fresh": "0.3.0", - "http-errors": "1.3.1", - "mime": "1.3.4", - "ms": "0.7.1", - "on-finished": "2.3.0", - "range-parser": "1.0.3", - "statuses": "1.2.1" + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", + "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", + "dev": true, + "requires": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.6.2", + "mime": "1.4.1", + "ms": "2.0.0", + "on-finished": "~2.3.0", + "range-parser": "~1.2.0", + "statuses": "~1.4.0" }, "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", "dev": true, "requires": { - "ms": "0.7.1" + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" } }, - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", - "dev": true - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - }, "statuses": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz", - "integrity": "sha1-3e1FzBglbVHtQK7BQkidXGECbSg=", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", "dev": true } } @@ -7224,67 +7182,51 @@ "integrity": "sha1-kM/xnQLgcCf9dn9erT57ldHnOAw=", "dev": true }, - "serve-favicon": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.3.2.tgz", - "integrity": "sha1-3UGeJo3gEqtysxnTN/IQUBP5OB8=", + "serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", "dev": true, "requires": { - "etag": "1.7.0", - "fresh": "0.3.0", - "ms": "0.7.2", - "parseurl": "1.3.2" - }, - "dependencies": { - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - } - } - }, - "serve-index": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.7.3.tgz", - "integrity": "sha1-egV/xu4o3GP2RWbl+lexEahq7NI=", - "dev": true, - "requires": { - "accepts": "1.2.13", - "batch": "0.5.3", - "debug": "2.2.0", - "escape-html": "1.0.3", - "http-errors": "1.3.1", - "mime-types": "2.1.17", - "parseurl": "1.3.2" + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" }, "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", "dev": true, "requires": { - "ms": "0.7.1" + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" } }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", "dev": true } } }, "serve-static": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.10.3.tgz", - "integrity": "sha1-zlpuzTEB/tXsCYJ9rCKpwpv7BTU=", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", + "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", "dev": true, "requires": { - "escape-html": "1.0.3", - "parseurl": "1.3.2", - "send": "0.13.2" + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.2", + "send": "0.16.2" } }, "set-blocking": { @@ -7299,13 +7241,19 @@ "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", "dev": true }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { - "shebang-regex": "1.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { @@ -7323,7 +7271,7 @@ "shellwords": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "integrity": "sha1-1rkYHBpI05cyTISHHvvPxz/AZUs=", "dev": true }, "sigmund": { @@ -7344,31 +7292,23 @@ "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", "dev": true }, - "sntp": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.0.2.tgz", - "integrity": "sha1-UGQRDwr4X3z9t9a2ekACjOUrSys=", - "dev": true, - "requires": { - "hoek": "4.2.0" - } - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", "dev": true }, "source-map-resolve": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.3.1.tgz", - "integrity": "sha1-YQ9hIqRFuN1RU1oqcbeD38Ekh2E=", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", + "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", "dev": true, "requires": { - "atob": "1.1.3", - "resolve-url": "0.2.1", - "source-map-url": "0.3.0", - "urix": "0.1.0" + "atob": "^2.1.1", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" } }, "source-map-support": { @@ -7377,7 +7317,7 @@ "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "^0.5.6" }, "dependencies": { "source-map": { @@ -7389,9 +7329,9 @@ } }, "source-map-url": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.3.0.tgz", - "integrity": "sha1-fsrxO1e80J2opAxdJp2zN5nUqvk=", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", "dev": true }, "sparkles": { @@ -7406,7 +7346,7 @@ "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", "dev": true, "requires": { - "spdx-license-ids": "1.2.2" + "spdx-license-ids": "^1.0.2" } }, "spdx-expression-parse": { @@ -7427,7 +7367,7 @@ "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", "dev": true, "requires": { - "through": "2.3.8" + "through": "2" } }, "sprintf-js": { @@ -7443,25 +7383,26 @@ "integrity": "sha1-MwRQN7ZDiLVnZ0uEMiplIQc5FsM=", "dev": true, "requires": { - "chalk": "1.1.3", - "console-stream": "0.1.1", - "lpad-align": "1.1.2" + "chalk": "^1.0.0", + "console-stream": "^0.1.1", + "lpad-align": "^1.0.1" } }, "sshpk": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", - "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", "dev": true, "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" } }, "stat-mode": { @@ -7477,12 +7418,12 @@ "dev": true }, "stdout-stream": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz", - "integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", + "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", "dev": true, "requires": { - "readable-stream": "2.3.3" + "readable-stream": "^2.0.1" }, "dependencies": { "isarray": { @@ -7491,28 +7432,34 @@ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -7523,7 +7470,7 @@ "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", "dev": true, "requires": { - "duplexer": "0.1.1" + "duplexer": "~0.1.1" } }, "stream-combiner2": { @@ -7532,8 +7479,8 @@ "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", "dev": true, "requires": { - "duplexer2": "0.1.4", - "readable-stream": "2.3.3" + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" }, "dependencies": { "duplexer2": { @@ -7542,7 +7489,7 @@ "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", "dev": true, "requires": { - "readable-stream": "2.3.3" + "readable-stream": "^2.0.2" } }, "isarray": { @@ -7557,13 +7504,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -7572,7 +7519,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -7583,30 +7530,27 @@ "integrity": "sha1-pB6tGm1ggc63n2WwYZAbbY89HQ8=", "dev": true }, - "stream-counter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/stream-counter/-/stream-counter-0.2.0.tgz", - "integrity": "sha1-3tJmVWMZyLDiIoErnPOyb6fZR94=", - "dev": true, - "requires": { - "readable-stream": "1.1.14" - } - }, "stream-shift": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", "dev": true }, + "string-template": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/string-template/-/string-template-0.2.1.tgz", + "integrity": "sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=", + "dev": true + }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "string_decoder": { @@ -7615,19 +7559,13 @@ "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", "dev": true }, - "stringstream": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", - "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", - "dev": true - }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-bom": { @@ -7636,8 +7574,8 @@ "integrity": "sha1-hbiGLzhEtabV7IRnqTWYFzo295Q=", "dev": true, "requires": { - "first-chunk-stream": "1.0.0", - "is-utf8": "0.2.1" + "first-chunk-stream": "^1.0.0", + "is-utf8": "^0.2.0" } }, "strip-bom-stream": { @@ -7646,8 +7584,8 @@ "integrity": "sha1-5xRDmFd9Uaa+0PoZlPoF9D/ZiO4=", "dev": true, "requires": { - "first-chunk-stream": "1.0.0", - "strip-bom": "2.0.0" + "first-chunk-stream": "^1.0.0", + "strip-bom": "^2.0.0" }, "dependencies": { "strip-bom": { @@ -7656,7 +7594,7 @@ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.0" } } } @@ -7673,12 +7611,12 @@ "integrity": "sha1-lgu9EoeETzl1pFWKoQOoJV4kVqA=", "dev": true, "requires": { - "chalk": "1.1.3", - "get-stdin": "4.0.1", - "is-absolute": "0.1.7", - "is-natural-number": "2.1.1", - "minimist": "1.2.0", - "sum-up": "1.0.3" + "chalk": "^1.0.0", + "get-stdin": "^4.0.1", + "is-absolute": "^0.1.5", + "is-natural-number": "^2.0.0", + "minimist": "^1.1.0", + "sum-up": "^1.0.1" }, "dependencies": { "is-absolute": { @@ -7687,7 +7625,7 @@ "integrity": "sha1-hHSREZ/MtftDYhfMc39/qtUPYD8=", "dev": true, "requires": { - "is-relative": "0.1.3" + "is-relative": "^0.1.0" } }, "is-relative": { @@ -7710,7 +7648,7 @@ "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", "dev": true, "requires": { - "get-stdin": "4.0.1" + "get-stdin": "^4.0.1" } }, "strip-json-comments": { @@ -7725,7 +7663,7 @@ "integrity": "sha1-qsC6YNLpDF1PJ1/Yhp/ZotMQ/7g=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5" + "escape-string-regexp": "^1.0.2" } }, "sum-up": { @@ -7734,7 +7672,7 @@ "integrity": "sha1-HGYfZnBX9jvLeHWqFDi8FiUlFW4=", "dev": true, "requires": { - "chalk": "1.1.3" + "chalk": "^1.0.0" } }, "supports-color": { @@ -7750,13 +7688,13 @@ "dev": true, "optional": true, "requires": { - "coa": "1.0.4", - "colors": "1.1.2", - "csso": "2.3.2", - "js-yaml": "3.7.0", - "mkdirp": "0.5.1", - "sax": "1.2.4", - "whet.extend": "0.9.9" + "coa": "~1.0.1", + "colors": "~1.1.2", + "csso": "~2.3.1", + "js-yaml": "~3.7.0", + "mkdirp": "~0.5.1", + "sax": "~1.2.1", + "whet.extend": "~0.9.9" } }, "tar": { @@ -7765,9 +7703,9 @@ "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", "dev": true, "requires": { - "block-stream": "0.0.9", - "fstream": "1.0.11", - "inherits": "2.0.3" + "block-stream": "*", + "fstream": "^1.0.2", + "inherits": "2" } }, "tar-stream": { @@ -7776,10 +7714,10 @@ "integrity": "sha1-NlSc8E7RrumyowwBQyUiONr5QBY=", "dev": true, "requires": { - "bl": "1.2.1", - "end-of-stream": "1.4.0", - "readable-stream": "2.3.3", - "xtend": "4.0.1" + "bl": "^1.0.0", + "end-of-stream": "^1.0.0", + "readable-stream": "^2.0.0", + "xtend": "^4.0.0" }, "dependencies": { "end-of-stream": { @@ -7788,7 +7726,7 @@ "integrity": "sha1-epDYM+/abPpurA9JSduw+tOmMgY=", "dev": true, "requires": { - "once": "1.4.0" + "once": "^1.4.0" } }, "isarray": { @@ -7803,7 +7741,7 @@ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "readable-stream": { @@ -7812,13 +7750,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -7827,7 +7765,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -7844,8 +7782,8 @@ "integrity": "sha1-awRGhWqbERTRhW/8vlCczLCXcmU=", "dev": true, "requires": { - "temp-dir": "1.0.0", - "uuid": "3.1.0" + "temp-dir": "^1.0.0", + "uuid": "^3.0.1" } }, "ternary-stream": { @@ -7854,10 +7792,10 @@ "integrity": "sha1-Bk5Im0tb9gumpre8fy9cJ07Pgmk=", "dev": true, "requires": { - "duplexify": "3.5.1", - "fork-stream": "0.0.4", - "merge-stream": "1.0.1", - "through2": "2.0.3" + "duplexify": "^3.5.0", + "fork-stream": "^0.0.4", + "merge-stream": "^1.0.0", + "through2": "^2.0.1" } }, "text-hex": { @@ -7878,8 +7816,8 @@ "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", "dev": true, "requires": { - "readable-stream": "2.3.3", - "xtend": "4.0.1" + "readable-stream": "^2.1.5", + "xtend": "~4.0.1" }, "dependencies": { "isarray": { @@ -7894,13 +7832,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -7909,7 +7847,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -7920,7 +7858,7 @@ "integrity": "sha1-EctOpMnjG8puTB5tukjRxyjDUks=", "dev": true, "requires": { - "through2": "2.0.3" + "through2": "^2.0.0" } }, "through2-filter": { @@ -7929,8 +7867,8 @@ "integrity": "sha1-YLxVoNrLdghdsfna6Zq0P4PWIuw=", "dev": true, "requires": { - "through2": "2.0.3", - "xtend": "4.0.1" + "through2": "~2.0.0", + "xtend": "~4.0.0" } }, "tildify": { @@ -7939,7 +7877,7 @@ "integrity": "sha1-3OwD9V3Km3qj5bBPIYF+tW5jWIo=", "dev": true, "requires": { - "os-homedir": "1.0.2" + "os-homedir": "^1.0.0" } }, "time-stamp": { @@ -7960,8 +7898,8 @@ "integrity": "sha1-YcxHp2wavTGV8UUn+XjViulMUgQ=", "dev": true, "requires": { - "es5-ext": "0.10.31", - "next-tick": "1.0.0" + "es5-ext": "~0.10.14", + "next-tick": "1" }, "dependencies": { "next-tick": { @@ -7973,82 +7911,44 @@ } }, "tiny-lr": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-0.2.1.tgz", - "integrity": "sha1-s/26gC5dVqM8L28QeUsy5Hescp0=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-1.1.1.tgz", + "integrity": "sha512-44yhA3tsaRoMOjQQ+5v5mVdqef+kH6Qze9jTpqtVufgYjYt08zyZAwNwwVBj3i1rJMnR52IxOW0LK0vBzgAkuA==", "dev": true, "requires": { - "body-parser": "1.14.2", - "debug": "2.2.0", - "faye-websocket": "0.10.0", - "livereload-js": "2.2.2", - "parseurl": "1.3.2", - "qs": "5.1.0" + "body": "^5.1.0", + "debug": "^3.1.0", + "faye-websocket": "~0.10.0", + "livereload-js": "^2.3.0", + "object-assign": "^4.1.0", + "qs": "^6.4.0" }, "dependencies": { - "body-parser": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.14.2.tgz", - "integrity": "sha1-EBXLH+LEQ4WCWVgdtTMy+NDPUPk=", - "dev": true, - "requires": { - "bytes": "2.2.0", - "content-type": "1.0.4", - "debug": "2.2.0", - "depd": "1.1.1", - "http-errors": "1.3.1", - "iconv-lite": "0.4.13", - "on-finished": "2.3.0", - "qs": "5.2.0", - "raw-body": "2.1.7", - "type-is": "1.6.15" - }, - "dependencies": { - "qs": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-5.2.0.tgz", - "integrity": "sha1-qfMRQq9GjLcrJbMBNrokVoNJFr4=", - "dev": true - } - } - }, - "bytes": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz", - "integrity": "sha1-/TVGSkA/b5EXwt42Cez/nK4ABYg=", - "dev": true - }, "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "dev": true, "requires": { - "ms": "0.7.1" + "ms": "^2.1.1" } }, - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", - "dev": true - }, - "iconv-lite": { - "version": "0.4.13", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", - "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", + "livereload-js": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-2.4.0.tgz", + "integrity": "sha512-XPQH8Z2GDP/Hwz2PCDrh2mth4yFejwA1OZ/81Ti3LgKyhDcEjsSsqFWZojHG0va/duGd+WyosY7eXLDoOyqcPw==", "dev": true }, "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", "dev": true }, - "qs": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-5.1.0.tgz", - "integrity": "sha1-TZMuXH6kEcynajEtOaYGIA/VDNk=", + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true } } @@ -8059,7 +7959,7 @@ "integrity": "sha1-HN+kcqnvUMI57maZm2YsoOs5k38=", "dev": true, "requires": { - "extend-shallow": "2.0.1" + "extend-shallow": "^2.0.1" } }, "to-fast-properties": { @@ -8069,12 +7969,21 @@ "dev": true }, "tough-cookie": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", - "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", "dev": true, "requires": { - "punycode": "1.4.1" + "psl": "^1.1.24", + "punycode": "^1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + } } }, "trim-newlines": { @@ -8089,7 +7998,7 @@ "integrity": "sha1-42RqLqTokTEr9+rObPsFOAvAHCE=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5" + "escape-string-regexp": "^1.0.2" } }, "trim-right": { @@ -8098,11 +8007,39 @@ "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", "dev": true }, - "tsscmp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", - "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", - "dev": true + "true-case-path": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", + "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==", + "dev": true, + "requires": { + "glob": "^7.1.2" + }, + "dependencies": { + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + } + } }, "tunnel-agent": { "version": "0.4.3", @@ -8114,8 +8051,7 @@ "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true, - "optional": true + "dev": true }, "type-is": { "version": "1.6.15", @@ -8124,7 +8060,7 @@ "dev": true, "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.17" + "mime-types": "~2.1.15" } }, "typedarray": { @@ -8134,38 +8070,23 @@ "dev": true }, "uglify-js": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.1.3.tgz", - "integrity": "sha512-5ZUOgufCHjN2mBBLfz63UtWTP6va2sSzBpNCM+/iqI6RnPzEhANmB0EKiKBYdQbc3v7KeomXJ2DJx0Xq9gvUvA==", + "version": "3.4.10", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz", + "integrity": "sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==", "dev": true, "requires": { - "commander": "2.11.0", - "source-map": "0.5.7" + "commander": "~2.19.0", + "source-map": "~0.6.1" }, "dependencies": { "commander": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", - "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", + "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==", "dev": true } } }, - "uid-safe": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.4.tgz", - "integrity": "sha1-Otbzg2jG1MjHXsF2I/t5qh0HHYE=", - "dev": true, - "requires": { - "random-bytes": "1.0.0" - } - }, "unc-path-regex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", @@ -8190,6 +8111,15 @@ "integrity": "sha1-uYTwh3/AqJwsdzzB73tbIytbBv4=", "dev": true }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, "urix": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", @@ -8202,7 +8132,7 @@ "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", "dev": true, "requires": { - "prepend-http": "1.0.4" + "prepend-http": "^1.0.1" } }, "url-regex": { @@ -8211,7 +8141,7 @@ "integrity": "sha1-260eDJ4p4QXdCx8J9oYvf9tIJyQ=", "dev": true, "requires": { - "ip-regex": "1.0.3" + "ip-regex": "^1.0.1" } }, "user-home": { @@ -8227,9 +8157,9 @@ "dev": true }, "utils-merge": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz", - "integrity": "sha1-ApT7kiu5N1FTVBxPcJYjHyh8ivg=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", "dev": true }, "uuid": { @@ -8244,7 +8174,7 @@ "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", "dev": true, "requires": { - "user-home": "1.1.1" + "user-home": "^1.1.1" } }, "vali-date": { @@ -8259,41 +8189,29 @@ "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", "dev": true, "requires": { - "spdx-correct": "1.0.2", - "spdx-expression-parse": "1.0.4" + "spdx-correct": "~1.0.0", + "spdx-expression-parse": "~1.0.0" } }, - "vary": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.0.1.tgz", - "integrity": "sha1-meSYFWaihhGN+yuBc1ffeZM3bRA=", - "dev": true - }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, "requires": { - "assert-plus": "1.0.0", + "assert-plus": "^1.0.0", "core-util-is": "1.0.2", - "extsprintf": "1.3.0" + "extsprintf": "^1.2.0" } }, - "vhost": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/vhost/-/vhost-3.0.2.tgz", - "integrity": "sha1-L7HezUxGaqiLD5NBrzPcGv8keNU=", - "dev": true - }, "vinyl": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", "dev": true, "requires": { - "clone": "1.0.2", - "clone-stats": "0.0.1", + "clone": "^1.0.0", + "clone-stats": "^0.0.1", "replace-ext": "0.0.1" } }, @@ -8303,8 +8221,8 @@ "integrity": "sha1-TRmIkbVRWRHXcajNnFSApGoHSkU=", "dev": true, "requires": { - "object-assign": "4.1.1", - "readable-stream": "2.3.3" + "object-assign": "^4.0.1", + "readable-stream": "^2.0.0" }, "dependencies": { "isarray": { @@ -8325,13 +8243,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "string_decoder": { @@ -8340,7 +8258,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -8351,14 +8269,14 @@ "integrity": "sha1-mmhRzhysHBzqX+hsCTHWIMLPqeY=", "dev": true, "requires": { - "defaults": "1.0.3", - "glob-stream": "3.1.18", - "glob-watcher": "0.0.6", - "graceful-fs": "3.0.11", - "mkdirp": "0.5.1", - "strip-bom": "1.0.0", - "through2": "0.6.5", - "vinyl": "0.4.6" + "defaults": "^1.0.0", + "glob-stream": "^3.1.5", + "glob-watcher": "^0.0.6", + "graceful-fs": "^3.0.0", + "mkdirp": "^0.5.0", + "strip-bom": "^1.0.0", + "through2": "^0.6.1", + "vinyl": "^0.4.0" }, "dependencies": { "clone": { @@ -8373,10 +8291,10 @@ "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", "isarray": "0.0.1", - "string_decoder": "0.10.31" + "string_decoder": "~0.10.x" } }, "through2": { @@ -8385,8 +8303,8 @@ "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } }, "vinyl": { @@ -8395,8 +8313,8 @@ "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", "dev": true, "requires": { - "clone": "0.2.0", - "clone-stats": "0.0.1" + "clone": "^0.2.0", + "clone-stats": "^0.0.1" } } } @@ -8407,7 +8325,7 @@ "integrity": "sha1-q2VJ1h0XLCsbh75cUI0jnI74dwU=", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "^0.5.1" }, "dependencies": { "source-map": { @@ -8424,7 +8342,7 @@ "integrity": "sha1-0bFPOdLiy0q4xAmPdW/ksWTkc9Q=", "dev": true, "requires": { - "wrap-fn": "0.1.5" + "wrap-fn": "^0.1.0" } }, "websocket-driver": { @@ -8433,8 +8351,8 @@ "integrity": "sha1-DK+dLXVdk67gSdS90NP+LMoqJOs=", "dev": true, "requires": { - "http-parser-js": "0.4.9", - "websocket-extensions": "0.1.2" + "http-parser-js": ">=0.4.0", + "websocket-extensions": ">=0.1.1" } }, "websocket-extensions": { @@ -8456,7 +8374,7 @@ "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", "dev": true, "requires": { - "isexe": "2.0.0" + "isexe": "^2.0.0" } }, "which-module": { @@ -8466,12 +8384,12 @@ "dev": true }, "wide-align": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", - "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, "requires": { - "string-width": "1.0.2" + "string-width": "^1.0.2 || 2" } }, "wrap-ansi": { @@ -8480,8 +8398,8 @@ "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" } }, "wrap-fn": { @@ -8523,19 +8441,19 @@ "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", "dev": true, "requires": { - "camelcase": "3.0.0", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "get-caller-file": "1.0.2", - "os-locale": "1.4.0", - "read-pkg-up": "1.0.1", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "1.0.2", - "which-module": "1.0.0", - "y18n": "3.2.1", - "yargs-parser": "5.0.0" + "camelcase": "^3.0.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^5.0.0" }, "dependencies": { "camelcase": { @@ -8552,7 +8470,7 @@ "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", "dev": true, "requires": { - "camelcase": "3.0.0" + "camelcase": "^3.0.0" }, "dependencies": { "camelcase": { @@ -8569,8 +8487,8 @@ "integrity": "sha1-eUUK/yKyqcWkHvVOAtuQfM+/nuI=", "dev": true, "requires": { - "buffer-crc32": "0.2.13", - "fd-slicer": "1.0.1" + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.0.1" } } } diff --git a/Ignia.Topics.Editor.Mvc/package.json b/Ignia.Topics.Editor.Mvc/package.json index 66f2d3cf..b12513e8 100644 --- a/Ignia.Topics.Editor.Mvc/package.json +++ b/Ignia.Topics.Editor.Mvc/package.json @@ -27,28 +27,27 @@ }, "homepage": "https://github.com/Ignia/gulp-workflow", "devDependencies": { - "bower": "^1.8.0", "del": "^3.0.0", "gulp": "^3.9.1", - "gulp-autoprefixer": "^4.0.0", - "gulp-babel": "^6.1.2", - "gulp-clean-css": "^3.7.0", + "gulp-autoprefixer": "^4.1.0", + "gulp-babel": "^6.1.3", + "gulp-clean-css": "^3.10.0", "gulp-concat": "^2.6.1", - "gulp-connect": "^5.0.0", + "gulp-connect": "^5.7.0", "gulp-if": "^2.0.2", "gulp-imagemin": "^3.1.1", - "gulp-jshint": "^2.0.4", - "gulp-jsonminify": "^1.0.0", + "gulp-jshint": "^2.1.0", + "gulp-jsonminify": "^1.1.0", "gulp-livereload": "^3.8.1", "gulp-minify-html": "^1.0.6", - "gulp-notify": "^3.0.0", - "gulp-sass": "^3.1.0", - "gulp-sass-unicode": "^1.0.1", - "gulp-sourcemaps": "^2.4.1", - "gulp-uglify": "^3.0.0", + "gulp-notify": "^3.2.0", + "gulp-sass": "^3.2.1", + "gulp-sass-unicode": "^1.0.2", + "gulp-sourcemaps": "^2.6.5", + "gulp-uglify": "^3.0.2", "gulp-util": "^3.0.8", "imagemin-pngcrush": "^5.0.0", - "jshint": "^2.9.5", + "jshint": "^2.10.2", "jsonminify": "^0.4.1" } } From 4f1bca525857bca7d8459ef9ca11a1478fd1953d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 21 Mar 2019 01:36:05 -0700 Subject: [PATCH 289/637] Migrated to RCL/Host format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduced a new *ASP.NET Core* website project, `Ignia.Topics.Editor.Mvc.Host`, that acts as a sample host application. Then migrated the `Ignia.Topics.Editor.Mvc` to a _Razor Class Library (RCL)_, so that it can be embdded into the `Host` project—or redistributed to any other *ASP.NET Core* project. As part of that, migrated files relates to the _Development Context_ to the `Host` project (e.g., `Program`, `Startup`, and `SampleActivator`). --- .../ApplicationInsights.config | 0 .../Ignia.Topics.Editor.Mvc.Host.csproj | 32 +++++++++++++++++++ .../Program.cs | 0 .../SampleActivator.cs | 0 .../Startup.cs | 1 + .../Web.Debug.config | 0 .../Web.Release.config | 0 .../Web.config | 0 .../appsettings.Development.json | 9 ++++++ Ignia.Topics.Editor.Mvc.Host/appsettings.json | 8 +++++ .../Ignia.Topics.Editor.Mvc.csproj | 18 +++-------- Ignia.Topics.Editor.sln | 12 +++++-- 12 files changed, 64 insertions(+), 16 deletions(-) rename {Ignia.Topics.Editor.Mvc => Ignia.Topics.Editor.Mvc.Host}/ApplicationInsights.config (100%) create mode 100644 Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj rename {Ignia.Topics.Editor.Mvc => Ignia.Topics.Editor.Mvc.Host}/Program.cs (100%) rename {Ignia.Topics.Editor.Mvc => Ignia.Topics.Editor.Mvc.Host}/SampleActivator.cs (100%) rename {Ignia.Topics.Editor.Mvc => Ignia.Topics.Editor.Mvc.Host}/Startup.cs (99%) rename {Ignia.Topics.Editor.Mvc => Ignia.Topics.Editor.Mvc.Host}/Web.Debug.config (100%) rename {Ignia.Topics.Editor.Mvc => Ignia.Topics.Editor.Mvc.Host}/Web.Release.config (100%) rename {Ignia.Topics.Editor.Mvc => Ignia.Topics.Editor.Mvc.Host}/Web.config (100%) create mode 100644 Ignia.Topics.Editor.Mvc.Host/appsettings.Development.json create mode 100644 Ignia.Topics.Editor.Mvc.Host/appsettings.json diff --git a/Ignia.Topics.Editor.Mvc/ApplicationInsights.config b/Ignia.Topics.Editor.Mvc.Host/ApplicationInsights.config similarity index 100% rename from Ignia.Topics.Editor.Mvc/ApplicationInsights.config rename to Ignia.Topics.Editor.Mvc.Host/ApplicationInsights.config diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj new file mode 100644 index 00000000..07801539 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -0,0 +1,32 @@ + + + + netcoreapp2.2 + InProcess + aff0d52c-eab2-4c07-88b2-5af34649f874 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Program.cs b/Ignia.Topics.Editor.Mvc.Host/Program.cs similarity index 100% rename from Ignia.Topics.Editor.Mvc/Program.cs rename to Ignia.Topics.Editor.Mvc.Host/Program.cs diff --git a/Ignia.Topics.Editor.Mvc/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs similarity index 100% rename from Ignia.Topics.Editor.Mvc/SampleActivator.cs rename to Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs diff --git a/Ignia.Topics.Editor.Mvc/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs similarity index 99% rename from Ignia.Topics.Editor.Mvc/Startup.cs rename to Ignia.Topics.Editor.Mvc.Host/Startup.cs index 36b8211a..2d8c67c3 100644 --- a/Ignia.Topics.Editor.Mvc/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -4,6 +4,7 @@ | Project Sample OnTopic Site \=============================================================================================================================*/ using Ignia.Topics.AspNetCore.Mvc; +using Ignia.Topics.Editor.Mvc; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; diff --git a/Ignia.Topics.Editor.Mvc/Web.Debug.config b/Ignia.Topics.Editor.Mvc.Host/Web.Debug.config similarity index 100% rename from Ignia.Topics.Editor.Mvc/Web.Debug.config rename to Ignia.Topics.Editor.Mvc.Host/Web.Debug.config diff --git a/Ignia.Topics.Editor.Mvc/Web.Release.config b/Ignia.Topics.Editor.Mvc.Host/Web.Release.config similarity index 100% rename from Ignia.Topics.Editor.Mvc/Web.Release.config rename to Ignia.Topics.Editor.Mvc.Host/Web.Release.config diff --git a/Ignia.Topics.Editor.Mvc/Web.config b/Ignia.Topics.Editor.Mvc.Host/Web.config similarity index 100% rename from Ignia.Topics.Editor.Mvc/Web.config rename to Ignia.Topics.Editor.Mvc.Host/Web.config diff --git a/Ignia.Topics.Editor.Mvc.Host/appsettings.Development.json b/Ignia.Topics.Editor.Mvc.Host/appsettings.Development.json new file mode 100644 index 00000000..e203e940 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc.Host/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + } +} diff --git a/Ignia.Topics.Editor.Mvc.Host/appsettings.json b/Ignia.Topics.Editor.Mvc.Host/appsettings.json new file mode 100644 index 00000000..def9159a --- /dev/null +++ b/Ignia.Topics.Editor.Mvc.Host/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 1eefb761..553b3e20 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -1,26 +1,16 @@ - + netcoreapp2.2 - InProcess - aff0d52c-eab2-4c07-88b2-5af34649f874 - - - - - - - - - - - + + + diff --git a/Ignia.Topics.Editor.sln b/Ignia.Topics.Editor.sln index 0cbf3448..00fc8b5d 100644 --- a/Ignia.Topics.Editor.sln +++ b/Ignia.Topics.Editor.sln @@ -3,9 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26730.16 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Models", "Ignia.Topics.Editor.Models\Ignia.Topics.Editor.Models.csproj", "{02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ignia.Topics.Editor.Models", "Ignia.Topics.Editor.Models\Ignia.Topics.Editor.Models.csproj", "{02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Mvc", "Ignia.Topics.Editor.Mvc\Ignia.Topics.Editor.Mvc.csproj", "{77022C14-28B2-4182-9F11-796E8B3C73F7}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ignia.Topics.Editor.Mvc", "Ignia.Topics.Editor.Mvc\Ignia.Topics.Editor.Mvc.csproj", "{77022C14-28B2-4182-9F11-796E8B3C73F7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Mvc.Host", "Ignia.Topics.Editor.Mvc.Host\Ignia.Topics.Editor.Mvc.Host.csproj", "{F197E795-6DCE-4B91-B0CB-7B87E32EE347}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -26,6 +28,12 @@ Global {77022C14-28B2-4182-9F11-796E8B3C73F7}.Debug|Any CPU.Build.0 = Debug|Any CPU {77022C14-28B2-4182-9F11-796E8B3C73F7}.Release|Any CPU.ActiveCfg = Release|Any CPU {77022C14-28B2-4182-9F11-796E8B3C73F7}.Release|Any CPU.Build.0 = Release|Any CPU + {F197E795-6DCE-4B91-B0CB-7B87E32EE347}.Debug CC|Any CPU.ActiveCfg = Debug|Any CPU + {F197E795-6DCE-4B91-B0CB-7B87E32EE347}.Debug CC|Any CPU.Build.0 = Debug|Any CPU + {F197E795-6DCE-4B91-B0CB-7B87E32EE347}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F197E795-6DCE-4B91-B0CB-7B87E32EE347}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F197E795-6DCE-4B91-B0CB-7B87E32EE347}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F197E795-6DCE-4B91-B0CB-7B87E32EE347}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 2b84fa9e4a0f69c5a490071e7b565415e0969b85 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 21 Mar 2019 01:42:52 -0700 Subject: [PATCH 290/637] Introduced `EditorConfigureOptions` and related configuration apparatus The `EditorConfigureOptions` configures a file system provider that references embedded resources. The `EditorServiceCollectionExtensions` makes it easy to register this as part of the application startup process. And, indeed, that extension method is then added to the `Startup` class in the `Host` project in order to do just that. --- Ignia.Topics.Editor.Mvc.Host/Startup.cs | 5 ++ .../EditorConfigureOptions.cs | 80 +++++++++++++++++++ .../EditorServiceCollectionExtensions.cs | 30 +++++++ 3 files changed, 115 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs create mode 100644 Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index 2d8c67c3..179a1f56 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -73,6 +73,11 @@ public void ConfigureServices(IServiceCollection services) { //Add OnTopic support .AddTopicSupport(); + /*------------------------------------------------------------------------------------------------------------------------ + | Configure: OnTopic Editor + \-----------------------------------------------------------------------------------------------------------------------*/ + services.AddTopicEditor(); + /*------------------------------------------------------------------------------------------------------------------------ | Register: Activators \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs b/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs new file mode 100644 index 00000000..f1b95a5a --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs @@ -0,0 +1,80 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using Ignia.Topics.Internal.Diagnostics; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.StaticFiles; +using Microsoft.Extensions.FileProviders; +using Microsoft.Extensions.Options; + +namespace Ignia.Topics.Editor.Mvc { + + /*============================================================================================================================ + | CLASS: EDITOR (CONFIGURE OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Used to configure an MVC application to use embedded resources from this Razor Class Library (RCL). + /// + public class EditorConfigureOptions : IPostConfigureOptions { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private readonly IHostingEnvironment _environment = null; + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of a with necessary dependencies. + /// + /// A topic controller for loading OnTopic views. + public EditorConfigureOptions(IHostingEnvironment environment) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate input + \-----------------------------------------------------------------------------------------------------------------------*/ + Contract.Requires(environment != null, "A concrete implementation of an IHostingEnvironment is required."); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set values locally + \-----------------------------------------------------------------------------------------------------------------------*/ + _environment = environment; + + } + + /*========================================================================================================================== + | METHOD: POST CONFIGURE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Extends the existing configuration with options specific to the editor. + /// + public void PostConfigure(string name, StaticFileOptions options) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate dependencies + \-----------------------------------------------------------------------------------------------------------------------*/ + if (options.FileProvider == null && _environment.WebRootFileProvider == null) { + throw new InvalidOperationException("Missing FileProvider."); + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Ensure basic options are configured + \-----------------------------------------------------------------------------------------------------------------------*/ + options.ContentTypeProvider = options.ContentTypeProvider ?? new FileExtensionContentTypeProvider(); + options.FileProvider = options.FileProvider ?? _environment.WebRootFileProvider; + + /*------------------------------------------------------------------------------------------------------------------------ + | Add provider for embedded resources + \-----------------------------------------------------------------------------------------------------------------------*/ + var fileProvider = new ManifestEmbeddedFileProvider(this.GetType().Assembly, "wwwroot"); + options.FileProvider = new CompositeFileProvider(options.FileProvider, fileProvider); + + } + + } // Class +} // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs new file mode 100644 index 00000000..e15bf941 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs @@ -0,0 +1,30 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Microsoft.Extensions.DependencyInjection; + +namespace Ignia.Topics.Editor.Mvc { + + /*============================================================================================================================ + | CLASS: EDITOR SERVICE COLLECTION (EXTENSIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Extension method to simplify configuration of the editor in an application. Automatically sets up e.g. . + /// + public static class EditorServiceCollectionExtensions { + + /*========================================================================================================================== + | METHOD: ADD TOPIC EDITOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Ensures that dependencies of the topic editor are configured. + /// + public static void AddTopicEditor(this IServiceCollection services) { + services.ConfigureOptions(typeof(EditorConfigureOptions)); + } + + } // Class +} // Namespace \ No newline at end of file From b4b21a5b72171bef757750839c6ebd92db6c10fb Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 21 Mar 2019 01:45:22 -0700 Subject: [PATCH 291/637] Renamed `wwwroot` to `Resources This is preferable since this isn't a web application and the `wwwroot` doesn't really exist. These are now embedded resources, and should be indicated as such by the folder structure. --- Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs | 2 +- .../Images/Navigation/Arrows.png | Bin .../Images/Navigation/Dashes.png | Bin .../Shared/Fonts/glyphicons-halflings-regular.eot | Bin .../Shared/Fonts/glyphicons-halflings-regular.svg | 0 .../Shared/Fonts/glyphicons-halflings-regular.ttf | Bin .../Shared/Fonts/glyphicons-halflings-regular.woff | Bin .../Shared/Scripts/Common.Functions.js | 0 .../{wwwroot => Resources}/Shared/Scripts/Modal.js | 0 .../Shared/Scripts/TokenizedTopicList.js | 0 .../Shared/Scripts/TopicList.js | 0 .../Shared/Scripts/TreeView.js | 0 .../Shared/Scripts/Window.Primary.Functions.js | 0 .../Shared/Styles/Base/_base.scss | 0 .../Shared/Styles/Base/_buttons.scss | 0 .../Shared/Styles/Base/_callouts.scss | 0 .../Shared/Styles/Base/_fonts.scss | 0 .../Shared/Styles/Base/_forms.scss | 0 .../Shared/Styles/Base/_icons.scss | 0 .../Shared/Styles/Base/_links.scss | 0 .../Shared/Styles/Base/_tabs.scss | 0 .../Shared/Styles/Base/_tooltips.scss | 0 .../Shared/Styles/Base/_typography.scss | 0 .../Shared/Styles/Base/_utilities.scss | 0 .../Shared/Styles/CKEditor.css | 0 .../Shared/Styles/CKEditor.min.css | 0 .../Styles/Components/TreeView/_treeView.scss | 0 .../Shared/Styles/Components/_components.scss | 0 .../Shared/Styles/Layout/_layout.scss | 0 .../{wwwroot => Resources}/Shared/Styles/Site.css | 0 .../{wwwroot => Resources}/Shared/Styles/Style.css | 0 .../Shared/Styles/Style.min.css | 0 .../{wwwroot => Resources}/Shared/Styles/Style.scss | 0 .../Shared/Styles/Stylesheet.css | 0 .../Vendor/TokenInput/token-input-facebook.css | 0 .../Styles/Vendor/TokenInput/token-input-mac.css | 0 .../Shared/Styles/Vendor/TokenInput/token-input.css | 0 .../Shared/Styles/_variables.scss | 0 38 files changed, 1 insertion(+), 1 deletion(-) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Images/Navigation/Arrows.png (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Images/Navigation/Dashes.png (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Fonts/glyphicons-halflings-regular.eot (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Fonts/glyphicons-halflings-regular.svg (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Fonts/glyphicons-halflings-regular.ttf (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Fonts/glyphicons-halflings-regular.woff (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Scripts/Common.Functions.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Scripts/Modal.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Scripts/TokenizedTopicList.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Scripts/TopicList.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Scripts/TreeView.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Scripts/Window.Primary.Functions.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_base.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_buttons.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_callouts.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_fonts.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_forms.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_icons.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_links.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_tabs.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_tooltips.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_typography.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Base/_utilities.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/CKEditor.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/CKEditor.min.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Components/TreeView/_treeView.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Components/_components.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Layout/_layout.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Site.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Style.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Style.min.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Style.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Stylesheet.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Vendor/TokenInput/token-input-facebook.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Vendor/TokenInput/token-input-mac.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/Vendor/TokenInput/token-input.css (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => Resources}/Shared/Styles/_variables.scss (100%) diff --git a/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs b/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs index f1b95a5a..464dde8d 100644 --- a/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs +++ b/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs @@ -71,7 +71,7 @@ public void PostConfigure(string name, StaticFileOptions options) { /*------------------------------------------------------------------------------------------------------------------------ | Add provider for embedded resources \-----------------------------------------------------------------------------------------------------------------------*/ - var fileProvider = new ManifestEmbeddedFileProvider(this.GetType().Assembly, "wwwroot"); + var fileProvider = new ManifestEmbeddedFileProvider(this.GetType().Assembly, "Resources"); options.FileProvider = new CompositeFileProvider(options.FileProvider, fileProvider); } diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Arrows.png b/Ignia.Topics.Editor.Mvc/Resources/Images/Navigation/Arrows.png similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Arrows.png rename to Ignia.Topics.Editor.Mvc/Resources/Images/Navigation/Arrows.png diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Dashes.png b/Ignia.Topics.Editor.Mvc/Resources/Images/Navigation/Dashes.png similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Dashes.png rename to Ignia.Topics.Editor.Mvc/Resources/Images/Navigation/Dashes.png diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot b/Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.eot similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.eot diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg b/Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.svg similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.svg diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf b/Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.ttf diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff b/Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.woff similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.woff diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Common.Functions.js b/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Common.Functions.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Common.Functions.js rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Common.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Modal.js b/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Modal.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Modal.js rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Modal.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js b/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TokenizedTopicList.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TokenizedTopicList.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TopicList.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TopicList.js rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TopicList.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js b/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TreeView.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TreeView.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Window.Primary.Functions.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Window.Primary.Functions.js rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Window.Primary.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_base.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_base.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_base.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_buttons.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_buttons.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_buttons.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_buttons.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_callouts.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_callouts.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_callouts.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_callouts.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_fonts.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_fonts.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_fonts.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_fonts.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_forms.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_forms.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_forms.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_forms.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_icons.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_icons.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_icons.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_icons.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_links.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_links.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_links.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_links.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tabs.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_tabs.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tabs.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_tabs.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tooltips.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_tooltips.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tooltips.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_tooltips.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_typography.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_typography.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_typography.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_typography.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_utilities.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_utilities.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_utilities.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_utilities.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/CKEditor.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/CKEditor.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/CKEditor.min.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/CKEditor.min.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/TreeView/_treeView.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Components/TreeView/_treeView.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/TreeView/_treeView.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Components/TreeView/_treeView.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/_components.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Components/_components.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/_components.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Components/_components.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Layout/_layout.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Layout/_layout.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Layout/_layout.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Site.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Site.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.min.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.min.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Stylesheet.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Stylesheet.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input-facebook.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input-facebook.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input-mac.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input-mac.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/_variables.scss b/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/_variables.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/_variables.scss rename to Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/_variables.scss From 14d834d80f1a0a98d472c0dd981d1167c704d332 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 21 Mar 2019 02:26:00 -0700 Subject: [PATCH 292/637] Referenced `/Resources` as an `` Embedded files cannot be referenced from the `/Resources` folder without first including it in the *Visual Studio* project file as an ``. The project must also be configured to ``. Whoops! --- .../Ignia.Topics.Editor.Mvc.Host.csproj | 1 + Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 07801539..01d086cc 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -15,6 +15,7 @@ + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 553b3e20..27a87f1b 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -2,6 +2,7 @@ netcoreapp2.2 + true @@ -37,4 +38,8 @@ + + + + From d47932750c0583bb9ab1a870049b937f55e928d2 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 21 Mar 2019 23:36:52 -0700 Subject: [PATCH 293/637] Moved model binding to `Mvc` project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to allow the `Models` library to be focused exclusively on models—without any *ASP.NET Core* dependencies—I moved the `EditorAttributeModelBinder` to `Ignia.Topics.Editor.Infrastructure` under the `Mvc` project. Since this mandated removing the `[ModelBinder()]` attribute from `EditorAttribute`, this also meant replacing that with a new `EditorAttributeModelBinderProvider`, as well as an `IMvcBuilder` extension for configuring it. --- .../Attributes/EditorAttribute.cs | 2 - Ignia.Topics.Editor.Mvc.Host/Startup.cs | 5 +- .../EditorAttributeModelBinder.cs | 3 +- .../EditorAttributeModelBinderProvider.cs | 51 +++++++++++++++++++ .../EditorServiceCollectionExtensions.cs | 42 ++++++++++++++- 5 files changed, 98 insertions(+), 5 deletions(-) rename {Ignia.Topics.Editor.Models/Attributes => Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure}/EditorAttributeModelBinder.cs (97%) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs diff --git a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs index e40ff992..16ed5c83 100644 --- a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs @@ -4,7 +4,6 @@ | Project Topics Library \=============================================================================================================================*/ using System; -using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Models.Attributes { @@ -14,7 +13,6 @@ namespace Ignia.Topics.Editor.Models.Attributes { /// /// Represents an instance of a generic attribute in the Topic Editor. /// - [ModelBinder(BinderType=typeof(EditorAttributeModelBinder))] public class EditorAttribute { /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index 179a1f56..de14cbf9 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -71,7 +71,10 @@ public void ConfigureServices(IServiceCollection services) { .SetCompatibilityVersion(CompatibilityVersion.Version_2_2) //Add OnTopic support - .AddTopicSupport(); + .AddTopicSupport() + + //Add OnTopic editor support + .AddTopicEditor(); /*------------------------------------------------------------------------------------------------------------------------ | Configure: OnTopic Editor diff --git a/Ignia.Topics.Editor.Models/Attributes/EditorAttributeModelBinder.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs similarity index 97% rename from Ignia.Topics.Editor.Models/Attributes/EditorAttributeModelBinder.cs rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs index 29f1689e..e6aadccd 100644 --- a/Ignia.Topics.Editor.Models/Attributes/EditorAttributeModelBinder.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs @@ -5,9 +5,10 @@ \=============================================================================================================================*/ using System; using System.Threading.Tasks; +using Ignia.Topics.Editor.Models.Attributes; using Microsoft.AspNetCore.Mvc.ModelBinding; -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Mvc.Infrastructure { /*============================================================================================================================ | CLASS: EDITOR BINDING MODEL diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs new file mode 100644 index 00000000..e3bd146f --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs @@ -0,0 +1,51 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using Ignia.Topics.Editor.Models.Attributes; +using Ignia.Topics.Internal.Diagnostics; +using Microsoft.AspNetCore.Mvc.ModelBinding; +using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; + +namespace Ignia.Topics.Editor.Mvc.Infrastructure { + + /*============================================================================================================================ + | CLASS: EDITOR ATTRIBUTE (MODEL BINDER PROVIDER) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether a binding request should use the —and, if so, returns a + /// reference to the type in response. + /// + public class EditorAttributeModelBinderProvider : IModelBinderProvider { + + /*========================================================================================================================== + | METHOD: GET BINDER + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Binds the incoming post to the . + /// + /// + /// The method is called by the MVC framework, via + /// convention, when it attempts to bind a model with a corresponding name. + /// + public IModelBinder GetBinder(ModelBinderProviderContext context) { + + /*------------------------------------------------------------------------------------------------------------------------ + | VALIDATE INPUT + \-----------------------------------------------------------------------------------------------------------------------*/ + Contract.Requires(context != null, $"A {nameof(ModelBinderProviderContext)} reference is required."); + + /*------------------------------------------------------------------------------------------------------------------------ + | RETURN BINDER (IF APPROPRIATE) + \-----------------------------------------------------------------------------------------------------------------------*/ + if (context.Metadata.ModelType == typeof(EditorAttribute)) { + return new BinderTypeModelBinder(typeof(EditorAttributeModelBinder)); + } + return null; + + } + + } // Class +} // Namespace diff --git a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs index e15bf941..c91b9c79 100644 --- a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs +++ b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs @@ -3,7 +3,11 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using System; +using System.Diagnostics.Contracts; +using Ignia.Topics.Editor.Mvc.Infrastructure; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection.Extensions; namespace Ignia.Topics.Editor.Mvc { @@ -17,13 +21,49 @@ namespace Ignia.Topics.Editor.Mvc { public static class EditorServiceCollectionExtensions { /*========================================================================================================================== - | METHOD: ADD TOPIC EDITOR + | METHOD: ADD TOPIC EDITOR (ISERVICECOLLECTION) \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Ensures that dependencies of the topic editor are configured. /// public static void AddTopicEditor(this IServiceCollection services) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate parameters + \-----------------------------------------------------------------------------------------------------------------------*/ + Contract.Requires(services != null, nameof(services)); + + /*------------------------------------------------------------------------------------------------------------------------ + | Register services + \-----------------------------------------------------------------------------------------------------------------------*/ services.ConfigureOptions(typeof(EditorConfigureOptions)); + + } + + /*========================================================================================================================== + | EXTENSION: ADD TOPIC EDITOR (IMVCBUILDER) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Configures the Razor engine to include OnTopic model binders. + /// + public static IMvcBuilder AddTopicEditor(this IMvcBuilder services) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate parameters + \-----------------------------------------------------------------------------------------------------------------------*/ + Contract.Requires(services != null, nameof(services)); + + /*------------------------------------------------------------------------------------------------------------------------ + | Register services + \-----------------------------------------------------------------------------------------------------------------------*/ + services.AddMvcOptions(options => + options.ModelBinderProviders.Insert(0, new EditorAttributeModelBinderProvider()) + ); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return services for fluent API + \-----------------------------------------------------------------------------------------------------------------------*/ + return services; } } // Class From 5546864c13d1c513401de64300e6bf68b6ed6393 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 21 Mar 2019 23:39:49 -0700 Subject: [PATCH 294/637] Converted `Models` library to *.NET Standard* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the *ASP.NET Core* dependencies on the model binder removed, the `Models` library can be converted to a standard *.NET Standard* library. As a result, it no longer needs any of the *ASP.NET Core* dependencies—nor, in fact, does it need any of the ependencies on several other libraries inherited from the original version (e.g., `Microsoft.Net.Compilers`, `Microsoft.ApplicationInsights`, or `Ignia.Topics.Data.Caching`, for instance). Those are removed. Finally, the `app.config` is also removed, since it is no longer needed or even used. Basically, this is now a really simple set of POCO classes now. --- .../Ignia.Topics.Editor.Models.csproj | 22 ++----------------- Ignia.Topics.Editor.Models/app.config | 20 ----------------- 2 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 Ignia.Topics.Editor.Models/app.config diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 0b8afcb1..e7197e7b 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -1,32 +1,14 @@  - netcoreapp2.2 + net47;netstandard2.0 Ignia.Topics.Editor.Models Ignia.Topics.Editor.Models - Copyright © 2017 + Copyright © 2019 bin\$(Configuration)\ - - - - - - - - - - - - - all - - - - - \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/app.config b/Ignia.Topics.Editor.Models/app.config deleted file mode 100644 index c7a452aa..00000000 --- a/Ignia.Topics.Editor.Models/app.config +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From e11e6d3335e504ac1bd563f91297194715723118 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 24 Mar 2019 20:18:21 -0700 Subject: [PATCH 295/637] Refactored `GetAttributeViewModel()` overloads Previously, `GetAttributeViewModel()` required an `AttributeDescriptorTopicViewModel` and, optionally, accepted an `AttributeViewModel`. This is redundant. If an `AttributeViewModel` is displayed, then it has access to an `AttributeDescriptorTopicViewModel`. As such, the overloads have been refactored to require _either_ an `AttributeDescriptorTopicViewModel` _or_ an `AttributeViewModel`. --- .../AttributeTypeViewComponentBase.cs | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index 99bb1c9d..e7850577 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -65,18 +65,26 @@ protected Topic CurrentTopic { | METHOD: GET ATTRIBUTE VIEW MODEL \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Given an and, optionally, a target , - /// ensures that the properties of the are properly set. + /// Given an , creates a new and ensures + /// that the properties are properly set. /// + /// + /// The to initialize a new with. + /// /// The Topic associated with the current request. - public AttributeViewModel GetAttributeViewModel( - AttributeDescriptorTopicViewModel attribute, - AttributeViewModel viewModel = null - ) { + public AttributeViewModel GetAttributeViewModel(AttributeDescriptorTopicViewModel attribute) => + GetAttributeViewModel(new AttributeViewModel(attribute)); + + /// + /// Ensures that the properties of the are properly set. + /// + /// The to populate with values. + /// The Topic associated with the current request. + public AttributeViewModel GetAttributeViewModel(AttributeViewModel viewModel = null) { - viewModel = viewModel ?? new AttributeViewModel(attribute); - viewModel.InheritedValue = CurrentTopic.Parent.Attributes.GetValue(attribute.Key, true); - viewModel.Value = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); + var attribute = viewModel.AttributeDescriptor; + viewModel.InheritedValue = CurrentTopic.Parent.Attributes.GetValue(attribute.Key, true); + viewModel.Value = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); return viewModel; From aa812b20b55bc41c8ccb170e1c1007d75a6e77b1 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 24 Mar 2019 21:27:47 -0700 Subject: [PATCH 296/637] Introduced `TopicLookupAttributeViewModel` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `TopicLookupViewComponent` requires a custom view model in order to relay the select box options. This can be accomplished by simply adding a `List` to a derivation of `AttributeViewModel`. That said, the `SelectListItem` class is in an assembly that drags with it the majority of *ASP.NET Core*—none of which the rest of the models classes need, or should need. As a result, it is being created in the `Mvc` project. This is a bit inconsistent, but is preferrable to the `Models` project needing to take on a lot of new dependencies for one class. --- .../Models/TopicLookupAttributeViewModel.cs | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs new file mode 100644 index 00000000..f0fe5a90 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs @@ -0,0 +1,52 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System.Collections.Generic; +using Ignia.Topics.Editor.Models; +using Microsoft.AspNetCore.Mvc.Rendering; + +namespace Ignia.Topics.Editor.Mvc.Models { + + /*============================================================================================================================ + | CLASS: TOPIC LOOKUP (ATTRIBUTE VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Extends the to include properties that are specific to the topic lookup view component. + /// + public class TopicLookupAttributeViewModel: AttributeViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public TopicLookupAttributeViewModel( + AttributeDescriptorTopicViewModel attributeDescriptor, + string value = null, + string inheritedValue = null + ) : base( + attributeDescriptor, + value, + inheritedValue + ) {} + + /*========================================================================================================================== + | OPTIONS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a list of key/value pairs associated with the topic lookup. + /// + /// + /// The key represents the value that will be persisted to the collection. The value + /// represents the label as it will be displayed in the interface. For instance, for a representing countries, US might by the key associated with a United + /// States value. + /// + public List Options { get; } = new List(); + + } // Class + +} // Namespace From b103209b7efb16d52f547d2d9beacd9dbdd671e9 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 24 Mar 2019 21:30:47 -0700 Subject: [PATCH 297/637] Integrated `TopicLookupAttributeViewModel` Updated `TopicLookupViewComponent` to create and return a `TopicLookupAttributeViewModel` instance. The logic for filling in the `Options` property still needs to be completed. For now, it returns a single result: a new `SelectListItem` with the `Value` and `Text` property set to the current attribute value for the property, if defined. --- .../Components/TopicLookupViewComponent.cs | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index f195e7c7..03dd51ed 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -5,7 +5,9 @@ \=============================================================================================================================*/ using System.Threading.Tasks; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Mvc.Models; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; namespace Ignia.Topics.AspNetCore.Mvc.Components { @@ -32,8 +34,30 @@ public TopicLookupViewComponent(ITopicRoutingService topicRoutingService) : base /// Assembles the view model for the . /// public async Task InvokeAsync(AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix) { + + /*------------------------------------------------------------------------------------------------------------------------ + | DEFAULT PROCESSING + \-----------------------------------------------------------------------------------------------------------------------*/ ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - return View(GetAttributeViewModel(attribute)); + var viewModel = (TopicLookupAttributeViewModel)GetAttributeViewModel(new TopicLookupAttributeViewModel(attribute)); + + /*------------------------------------------------------------------------------------------------------------------------ + | SET OPTIONS + \-----------------------------------------------------------------------------------------------------------------------*/ + //### TODO JJC20190324: Custom logic to lookup and set the TopicLookupAttributeViewModel.Options values. + var value = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); + viewModel.Options.Add( + new SelectListItem { + Value = value, + Text = value + } + ); + + /*------------------------------------------------------------------------------------------------------------------------ + | RETURN VIEW MODEL + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(viewModel); + } } // Class From 6fb2fde99784450c0f3473500e21eae534d06059 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 24 Mar 2019 21:32:10 -0700 Subject: [PATCH 298/637] Integrated `TopicLookupAttributeViewModel` into view Updated the `TopicLookup` view to bind to the `TopicLookupAttributeViewModel` specifically. Also updated the markup to use a ` \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml index ab2a98c7..2850ac95 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml @@ -5,6 +5,7 @@ @using Ignia.Topics.Editor.Models @using Ignia.Topics.Editor.Models.Attributes +@using Ignia.Topics.Editor.Mvc.Models @using Microsoft.AspNetCore.Html @using Microsoft.AspNetCore.Mvc.Razor From 419c26d660c3131167c60f5bb84006edb29f4d43 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 24 Mar 2019 21:33:49 -0700 Subject: [PATCH 299/637] Bypass attributes w/out `EditorType` Every `AttributeDescriptor` _should_ have an `EditorType`. Some do not, however. This is a bug in the data source, and should be resolved. For backward compatibility, however, these are being skipped. --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 5f3e6a3e..bacd39d6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -23,7 +23,7 @@ @foreach (var attribute in supportedAttributes) { - if (attribute.IsHidden) { + if (attribute.IsHidden || String.IsNullOrEmpty(attribute.EditorType)) { continue; } From d08897ee6ab17f87d6cdfa56e4d4063fddb1f4d1 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 24 Mar 2019 21:34:51 -0700 Subject: [PATCH 300/637] Introduced `ITopicRepository` dependency The final production version of `TopicLookupViewComponent` will require a dependency on `ITopicRepository` in order to find the source list. This is not yet integrated, but the dependency is being introduced to demonstrate how this will work. --- Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs | 2 +- .../Editor/Components/TopicLookupViewComponent.cs | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index cb4e6f07..344985c8 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -173,7 +173,7 @@ public object Create(ViewComponentContext context) { return new TopicListViewComponent(mvcTopicRoutingService); } if (type == typeof(TopicLookupViewComponent)) { - return new TopicLookupViewComponent(mvcTopicRoutingService); + return new TopicLookupViewComponent(mvcTopicRoutingService, _topicRepository); } if (type == typeof(TopicPointerViewComponent)) { return new TopicPointerViewComponent(mvcTopicRoutingService); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 03dd51ed..8c609fc2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Mvc.Models; +using Ignia.Topics.Repositories; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; @@ -19,13 +20,23 @@ namespace Ignia.Topics.AspNetCore.Mvc.Components { /// public class TopicLookupViewComponent : AttributeTypeViewComponentBase { + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private readonly ITopicRepository _topicRepository = null; + /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Initializes a new instance of a with necessary dependencies. /// - public TopicLookupViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public TopicLookupViewComponent( + ITopicRoutingService topicRoutingService, + ITopicRepository topicRepository + ) : base(topicRoutingService) { + _topicRepository = topicRepository; + } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) From 3c670314537930af88737aeea60ba99290d537cb Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Sun, 31 Mar 2019 15:21:35 -0700 Subject: [PATCH 301/637] Cleaned up formatting --- .../Areas/Editor/Components/BooleanViewComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs index 8d4f1d1e..f01675d0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs @@ -24,4 +24,5 @@ public class BooleanViewComponent: DefaultAttributeTypeViewComponent { public BooleanViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } } // Class + } // Namespace \ No newline at end of file From 550e656f3182b444cf784923c9816acf34eb432c Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Sun, 5 May 2019 15:57:27 -0700 Subject: [PATCH 302/637] Added set options comment / section --- .../Areas/Editor/Components/TopicLookupViewComponent.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 8c609fc2..20f89cf3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -53,9 +53,8 @@ public async Task InvokeAsync(AttributeDescriptorTopicView var viewModel = (TopicLookupAttributeViewModel)GetAttributeViewModel(new TopicLookupAttributeViewModel(attribute)); /*------------------------------------------------------------------------------------------------------------------------ - | SET OPTIONS + | SET DEFAULT OPTION \-----------------------------------------------------------------------------------------------------------------------*/ - //### TODO JJC20190324: Custom logic to lookup and set the TopicLookupAttributeViewModel.Options values. var value = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); viewModel.Options.Add( new SelectListItem { @@ -64,6 +63,11 @@ public async Task InvokeAsync(AttributeDescriptorTopicView } ); + /*------------------------------------------------------------------------------------------------------------------------ + | SET OPTIONS + \-----------------------------------------------------------------------------------------------------------------------*/ + //### TODO JJC20190324: Custom logic to lookup and set the TopicLookupAttributeViewModel.Options values. + /*------------------------------------------------------------------------------------------------------------------------ | RETURN VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ From 80695f85607b420b07c585ebcb9de73c9b211870 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 23 May 2019 22:26:08 -0700 Subject: [PATCH 303/637] Fix `Configuration` return type The return type of the `Configuration` property was set to `Dictionary`. But the `AttributeDescriptor` it is mapping to uses `IDictionary`. As such, the `TopicMappingService` isn't able to do a 1:1 transfer of the existing object. Migrating to `IDictionary<>` resolves this, and ensures that the `Configuration` property gets populated during mapping. --- Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs index d65daca2..de623991 100644 --- a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs @@ -72,7 +72,7 @@ public AttributeDescriptorTopicViewModel() {} /// Provides a parsed version of the , with key/value pairs being represented in a /// dictionary for easy reference. /// - public Dictionary Configuration { get; set; } + public IDictionary Configuration { get; set; } /*========================================================================================================================== | METHOD: GET CONFIGURATION VALUE From 052570eafa545f5989f411cad42858c76d2df9d8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 23 May 2019 22:28:48 -0700 Subject: [PATCH 304/637] Removed redundant properties In the .NET Core project format, project properties are now in the `csproj` file, not in the `AssemblyInfo.cs` file. For some reason, this worked fine up until upgrading to the latest version of the `Ignia.Topics.dll`. With the latest version, however, the `dotnet` compiler started tripping on the duplicate properties. Given that, removed all duplicates, both allowing the editor project to compile, and making it consistent with other .NET Core projects. --- Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs b/Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs index 7ac95248..296a2e6f 100644 --- a/Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs +++ b/Ignia.Topics.Editor.Mvc/Properties/AssemblyInfo.cs @@ -2,18 +2,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Ignia Topics Editor (MVC edition)")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Ignia, LLC")] -[assembly: AssemblyProduct("Ignia.Topics.Editor.Mvc")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. @@ -31,5 +19,3 @@ // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] From ba4da85804021fa597a2e0cc19d37eab6c93baed Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 23 May 2019 22:30:49 -0700 Subject: [PATCH 305/637] Introduced `ReplaceTokens()` helper Migrated the `ReplaceTokens()` helper method from the original `TopicLookup.ascx` file with some modifications to streamline the logic and migrate the `TargetUrl` to the caller in order to reduce the number of parameters required. --- .../Components/TopicLookupViewComponent.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 20f89cf3..28c9fec3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -73,6 +73,27 @@ public async Task InvokeAsync(AttributeDescriptorTopicView \-----------------------------------------------------------------------------------------------------------------------*/ return View(viewModel); + /*========================================================================================================================== + | REPLACE TOKENS + >--------------------------------------------------------------------------------------------------------------------------- + | Replaces tokenized parameters (e.g., {Key}) in the source string based on the source Topic's properties. + \-------------------------------------------------------------------------------------------------------------------------*/ + private string ReplaceTokens(Topic topic, string source, string defaultValue = null) { + if (topic != null && !String.IsNullOrEmpty(source)) { + source = source + .Replace("{Topic}", topic.Key) + .Replace("{TopicId}", topic.Id.ToString()) + .Replace("{Name}", topic.Key) + .Replace("{FullName}", topic.GetUniqueKey()) + .Replace("{Key}", topic.Key) + .Replace("{UniqueKey}", topic.GetUniqueKey()) + .Replace("{Title}", topic.Title) + .Replace("{Parent}", topic.Parent.GetUniqueKey()) + .Replace("{ParentId}", topic.Parent.Id.ToString()) + .Replace("{GrandParent}", topic.Parent?.Parent?.GetUniqueKey()) + .Replace("{GrandParentId}", topic.Parent?.Parent?.Id.ToString()); + } + return source; } } // Class From db97432f8f843e8ce7ab50a131fa9e2b36963f10 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 23 May 2019 22:33:30 -0700 Subject: [PATCH 306/637] Introduced `GetTopics()` helper method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Converted the legacy `Topics` property from the `TopicLookup.ascx` to a helper method. It accepts arguments as parameters instead of calling them as properties of the current object—this is needed for compatibility with how parameters are called in ViewComponents, as compared to the legacy User Control format. --- .../Components/TopicLookupViewComponent.cs | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 28c9fec3..124cd8c9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -73,6 +73,80 @@ public async Task InvokeAsync(AttributeDescriptorTopicView \-----------------------------------------------------------------------------------------------------------------------*/ return View(viewModel); + /*========================================================================================================================== + | METHOD: GET TOPICS + >--------------------------------------------------------------------------------------------------------------------------- + | Retrieves a collection of topics with optional control call filter properties Scope, AttributeName and AttributeValue. + \-------------------------------------------------------------------------------------------------------------------------*/ + public TopicCollection GetTopics( + string scope = null, + string attributeName = null, + string attributeValue = null, + string allowedKeys = "" + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Instantiate object + \-----------------------------------------------------------------------------------------------------------------------*/ + TopicCollection topics = new TopicCollection(); + Topic topic = null; + + if (scope != null) { + topic = _topicRepository.Load(scope); + } + + // Use RootTopic if Scope is available but does not return a topic object + if (topic == null) { + topic = _topicRepository.Load(); + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Filter Topics selection list by AttributeName/AttributeValue + \-----------------------------------------------------------------------------------------------------------------------*/ + if (attributeName != null && attributeValue != null) { + + var readOnlyTopics = topic.FindAllByAttribute(attributeName, attributeValue); + foreach (Topics.Topic readOnlyTopic in readOnlyTopics) { + if (!topics.Contains(readOnlyTopic.Key)) { + topics.Add(readOnlyTopic); + } + } + + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Get all Topics under RootTopic + \-----------------------------------------------------------------------------------------------------------------------*/ + if (topics.Count == 0) { + foreach (Topic childTopic in topic.Children) { + if (!topics.Contains(childTopic)) { + topics.Add(childTopic); + } + } + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Filter Topics selection list based on Content Types + \-----------------------------------------------------------------------------------------------------------------------*/ + string[] allowedKeyList = null; + if (!String.IsNullOrEmpty(allowedKeys)) { + allowedKeyList = allowedKeys.Split(','); + for (int i = 0; i < topics.Count; i++) { + Topic childTopic = topics[i]; + if (Array.IndexOf(allowedKeyList, childTopic.Key) < 0) { + topics.RemoveAt(i); + i--; + } + } + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Return Topics list + \-----------------------------------------------------------------------------------------------------------------------*/ + return topics; + + } + /*========================================================================================================================== | REPLACE TOKENS >--------------------------------------------------------------------------------------------------------------------------- From 538877451f9581f7af645929df2888267da73cb2 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 23 May 2019 22:39:39 -0700 Subject: [PATCH 307/637] Defined input attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit View Models define input attributes as parameters on the `InvokeAsync()` method; these can now be set declaratively via attributes on the Tag Helper syntax when initializing the View Component. To allow these defaults to be set via the `AttributeDescriptor`'s `DefaultConfiguration`, two local helper functions are added for determining if a value is set, if not looking for it in the attribute's configuration, and otherwise falling back to a default value. We may want to generalize this format for use in other View Components in the future; but for now, this establishes the concept here. (Note: This is most important on the `TopicLookup` control as it's one of the few—if only?—controls that is instantiated outside of the main `Edit()` logic (i.e., it is used in the sidebar for creating a new topic, and in the `TopicList` control for creating a new child topic). --- .../Components/TopicLookupViewComponent.cs | 52 ++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 124cd8c9..3e3cdd9d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -3,9 +3,13 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using System; +using System.Linq; using System.Threading.Tasks; +using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Mvc.Models; +using Ignia.Topics.Querying; using Ignia.Topics.Repositories; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; @@ -44,7 +48,35 @@ ITopicRepository topicRepository /// /// Assembles the view model for the . /// - public async Task InvokeAsync(AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix) { + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix = null, + string label = null, + string scope = null, + string attributeName = null, + string attributeValue = null, + string allowedKeys = null, + bool? useUniqueKey = null, + string valueProperty = null, + bool? targetPopup = null, + string targetUrl = null, + string onClientClose = null + ) { + + /*============================================================================================================================ + | SET ATTRIBUTE DEFAULTS + \---------------------------------------------------------------------------------------------------------------------------*/ + label = setConfiguration("Label", label, "Select a Topic..."); + scope = setConfiguration("Scope", scope, null); + attributeName = setConfiguration("AttributeName", attributeName, null); + attributeValue = setConfiguration("AttributeValue", attributeValue, null); + allowedKeys = setConfiguration("AllowedKeys", allowedKeys, null); + useUniqueKey = setBooleanConfiguration("UseUniqueKey", useUniqueKey, true); + valueProperty = setConfiguration("ValueProperty", valueProperty, useUniqueKey.Value? "UniqueKey" : "Key"); + + targetPopup = setBooleanConfiguration("TargetPopup", targetPopup, false); + targetUrl = targetUrl?? attribute.GetConfigurationValue("TargetUrl", null); + onClientClose = onClientClose ?? attribute.GetConfigurationValue("OnClientClose", null); /*------------------------------------------------------------------------------------------------------------------------ | DEFAULT PROCESSING @@ -73,6 +105,24 @@ public async Task InvokeAsync(AttributeDescriptorTopicView \-----------------------------------------------------------------------------------------------------------------------*/ return View(viewModel); + /*------------------------------------------------------------------------------------------------------------------------ + | LOCAL HELPER FUNCTIONS + \-----------------------------------------------------------------------------------------------------------------------*/ + bool? setBooleanConfiguration(string parameterName, bool? parameterValue, bool defaultParameterValue) { + if (parameterValue.HasValue) { + return parameterValue; + } + return Boolean.Parse(attribute.GetConfigurationValue(parameterName, defaultParameterValue.ToString())); + } + + string setConfiguration(string parameterName, string parameterValue, string defaultParameterValue) { + return parameterValue?? attribute.GetConfigurationValue(parameterName, defaultParameterValue); + } + + + } + + /*========================================================================================================================== | METHOD: GET TOPICS >--------------------------------------------------------------------------------------------------------------------------- From 65b49da7efde14661104017017c42f290dc5ee01 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 23 May 2019 22:41:54 -0700 Subject: [PATCH 308/637] Updated logic for setting default value The default value should not be injected, but compared to existing values. As such, changed the default value to a variable for later use. Instead, injected a label as the first entry in the options list, optionally using the `label` configuration parameter. --- .../Editor/Components/TopicLookupViewComponent.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 3e3cdd9d..3e09387b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -81,20 +81,24 @@ public async Task InvokeAsync( /*------------------------------------------------------------------------------------------------------------------------ | DEFAULT PROCESSING \-----------------------------------------------------------------------------------------------------------------------*/ - ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix?? ViewData.TemplateInfo.HtmlFieldPrefix; var viewModel = (TopicLookupAttributeViewModel)GetAttributeViewModel(new TopicLookupAttributeViewModel(attribute)); /*------------------------------------------------------------------------------------------------------------------------ - | SET DEFAULT OPTION + | SET LABEL \-----------------------------------------------------------------------------------------------------------------------*/ - var value = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); viewModel.Options.Add( new SelectListItem { - Value = value, - Text = value + Value = null, + Text = label } ); + /*------------------------------------------------------------------------------------------------------------------------ + | SET DEFAULT VALUE + \-----------------------------------------------------------------------------------------------------------------------*/ + var defaultValue = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); + /*------------------------------------------------------------------------------------------------------------------------ | SET OPTIONS \-----------------------------------------------------------------------------------------------------------------------*/ From 2cb27a58ece008be7fccd9f1786c8db152fa3ca4 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 23 May 2019 22:44:22 -0700 Subject: [PATCH 309/637] Populate `SelectListItem`s for ` \ No newline at end of file + \ No newline at end of file From 57ea72fe1507da0b09c16fd8dcc3237e64b56f5e Mon Sep 17 00:00:00 2001 From: Katherine Trunkey Date: Sun, 2 Jun 2019 17:00:24 -0700 Subject: [PATCH 313/637] Installed Foundation-Sites --- .../Ignia.Topics.Editor.Mvc.Host.csproj | 3 ++- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 01d086cc..780667e2 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -1,4 +1,4 @@ - + netcoreapp2.2 @@ -7,6 +7,7 @@ + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 27a87f1b..20b4bb73 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -6,6 +6,7 @@ + From 26df9a44f122fd0fd001e464cb072189bca95ae2 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 6 Jun 2019 22:51:08 -0700 Subject: [PATCH 314/637] Updated `Newtonsoft` dependency Updated from *Newtonsoft*'s `11.0.2` to `12.0.2`. --- Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj | 2 +- .../Ignia.Topics.Editor.Mvc.Host.csproj | 2 +- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index e7197e7b..aa5b131b 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -9,6 +9,6 @@ - + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 780667e2..82cf8cc0 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -23,7 +23,7 @@ - + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 20b4bb73..11968517 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -13,7 +13,7 @@ - + From 8eacffc3446cc241d6fd38831f7831b87d31ca2c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 6 Jun 2019 23:30:55 -0700 Subject: [PATCH 315/637] Removed *Application Insights* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *Application Insights* should be installed for most *Microsoft Azure* hosted websites. That said, it is not appropriate for the barebones `Host` template, which is only intended to demonstrate what's necessary to configure the editor—as opposed to a fully configured template for new web-based projects. --- .../Ignia.Topics.Editor.Mvc.Host.csproj | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 82cf8cc0..3c937a09 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -18,11 +18,6 @@ - - - - - From 606f2877818d55e7198e29a26e920f8f1de661b5 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 6 Jun 2019 23:45:37 -0700 Subject: [PATCH 316/637] Remove unnecessary dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Like *Application Insights*, these dependencies are useful for most projects, but not strictly necessary for the barebones purposes of this project. Namely, we don't need the ability to generate new e.g. controllers, nor do we need to instrument any logging in the current solution. These can be added later if they prove necessary—but, more likely, they'll only be necessary in client projects. --- .../Ignia.Topics.Editor.Mvc.Host.csproj | 2 -- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 1 - 2 files changed, 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 3c937a09..35037649 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -17,9 +17,7 @@ - - diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 11968517..b0bc9a29 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -14,7 +14,6 @@ - From 367dca0f774d60fe285a57bb5c2da5500f279d41 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 15:03:45 -0700 Subject: [PATCH 317/637] Rename `Resources` back to `wwwroot` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In **ASP.NET Core 2.2**, there is an extension that allows static resources (assets) to be embedded. As part of that, a best practice recommended by some—and which **Ignia** adopted—is to rename that folder from `wwwroot` to `Resources` to better indicate that this isn't a website, but that these are, in fact, static resources that will be merged with a website. In **ASP.NET Core 3.0**, embedding static resources is now built into **Razor Class Libraries** (woohoo!)—and the preferred/OOTB convention is to use `wwwroot`. Given that, and in preparation for the migration to **ASP.NET Core 3.0**, we're renaming this _back_ to `wwwroot`. We may reevaluate this later, but for now we want to establish a consistent baseline. --- Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs | 2 +- .../Ignia.Topics.Editor.Mvc.csproj | 2 +- .../Images/Navigation/Arrows.png | Bin .../Images/Navigation/Dashes.png | Bin .../Shared/Fonts/glyphicons-halflings-regular.eot | Bin .../Shared/Fonts/glyphicons-halflings-regular.svg | 0 .../Shared/Fonts/glyphicons-halflings-regular.ttf | Bin .../Shared/Fonts/glyphicons-halflings-regular.woff | Bin .../Shared/Scripts/Common.Functions.js | 0 .../{Resources => wwwroot}/Shared/Scripts/Modal.js | 0 .../Shared/Scripts/TokenizedTopicList.js | 0 .../Shared/Scripts/TopicList.js | 0 .../Shared/Scripts/TreeView.js | 0 .../Shared/Scripts/Window.Primary.Functions.js | 0 .../Shared/Styles/Base/_base.scss | 0 .../Shared/Styles/Base/_buttons.scss | 0 .../Shared/Styles/Base/_callouts.scss | 0 .../Shared/Styles/Base/_fonts.scss | 0 .../Shared/Styles/Base/_forms.scss | 0 .../Shared/Styles/Base/_icons.scss | 0 .../Shared/Styles/Base/_links.scss | 0 .../Shared/Styles/Base/_tabs.scss | 0 .../Shared/Styles/Base/_tooltips.scss | 0 .../Shared/Styles/Base/_typography.scss | 0 .../Shared/Styles/Base/_utilities.scss | 0 .../Shared/Styles/CKEditor.css | 0 .../Shared/Styles/CKEditor.min.css | 0 .../Styles/Components/TreeView/_treeView.scss | 0 .../Shared/Styles/Components/_components.scss | 0 .../Shared/Styles/Layout/_layout.scss | 0 .../{Resources => wwwroot}/Shared/Styles/Site.css | 0 .../{Resources => wwwroot}/Shared/Styles/Style.css | 0 .../Shared/Styles/Style.min.css | 0 .../{Resources => wwwroot}/Shared/Styles/Style.scss | 0 .../Shared/Styles/Stylesheet.css | 0 .../Vendor/TokenInput/token-input-facebook.css | 0 .../Styles/Vendor/TokenInput/token-input-mac.css | 0 .../Shared/Styles/Vendor/TokenInput/token-input.css | 0 .../Shared/Styles/_variables.scss | 0 39 files changed, 2 insertions(+), 2 deletions(-) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Images/Navigation/Arrows.png (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Images/Navigation/Dashes.png (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Fonts/glyphicons-halflings-regular.eot (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Fonts/glyphicons-halflings-regular.svg (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Fonts/glyphicons-halflings-regular.ttf (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Fonts/glyphicons-halflings-regular.woff (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Scripts/Common.Functions.js (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Scripts/Modal.js (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Scripts/TokenizedTopicList.js (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Scripts/TopicList.js (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Scripts/TreeView.js (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Scripts/Window.Primary.Functions.js (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_base.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_buttons.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_callouts.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_fonts.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_forms.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_icons.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_links.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_tabs.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_tooltips.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_typography.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Base/_utilities.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/CKEditor.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/CKEditor.min.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Components/TreeView/_treeView.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Components/_components.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Layout/_layout.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Site.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Style.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Style.min.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Style.scss (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Stylesheet.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Vendor/TokenInput/token-input-facebook.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Vendor/TokenInput/token-input-mac.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/Vendor/TokenInput/token-input.css (100%) rename Ignia.Topics.Editor.Mvc/{Resources => wwwroot}/Shared/Styles/_variables.scss (100%) diff --git a/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs b/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs index 464dde8d..f1b95a5a 100644 --- a/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs +++ b/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs @@ -71,7 +71,7 @@ public void PostConfigure(string name, StaticFileOptions options) { /*------------------------------------------------------------------------------------------------------------------------ | Add provider for embedded resources \-----------------------------------------------------------------------------------------------------------------------*/ - var fileProvider = new ManifestEmbeddedFileProvider(this.GetType().Assembly, "Resources"); + var fileProvider = new ManifestEmbeddedFileProvider(this.GetType().Assembly, "wwwroot"); options.FileProvider = new CompositeFileProvider(options.FileProvider, fileProvider); } diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index b0bc9a29..5f87bb44 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -39,7 +39,7 @@ - + diff --git a/Ignia.Topics.Editor.Mvc/Resources/Images/Navigation/Arrows.png b/Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Arrows.png similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Images/Navigation/Arrows.png rename to Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Arrows.png diff --git a/Ignia.Topics.Editor.Mvc/Resources/Images/Navigation/Dashes.png b/Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Dashes.png similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Images/Navigation/Dashes.png rename to Ignia.Topics.Editor.Mvc/wwwroot/Images/Navigation/Dashes.png diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.eot b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.eot rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.svg b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.svg rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.ttf b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.ttf rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.woff b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Fonts/glyphicons-halflings-regular.woff rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Common.Functions.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Common.Functions.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Common.Functions.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Common.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Modal.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Modal.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Modal.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Modal.js diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TokenizedTopicList.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TokenizedTopicList.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TopicList.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TopicList.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TopicList.js diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TreeView.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/TreeView.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Window.Primary.Functions.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Scripts/Window.Primary.Functions.js rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Window.Primary.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_base.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_base.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_base.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_buttons.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_buttons.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_buttons.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_buttons.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_callouts.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_callouts.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_callouts.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_callouts.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_fonts.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_fonts.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_fonts.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_fonts.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_forms.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_forms.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_forms.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_forms.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_icons.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_icons.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_icons.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_icons.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_links.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_links.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_links.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_links.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_tabs.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tabs.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_tabs.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tabs.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_tooltips.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tooltips.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_tooltips.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tooltips.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_typography.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_typography.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_typography.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_typography.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_utilities.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_utilities.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Base/_utilities.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_utilities.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/CKEditor.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/CKEditor.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/CKEditor.min.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/CKEditor.min.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Components/TreeView/_treeView.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/TreeView/_treeView.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Components/TreeView/_treeView.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/TreeView/_treeView.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Components/_components.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/_components.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Components/_components.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/_components.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Layout/_layout.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Layout/_layout.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Layout/_layout.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Site.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Site.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.min.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Style.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.scss diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Stylesheet.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Stylesheet.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input-facebook.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input-facebook.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input-mac.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input-mac.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/Vendor/TokenInput/token-input.css rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css diff --git a/Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/_variables.scss b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/_variables.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/Resources/Shared/Styles/_variables.scss rename to Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/_variables.scss From 9414e155617aed02860b0e75ed976744fcc0bca9 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:00:51 -0700 Subject: [PATCH 318/637] Updated to *.NET Core 3* Updated the `Ignia.Topics.Editor.Models` library to **.NET Standard 2.1** (which corresponds to **ASP.NET 3.0**) and updated the `Ignia.Topics.Editor.Mvc` and `Ignia.Topics.Editor.Mvc.Host` projects to **ASP.NET Core 3.0**. --- Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj | 2 +- .../Ignia.Topics.Editor.Mvc.Host.csproj | 4 +--- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index aa5b131b..01841149 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -1,6 +1,6 @@  - net47;netstandard2.0 + net48;netstandard2.1 Ignia.Topics.Editor.Models Ignia.Topics.Editor.Models Copyright © 2019 diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 35037649..9b9de7a3 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -1,7 +1,7 @@  - netcoreapp2.2 + netcoreapp3.0 InProcess aff0d52c-eab2-4c07-88b2-5af34649f874 @@ -14,8 +14,6 @@ - - diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 5f87bb44..92e1ae94 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -1,8 +1,9 @@  - netcoreapp2.2 true + netcoreapp3.0 + true @@ -10,7 +11,6 @@ - From be363bec311ec4d8a3c2d76f658f7bc69025cb31 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:02:44 -0700 Subject: [PATCH 319/637] Updated `Ignia.Topics` to `3.8.0-csharp8` build This will allow the **OnTopic** editor to be tested against the latest internal build of `Ignia.Topics`. --- .../Ignia.Topics.Editor.Models.csproj | 4 ++-- .../Ignia.Topics.Editor.Mvc.Host.csproj | 12 ++++++------ .../Ignia.Topics.Editor.Mvc.csproj | 7 ++++--- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 01841149..2495e163 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -7,8 +7,8 @@ bin\$(Configuration)\ - - + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 9b9de7a3..4497f30d 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -8,12 +8,12 @@ - - - - - - + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 92e1ae94..de51fc44 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -8,11 +8,12 @@ - - - + + + + From c5fdccd0dee0aabcac42174d04c35f1c92d98811 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:13:16 -0700 Subject: [PATCH 320/637] Updated to new `Program` and `Startup` formats With **ASP.NET Core 3**, the `Program` class uses `IHostBuilder` instead of the legacy `IWebHostBuilder`. Then, however, when it bootstraps the `Startup` class, it passes an `IWebHostEnvironment` instead of an `IHostingEnvironment`. --- Ignia.Topics.Editor.Mvc.Host/Program.cs | 13 +++++++------ Ignia.Topics.Editor.Mvc.Host/Startup.cs | 3 ++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Program.cs b/Ignia.Topics.Editor.Mvc.Host/Program.cs index 71023f0d..0185d809 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Program.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Program.cs @@ -11,6 +11,7 @@ using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace OnTopicTest { @@ -30,9 +31,7 @@ public class Program { /// /// Responsible for bootstrapping the web application. /// - public static void Main(string[] args) { - CreateWebHostBuilder(args).Build().Run(); - } + public static void Main(string[] args) => CreateHostBuilder(args).Build().Run(); /*========================================================================================================================== | METHOD: CREATE WEB HOST BUILDER @@ -40,10 +39,12 @@ public static void Main(string[] args) { /// /// Configures a new with the default options. /// - public static IWebHostBuilder CreateWebHostBuilder(string[] args) => - WebHost + public static IHostBuilder CreateHostBuilder(string[] args) => + Host .CreateDefaultBuilder(args) - .UseStartup(); + .ConfigureWebHostDefaults(webBuilder => { + webBuilder.UseStartup(); + }); } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index 0e2b5fc0..0463edec 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -17,6 +17,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; using System.IO; +using Microsoft.Extensions.Hosting; namespace OnTopicTest { @@ -122,7 +123,7 @@ public void ConfigureServices(IServiceCollection services) { /// Provides configuration the application. This method is called by the runtime to bootstrap the application /// configuration, including the HTTP pipeline. /// - public void Configure(IApplicationBuilder app, IHostingEnvironment env) { + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { /*------------------------------------------------------------------------------------------------------------------------ | Configure: Error Pages From 1ac817bed5032e4972279e29232184e6b7f15797 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:15:33 -0700 Subject: [PATCH 321/637] Updated to use new `AddControllersWithViews()` configuration method While `AddMvc()` still works in **ASP.NET Core 3**, the new `AddControllersWithViews()` configuration extension is the preferred model. It remains backwards compatible with the `AddTopicSupport()` and `AddTopicEditor()` configuration extensions since it still returns an `IMvcBuilder` compatible class as part of its fluent API. --- Ignia.Topics.Editor.Mvc.Host/Startup.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index 0463edec..00bc105a 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -79,10 +79,7 @@ public void ConfigureServices(IServiceCollection services) { /*------------------------------------------------------------------------------------------------------------------------ | Configure: MVC \-----------------------------------------------------------------------------------------------------------------------*/ - services.AddMvc() - - //Set to use .NET Core 2.2 - .SetCompatibilityVersion(CompatibilityVersion.Version_2_2) + services.AddControllersWithViews() //Add OnTopic support .AddTopicSupport() From a7a4a9ce38f3eb49e58c6b6630f23005a6b2d228 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:18:08 -0700 Subject: [PATCH 322/637] Updated to endpoint routing Updated from the legacy `UseMvc()` route provider to the new(er) `UseEndpoints()` routing. This includes use of the new `MapAreaControllerRoute()`, as well as the use of `MapControllers()` in place of the legacy `UseMvcWithDefaultRoute()` configuration. Again, this isn't strictly necessary, but maintains consistency with out-of-the-box **ASP.NET Core 3** templates and best practices. --- Ignia.Topics.Editor.Mvc.Host/Startup.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index 00bc105a..73d91db7 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -134,29 +134,25 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseHsts(); } - /*------------------------------------------------------------------------------------------------------------------------ + /*------------------------------------------------------------------------------------------------------------------------ | Configure: Server defaults \-----------------------------------------------------------------------------------------------------------------------*/ app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseCookiePolicy(); - app.UseMvcWithDefaultRoute(); + app.UseRouting(); /*------------------------------------------------------------------------------------------------------------------------ | Configure: MVC \-----------------------------------------------------------------------------------------------------------------------*/ - app.UseMvc(routes => { - - /*------------------------------------------------------------------------------------------------------------------------ - | Handle OnTopic Web namespace - \-----------------------------------------------------------------------------------------------------------------------*/ - routes.MapAreaRoute( + app.UseEndpoints(endpoints => { + endpoints.MapControllers(); + endpoints.MapAreaControllerRoute( name: "TopicEditor", areaName: "Editor", - template: "OnTopic/{action}/{**path}", + pattern: "Ontopic/{action}/{**path}", defaults: new { controller = "Editor" } ); - }); } From cd74e780d5d0613eedcbe1f72343be68cd28847b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:19:52 -0700 Subject: [PATCH 323/637] Removed `UseCookiePolicy()` We don't use the `UseCookiePolicy()` for the purpose of the host site, but it was there for familiarity and consistency with the basic **ASP.NET Core 2.2** template that the editor would likely be incorporated into. This is no longer used by default in the new **ASP.NET Core 3.0** templates, however, so it is being removed. --- Ignia.Topics.Editor.Mvc.Host/Startup.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index 73d91db7..779aa821 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -139,7 +139,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { \-----------------------------------------------------------------------------------------------------------------------*/ app.UseHttpsRedirection(); app.UseStaticFiles(); - app.UseCookiePolicy(); app.UseRouting(); /*------------------------------------------------------------------------------------------------------------------------ From 977987ce55a3e71f5f1b38812b9abf7c7ddc382d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:49:34 -0700 Subject: [PATCH 324/637] Updated new *Razor Class Library* static file format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In **ASP.NET Core 2.0**, static assets could be embedded as resources into a **Razor Class Library**. This was a really welcome feature, but required quite a bit of scaffolding—and, thus, the previous introduction of the `AddTopicEditor()` configuration extension, and its associatd `EditorConfigureOptions` class. In **ASP.NET Core 3**, static resources are embedded by default—so long as they're in the `wwwroot` folder—and accessibly to the referencing site without any special wiring up of e.g. `ContentTypeProvider`s, such as the previous `FileExtensionContentTypeProvider`. This greatly simplifies how the `Startup` class works, and eliminates the need for injecting the `IHostingEnvironment` service (which is convenient, as it's now obsolete). That said, this does introduce some changes to the legacy approach. Namely, files are no longer mapped onto the parent site's `wwwroot` folder, as they previously were; instead, they are now placed in a special `/_content` folder, namespaced by the project name. As a result, the library references in the `_Layout.cshtml` are also updated as part of this. --- Ignia.Topics.Editor.Mvc.Host/Startup.cs | 27 +------ .../Areas/Editor/Views/Shared/_Layout.cshtml | 20 ++--- .../EditorConfigureOptions.cs | 80 ------------------- .../EditorServiceCollectionExtensions.cs | 20 ----- .../Ignia.Topics.Editor.Mvc.csproj | 25 ------ 5 files changed, 14 insertions(+), 158 deletions(-) delete mode 100644 Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index 779aa821..49e84025 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -7,16 +7,11 @@ using Ignia.Topics.Editor.Mvc; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Hosting.Internal; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; -using Microsoft.AspNetCore.Mvc.Razor; using Microsoft.AspNetCore.Mvc.ViewComponents; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.FileProviders; -using System.IO; using Microsoft.Extensions.Hosting; namespace OnTopicTest { @@ -38,9 +33,8 @@ public class Startup { /// /// The shared dependency. /// - public Startup(IConfiguration configuration, IHostingEnvironment hostingEnvironment) { + public Startup(IConfiguration configuration) { Configuration = configuration; - HostingEnvironment = hostingEnvironment; } /*========================================================================================================================== @@ -51,14 +45,6 @@ public Startup(IConfiguration configuration, IHostingEnvironment hostingEnvironm /// public IConfiguration Configuration { get; } - /*========================================================================================================================== - | PROPERTY: HOSTING ENVIRONMENT - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides a (public) reference to the application's service. - /// - public IHostingEnvironment HostingEnvironment { get; } - /*========================================================================================================================== | METHOD: CONFIGURE SERVICES \-------------------------------------------------------------------------------------------------------------------------*/ @@ -87,11 +73,6 @@ public void ConfigureServices(IServiceCollection services) { //Add OnTopic editor support .AddTopicEditor(); - /*------------------------------------------------------------------------------------------------------------------------ - | Configure: OnTopic Editor - \-----------------------------------------------------------------------------------------------------------------------*/ - services.AddTopicEditor(); - /*------------------------------------------------------------------------------------------------------------------------ | Configure: Watch Razor Class Library (RCLs) views >------------------------------------------------------------------------------------------------------------------------- @@ -99,9 +80,9 @@ public void ConfigureServices(IServiceCollection services) { | This thus requires rebuilding and reloading the application after every change in a view—not very practical! The | following works around this limitation. It is not necessary in production environments. \-----------------------------------------------------------------------------------------------------------------------*/ - services.Configure(options => options.FileProviders.Add( - new PhysicalFileProvider(Path.Combine(HostingEnvironment.ContentRootPath, "..\\Ignia.Topics.Editor.Mvc")) - )); + //services.Configure(options => options.FileProviders.Add( + // new PhysicalFileProvider(Path.Combine(HostingEnvironment.ContentRootPath, "..\\Ignia.Topics.Editor.Mvc")) + //)); /*------------------------------------------------------------------------------------------------------------------------ | Register: Activators diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 1da7cd3b..c5484906 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -16,24 +16,24 @@ - - - + + + - - + + - + - - - + + + @@ -91,7 +91,7 @@
    - + diff --git a/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs b/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs deleted file mode 100644 index f1b95a5a..00000000 --- a/Ignia.Topics.Editor.Mvc/EditorConfigureOptions.cs +++ /dev/null @@ -1,80 +0,0 @@ -/*============================================================================================================================== -| Author Ignia, LLC -| Client Ignia, LLC -| Project Topics Library -\=============================================================================================================================*/ -using System; -using Ignia.Topics.Internal.Diagnostics; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.StaticFiles; -using Microsoft.Extensions.FileProviders; -using Microsoft.Extensions.Options; - -namespace Ignia.Topics.Editor.Mvc { - - /*============================================================================================================================ - | CLASS: EDITOR (CONFIGURE OPTIONS) - \---------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Used to configure an MVC application to use embedded resources from this Razor Class Library (RCL). - /// - public class EditorConfigureOptions : IPostConfigureOptions { - - /*========================================================================================================================== - | PRIVATE VARIABLES - \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly IHostingEnvironment _environment = null; - - /*========================================================================================================================== - | CONSTRUCTOR - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Initializes a new instance of a with necessary dependencies. - /// - /// A topic controller for loading OnTopic views. - public EditorConfigureOptions(IHostingEnvironment environment) { - - /*------------------------------------------------------------------------------------------------------------------------ - | Validate input - \-----------------------------------------------------------------------------------------------------------------------*/ - Contract.Requires(environment != null, "A concrete implementation of an IHostingEnvironment is required."); - - /*------------------------------------------------------------------------------------------------------------------------ - | Set values locally - \-----------------------------------------------------------------------------------------------------------------------*/ - _environment = environment; - - } - - /*========================================================================================================================== - | METHOD: POST CONFIGURE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Extends the existing configuration with options specific to the editor. - /// - public void PostConfigure(string name, StaticFileOptions options) { - - /*------------------------------------------------------------------------------------------------------------------------ - | Validate dependencies - \-----------------------------------------------------------------------------------------------------------------------*/ - if (options.FileProvider == null && _environment.WebRootFileProvider == null) { - throw new InvalidOperationException("Missing FileProvider."); - } - - /*------------------------------------------------------------------------------------------------------------------------ - | Ensure basic options are configured - \-----------------------------------------------------------------------------------------------------------------------*/ - options.ContentTypeProvider = options.ContentTypeProvider ?? new FileExtensionContentTypeProvider(); - options.FileProvider = options.FileProvider ?? _environment.WebRootFileProvider; - - /*------------------------------------------------------------------------------------------------------------------------ - | Add provider for embedded resources - \-----------------------------------------------------------------------------------------------------------------------*/ - var fileProvider = new ManifestEmbeddedFileProvider(this.GetType().Assembly, "wwwroot"); - options.FileProvider = new CompositeFileProvider(options.FileProvider, fileProvider); - - } - - } // Class -} // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs index c91b9c79..a726fa3f 100644 --- a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs +++ b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs @@ -20,26 +20,6 @@ namespace Ignia.Topics.Editor.Mvc { /// public static class EditorServiceCollectionExtensions { - /*========================================================================================================================== - | METHOD: ADD TOPIC EDITOR (ISERVICECOLLECTION) - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Ensures that dependencies of the topic editor are configured. - /// - public static void AddTopicEditor(this IServiceCollection services) { - - /*------------------------------------------------------------------------------------------------------------------------ - | Validate parameters - \-----------------------------------------------------------------------------------------------------------------------*/ - Contract.Requires(services != null, nameof(services)); - - /*------------------------------------------------------------------------------------------------------------------------ - | Register services - \-----------------------------------------------------------------------------------------------------------------------*/ - services.ConfigureOptions(typeof(EditorConfigureOptions)); - - } - /*========================================================================================================================== | EXTENSION: ADD TOPIC EDITOR (IMVCBUILDER) \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index de51fc44..36590171 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -1,15 +1,12 @@  - true netcoreapp3.0 true - - @@ -21,26 +18,4 @@ - - - - - - - - - - - - - - - - - - - - - - From bd4ab8c1e630f1008fca6bdfb0b75e645b1a7ea2 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:49:56 -0700 Subject: [PATCH 325/637] Converted to `System.Text.Json` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For various reasons, mostly pertaining to performance, **ASP.NET Core 3** has moved away from using `Newtonsoft.Json`'s ubiquitous JSON parser, in preference of the faster, lighter-weight, first-party `System.Text.Json` library. This requires a slight modification to our JSON serialization attributes to maintain compatibility (namely, migrating from `[JsonProperty(PropertyName='…')]` to `[JsonPropertyName('…')]`). --- .../Ignia.Topics.Editor.Models.csproj | 2 +- .../Json/JsonTopicViewModel.cs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 2495e163..5b8e8965 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -7,8 +7,8 @@ bin\$(Configuration)\ - + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs index af7ff583..46971478 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Linq; using Ignia.Topics.Collections; -using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace Ignia.Topics.Editor.Models.Json { @@ -177,7 +177,7 @@ public string Key { /// /// The title of the topic, which will fall back to if not set. /// - [JsonProperty(PropertyName = "text")] + [JsonPropertyName("text")] public string Title { get; } @@ -188,7 +188,7 @@ public string Title { /// /// The fully-qualified, unique key for the topic, in OnTopic format. /// - [JsonProperty(PropertyName = "path")] + [JsonPropertyName("path")] public string UniqueKey { get; } @@ -209,7 +209,7 @@ public string WebPath { /// /// Determines whether the current topic is selected or not. /// - [JsonProperty(PropertyName = "checked")] + [JsonPropertyName("checked")] public bool IsChecked { get; } @@ -220,7 +220,7 @@ public bool IsChecked { /// /// Determines whether the current topic is intended to be draggable or not. /// - [JsonProperty(PropertyName = "draggable")] + [JsonPropertyName("draggable")] public bool IsDraggable { get; } @@ -231,7 +231,7 @@ public bool IsDraggable { /// /// Determines whether the current topic is a leaf node or not. /// - [JsonProperty(PropertyName = "leaf")] + [JsonPropertyName("leaf")] public bool IsLeaf { get => Children.Count.Equals(0); } From 77cc0c0b840cda964f71681cda055a10c30a9c1d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 19 Oct 2019 17:50:56 -0700 Subject: [PATCH 326/637] Updated solution format Due to upgrading from **Visual Studio 2017** to **Visual Studio 2019**, the solution file format (and associated project GUID) changed. --- Ignia.Topics.Editor.sln | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.sln b/Ignia.Topics.Editor.sln index 00fc8b5d..361d3c03 100644 --- a/Ignia.Topics.Editor.sln +++ b/Ignia.Topics.Editor.sln @@ -1,13 +1,13 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.16 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29326.143 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ignia.Topics.Editor.Models", "Ignia.Topics.Editor.Models\Ignia.Topics.Editor.Models.csproj", "{02A3D98A-BF8A-4150-8FEC-45A0D9C322E4}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ignia.Topics.Editor.Mvc", "Ignia.Topics.Editor.Mvc\Ignia.Topics.Editor.Mvc.csproj", "{77022C14-28B2-4182-9F11-796E8B3C73F7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ignia.Topics.Editor.Mvc.Host", "Ignia.Topics.Editor.Mvc.Host\Ignia.Topics.Editor.Mvc.Host.csproj", "{F197E795-6DCE-4B91-B0CB-7B87E32EE347}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ignia.Topics.Editor.Mvc.Host", "Ignia.Topics.Editor.Mvc.Host\Ignia.Topics.Editor.Mvc.Host.csproj", "{F197E795-6DCE-4B91-B0CB-7B87E32EE347}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution From d3fb0a92c2bd6291174ed370cb7542f9d25ea79f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 12:11:48 -0700 Subject: [PATCH 327/637] Established `Ignia.Topics.Editor.Mvc.Components` namespace Previously, components were placed in `Ignia.Topics.AspNetCore.Mvc.Components`, which is ambiguous with the `Ignia.Topics.AspNetCore.Mvc` assembly. To better clarify their location, these are renamed to be based on the current assembly name. --- .../Areas/Editor/Components/BooleanViewComponent.cs | 2 +- .../Areas/Editor/Components/DateTimeSelectorViewComponent.cs | 2 +- .../Editor/Components/DefaultAttributeTypeViewComponent.cs | 2 +- .../Areas/Editor/Components/DisplayOptionsViewComponent.cs | 2 +- .../Areas/Editor/Components/FilePathViewComponent.cs | 2 +- .../Areas/Editor/Components/FileUploadViewComponent.cs | 2 +- .../Areas/Editor/Components/FileViewComponent.cs | 2 +- .../Areas/Editor/Components/FormFieldViewComponent.cs | 2 +- .../Areas/Editor/Components/HtmlViewComponent.cs | 2 +- .../Areas/Editor/Components/LastModifiedByViewComponent.cs | 2 +- .../Areas/Editor/Components/LastModifiedViewComponent.cs | 2 +- .../Areas/Editor/Components/RelationshipsViewComponent.cs | 2 +- .../Areas/Editor/Components/TokenizedTopicListViewComponent.cs | 2 +- .../Areas/Editor/Components/TopicListViewComponent.cs | 2 +- .../Areas/Editor/Components/TopicLookupViewComponent.cs | 2 +- .../Areas/Editor/Components/TopicPointerViewComponent.cs | 2 +- .../Areas/Editor/Components/WysiwygViewComponent.cs | 2 +- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml | 1 + 18 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs index f01675d0..986a0bfb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: BOOLEAN (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeSelectorViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeSelectorViewComponent.cs index b0910cba..533b32a3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeSelectorViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeSelectorViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: DATE/TIME SELECTOR (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs index e43c9b19..b1495562 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs @@ -7,7 +7,7 @@ using Ignia.Topics.Editor.Models; using Microsoft.AspNetCore.Mvc; -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: DEFAULT ATTRIBUTE TYPE (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DisplayOptionsViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DisplayOptionsViewComponent.cs index 89ab711e..cafefacc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DisplayOptionsViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DisplayOptionsViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: DISPLAY OPTIONS (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs index 4239f024..d04a52b8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: FILE PATH (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileUploadViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileUploadViewComponent.cs index 1ca63260..19824b0e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileUploadViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileUploadViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: FILE UPLOAD (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs index 315a17e1..4b2f1631 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: FILE (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FormFieldViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FormFieldViewComponent.cs index a3dd9cef..8aa656ca 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FormFieldViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FormFieldViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: FORM FIELD (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs index 83c606d1..44069ae8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: HTML (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs index 958da610..b1f1b3fb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: LAST MODIFIED BY (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index 25aac260..c17fd836 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -8,7 +8,7 @@ using Ignia.Topics.Editor.Models; using Microsoft.AspNetCore.Mvc; -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: LAST MODIFIED (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs index 993b6429..2a8b5e09 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs @@ -7,7 +7,7 @@ using Ignia.Topics.Editor.Models; using Microsoft.AspNetCore.Mvc; -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: RELATIONSHIPS (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index a19b8d70..e5b6e629 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: TOKENIZED TOPIC LIST (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 14687a5f..96fd2677 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -7,7 +7,7 @@ using Ignia.Topics.Editor.Models; using Microsoft.AspNetCore.Mvc; -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: TOPIC LIST (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 63b3c3a8..dc3b19e3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -14,7 +14,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: TOPIC LOOKUP (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs index 4a519449..6f90e38b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: TOPIC POINTER (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs index dd44f20b..cb93870e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs @@ -5,7 +5,7 @@ \=============================================================================================================================*/ using Microsoft.AspNetCore.Mvc; -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: WYSIWYG (VIEW COMPONENT) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml index d88edd37..5ac99b31 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml @@ -5,6 +5,7 @@ @using Ignia.Topics.Editor.Models @using Ignia.Topics.Editor.Models.Attributes +@using Ignia.Topics.Editor.Models.Components @using Ignia.Topics.Editor.Mvc.Models @using Microsoft.AspNetCore.Html From ae73dec2c1401fcd6f0aaeb942b7b88de4b13db2 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 12:12:55 -0700 Subject: [PATCH 328/637] Removed legacy `TreeView.js` This was previously replaced with `_TreeViewScript.cshtml`, which allows it to continue to use a dynamic root. We'll likely revisit this at some point to allow external configuration, but for now the static file no longer is used. --- .../wwwroot/Shared/Scripts/TreeView.js | 103 ------------------ 1 file changed, 103 deletions(-) delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js deleted file mode 100644 index 5bf49eda..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TreeView.js +++ /dev/null @@ -1,103 +0,0 @@ -var tree; -var rootTopicId = ''; - -Ext.onReady(function(){ - var Tree = Ext.tree; - - var currentTopic = "<%= PageTopic.FullName %>"; - var currentPosition = currentTopic.indexOf(":", 11); - -//track what nodes are moved - var oldPosition = null; - var oldNextSibling = null; - - tree = new Tree.TreePanel({ - useArrows : true, - autoScroll : true, - animate : true, - enableDD : true, - containerScroll : true, - border : false, - baseCls : 'TreeView', - dataUrl : 'Topics.Json.aspx?ShowRoot=false', - root : new Ext.tree.AsyncTreeNode({ - text : 'Web', - draggable : false, - id : rootTopicId - }), - rootVisible : false, - listeners : { - click : function(n) { - //location.href = n.attributes.path.replace(/:/g, "/").replace(RootTopic + "/", "/Edit/"); - location.href = "?Path=" + n.attributes.path; - }, - load : function(n) { - if (!n) return; - if (currentPosition < 0) { - currentPosition = currentTopic.length; - } - var currentNode = n; - if (currentPosition <= currentTopic.length && currentPosition >= 0) { - currentNode = currentNode.findChild("path", currentTopic.substring(0, currentPosition)); - if (currentPosition === currentTopic.length) { - currentPosition++; - } - else { - currentPosition = currentTopic.indexOf(":", currentNode.attributes.path.length + 1); - } - if (currentPosition < 0) { - currentPosition = currentTopic.length; - } - if (currentNode.hasChildNodes() && !currentNode.isExpanded()) { - currentNode.expand(false); - return; - } - } - tree.selectPath(currentNode.getPath()); - currentNode.ensureVisible(); - }, - startdrag : function(tree, node, event){ - oldPosition = node.parentNode.indexOf(node); - oldNextSibling = node.nextSibling; - }, - movenode: function (tree, node, oldParent, newParent, position) { - var params; - if (oldParent === newParent){ - params = {'node':node.id, 'delta':position-oldPosition}; - } - else { - params = {'node':node.id, 'parent':newParent.id, 'position':position}; - //### REM JJC081410: Temporarily disabled moving between nodes until core bug can be identified and resolved. - //Ext.Msg.alert("Disabled", "Moving between nodes is currently not supported. This functionality is currently being redeveloped."); - //return; - } - - //Determine sibling ID to place node after, based off position - var siblingId = -1; - if (position > 0) { - siblingId = newParent.childNodes[position-1].id; // TODO: double check indexing here - } - - //Ext.Msg.alert("Debugging", "Node: " + node.attributes.id + ", Parent: " + newParent.attributes.id + ", Sibling: " + siblingId); - - PageMethods.MoveNode( - node.attributes.id, - newParent.attributes.id, - siblingId, - function(result) { - if (siblingId > 0) { - //Ext.Msg.alert('Moved', 'The ' + node.attributes.id + ' node has been moved from ' + oldParent.attributes.id + ' to ' + newParent.attributes.id + '. SiblingId is: ' + siblingId); - } - else { - //Ext.Msg.alert('Moved', 'The ' + node.attributes.id + ' node has been moved from ' + oldParent.attributes.id + ' to ' + newParent.attributes.id + '.'); - } - } - ); - - } - } - }); - - tree.render('TreeView'); - }); - From 8c364e33f81a8fba427c9f5e66ca2915f9d37482 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 12:15:45 -0700 Subject: [PATCH 329/637] Introduced strongly-typed configuration methods The preexisting `GetConfigurationValue()` helper method retrieves a configuration value from the `DefaultConfiguration` collection, but always returns the value as a string. Introduced helper functions to retrieve the value, instead, as a boolean or an int, as is commonly required. --- .../AttributeDescriptorTopicViewModel.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs index de623991..f349d831 100644 --- a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs @@ -3,6 +3,7 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using System; using System.Collections.Generic; using Ignia.Topics.Metadata; @@ -88,6 +89,32 @@ public string GetConfigurationValue(string key, string defaultValue = null) { return defaultValue; } + /*========================================================================================================================== + | METHOD: GET BOOLEAN CONFIGURATION VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves a configuration value from the dictionary as a boolean value. + /// + public bool GetBooleanConfigurationValue(string key, bool defaultValue = false) { + if (Boolean.TryParse(GetConfigurationValue(key, defaultValue.ToString()), out var value)) { + return value; + } + return defaultValue; + } + + /*========================================================================================================================== + | METHOD: GET INTEGER CONFIGURATION VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves a configuration value from the dictionary as an integer value. + /// + public int GetIntegerConfigurationValue(string key, int defaultValue = 0) { + if (Int32.TryParse(GetConfigurationValue(key, defaultValue.ToString()), out var value)) { + return value; + } + return defaultValue; + } + /*========================================================================================================================== | PROPERTY: IS REQUIRED? \-------------------------------------------------------------------------------------------------------------------------*/ From 2b0952226da524bf81ffe39dd83b5b966ea58ae6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 12:17:18 -0700 Subject: [PATCH 330/637] Set `Value` and `InheritedValue` to virtual Child models will quite possibly need to modify the logic for the `Value` and `InheritedValue` to e.g. validate the data based on their specific needs. To accommodate this, these are marked as `virtual`. --- Ignia.Topics.Editor.Models/AttributeViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index 312371d3..ea72d959 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -77,7 +77,7 @@ public AttributeViewModel( /// /// Provides the current value, as defined on the instance. /// - public string Value { get; set; } + public virtual string Value { get; set; } /*========================================================================================================================== | INHERITED VALUE @@ -89,7 +89,7 @@ public AttributeViewModel( /// If the is set, then the will always be equal to the /// . /// - public string InheritedValue { get; set; } + public virtual string InheritedValue { get; set; } } // Class From 58ddfc733a1b6e816f25ef47ff99f5da8b60bab0 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 18:57:31 -0700 Subject: [PATCH 331/637] Introduced `DefaultOptions` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most attribute view components have custom options that need to be passed in. To standardized these, and make them easier to document, they're being implemented as options objects. Ultimately, we'll want a custom options object for every attribute view component that accepts custom parameters. To kick this off, however, we're establishing a base `DefaultOptions` type that will be used by default—both in the base `DefaultAttributeTypeViewComponent` class, but also in any classes that handle their own `InvokeAsync`, regardless of whether they have a custom `AttributeViewModel`. --- .../Components/Options/DefaultOptions.cs | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/DefaultOptions.cs diff --git a/Ignia.Topics.Editor.Models/Components/Options/DefaultOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/DefaultOptions.cs new file mode 100644 index 00000000..9bce5047 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/DefaultOptions.cs @@ -0,0 +1,40 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +#nullable enable + +using Ignia.Topics.Editor.Models; + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: DEFAULT (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes the default options associated with all attribute view components. + /// + public class DefaultOptions { + + /*========================================================================================================================== + | IS ENABLED + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether the field should be enabled, as defined on the instance. + /// + public bool? IsEnabled { get; set; } = true; + + /*========================================================================================================================== + | CSS CLASS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Defines the CSS class names to be used, if any are configured. + /// + public string? CssClass { get; set; } + + } +} + +#nullable restore From 8f11da36c560a4c7fb474b567ee403f23f24683a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:12:02 -0700 Subject: [PATCH 332/637] Introduced `AttributeViewModel` The `AttributeViewModel` accepts an options class as the generic type, which can be `DefaultOptions` or any derivative. This allows it to introduce a strongly type `Options` property. Once implemented, this will give all views access to the `Options` used to initialize the attribute view component. This prevents the need to duplicate these properties on the `AttributeViewModel` (or derivative) in the case that they need to be relayed directly to the view. --- .../AttributeViewModel{T}.cs | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs new file mode 100644 index 00000000..9b53174e --- /dev/null +++ b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs @@ -0,0 +1,49 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Metadata; + +namespace Ignia.Topics.Editor.Models { + + /*============================================================================================================================ + | CLASS: ATTRIBUTE VIEW MODEL + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides access to both a as well as the instance values for that + /// attribute from the currently selected . + /// + public class AttributeViewModel: AttributeViewModel where T: DefaultOptions { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public AttributeViewModel( + AttributeDescriptorTopicViewModel attributeDescriptor, + T options, + string value = null, + string inheritedValue = null + ): base( + attributeDescriptor, + value, + inheritedValue + ) { + Options = options; + } + + /*========================================================================================================================== + | OPTIONS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Exposes the options associated with the specific attribute view model. + /// + public T Options { get; set; } + + } // Class + +} // Namespace From d3d4ec6f9c751015ce450fe205e037d56837411b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:15:34 -0700 Subject: [PATCH 333/637] Implemented `AttributeViewModel` Modified `AttributeTypeViewComponentBase` and `DefaultAttributeTypeViewComponent` to use the new `AttributeViewModel` type, with `DefaultOptions`. This introduces the necessity for every attribute view component to collect a(n optional) `DefaultOptions` parameter, create a new instance if one isn't supplied, and pass it down to the `GetAttributeViewModel()` helper method, which now requires a `DefaultOptions` object. Most classes still inherit from `DefaultAttributeViewComponent` and, thus, don't require a change. Any classes inheriting directly from `AttributeViewComponentBase`, however, also needed to be updated since they directly expose a `InvokeAsync()` and talk directly to `GetAttributeViewModel()`. --- .../Components/AttributeTypeViewComponentBase.cs | 14 +++++++++++--- .../DefaultAttributeTypeViewComponent.cs | 11 +++++++++-- .../Editor/Components/LastModifiedViewComponent.cs | 11 +++++++++-- .../Components/RelationshipsViewComponent.cs | 11 +++++++++-- .../Editor/Components/TopicListViewComponent.cs | 11 +++++++++-- .../Editor/Models/TopicLookupAttributeViewModel.cs | 5 ++++- 6 files changed, 51 insertions(+), 12 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index e7850577..9bef5177 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -9,8 +9,10 @@ using Ignia.Topics.Models; using Ignia.Topics.AspNetCore.Mvc.Models; using Ignia.Topics.Editor.Models; +using System; +using Ignia.Topics.Editor.Models.Components.Options; -namespace Ignia.Topics.AspNetCore.Mvc.Components { +namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ | CLASS: ATTRIBUTE TYPE (VIEW COMPONENT) @@ -72,8 +74,14 @@ protected Topic CurrentTopic { /// The to initialize a new with. /// /// The Topic associated with the current request. - public AttributeViewModel GetAttributeViewModel(AttributeDescriptorTopicViewModel attribute) => - GetAttributeViewModel(new AttributeViewModel(attribute)); + public AttributeViewModel GetAttributeViewModel( + AttributeDescriptorTopicViewModel attribute, + DefaultOptions options + ) { + var viewModel = new AttributeViewModel(attribute, options); + GetAttributeViewModel(viewModel); + return viewModel; + } /// /// Ensures that the properties of the are properly set. diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs index b1495562..9eb69f64 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs @@ -5,6 +5,7 @@ \=============================================================================================================================*/ using System.Threading.Tasks; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { @@ -40,9 +41,15 @@ public DefaultAttributeTypeViewComponent(ITopicRoutingService topicRoutingServic /// /// Assembles the view model for the . /// - public async Task InvokeAsync(AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix) { + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + DefaultOptions options = null + ) { + options ??= new DefaultOptions(); ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - return View(GetAttributeViewModel(attribute)); + var viewModel = new AttributeViewModel(attribute, options); + return View(GetAttributeViewModel(viewModel)); } } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index c17fd836..76649b12 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -6,6 +6,7 @@ using System; using System.Threading.Tasks; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { @@ -33,9 +34,15 @@ public LastModifiedViewComponent(ITopicRoutingService topicRoutingService) : bas /// /// Assembles the view model for the . /// - public async Task InvokeAsync(AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix) { + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + DefaultOptions options = null + ) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - var viewModel = GetAttributeViewModel(attribute); + options ??= new DefaultOptions(); + var viewModel = new AttributeViewModel(attribute, options); + GetAttributeViewModel(viewModel); if (viewModel.Value == null) { if (CurrentTopic.LastModified != null && CurrentTopic.LastModified != DateTime.MinValue) { viewModel.Value = CurrentTopic.LastModified.ToString(); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs index 2a8b5e09..8728f865 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs @@ -5,6 +5,7 @@ \=============================================================================================================================*/ using System.Threading.Tasks; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { @@ -31,9 +32,15 @@ public RelationshipsViewComponent(ITopicRoutingService topicRoutingService) : ba /// /// Assembles the view model for the . /// - public async Task InvokeAsync(AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix) { + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + DefaultOptions options = null + ) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - return View(GetAttributeViewModel(attribute)); + options ??= new DefaultOptions(); + var viewModel = new AttributeViewModel(attribute, options); + return View(GetAttributeViewModel(viewModel)); } } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 96fd2677..f067a3b5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -5,6 +5,7 @@ \=============================================================================================================================*/ using System.Threading.Tasks; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { @@ -31,9 +32,15 @@ public TopicListViewComponent(ITopicRoutingService topicRoutingService) : base(t /// /// Assembles the view model for the . /// - public async Task InvokeAsync(AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix) { + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + DefaultOptions options + ) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - return View(GetAttributeViewModel(attribute)); + options ??= new DefaultOptions(); + var viewModel = new AttributeViewModel(attribute, options); + return View(GetAttributeViewModel(viewModel)); } } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs index f0fe5a90..af38622a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs @@ -5,6 +5,7 @@ \=============================================================================================================================*/ using System.Collections.Generic; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; using Microsoft.AspNetCore.Mvc.Rendering; namespace Ignia.Topics.Editor.Mvc.Models { @@ -15,7 +16,7 @@ namespace Ignia.Topics.Editor.Mvc.Models { /// /// Extends the to include properties that are specific to the topic lookup view component. /// - public class TopicLookupAttributeViewModel: AttributeViewModel { + public class TopicLookupAttributeViewModel: AttributeViewModel { /*========================================================================================================================== | CONSTRUCTOR @@ -25,10 +26,12 @@ public class TopicLookupAttributeViewModel: AttributeViewModel { /// public TopicLookupAttributeViewModel( AttributeDescriptorTopicViewModel attributeDescriptor, + DefaultOptions options = null, string value = null, string inheritedValue = null ) : base( attributeDescriptor, + options, value, inheritedValue ) {} From 312b97fc7b20b9a88fdfdf37be6c095663fa68a2 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:25:56 -0700 Subject: [PATCH 334/637] Introduced `CssClass` and `IsEnabled` passthrough properties These properties were already exposed to `DefaultOptions`. Shared Razor pages that might need access to these, however, such as `_Layout.cshtml`, can't access the `Options`. This is because a strongly typed `AttributeViewModel` can't be cast to e.g. `AttributeViewModel` unless it is explicitly uses `DefaultOptions`. As such, defining this on `AttributeViewModel`, but then overriding them on `AttributeViewModel`, allows them to a) be accessed via shared pages (which can be bound to `AttributeViewModel`), while b) relying on `AttributeViewModel` (which derives from `AttributeViewModel`) to access those values directly from `Options`. It's not an especially elegant work around since it requires repeating these properties three times (in `DefaultOptions`, `AttributeViewModel`, and `AttributeViewModel`. Fortunately, we don't expect there to be many shared options that need to be relayed down to the views _and_ accessed by shared partials, so this shouldn't happen often. For most other configuration properties, they will only be access by views strongly typed to their specific view model. Implemented a call to this in `_Layout.cshtml` as a proof-of-concept. --- .../AttributeViewModel.cs | 16 ++++++++++++ .../AttributeViewModel{T}.cs | 26 +++++++++++++++++++ .../Views/Editor/Components/_Layout.cshtml | 4 +-- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index ea72d959..ad49cb45 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -91,6 +91,22 @@ public AttributeViewModel( /// public virtual string InheritedValue { get; set; } + /*========================================================================================================================== + | IS ENABLED + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether the field should be enabled, as defined on the instance. + /// + public virtual bool IsEnabled { get; set; } = true; + + /*========================================================================================================================== + | CSS CLASS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Defines the CSS class names to be used, if any are configured. + /// + public virtual string CssClass { get; set; } + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs index 9b53174e..52c8c4d1 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs @@ -44,6 +44,32 @@ public AttributeViewModel( /// public T Options { get; set; } + /*========================================================================================================================== + | IS ENABLED + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether the field should be enabled, as defined on the instance. + /// + public override bool IsEnabled { + get => Options.IsEnabled?? true; + set { + Options.IsEnabled = value; + } + } + + /*========================================================================================================================== + | CSS CLASS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Defines the CSS class names to be used, if any are configured. + /// + public override string CssClass { + get => Options.CssClass; + set { + Options.CssClass = value; + } + } + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml index b081e77b..d98a577f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml @@ -1,4 +1,4 @@ -@model Ignia.Topics.Editor.Models.AttributeViewModel +@model AttributeViewModel @@ -6,7 +6,7 @@ @Html.LabelFor(m => m.Value, Model.AttributeDescriptor.Title) -
    +
    @Html.HiddenFor(m => m.EditorType) @Html.HiddenFor(m => m.Key) From 3936d1e814cfdd5399dd39a585575eddf917799f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:28:15 -0700 Subject: [PATCH 335/637] Explicitly set `Models` to use *C# 8.0* The `Ignia.Topics.Editor.Mvc` project uses **C# 8** by default since it's a **.NET Core 3** app. This isn't true for the `Ignia.Topics.Editor.Models` library, however, since it's a `Razor Class Library` which implements **.NET Standard 2.1**. For such libraries, the language version must be explicitly set. Doing so allows us to take advantage of **C# 8**'s new nullable annotation context, which is useful for options classes. --- Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 5b8e8965..73911015 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -1,6 +1,7 @@  net48;netstandard2.1 + 8.0 Ignia.Topics.Editor.Models Ignia.Topics.Editor.Models Copyright © 2019 From b297fe113b83a1f14315e176168bb34e06f50964 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:31:48 -0700 Subject: [PATCH 336/637] Set values for `IsEnabled` and `CssClass` Defining the `IsEnabled` and `CssClass` properties on `DefaultOptions` (#) as well as `AttributeViewModel` and `AttributeViewModel` (#) doesn't mean they have their values populated by the attribute configuration; that requires explicit wiring. As such, this is added directly to the `GetAttributeViewModel()` method, which all attribute view components call into (directly or indirectly). These properties mirror the legacy `Enabled` and `CssClassField` properties exposed on (nearly) all **ASP.NET User Controls** in the previous version. They were renamed for consistency with new standards. To maintain backward compatibility, however, overloads are put into `AttributeTypeViewComponentBase` to fall back to the previous label. Added comments while I was at it, since the code was becoming a bit cumbersome. --- .../AttributeTypeViewComponentBase.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index 9bef5177..4f95815f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -90,10 +90,30 @@ DefaultOptions options /// The Topic associated with the current request. public AttributeViewModel GetAttributeViewModel(AttributeViewModel viewModel = null) { + /*------------------------------------------------------------------------------------------------------------------------ + | Set attribute + \-----------------------------------------------------------------------------------------------------------------------*/ var attribute = viewModel.AttributeDescriptor; + + /*------------------------------------------------------------------------------------------------------------------------ + | Set contextual values from current topic + \-----------------------------------------------------------------------------------------------------------------------*/ viewModel.InheritedValue = CurrentTopic.Parent.Attributes.GetValue(attribute.Key, true); viewModel.Value = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); + /*------------------------------------------------------------------------------------------------------------------------ + | Set convenience pass-throughs to configuration + \-----------------------------------------------------------------------------------------------------------------------*/ + viewModel.IsEnabled = attribute.GetBooleanConfigurationValue( + "IsEnabled", + attribute.GetBooleanConfigurationValue("Enabled", true) + ); + + viewModel.CssClass = attribute.GetConfigurationValue( + "CssClass", + attribute.GetConfigurationValue("CssClassField", null) + ); + return viewModel; } From f21165b527dd47fa957ce2a02deed1704d685fd6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:34:19 -0700 Subject: [PATCH 337/637] Deleted the `FileUploadViewComponent` The `FileUploadViewComponent` was never fully implemented in the legacy system. It remains a nice-to-have feature, but until we're ready to commit to it, and fully implement the functionality, we shouldn't be maintaining scaffolding for it. --- .../Attributes/FileUploadEditorAttribute.cs | 40 ------------------- .../Components/FileUploadViewComponent.cs | 26 ------------ .../Components/FileUpload/Default.cshtml | 7 ---- 3 files changed, 73 deletions(-) delete mode 100644 Ignia.Topics.Editor.Models/Attributes/FileUploadEditorAttribute.cs delete mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileUploadViewComponent.cs delete mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileUpload/Default.cshtml diff --git a/Ignia.Topics.Editor.Models/Attributes/FileUploadEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/FileUploadEditorAttribute.cs deleted file mode 100644 index 38c4d2ca..00000000 --- a/Ignia.Topics.Editor.Models/Attributes/FileUploadEditorAttribute.cs +++ /dev/null @@ -1,40 +0,0 @@ -/*============================================================================================================================== -| Author Ignia, LLC -| Client Ignia, LLC -| Project Topics Library -\=============================================================================================================================*/ - -namespace Ignia.Topics.Editor.Models.Attributes { - - /*============================================================================================================================ - | CLASS: FILE UPLOAD EDITOR ATTRIBUTE - \---------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Represents an instance of a file upload attribute in the Topic Editor. - /// - public class FileUploadEditorAttribute : EditorAttribute { - - /*========================================================================================================================== - | PRIVATE VARIABLES - \-------------------------------------------------------------------------------------------------------------------------*/ - - /*========================================================================================================================== - | CONSTRUCTOR - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Initializes a new instance of the class, using the specified key/value pair. - /// - public FileUploadEditorAttribute() : base() { - } - - /*========================================================================================================================== - | GET VALUE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Retrieves the value associated with the attribute. - /// - public override string GetValue() => Value; - - } // Class - -} // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileUploadViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileUploadViewComponent.cs deleted file mode 100644 index 19824b0e..00000000 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileUploadViewComponent.cs +++ /dev/null @@ -1,26 +0,0 @@ -/*============================================================================================================================== -| Author Ignia, LLC -| Client Ignia, LLC -| Project Topics Library -\=============================================================================================================================*/ - -namespace Ignia.Topics.Editor.Mvc.Components { - - /*============================================================================================================================ - | CLASS: FILE UPLOAD (VIEW COMPONENT) - \---------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Delivers a view model for a file upload attribute type. - /// - public class FileUploadViewComponent: DefaultAttributeTypeViewComponent { - - /*========================================================================================================================== - | CONSTRUCTOR - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Initializes a new instance of a with necessary dependencies. - /// - public FileUploadViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } - - } // Class -} // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileUpload/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileUpload/Default.cshtml deleted file mode 100644 index 4a7cd903..00000000 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileUpload/Default.cshtml +++ /dev/null @@ -1,7 +0,0 @@ -@model AttributeViewModel - -@{ - Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; -} - -@Html.TextBoxFor(m => m.Value, new { type = "file" }) \ No newline at end of file From cd548fc87fd6a07ae83d03e6c082023eb09dff4b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:38:57 -0700 Subject: [PATCH 338/637] Renamed `Options` to `TopicList` The `TopicLookupViewModel` implemented an `Options` property for tracking a list of topics to be bound to a dropdown list. This name conflicted with the new `Options` property, which was added to the `AttributeViewModel` base in order to access the options object. To eliminate this conflict, I renamed `Options` to `TopicList`. This is actually a better name as a) it ties it into our legacy name for this collection, and b) it's more descriptive of what _type_ of list it represents. --- .../Areas/Editor/Components/TopicLookupViewComponent.cs | 6 +++--- .../Areas/Editor/Models/TopicLookupAttributeViewModel.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index dc3b19e3..824c632f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -87,7 +87,7 @@ public async Task InvokeAsync( /*------------------------------------------------------------------------------------------------------------------------ | SET LABEL \-----------------------------------------------------------------------------------------------------------------------*/ - viewModel.Options.Add( + viewModel.TopicList.Add( new SelectListItem { Value = null, Text = label @@ -106,10 +106,10 @@ public async Task InvokeAsync( foreach (var topic in topics) { - string title = viewModel.Options.Any(t => t.Text == topic.Title)? $"{topic.Title} ({topic.Key})" : topic.Title; + string title = viewModel.TopicList.Any(t => t.Text == topic.Title)? $"{topic.Title} ({topic.Key})" : topic.Title; string value = getValue(topic); - viewModel.Options.Add( + viewModel.TopicList.Add( new SelectListItem { Value = value, Text = title, diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs index af38622a..e332ec20 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs @@ -37,7 +37,7 @@ public TopicLookupAttributeViewModel( ) {} /*========================================================================================================================== - | OPTIONS + | TOPIC LIST \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Provides a list of key/value pairs associated with the topic lookup. @@ -48,7 +48,7 @@ public TopicLookupAttributeViewModel( /// cref="TopicLookupAttributeViewModel"/> representing countries, US might by the key associated with a United /// States value. /// - public List Options { get; } = new List(); + public List TopicList { get; } = new List(); } // Class From 52f0f3b3906ddc8b4fd966a7b83f705db82323e2 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:41:23 -0700 Subject: [PATCH 339/637] Added debug data to `_Layout.cshtml` To simplify common debugging during development, am writing out the underlying `Value` and `InheritedValue` values directly to the interface in a hidden `
    `. We actually did this in the legacy editor in many of our controls; having this centralized avoids the need for repetition. Technically, this data can be gotten through formal debugging, but this provides a quick way of verifying the most commonly required data during development. --- .../Areas/Editor/Views/Editor/Components/_Layout.cshtml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml index d98a577f..5e792479 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml @@ -15,6 +15,11 @@
    +
    + _value: @Model.Value +
    InheritedValue: @Model.InheritedValue +
    +
    From e6abc977bb77b1fb402fba2e86f616a72578a1ce Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:50:03 -0700 Subject: [PATCH 340/637] Renamed `FileViewComponent` to `FileListViewComponent` This is a breaking change which may require updating legacy database. This new name is more descriptive, and consistent with our other -`List` view components (such as `TopicList`). --- .../{FileViewComponent.cs => FileListViewComponent.cs} | 2 +- .../Views/Editor/Components/{File => FileList}/Default.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename Ignia.Topics.Editor.Mvc/Areas/Editor/Components/{FileViewComponent.cs => FileListViewComponent.cs} (94%) rename Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/{File => FileList}/Default.cshtml (69%) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs similarity index 94% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index 4b2f1631..0edb9c12 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -12,7 +12,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a file attribute type. /// - public class FileViewComponent: DefaultAttributeTypeViewComponent { + public class FileListViewComponent: AttributeTypeViewComponentBase { /*========================================================================================================================== | CONSTRUCTOR diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/File/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml similarity index 69% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/File/Default.cshtml rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml index c971b6c7..f32afbad 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/File/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml @@ -4,4 +4,4 @@ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -@* Html.DropDownListFor(m => m.Value, …) *@ \ No newline at end of file +@* Html.DropDownListFor(m => m.Value, …) *@ From 575a746b2db5b9dd2d6e1ab5b59d0f4a04649357 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 20 Oct 2019 19:52:44 -0700 Subject: [PATCH 341/637] Integrated new `CssClass` into individual views We may want to revisit this later, as it probably makes more sense to standarize this at either the view level of the `_Layout.cshtml` level. For now, however, this ensures coverage for legacy conventions until @ktrunkey has an opportunity to clean up the styles. --- .../Views/Editor/Components/Boolean/Default.cshtml | 2 +- .../Editor/Components/DisplayOptions/Default.cshtml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml index 05cfeaac..2a64ccc8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml @@ -4,7 +4,7 @@ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -
    +
    diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DisplayOptions/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DisplayOptions/Default.cshtml index 047887de..ee24bdad 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DisplayOptions/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DisplayOptions/Default.cshtml @@ -4,18 +4,18 @@ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -
    +
    -
    +
    -
    +
    From 795aacd39458d1e3bb467ca46077b305173972ce Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 18:42:47 -0700 Subject: [PATCH 342/637] Sort attributes by `SortOrder` This required exposing the `SortOrder` property on `AttributeDescriptorTopicViewModel`, and then `OrderBy()`ing it in the `Edit.cshtml` view. --- .../AttributeDescriptorTopicViewModel.cs | 8 ++++++++ .../Areas/Editor/Views/Editor/Edit.cshtml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs index f349d831..e39889cf 100644 --- a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs @@ -131,6 +131,14 @@ public int GetIntegerConfigurationValue(string key, int defaultValue = 0) { /// public string DefaultValue { get; set; } + /*========================================================================================================================== + | PROPERTY: SORT ORDER + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines the attribute's prioritization in the page order. + /// + public int SortOrder { get; set; } + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index bacd39d6..20c9477e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -21,7 +21,7 @@
    - @foreach (var attribute in supportedAttributes) { + @foreach (var attribute in supportedAttributes.OrderBy(a => a.SortOrder)) { if (attribute.IsHidden || String.IsNullOrEmpty(attribute.EditorType)) { continue; From f186d36f5919e4431755e979be8e6d83a6717d63 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 18:43:14 -0700 Subject: [PATCH 343/637] Order tabs alphabetically --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 20c9477e..84a3d7c3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -13,7 +13,7 @@
    @{int index = 0;}
    - @foreach (string category in Model.ContentTypeDescriptor.AttributeDescriptors.Select(a => a.DisplayGroup).Distinct()) { + @foreach (string category in Model.ContentTypeDescriptor.AttributeDescriptors.Select(a => a.DisplayGroup).Distinct().OrderBy(a => a)) { var supportedAttributes = Model.ContentTypeDescriptor.AttributeDescriptors.Where(a => a.DisplayGroup.Equals(category)); var displayGroup = category.Replace(" ", ""); From 8057281c881054d2f1f8396405ead28083c4cbac Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 18:43:37 -0700 Subject: [PATCH 344/637] Handle null `Title` in `confirmDelete()` function --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 84a3d7c3..8093f336 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -118,7 +118,7 @@ * Force the user to confirm they wish to delete a Topic before performing the deletion */ function confirmDelete() { - return confirm('Are you sure you want to delete the "@Model.Topic.Title.Replace("'", "’")" topic? The topic and all descendants will be permanently deleted.'); + return confirm('Are you sure you want to delete the "@(Model.Topic.Title?.Replace("'", "’")?? Model.Topic.Key)" topic? The topic and all descendants will be permanently deleted.'); } From 488b4ea62d976c949a2bce48826c8890bce19bac Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 18:47:20 -0700 Subject: [PATCH 345/637] Establish blank `VersionHistory` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `TopicMappingService` will automatically create and populate the `VersionHistory` property _if_ a version history exists. If there aren't any versions, however, it won't get created—which means views need to search for nulls before e.g. iterating over the collection. To simplify this, we're now creating a new `List` as a default value so that it's never null. --- Ignia.Topics.Editor.Models/EditingTopicViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs b/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs index 422f3aa2..9e86e8cd 100644 --- a/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs @@ -41,7 +41,7 @@ public EditingTopicViewModel() : base() {} /// Provides a collection of instances during which the represented was /// modified. /// - public List VersionHistory { get; set; } + public List VersionHistory { get; set; } = new List(); } // Class From deb4d3fb6153600ebff8b006fd386b292a78ff88 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 18:52:20 -0700 Subject: [PATCH 346/637] Introduced `EditorAttributeLookupService` It's unclear how this ever worked previously, but upon data binding the `EditorAttributeModelBinder` was previously using `Type.GetType()` to find a matching `EditorAttribute`. This won't work correctly, however, since `Type.GetType()` _only_ searches the _local_ assembly (unless a fully qualified assembly name is provided). Fortunately, we have the `DynamicTypeLookupService` to address problems like this, with caching for performance. Unfortunately, there doesn't appear to be a way to inject dependencies into the constructor via the `EditorAttributeModelBindingProvider`, so we're instantiating it directly here. This is less than ideal, but also not a showstopper since it's a well-known local dependency. Still, if only for unit testing, we'll want to revisit this to use e.g. **ASP.NET Core**'s dependency injection later. --- .../EditorAttributeLookupService.cs | 37 +++++++++++++++++++ .../EditorAttributeModelBinder.cs | 10 ++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs new file mode 100644 index 00000000..d860f533 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs @@ -0,0 +1,37 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Reflection; +using Ignia.Topics.Editor.Models.Attributes; +using System; + +namespace Ignia.Topics.Editor.Mvc.Infrastructure { + + /*============================================================================================================================ + | CLASS: TOPIC VIEW MODEL LOOKUP SERVICE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The will search all assemblies for s that end with + /// "EditorAttribute". + /// + public class EditorAttributeLookupService : DynamicTypeLookupService { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes a new instance of a . + /// + public EditorAttributeLookupService() : base( + t => ( + t.Name.EndsWith("EditorAttribute", StringComparison.InvariantCultureIgnoreCase) && + typeof(EditorAttribute).IsAssignableFrom(t) + ), + typeof(object) + ) + { } + + } //Class +} //Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs index e6aadccd..3c0edb2a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs @@ -28,6 +28,14 @@ public class EditorAttributeModelBinder : IModelBinder { /// public EditorAttributeModelBinder() { } + /*========================================================================================================================== + | PROPERTY: TYPE LOOKUP SERVICE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes static variables for the . + /// + public static ITypeLookupService TypeLookupService { get; set; } = new EditorAttributeLookupService(); + /*========================================================================================================================== | OVERRIDE: BIND MODEL (ASYNC) \-------------------------------------------------------------------------------------------------------------------------*/ @@ -60,7 +68,7 @@ public Task BindModelAsync(ModelBindingContext bindingContext) { /*------------------------------------------------------------------------------------------------------------------------ | ESTABLISH MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - var type = Type.GetType("Ignia.Topics.Editor.Models.Attributes." + editorType + "EditorAttribute", true); + var type = TypeLookupService.Lookup($"{editorType}EditorAttribute"); var model = (EditorAttribute)Activator.CreateInstance(type); model.Key = key; From bbc273cdd921fb5496d27ab3f1ee9c21e97985ca Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 18:56:26 -0700 Subject: [PATCH 347/637] Updated namespaces available to views Introduced the new `Ignia.Topics.Editor.Models.Components.Options` and `Ignia.Topics.Editor.Models.Components.ViewModels` namespaces, which are referenced by nearly every view. Also removed the legacy `Ignia.Topics.AspNetCore.Mvc.Components` namespace, which was previously used for the view models before they were moved to the existing `Ignia.Topics.Editor.Mvc.Components` namespace (see #d3fb0a9). --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml index 5ac99b31..16d2a249 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml @@ -1,11 +1,12 @@ @using Ignia.Topics; @using Ignia.Topics.ViewModels @using Ignia.Topics.AspNetCore.Mvc.Models -@using Ignia.Topics.AspNetCore.Mvc.Components @using Ignia.Topics.Editor.Models @using Ignia.Topics.Editor.Models.Attributes @using Ignia.Topics.Editor.Models.Components +@using Ignia.Topics.Editor.Models.Components.Options +@using Ignia.Topics.Editor.Models.Components.ViewModels @using Ignia.Topics.Editor.Mvc.Models @using Microsoft.AspNetCore.Html From aefc18c1d3a31e7a9a7c015e61604d6c7e110fce Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 18:57:18 -0700 Subject: [PATCH 348/637] Minor formatting updates for consistency --- .../Components/Options/DefaultOptions.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Components/Options/DefaultOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/DefaultOptions.cs index 9bce5047..ef78f814 100644 --- a/Ignia.Topics.Editor.Models/Components/Options/DefaultOptions.cs +++ b/Ignia.Topics.Editor.Models/Components/Options/DefaultOptions.cs @@ -3,11 +3,10 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; #nullable enable -using Ignia.Topics.Editor.Models; - namespace Ignia.Topics.Editor.Models.Components.Options { /*============================================================================================================================ @@ -34,7 +33,7 @@ public class DefaultOptions { /// public string? CssClass { get; set; } - } -} + } //Class +} //Namespace #nullable restore From 9193f392ff620eee009a844b8aa3f71a19592306 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 18:59:00 -0700 Subject: [PATCH 349/637] Placed class in correct namespace Previously, `JsonTopicViewModelOptions` was incorrectly placed in the `Ignia.Topics.Editor.Models` namespace. Moved it to `Ignia.Topics.Editor.Models.Json` namespace for consistency with it's siblings. --- Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs index 31d0fd30..2556ac58 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs @@ -5,7 +5,7 @@ \=============================================================================================================================*/ using System; -namespace Ignia.Topics.Editor.Models { +namespace Ignia.Topics.Editor.Models.Json { /*============================================================================================================================ | CLASS: JSON VIEW MODEL OPTIONS From 175907125bc49b6b3fbb723a8c26525c4ad4bb22 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 19:01:39 -0700 Subject: [PATCH 350/637] Introduced `TopicId` to `AttributeViewModel` While the `Topic` is available on the `EditorViewModel`, along with `Id`, this isn't available to individual attributes. This ensures that the `TopicId` is always available, even at the attribute level. That said, we may want to revisit if this is so widely required at some point. --- Ignia.Topics.Editor.Models/AttributeViewModel.cs | 9 +++++++++ .../Editor/Components/AttributeTypeViewComponentBase.cs | 1 + 2 files changed, 10 insertions(+) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index ad49cb45..892d1e2d 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -71,6 +71,15 @@ public AttributeViewModel( /// public string EditorType => AttributeDescriptor.EditorType.Replace(".ascx", ""); + /*========================================================================================================================== + | TOPID ID + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides the , assuming the has already been saved; otherwise will return + /// -1. + /// + public int TopicId { get; set; } + /*========================================================================================================================== | VALUE \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index 4f95815f..7b86d0e3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -98,6 +98,7 @@ public AttributeViewModel GetAttributeViewModel(AttributeViewModel viewModel = n /*------------------------------------------------------------------------------------------------------------------------ | Set contextual values from current topic \-----------------------------------------------------------------------------------------------------------------------*/ + viewModel.TopicId = CurrentTopic.Id; viewModel.InheritedValue = CurrentTopic.Parent.Attributes.GetValue(attribute.Key, true); viewModel.Value = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); From 81b9de50f7b3775658dd804aa54d2fc4dee2c3f0 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 19:18:26 -0700 Subject: [PATCH 351/637] Introduced `BooleanAttributeViewModel` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduced a `BooleanAttributeViewModel` which exposes a new `IsSelected()` method for determining if the current attribute is selected. This is necessary since the value isn't usually in a format that the `@Html.RadioButtonFor()` method understands (i.e., it doesn't understand `1` and `0` instead of `true` and `false`). Exposed this on the view in order to conditionally set the checked state of each radio button. Also introduced a `BooleanOptions` object—though, at this point, there aren't actually any boolean options, so it's just inheriting the `DefaultOptions`. --- .../Components/Options/BooleanOptions.cs | 22 +++++++ .../ViewModels/BooleanAttributeViewModel.cs | 59 +++++++++++++++++++ .../Editor/Components/BooleanViewComponent.cs | 25 +++++++- .../Editor/Components/Boolean/Default.cshtml | 6 +- 4 files changed, 108 insertions(+), 4 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/BooleanOptions.cs create mode 100644 Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs diff --git a/Ignia.Topics.Editor.Models/Components/Options/BooleanOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/BooleanOptions.cs new file mode 100644 index 00000000..81491dee --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/BooleanOptions.cs @@ -0,0 +1,22 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Metadata; +using System; + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: BOOLEAN (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes options associated with the . + /// + public class BooleanOptions: DefaultOptions { + + + } // Class + +} // Namespace diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs new file mode 100644 index 00000000..9eabf016 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs @@ -0,0 +1,59 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Metadata; +using System; + +namespace Ignia.Topics.Editor.Models.Components.ViewModels { + + /*============================================================================================================================ + | CLASS: BOOLEAN ATTRIBUTE (VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents the data model for the . Additionally provides access to the underlying + /// as well as the instance values for that attribute from the currently + /// selected . + /// + public class BooleanAttributeViewModel: AttributeViewModel { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private string _value = null; + private string _inheritedValue = null; + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public BooleanAttributeViewModel( + AttributeDescriptorTopicViewModel attributeDescriptor, + BooleanOptions options, + string value = null, + string inheritedValue = null + ): base( + attributeDescriptor, + options, + value, + inheritedValue + ) {} + + /*========================================================================================================================== + | IS SELECTED? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether or not the value is selected. + /// + public bool IsSelected() => ( + (Value?.Equals("1", StringComparison.OrdinalIgnoreCase)?? false) || + (Value?.Equals("true", StringComparison.InvariantCultureIgnoreCase)?? false) + ); + + } // Class + +} // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs index 986a0bfb..46d43ecb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs @@ -4,6 +4,13 @@ | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components; +using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Components.ViewModels; +using Microsoft.AspNetCore.Mvc; +using System.Threading.Tasks; + namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ @@ -12,7 +19,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a boolean attribute type. /// - public class BooleanViewComponent: DefaultAttributeTypeViewComponent { + public class BooleanViewComponent: AttributeTypeViewComponentBase { /*========================================================================================================================== | CONSTRUCTOR @@ -23,6 +30,22 @@ public class BooleanViewComponent: DefaultAttributeTypeViewComponent { /// A topic . public BooleanViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + /*========================================================================================================================== + | METHOD: INVOKE (ASYNC) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Assembles the view model for the . + /// + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + BooleanOptions options = null + ) { + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + options ??= new BooleanOptions(); + return View(GetAttributeViewModel(new BooleanAttributeViewModel(attribute, options))); + } + } // Class } // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml index 2a64ccc8..9d67b68e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml @@ -1,4 +1,4 @@ -@model AttributeViewModel +@model BooleanAttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; @@ -6,11 +6,11 @@
    From bfde9f96900ceccec112f7e2358bc09fcad5b959 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 19:23:39 -0700 Subject: [PATCH 352/637] Established deprecated pass-through for `FileViewComponent` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In a previous commit (#), we renamed `FileViewComponent` to `FileListViewComponent`. Legacy databases, however, may still be calling `FileViewComponent`. These should be updated. To simplify this transition, however, an instance of `FileViewComponent` was reintroduced, which simply subclasses `FileListViewComponent`, thus ensuring it isn't duplicating any logic. The class is marked as `[Obsolete()]` since it isn't intended to be used—though, users will only discover this in their composition root, since no one is instantiating this directly. --- .../Editor/Components/FileViewComponent.cs | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs new file mode 100644 index 00000000..48489fed --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileViewComponent.cs @@ -0,0 +1,43 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Repositories; +using Microsoft.AspNetCore.Hosting; +using System; + +namespace Ignia.Topics.Editor.Mvc.Components { + + /*============================================================================================================================ + | CLASS: FILE (VIEW COMPONENT) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// A simple pass-through to , intended exclusively for backward compatibility. + /// + /// + /// The was recently renamed to . Legacy databases, + /// however, may still be using the previous name (i.e., File, not FileList). As such, this pass-through is + /// being maintained for a short period to aid in the migration. + /// + [Obsolete("The 'FileViewComponent' is deprecated. Please use 'FileListViewComponent' instead.", false)] + public class FileViewComponent : FileListViewComponent { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of a with necessary dependencies. + /// + public FileViewComponent( + ITopicRoutingService topicRoutingService, + IWebHostEnvironment webHostEnvironment + ) : base( + topicRoutingService, + webHostEnvironment + ) { } + + } // Class +} // Namespace \ No newline at end of file From 809f6c7e7fce154bd79c02a1e7aa73563489d438 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 19:30:32 -0700 Subject: [PATCH 353/637] Implemented initial version of `RelationshipsViewComponent` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This includes a new `RelationshipsOptions` class which exposes all of the `DefaultConfiguration` properties that the relationships attribute will accept. This provides a convenient way of exposing and documenting the available options in a simple format—though, of course, those options still aren't exposed to the user interface, unfortunately. This implementation includes the **ExtJS** `TreeView` control, which is configured inline, and relays the `Model.Options` to the `dataUrl` (which pulls values from the `EditorController.JsonAsync()` action). Ideally, we'd subclass the script so that common attributes aren't repeated for each relationship on a page; ultimately, however, we want to replace the **ExtJS** implementation with a lighter-weight, stand-alone tree view control. As a result, we're not worrying about optimizing this since it isn't something we want to maintain for too long. --- .../Options/RelationshipsOptions.cs | 88 +++++++++++++++++++ .../Components/RelationshipsViewComponent.cs | 51 ++++++++++- .../Components/Relationships/Default.cshtml | 53 ++++++++++- 3 files changed, 187 insertions(+), 5 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/RelationshipsOptions.cs diff --git a/Ignia.Topics.Editor.Models/Components/Options/RelationshipsOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/RelationshipsOptions.cs new file mode 100644 index 00000000..7ea174bc --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/RelationshipsOptions.cs @@ -0,0 +1,88 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Metadata; +using System; + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: RELATIONSHIPS (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes options associated with the . + /// + public class RelationshipsOptions: DefaultOptions { + + /*========================================================================================================================== + | PROPERTY: SCOPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets a path representing the scope of s to display to the + /// user. This allows relationships to be targeted to particular areas of the topic graph. + /// + public string? Scope { get; set; } + + /*========================================================================================================================== + | PROPERTY: SHOW ROOT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Given the , determines whether the root node is displayed, or only the children. The default is + /// false. + /// + public bool? ShowRoot { get; set; } + + /*========================================================================================================================== + | PROPERTY: CHECK ASCENDANTS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// When a is selected as a relationship, determines if the client should automatically select all + /// descendent topics. The default is false. + /// + public bool? CheckAscendants { get; set; } + + /*========================================================================================================================== + | PROPERTY: ATTRIBUTE NAME + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Optionally defines an attribute name to filter the list of displayed s by. Must be accompanied by + /// a . + /// + /// + /// If the and are defined, then any s listed + /// under a that is excluded by the filter will also be excluded. As such, this option should + /// be used with care. + /// + public string? AttributeName { get; set; } + + /*========================================================================================================================== + | PROPERTY: ATTRIBUTE VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Optionally defines an attribute value to filter the list of displayed s by. Must be accompanied by + /// a . + /// + /// + /// If the and are defined, then any s listed + /// under a that is excluded by the filter will also be excluded. As such, this option should + /// be used with care. + /// + public string? AttributeValue { get; set; } + + /*========================================================================================================================== + | PROPERTY: NAMESPACE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines the name space to save the relationship under. Any topic may have multiple relationships, so the namespace + /// helps distinguish them from one another. + /// + public string? Namespace { get; set; } + + } // Class +} // Namespace + +#nullable restore diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs index 8728f865..1d142d44 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs @@ -3,6 +3,7 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using System; using System.Threading.Tasks; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; @@ -35,12 +36,54 @@ public RelationshipsViewComponent(ITopicRoutingService topicRoutingService) : ba public async Task InvokeAsync( AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix, - DefaultOptions options = null + RelationshipsOptions options = null ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - options ??= new DefaultOptions(); - var viewModel = new AttributeViewModel(attribute, options); - return View(GetAttributeViewModel(viewModel)); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set configuration values + \-----------------------------------------------------------------------------------------------------------------------*/ + options ??= new RelationshipsOptions(); + options.Scope ??= attribute.GetConfigurationValue( "Scope", null); + options.ShowRoot ??= attribute.GetBooleanConfigurationValue( "ShowRoot", false); + options.CheckAscendants ??= attribute.GetBooleanConfigurationValue( "CheckAscendants", false); + options.AttributeName ??= attribute.GetConfigurationValue( "AttributeName", null); + options.AttributeValue ??= attribute.GetConfigurationValue( "AttributeValue", null); + options.Namespace ??= attribute.GetConfigurationValue( "Namespace", "Related"); + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var model = new AttributeViewModel(attribute, options); + + GetAttributeViewModel(model); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set model values + \-----------------------------------------------------------------------------------------------------------------------*/ + model.Value = CleanArray(model.Value); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(model); + + } + + /*========================================================================================================================== + | METHOD: CLEAN ARRAY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Takes a string array, converts it to an array, strips any blank entries, and returns it to a string array. Useful for + /// dealing with potential artifacts such as empty array items introduced by JavaScript. + /// + string CleanArray(string value) { + if (String.IsNullOrWhiteSpace(value)) return ""; + return String.Join(",", value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries)); } } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationships/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationships/Default.cshtml index 03d03615..7c4ea4ca 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationships/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationships/Default.cshtml @@ -1,5 +1,56 @@ -@model AttributeViewModel +@model AttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } + + +
    + + \ No newline at end of file From fea3ab80ce6c0de1273781eb4c1bca1bd9acc278 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 19:42:58 -0700 Subject: [PATCH 354/637] Updated `TopicLookupViewComponent` to use `TopicLookupOptions` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new options object approach provides a more elegant way of handling large amounts of parameters, which can be easily relayed down to the view. This also greatly simplifies the implementation of `TopicLookupviewComponent` by eliminating the need for a couple of the legacy local functions (`setBooleanConfiguration()` and `setConfiguration()`) which are now handled directly by the `AttributeDescriptorTopicViewModel`. The `TopicLookupViewComponent` successfully binds to a dropdown list. That said, this is not yet fully implemented; it still needs to account for, specifically, the `TargetUrl` and `TargetPopup` properties, which are needed for its use in `TopicListViewComponent` and in the main `Edit.cshtml`. In both cases, these are used for displaying a list of `ContentTypeDescriptor`s, and allowing a new `Topic` to be created—either by redirecting to a new page (`TargetUrl`) or by spawning a modal window (`TargetPopup`). For the latter scenario, it also needs to implement `OnClientClose`, which provides functionality for how to handle events when a modal window that it spawned is closed. For now, however, this provides a baseline implementation for standard attribute lookups. --- .../Components/Options/TopicLookupOptions.cs | 128 ++++++++++++++++++ .../Components/TopicLookupViewComponent.cs | 80 +++++------ .../Models/TopicLookupAttributeViewModel.cs | 4 +- .../Components/TopicLookup/Default.cshtml | 15 +- 4 files changed, 177 insertions(+), 50 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/TopicLookupOptions.cs diff --git a/Ignia.Topics.Editor.Models/Components/Options/TopicLookupOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/TopicLookupOptions.cs new file mode 100644 index 00000000..711e7f83 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/TopicLookupOptions.cs @@ -0,0 +1,128 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Metadata; +using System; + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: TOPIC LOOKUP (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes options associated with the . + /// + public class TopicLookupOptions : DefaultOptions { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private string? _valueProperty = null; + + /*========================================================================================================================== + | SCOPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the scope of the topic graph within which to search for results. E.g., Root:Web:Configuration. + /// + public string? Scope { get; set; } + + /*========================================================================================================================== + | ATTRIBUTE NAME + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the name of an attribute (e.g., ContentType) to filter the selectable token list by. If is defined, then should also be defined; otherwise, it will filter + /// by topics that have an empty value for the specified . + /// + public string? AttributeName { get; set; } + + /*========================================================================================================================== + | ATTRIBUTE VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the value of an attribute (e.g., Page) to filter the selectable token list by. If is defined, then should also be defined; otherwise, the filter + /// will not function. + /// + public string? AttributeValue { get; set; } + + /*========================================================================================================================== + | TARGET URL + >--------------------------------------------------------------------------------------------------------------------------- + | ### TODO JJC092313: Need to add support for {token} replacements in the TargetUrl. Also, unclear what the current default + | logic is doing; I don't believe this should be necessary. + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The TargetUrl allows the dropdown control to trigger the loading of a new page based on the value of the dropdown box. + /// The new page is loaded using the LoadPage event handler, and may optionally be handled as a redirect (default) or a + /// popup (based on the TargetPopup boolean). + /// + public string? TargetUrl { get; set; } + + /*========================================================================================================================== + | TARGET POPUP + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// If a TargetUrl is supplied, and TargetPopup is set to true, then the TargetUrl will be loaded during the LoadPage + /// event as a popup window. Otherwise, the TargetUrl will be loaded via a redirect. + /// + public bool? TargetPopup { get; set; } + + /*========================================================================================================================== + | ON CLIENT CLOSE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// If supplied, sets a reference to a callback function to execute on close of the editor popup. + /// + public string? OnClientClose { get; set; } + + /*========================================================================================================================== + | LABEL + \-------------------------------------------------------------------------------------------------------------------------*/ + public string? Label { get; set; } + + /*========================================================================================================================== + | PROPERTY: USE UNIQUE KEY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether to use a fully qualified key ("UniqueKey") or just the topic key. A UniqueKey makes it easier to + /// construct or retrieve the corresponding topic object without any knowledge of where that object exists. Further, under + /// certain circumstances, a UniqueKey may be necessary to guarantee uniqueness (for instance, if DataSource is overridden + /// with a collection of topics from multiple locations in the topic tree). That said, the topic key may be a preferred + /// value, particularly when not intended to provide a strongly-typed reference to particular topics (e.g., when the + /// LookupList is being used to simply provide a constrained list of known values, such as tags). + /// + public bool? UseUniqueKey { get; set; } + + /*========================================================================================================================== + | VALUE PROPERTY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines what property to bind the TopicLookup/TopicList to. + /// + public string? ValueProperty { + get { + if (_valueProperty == null) { + _valueProperty = UseUniqueKey is true ? "UniqueKey" : "Key"; + } + return _valueProperty; + } + set { + _valueProperty = value; + } + } + + /*========================================================================================================================== + | ALLOWED KEYS + \-------------------------------------------------------------------------------------------------------------------------*/ + public string? AllowedKeys { get; set; } + + } // Class +} // Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 824c632f..440498d8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -8,6 +8,7 @@ using System.Threading.Tasks; using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; using Ignia.Topics.Editor.Mvc.Models; using Ignia.Topics.Querying; using Ignia.Topics.Repositories; @@ -50,39 +51,36 @@ ITopicRepository topicRepository /// public async Task InvokeAsync( AttributeDescriptorTopicViewModel attribute, - string htmlFieldPrefix = null, - string label = null, - string scope = null, - string attributeName = null, - string attributeValue = null, - string allowedKeys = null, - bool? useUniqueKey = null, - string valueProperty = null, - bool? targetPopup = null, - string targetUrl = null, - string onClientClose = null + TopicLookupOptions options = null, + string htmlFieldPrefix = null ) { - /*============================================================================================================================ - | SET ATTRIBUTE DEFAULTS - \---------------------------------------------------------------------------------------------------------------------------*/ - label = setConfiguration("Label", label, "Select a Topic..."); - scope = setConfiguration("Scope", scope, null); - attributeName = setConfiguration("AttributeName", attributeName, null); - attributeValue = setConfiguration("AttributeValue", attributeValue, null); - allowedKeys = setConfiguration("AllowedKeys", allowedKeys, null); - useUniqueKey = setBooleanConfiguration("UseUniqueKey", useUniqueKey, true); - valueProperty = setConfiguration("ValueProperty", valueProperty, useUniqueKey.Value? "UniqueKey" : "Key"); - - targetPopup = setBooleanConfiguration("TargetPopup", targetPopup, false); - targetUrl = targetUrl?? attribute.GetConfigurationValue("TargetUrl", null); - onClientClose = onClientClose ?? attribute.GetConfigurationValue("OnClientClose", null); + /*------------------------------------------------------------------------------------------------------------------------ + | Set configuration values + \-----------------------------------------------------------------------------------------------------------------------*/ + options ??= new TopicLookupOptions(); + options.Label ??= attribute.GetConfigurationValue( "Label", "Select a Topic…"); + options.Scope ??= attribute.GetConfigurationValue( "Scope", null); + options.AttributeName ??= attribute.GetConfigurationValue( "AttributeName", null); + options.AttributeValue ??= attribute.GetConfigurationValue( "AttributeValue", null); + options.AllowedKeys ??= attribute.GetConfigurationValue( "AllowedKeys", null); + options.UseUniqueKey ??= attribute.GetBooleanConfigurationValue( "UseUniqueKey", false); + options.ValueProperty ??= attribute.GetConfigurationValue( "ValueProperty", null); + options.TargetPopup ??= attribute.GetBooleanConfigurationValue( "TargetPopup", false); + options.TargetUrl ??= attribute.GetConfigurationValue( "TargetUrl", null); + options.OnClientClose ??= attribute.GetConfigurationValue( "OnClientClose", null); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; /*------------------------------------------------------------------------------------------------------------------------ - | DEFAULT PROCESSING + | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix?? ViewData.TemplateInfo.HtmlFieldPrefix; - var viewModel = (TopicLookupAttributeViewModel)GetAttributeViewModel(new TopicLookupAttributeViewModel(attribute)); + var viewModel = new TopicLookupAttributeViewModel(attribute, options); + + GetAttributeViewModel(viewModel); /*------------------------------------------------------------------------------------------------------------------------ | SET LABEL @@ -90,7 +88,7 @@ public async Task InvokeAsync( viewModel.TopicList.Add( new SelectListItem { Value = null, - Text = label + Text = options.Label } ); @@ -102,7 +100,7 @@ public async Task InvokeAsync( /*------------------------------------------------------------------------------------------------------------------------ | SET OPTIONS \-----------------------------------------------------------------------------------------------------------------------*/ - var topics = GetTopics(scope, attributeName, attributeValue, allowedKeys); + var topics = GetTopics(options.Scope, options.AttributeName, options.AttributeValue, options.AllowedKeys); foreach (var topic in topics) { @@ -120,28 +118,17 @@ public async Task InvokeAsync( } /*------------------------------------------------------------------------------------------------------------------------ - | RETURN VIEW MODEL + | Return view with view model \-----------------------------------------------------------------------------------------------------------------------*/ return View(viewModel); /*------------------------------------------------------------------------------------------------------------------------ - | LOCAL HELPER FUNCTIONS + | Helper functions \-----------------------------------------------------------------------------------------------------------------------*/ - bool? setBooleanConfiguration(string parameterName, bool? parameterValue, bool defaultParameterValue) { - if (parameterValue.HasValue) { - return parameterValue; - } - return Boolean.Parse(attribute.GetConfigurationValue(parameterName, defaultParameterValue.ToString())); - } - - string setConfiguration(string parameterName, string parameterValue, string defaultParameterValue) { - return parameterValue?? attribute.GetConfigurationValue(parameterName, defaultParameterValue); - } - string getValue(Topic topic) { - if (!String.IsNullOrEmpty(targetUrl)) { + if (!String.IsNullOrEmpty(options.TargetUrl)) { // Add TopicID if not already available - var uniqueTargetUrl = targetUrl; + var uniqueTargetUrl = options.TargetUrl; if ( uniqueTargetUrl.IndexOf("?") >= 0 && uniqueTargetUrl.IndexOf("TopicID", StringComparison.InvariantCultureIgnoreCase) < 0 @@ -150,12 +137,11 @@ string getValue(Topic topic) { } return ReplaceTokens(topic, uniqueTargetUrl); } - return ReplaceTokens(topic, "{" + valueProperty + "}"); + return ReplaceTokens(topic, "{" + options.ValueProperty + "}"); } } - /*========================================================================================================================== | METHOD: GET TOPICS >--------------------------------------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs index e332ec20..90c81e19 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs @@ -16,7 +16,7 @@ namespace Ignia.Topics.Editor.Mvc.Models { /// /// Extends the to include properties that are specific to the topic lookup view component. /// - public class TopicLookupAttributeViewModel: AttributeViewModel { + public class TopicLookupAttributeViewModel: AttributeViewModel { /*========================================================================================================================== | CONSTRUCTOR @@ -26,7 +26,7 @@ public class TopicLookupAttributeViewModel: AttributeViewModel { /// public TopicLookupAttributeViewModel( AttributeDescriptorTopicViewModel attributeDescriptor, - DefaultOptions options = null, + TopicLookupOptions options, string value = null, string inheritedValue = null ) : base( diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicLookup/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicLookup/Default.cshtml index cbd896c3..2e13b6e0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicLookup/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicLookup/Default.cshtml @@ -4,4 +4,17 @@ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } - \ No newline at end of file +@if (Model.TopicList.Count > 1) { + +} + +@if (Model.TopicList.Count == 1 && !String.IsNullOrEmpty(Model.Options.TargetUrl)) { +
    + + @if (Model.Options.TargetPopup is false) { + + Add @Model.TopicList.FirstOrDefault().Text + + } +
    +} From cbbb38f8bc7143fc48d4b2dd083fced7a51e427c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 19:53:56 -0700 Subject: [PATCH 355/637] Implemented initial version of `TopicListViewComponent` This version implements a `TopicListOptions` which exposes all configuration properties available via `DefaultConfiguration`, a `TopicListAttributeViewModel` which exposes `IsNew`, `UniqueKey`, and `WebPath` properties, and introduces an initial version of the **ExtJS** `TreeView` control in the view. That said, this is not yet complete: It still needs to expose support for event listeners (`click()`, `startDrag()`, `nodedragover()`, and `movenode()`; the modal popup, via `Options.TargetPopup`; and, finally, the embedded `TopicLookupViewComponent` so that new topics can be added to the list (also by spawning a child modal window). Still, at this point, it at least supports displaying a read-only list of nested topics on the page. --- .../Components/Options/TopicListOptions.cs | 44 ++++++++++++ .../ViewModels/TopicListAttributeViewModel.cs | 70 +++++++++++++++++++ .../Components/TopicListViewComponent.cs | 41 +++++++++-- .../Components/TopicList/Default.cshtml | 35 ++++++++++ 4 files changed, 186 insertions(+), 4 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/TopicListOptions.cs create mode 100644 Ignia.Topics.Editor.Models/Components/ViewModels/TopicListAttributeViewModel.cs diff --git a/Ignia.Topics.Editor.Models/Components/Options/TopicListOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/TopicListOptions.cs new file mode 100644 index 00000000..861ce15f --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/TopicListOptions.cs @@ -0,0 +1,44 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Metadata; +using System; + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: TOPIC LIST (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes options associated with the . + /// + public class TopicListOptions: DefaultOptions { + + /*========================================================================================================================== + | PROPERTY: CONTENT TYPES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets a list of comma-delimited list of content types that should be displayed in this list. + /// + /// + /// As an example, if the value is AttributeDescriptor,ContentTypeDescriptor then the + /// should only display topics of the types or + /// . + /// + public string? ContentTypes { get; set; } + + /*============================================================================================================================== + | TARGET POPUP + >------------------------------------------------------------------------------------------------------------------------------- + | Toggle to set whether or not to use a popup (modal window) when editing the Topic, rather than a full page. + \-----------------------------------------------------------------------------------------------------------------------------*/ + public bool? TargetPopup { get; set; } + + } // Class +} // Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/TopicListAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/TopicListAttributeViewModel.cs new file mode 100644 index 00000000..ebbb7fe3 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/TopicListAttributeViewModel.cs @@ -0,0 +1,70 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models.Components.Options; +using System; +using System.ComponentModel.DataAnnotations; + +namespace Ignia.Topics.Editor.Models.Components.ViewModels { + + /*============================================================================================================================ + | CLASS: TOPIC LIST ATTRIBUTE (VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents the data model for the . Additionally provides access to the underlying + /// as well as the instance values for that attribute from the currently + /// selected . + /// + public class TopicListAttributeViewModel: AttributeViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public TopicListAttributeViewModel( + AttributeDescriptorTopicViewModel attributeDescriptor, + TopicListOptions options, + string value = null, + string inheritedValue = null + ): base( + attributeDescriptor, + options, + value, + inheritedValue + ) { } + + /*========================================================================================================================== + | IS NEW? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets whether or not this is an attribute of a new or existing topic. + /// + /// + /// This property is important because it's not possible to retrieve or create nested topics under a topic that hasn't yet + /// been saved. In this case, much of the functionality of the will be disabled until + /// the user has saved the new topic that they are creating. + /// + public bool IsNew { get; set; } + + /*========================================================================================================================== + | UNIQUE KEY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the value for the current topic. + /// + public string UniqueKey { get; set; } + + /*========================================================================================================================== + | WEB PATH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the value for the current topic. + /// + public string WebPath { get; set; } + + } // Class +} // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index f067a3b5..579fcc4b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -3,9 +3,12 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using System; +using System.Linq; using System.Threading.Tasks; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Components.ViewModels; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { @@ -35,12 +38,42 @@ public TopicListViewComponent(ITopicRoutingService topicRoutingService) : base(t public async Task InvokeAsync( AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix, - DefaultOptions options + TopicListOptions options = null ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - options ??= new DefaultOptions(); - var viewModel = new AttributeViewModel(attribute, options); - return View(GetAttributeViewModel(viewModel)); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set configuration values + \-----------------------------------------------------------------------------------------------------------------------*/ + options ??= new TopicListOptions(); + options.ContentTypes ??= attribute.GetConfigurationValue( "ContentTypes", ""); + options.TargetPopup ??= attribute.GetBooleanConfigurationValue( "TargetPopup", false); + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var viewModel = new TopicListAttributeViewModel(attribute, options); + + GetAttributeViewModel(viewModel); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set model values + \-----------------------------------------------------------------------------------------------------------------------*/ + if (HttpContext.Request.Query.TryGetValue("Action", out var action)) { + viewModel.IsNew = action.FirstOrDefault().Equals("Add", StringComparison.InvariantCultureIgnoreCase); + } + viewModel.UniqueKey = CurrentTopic.GetUniqueKey(); + viewModel.WebPath = CurrentTopic.GetWebPath(); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(viewModel); + } } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml index 03d03615..3788000e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml @@ -3,3 +3,38 @@ @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } + + + +
    From c9c5867ee56a94fa454a1cc691efb3fab8fea42d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 20:13:34 -0700 Subject: [PATCH 356/637] Introduced initial version of `FileListViewComponent` Introduced a new `FileListOptions` class to establish the properties available via `DefaultConfiguration`, a `FileListAttributeViewModel` to expose the files list, a `GetFiles()` helper function in `FileListViewComponent` in source the files list (based on the `FileListOptions`), and, finally, a `FileList` view (as well as a `File` view for backwards compatibility) to render the files list as a dropdown list. This also required introducing the `IWebHostEnvironment` as a dependency for the `FileListViewComponent` so that it could map local paths; that, in turn, required that dependency being established in `Startup`, passed to `SampleActivator`, and then, finally, related to the `FileViewComponent` and `FileListViewComponent` registrations. --- .../Components/Options/FileListOptions.cs | 54 ++++++++ .../SampleActivator.cs | 11 +- Ignia.Topics.Editor.Mvc.Host/Startup.cs | 13 +- .../Components/FileListViewComponent.cs | 131 +++++++++++++++++- .../Models/FileListAttributeViewModel.cs | 55 ++++++++ .../Editor/Components/File/Default.cshtml | 7 + .../Editor/Components/FileList/Default.cshtml | 4 +- 7 files changed, 267 insertions(+), 8 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/FileListOptions.cs create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/File/Default.cshtml diff --git a/Ignia.Topics.Editor.Models/Components/Options/FileListOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/FileListOptions.cs new file mode 100644 index 00000000..47bbcd44 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/FileListOptions.cs @@ -0,0 +1,54 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: FILE LIST (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes options associated with the . + /// + public class FileListOptions: DefaultOptions { + + /*========================================================================================================================== + | PROPERTY: PATH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the the directory path in which to find available files. + /// + public string? Path { get; set; } + + /*========================================================================================================================== + | PROPERTY: EXTENSION + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets which file extension to restrict the list of files. + /// + public string? Extension { get; set; } + + /*========================================================================================================================== + | PROPERTY: FILTER + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the filter criteria by which to restrict the list of files. + /// + public string? Filter { get; set; } + + /*========================================================================================================================== + | PROPERTY: INCLUDE SUBDIRECTORIES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets whether to only include the specified directory, or also include files from all subdirectories. + /// + public bool? IncludeSubdirectories { get; set; } + + } +} + +#nullable restore diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 344985c8..050f0b55 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -9,11 +9,13 @@ using Ignia.Topics.AspNetCore.Mvc.Components; using Ignia.Topics.Data.Caching; using Ignia.Topics.Data.Sql; +using Ignia.Topics.Editor.Mvc.Components; using Ignia.Topics.Editor.Mvc.Controllers; using Ignia.Topics.Mapping; using Ignia.Topics.Reflection; using Ignia.Topics.Repositories; using Ignia.Topics.ViewModels; +using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.ViewComponents; @@ -36,6 +38,7 @@ public class SampleActivator : IControllerActivator, IViewComponentActivator { private readonly ITypeLookupService _typeLookupService = null; private readonly ITopicMappingService _topicMappingService = null; private readonly ITopicRepository _topicRepository = null; + private readonly IWebHostEnvironment _webHostEnvironment = null; private readonly Topic _rootTopic = null; /*========================================================================================================================== @@ -54,12 +57,13 @@ public class SampleActivator : IControllerActivator, IViewComponentActivator { /// The constructor is responsible for establishing dependencies with the singleton lifestyle so that they are available /// to all requests. /// - public SampleActivator(string connectionString) { + public SampleActivator(string connectionString, IWebHostEnvironment webHostEnvironment) { /*------------------------------------------------------------------------------------------------------------------------ | Initialize Topic Repository \-----------------------------------------------------------------------------------------------------------------------*/ _connectionString = connectionString; + _webHostEnvironment = webHostEnvironment; var sqlTopicRepository = new SqlTopicRepository(connectionString); var cachedTopicRepository = new CachedTopicRepository(sqlTopicRepository); var topicViewModel = new PageTopicViewModel(); @@ -146,7 +150,10 @@ public object Create(ViewComponentContext context) { return new DisplayOptionsViewComponent(mvcTopicRoutingService); } if (type == typeof(FileViewComponent)) { - return new FileViewComponent(mvcTopicRoutingService); + return new FileViewComponent(mvcTopicRoutingService, _webHostEnvironment); + } + if (type == typeof(FileListViewComponent)) { + return new FileListViewComponent(mvcTopicRoutingService, _webHostEnvironment); } if (type == typeof(FilePathViewComponent)) { return new FilePathViewComponent(mvcTopicRoutingService); diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index 49e84025..1e48114c 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -33,8 +33,9 @@ public class Startup { /// /// The shared dependency. /// - public Startup(IConfiguration configuration) { + public Startup(IConfiguration configuration, IWebHostEnvironment webHostEnvironment) { Configuration = configuration; + HostingEnvironment = webHostEnvironment; } /*========================================================================================================================== @@ -45,6 +46,14 @@ public Startup(IConfiguration configuration) { /// public IConfiguration Configuration { get; } + /*========================================================================================================================== + | PROPERTY: HOSTING ENVIRONMENT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a (public) reference to the application's service. + /// + public IWebHostEnvironment HostingEnvironment { get; } + /*========================================================================================================================== | METHOD: CONFIGURE SERVICES \-------------------------------------------------------------------------------------------------------------------------*/ @@ -87,7 +96,7 @@ public void ConfigureServices(IServiceCollection services) { /*------------------------------------------------------------------------------------------------------------------------ | Register: Activators \-----------------------------------------------------------------------------------------------------------------------*/ - var activator = new SampleActivator(Configuration.GetConnectionString("OnTopic")); + var activator = new SampleActivator(Configuration.GetConnectionString("OnTopic"), HostingEnvironment); services.AddSingleton(activator); services.AddSingleton(activator); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index 0edb9c12..71c4ff01 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -3,6 +3,18 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Mvc.Models; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using System; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; + +#nullable enable namespace Ignia.Topics.Editor.Mvc.Components { @@ -14,13 +26,128 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// public class FileListViewComponent: AttributeTypeViewComponentBase { + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private readonly IWebHostEnvironment _webHostEnvironment = null; + /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Initializes a new instance of a with necessary dependencies. /// - public FileViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public FileListViewComponent( + ITopicRoutingService topicRoutingService, + IWebHostEnvironment webHostEnvironment + ): base( + topicRoutingService + ) { + _webHostEnvironment = webHostEnvironment; + } + + /*========================================================================================================================== + | METHOD: INVOKE (ASYNC) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Assembles the view model for the . + /// + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + FileListOptions options + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + + /*------------------------------------------------------------------------------------------------------------------------ + | Set configuration values + \-----------------------------------------------------------------------------------------------------------------------*/ + options ??= new FileListOptions(); + options.Path ??= attribute.GetConfigurationValue("Path", null); + options.Extension ??= attribute.GetConfigurationValue("Extension", null); + options.Filter ??= attribute.GetConfigurationValue("Filter", null); + options.IncludeSubdirectories ??= attribute.GetBooleanConfigurationValue("IncludeSubdirectories", false); + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var model = new FileListAttributeViewModel(attribute, options); + + GetAttributeViewModel(model); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set model values + \-----------------------------------------------------------------------------------------------------------------------*/ + model!.Files = GetFiles(model.InheritedValue, options); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(model); + + } + + /*========================================================================================================================== + | METHOD: GET FILES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves a collection of files in a directory, given the provided . + /// + public List GetFiles(string inheritedValue, FileListOptions options) { + + /*------------------------------------------------------------------------------------------------------------------------ + | INSTANTIATE OBJECTS + \-----------------------------------------------------------------------------------------------------------------------*/ + var files = new List(); + var searchPattern = "*"; + var searchOption = options.IncludeSubdirectories is true? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly; + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate input + \-----------------------------------------------------------------------------------------------------------------------*/ + if (String.IsNullOrEmpty(options.Path)) return files; + + /*------------------------------------------------------------------------------------------------------------------------ + | Filter file list based on extension + \-----------------------------------------------------------------------------------------------------------------------*/ + if (options.Extension != null) { + searchPattern = searchPattern + "." + options.Extension; + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Filter file list based on filter criteria + \-----------------------------------------------------------------------------------------------------------------------*/ + if (options.Filter != null) { + searchPattern = options.Filter + searchPattern; + } + + /*------------------------------------------------------------------------------------------------------------------------ + | GET ALL FILES + \-----------------------------------------------------------------------------------------------------------------------*/ + string[] foundFiles = Directory.GetFiles(_webHostEnvironment.WebRootPath + options.Path, searchPattern, searchOption); + + if (!String.IsNullOrEmpty(inheritedValue)) { + string inheritedValueKey = inheritedValue.Replace("." + options.Extension, ""); + files.Add(new SelectListItem("", inheritedValue)); + } + foreach (string foundFile in foundFiles) { + string fileName = foundFile.Replace(_webHostEnvironment.WebRootPath + options.Path, ""); + string fileNameKey = fileName.Replace("." + options.Extension, ""); + files.Add(new SelectListItem(fileNameKey, fileName)); + } + + /*------------------------------------------------------------------------------------------------------------------------ + | RETURN FILE LIST + \-----------------------------------------------------------------------------------------------------------------------*/ + return files; + + } } // Class -} // Namespace \ No newline at end of file +} // Namespace + +#nullable restore diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs new file mode 100644 index 00000000..176d9050 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs @@ -0,0 +1,55 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System.Collections.Generic; +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; +using Microsoft.AspNetCore.Mvc.Rendering; + +namespace Ignia.Topics.Editor.Mvc.Models { + + /*============================================================================================================================ + | CLASS: FILE ATTRIBUTE (VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents the data model for the . Additionally provides access to the underlying + /// as well as the instance values for that attribute from the currently + /// selected . + /// + public class FileListAttributeViewModel: AttributeViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public FileListAttributeViewModel( + AttributeDescriptorTopicViewModel attributeDescriptor, + FileListOptions options, + string value = null, + string inheritedValue = null + ) : base( + attributeDescriptor, + options, + value, + inheritedValue + ) {} + + /*========================================================================================================================== + | FILES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a list of files associated with the lookup. + /// + /// + /// The represents the path that will be saved to the database; the represents simply the file name itself. + /// + public List Files { get; set; } = new List(); + + } // Class + +} // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/File/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/File/Default.cshtml new file mode 100644 index 00000000..4ee2ef9d --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/File/Default.cshtml @@ -0,0 +1,7 @@ +@model FileListAttributeViewModel + +@{ + Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; +} + +@Html.DropDownListFor(m => m.Value, Model.Files) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml index f32afbad..4ee2ef9d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml @@ -1,7 +1,7 @@ -@model AttributeViewModel +@model FileListAttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -@* Html.DropDownListFor(m => m.Value, …) *@ +@Html.DropDownListFor(m => m.Value, Model.Files) From c53800790d962b865f4244df66a28879f9cf93ea Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 21 Oct 2019 23:46:47 -0700 Subject: [PATCH 357/637] Include dependency scripts in master layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, scripts were registered directly by the **ASP.NET** _user controls_ that required them, by using the `ScriptManager`. Unfortunately, that functionality isn't supported with **ASP.NET Core** _partial scripts_. Given that, we can either include them in the plugins—which means they won't be in the header or footer, and may be duplicated—or we can just put them directly in the `_Layout.cshtml`, which will result in them being included on every page, even if they're not needed. Neither of these are great options, but the scripts are small, so it's not a huge issue to include them on every page, and especially since they'll be needed sooner or later (i.e., they'll end up cached regardless). Eventually, if we stick with this approach, we'll want to concatenate and minimize these, but that will wait until we've finished setting up a new build process, which will also source these from **npm**, instead of maintaining third-party libraries as part of our repository. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index c5484906..4cb934ff 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -20,6 +20,13 @@ + + + + + + + @@ -35,6 +42,10 @@ + + + + From b3f012411d9707425426f3e7c984749f5b2f4012 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 01:47:56 -0700 Subject: [PATCH 358/637] Introduced initial version of `TokenizedTopicListViewComponent` The new implementation includes a `TokenizedTopicListOptions`, which includes all settable properties from `DefaultConfiguration`; a `TokenizedTopicListAttributeViewModel`, which exposes a JSON-formatted list of previously selected topics; the view component itself, of course, which includes a `GetSelectedTopics()` and `GetTopicJson()` method for looking up the existing value and converting it to JSON; and, of course, the view, which uses the `TokenizedTopicListOptions` to initialize a new instance of the `TokenizedTopics` JavaScript class. Finally, it also includes a minor update to the `TokenizedTopicList.js` file itself to correct the path to the JSON feed. This did expose issues with the `/OnTopic/JSON/` filtering, which need to be addressed, but as those are independent of the `TokenizedTopicListViewComponent`, they'll be deferred to a separate, future commit. In addition, we still need to implement the `IsAutoPostBack` functionality. --- .../Options/TokenizedTopicListOptions.cs | 122 +++++++++++++++ .../TokenizedTopicListAttributeViewModel.cs | 49 ++++++ .../TokenizedTopicListViewComponent.cs | 144 +++++++++++++++++- .../TokenizedTopicList/Default.cshtml | 29 +++- .../Areas/Editor/Views/_ViewImports.cshtml | 3 +- .../Shared/Scripts/TokenizedTopicList.js | 4 +- 6 files changed, 343 insertions(+), 8 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/TokenizedTopicListOptions.cs create mode 100644 Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs diff --git a/Ignia.Topics.Editor.Models/Components/Options/TokenizedTopicListOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/TokenizedTopicListOptions.cs new file mode 100644 index 00000000..f473401e --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/TokenizedTopicListOptions.cs @@ -0,0 +1,122 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Metadata; +using System; + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: TOKENIZED TOPIC LIST (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes options associated with the . + /// + public class TokenizedTopicListOptions: DefaultOptions { + + /*========================================================================================================================== + | SCOPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the scope of the topic graph within which to search for results. E.g., Root:Web:Configuration. + /// + public string? Scope { get; set; } + + /*========================================================================================================================== + | ATTRIBUTE NAME + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the name of an attribute (e.g., ContentType) to filter the selectable token list by. If is defined, then should also be defined; otherwise, it will filter + /// by topics that have an empty value for the specified . + /// + public string? AttributeName { get; set; } + + /*========================================================================================================================== + | ATTRIBUTE VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the value of an attribute (e.g., Page) to filter the selectable token list by. If is defined, then should also be defined; otherwise, the filter + /// will not function. + /// + public string? AttributeValue { get; set; } + + /*========================================================================================================================== + | RESULT LIMIT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the maximum number of results to pull from the web service. + /// + public int? ResultLimit { get; set; } + + /*========================================================================================================================== + | TOKEN LIMIT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the maximum number of tokens allowed to be selected by the user. Maps to TokenInput's tokenLimit + /// setting. + /// + /// + /// This is especially useful if an attribute should be limited to a single entry, such as a topic reference, but it is + /// preferred to display a searchable list rather than a predefined dropdown list using . + /// + public int? TokenLimit { get; set; } + + /*========================================================================================================================== + | IS AUTO POSTBACK? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines if the form should automatically be submitted whenever a new value is selected. This is useful, in + /// particular, for the , which provides a purpose-built wrapper for the . + /// + public bool? IsAutoPostBack { get; set; } + + /*========================================================================================================================== + | AS RELATIONSHIP + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether to utilize the control as a replacement for (or equivalent to) . + /// + /// + /// Relationships are modeled using instead of , and most + /// implementations of will likely store relationships separate from attributes. + /// + public bool? AsRelationship { get; set; } + + /*========================================================================================================================== + | SEARCH PROPERTY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines what attribute in to search against. This corresponds to TokenInput's + /// propertyToSearch setting. + /// + /// + /// Keep in mind that this is looking at the serialized object graph of the topic tree, not the actual topic graph + /// itself. As a result, this will not have access to all attributes, only those explicitly included on the + /// . Further, because this is looking at the serialized version, the attribute + /// names may vary from 's property names; for example, they will be camel-cased, and + /// may be modified by serialization annotations. + /// + public string? SearchProperty { get; set; } + + /*========================================================================================================================== + | QUERY PARAMETER + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines the querystring parameter used to query the web service. This corresponds to TokenInput's queryParam + /// setting. Defaults to AttributeValue. + /// + public string? QueryParameter { get; set; } + + } // Class +} // Namespace + +#nullable restore diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs new file mode 100644 index 00000000..bf4cb9e1 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs @@ -0,0 +1,49 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models.Components.Options; +using System; +using System.ComponentModel.DataAnnotations; + +namespace Ignia.Topics.Editor.Models.Components.ViewModels { + + /*============================================================================================================================ + | CLASS: TOKENIZED TOPIC LIST ATTRIBUTE (VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents the data model for the . Additionally provides access to the + /// underlying as well as the instance values for that attribute from the + /// currently selected . + /// + public class TokenizedTopicListAttributeViewModel: AttributeViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public TokenizedTopicListAttributeViewModel( + AttributeDescriptorTopicViewModel attributeDescriptor, + TokenizedTopicListOptions options, + string value = null, + string inheritedValue = null + ): base( + attributeDescriptor, + options, + value, + inheritedValue + ) { } + + /*========================================================================================================================== + | SELECTED TOPICS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a JSON formatted version of the attribute value. For use with TokenInput's prePopulate setting. + /// + public string SelectedTopics { get; set; } + + } // Class +} // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index e5b6e629..e3e4001e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -4,6 +4,14 @@ | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Repositories; +using Microsoft.AspNetCore.Mvc; +using System; +using System.Threading.Tasks; + namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ @@ -12,7 +20,12 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a tokenized topic list attribute type. /// - public class TokenizedTopicListViewComponent : DefaultAttributeTypeViewComponent { + public class TokenizedTopicListViewComponent : AttributeTypeViewComponentBase { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private readonly ITopicRepository _topicRepository = null; /*========================================================================================================================== | CONSTRUCTOR @@ -20,7 +33,132 @@ public class TokenizedTopicListViewComponent : DefaultAttributeTypeViewComponent /// /// Initializes a new instance of a with necessary dependencies. /// - public TokenizedTopicListViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public TokenizedTopicListViewComponent( + ITopicRoutingService topicRoutingService, + ITopicRepository topicRepository + ) : base( + topicRoutingService + ) { + _topicRepository = topicRepository; + } + + /*========================================================================================================================== + | METHOD: INVOKE (ASYNC) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Assembles the view model for the . + /// + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + TokenizedTopicListOptions options + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + + /*------------------------------------------------------------------------------------------------------------------------ + | Set configuration values + \-----------------------------------------------------------------------------------------------------------------------*/ + options ??= new TokenizedTopicListOptions(); + options.Scope ??= attribute.GetConfigurationValue( "Scope", "Root"); + options.AttributeName ??= attribute.GetConfigurationValue( "AttributeName", null); + options.AttributeValue ??= attribute.GetConfigurationValue( "AttributeValue", null); + options.ResultLimit ??= attribute.GetIntegerConfigurationValue( "ResultLimit", 100); + options.TokenLimit ??= attribute.GetIntegerConfigurationValue( "TokenLimit", 100); + options.AsRelationship ??= attribute.GetBooleanConfigurationValue( "AsRelationship", false); + options.SearchProperty ??= attribute.GetConfigurationValue( "SearchProperty", "key"); + options.QueryParameter ??= attribute.GetConfigurationValue( "QueryParameter", "AttributeValue"); + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var model = new TokenizedTopicListAttributeViewModel(attribute, options); + + GetAttributeViewModel(model); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set model values + \-----------------------------------------------------------------------------------------------------------------------*/ + model.SelectedTopics = GetSelectedTopics(model.Value); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(model); + + } + + /*========================================================================================================================== + | SELECTED TOPICS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a JSON formatted version of the attribute value. For use with TokenInput's prePopulate setting. + /// + public string GetSelectedTopics(string value) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Split value into Topic.Ids; retrieve JSON for each topic + \-----------------------------------------------------------------------------------------------------------------------*/ + string selectedTopics = "["; + if (!String.IsNullOrEmpty(value)) { + string[] topicValues = value.Split(','); + foreach (string topicId in topicValues) { + selectedTopics += GetTopicJson(topicId); + } + } + + selectedTopics += "]"; + selectedTopics = selectedTopics.Replace(",]", "]"); + + return selectedTopics; + } + + /*========================================================================================================================== + | GET TOPIC JSON + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Returns a JSON-formatted object (e.g., { "id": "123", "key": "Key", … }) for use with TokenInput's + /// prePopulate setting, given the provided . + /// + private string GetTopicJson(string topicId) { + + /*---------------------------------------------------------------------------------------------------------------------------- + | Set initial variables + \---------------------------------------------------------------------------------------------------------------------------*/ + string topicJson = ""; + Topic topic = _topicRepository.Load(Int32.Parse(topicId)); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Write out JSON for existing topic, if available + \---------------------------------------------------------------------------------------------------------------------------*/ + if (topic != null) { + topicJson += $"{{" + + $"'id' : '{topic.Id}', " + + $"'key' : '{EncodeJsonValue(topic.Key)}, " + + $"'text' : '{EncodeJsonValue(topic.Title)}', " + + $"'path' : '{EncodeJsonValue(topic.GetUniqueKey())}', " + + $"'webPath' : '{EncodeJsonValue(topic.GetWebPath())} " + + $"}},"; + } + + /*---------------------------------------------------------------------------------------------------------------------------- + | Return JSON + \---------------------------------------------------------------------------------------------------------------------------*/ + return topicJson; + + } + + /*========================================================================================================================== + | ENCODE JSON VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Encodes a JSON value by escaping any quotes. + /// + private string EncodeJsonValue(string value) => value.Replace("'", "\\'"); + - } // Class +} // Class } // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml index 909bc974..6fc78110 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml @@ -1,7 +1,32 @@ -@model AttributeViewModel +@model TokenizedTopicListAttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -@Html.TextAreaFor(m => m.Value) \ No newline at end of file +
    + +
    + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml index 16d2a249..4a3c21c0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml @@ -14,4 +14,5 @@ @using System.Web @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@addTagHelper *, Ignia.Topics.Editor.Mvc \ No newline at end of file +@addTagHelper *, Ignia.Topics.Editor.Mvc +@addTagHelper *, Ignia.Topics.Editor.Mvc.Components \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js index 16c3077c..85306a1c 100644 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js +++ b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js @@ -51,13 +51,13 @@ /*---------------------------------------------------------------------------------------------------------------------------- | Build Topics.Json.aspx call URL \---------------------------------------------------------------------------------------------------------------------------*/ - var topicsUrl = '/!Admin/Topics/Client/Topics.Json.aspx' + var topicsUrl = '/OnTopic/Json/' + + self.scope + '?ShowRoot=true' + '&FlattenStructure=true' + '&UsePartialMatch=true' + '&AttributeName=' + self.attributeName + '&AttributeValue=' + self.attributeValue - + '&Scope=' + self.scope + '&ResultLimit=' + self.resultLimit; /*---------------------------------------------------------------------------------------------------------------------------- From f7de75ccb6933126bc175a7f428f76b471d4d11d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 01:49:04 -0700 Subject: [PATCH 359/637] Introduced initial version of `TopicPointerViewComponent` The `TopicPointerOptions` establishes the properties that can be set via `DefaultOptions`; the view relays the properties down to the underlying `TokenizedTopicListViewComponent`, along with some predefined values. --- .../Components/Options/TopicPointerOptions.cs | 48 +++++++++++++ .../Components/TopicPointerViewComponent.cs | 69 ++++++++++++++++++- .../Components/TopicPointer/Default.cshtml | 19 ++++- 3 files changed, 131 insertions(+), 5 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/TopicPointerOptions.cs diff --git a/Ignia.Topics.Editor.Models/Components/Options/TopicPointerOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/TopicPointerOptions.cs new file mode 100644 index 00000000..eaaf9a13 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/TopicPointerOptions.cs @@ -0,0 +1,48 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Metadata; +using System; + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: TOPIC POINTER (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes options associated with the . + /// + public class TopicPointerOptions: DefaultOptions { + + /*========================================================================================================================== + | SCOPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the scope of the topic graph within which to search for results. E.g., Root:Web:Configuration. + /// + public string? Scope { get; set; } + + /*========================================================================================================================== + | RESULT LIMIT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the maximum number of results to pull from the web service. + /// + public int? ResultLimit { get; set; } + + /*========================================================================================================================== + | CONTENT TYPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the of the to filter results by. + /// + public string? ContentType { get; set; } + + } // Class +} // Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs index 6f90e38b..e139bd12 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs @@ -4,6 +4,15 @@ | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Repositories; +using Microsoft.AspNetCore.Mvc; +using System; +using System.Linq; +using System.Threading.Tasks; + namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ @@ -12,7 +21,12 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a topic pointer attribute type. /// - public class TopicPointerViewComponent : DefaultAttributeTypeViewComponent { + public class TopicPointerViewComponent : AttributeTypeViewComponentBase { + + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private readonly ITopicRepository _topicRepository = null; /*========================================================================================================================== | CONSTRUCTOR @@ -20,7 +34,58 @@ public class TopicPointerViewComponent : DefaultAttributeTypeViewComponent { /// /// Initializes a new instance of a with necessary dependencies. /// - public TopicPointerViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public TopicPointerViewComponent( + ITopicRoutingService topicRoutingService, + ITopicRepository topicRepository + ) : base( + topicRoutingService + ) { + _topicRepository = topicRepository; + } + + + /*========================================================================================================================== + | METHOD: INVOKE (ASYNC) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Assembles the view model for the . + /// + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + TopicPointerOptions options = null + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + + /*------------------------------------------------------------------------------------------------------------------------ + | Set configuration values + \-----------------------------------------------------------------------------------------------------------------------*/ + options ??= new TopicPointerOptions(); + options.Scope ??= attribute.GetConfigurationValue( "Scope", "Root"); + options.ResultLimit ??= attribute.GetIntegerConfigurationValue( "ResultLimit", 100); + options.ContentType ??= attribute.GetConfigurationValue( "ContentType", null); + + if (options.ContentType is null) { + options.ContentType = CurrentTopic.ContentType; + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var viewModel = new AttributeViewModel(attribute, options); + + GetAttributeViewModel(viewModel); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(viewModel); + + } } // Class } // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicPointer/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicPointer/Default.cshtml index 79482430..6ba6b68b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicPointer/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicPointer/Default.cshtml @@ -1,7 +1,20 @@ -@model AttributeViewModel +@model AttributeViewModel @{ - Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; + var options = new TokenizedTopicListOptions() { + Scope = Model.Options.Scope, + AttributeName = String.IsNullOrEmpty(Model.Options.ContentType)? "": "ContentType", + AttributeValue = Model.Options.ContentType, + SearchProperty = "text", + QueryParameter = "Query", + ResultLimit = Model.Options.ResultLimit, + TokenLimit = 1, + IsAutoPostBack = true + }; } -@Html.TextBoxFor(m => m.Value) \ No newline at end of file + + \ No newline at end of file From fa128885ff589b3a203699a190756f405efb71e8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 01:50:21 -0700 Subject: [PATCH 360/637] Introduced `FileListEditorAttribute` This is necessary to ensure proper and strongly typed binding of `FileListViewComponent`-related fields. --- .../Attributes/FileListEditorAttribute.cs | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/Attributes/FileListEditorAttribute.cs diff --git a/Ignia.Topics.Editor.Models/Attributes/FileListEditorAttribute.cs b/Ignia.Topics.Editor.Models/Attributes/FileListEditorAttribute.cs new file mode 100644 index 00000000..d6f80bcf --- /dev/null +++ b/Ignia.Topics.Editor.Models/Attributes/FileListEditorAttribute.cs @@ -0,0 +1,37 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; + +namespace Ignia.Topics.Editor.Models.Attributes { + + /*============================================================================================================================ + | CLASS: FILE LIST EDITOR ATTRIBUTE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a file editor attribute in the Topic Editor. + /// + public class FileListEditorAttribute : EditorAttribute { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class, using the specified key/value pair. + /// + public FileListEditorAttribute() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } // Class + +} // Namespace From 1615dbadeb7b8f7ca289579d6fe7a17442b06a16 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 01:53:44 -0700 Subject: [PATCH 361/637] Updated _Composition Root_ based on recent updates Added an `ITopicRepository` dependency to the `TokenizedTopicListViewComponent` and `TopicPointerViewComponent`, as per commits #b3f0124 and #f7de75c, respectively. In addition, removed the reference to the legacy `FileUploadViewComponent`, per commit #f21165b. (These should have been included with those commits; oops.) --- Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 050f0b55..87a27276 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -158,9 +158,6 @@ public object Create(ViewComponentContext context) { if (type == typeof(FilePathViewComponent)) { return new FilePathViewComponent(mvcTopicRoutingService); } - if (type == typeof(FileUploadViewComponent)) { - return new FileUploadViewComponent(mvcTopicRoutingService); - } if (type == typeof(FormFieldViewComponent)) { return new FormFieldViewComponent(mvcTopicRoutingService); } @@ -174,7 +171,7 @@ public object Create(ViewComponentContext context) { return new RelationshipsViewComponent(mvcTopicRoutingService); } if (type == typeof(TokenizedTopicListViewComponent)) { - return new TokenizedTopicListViewComponent(mvcTopicRoutingService); + return new TokenizedTopicListViewComponent(mvcTopicRoutingService, _topicRepository); } if (type == typeof(TopicListViewComponent)) { return new TopicListViewComponent(mvcTopicRoutingService); @@ -183,7 +180,7 @@ public object Create(ViewComponentContext context) { return new TopicLookupViewComponent(mvcTopicRoutingService, _topicRepository); } if (type == typeof(TopicPointerViewComponent)) { - return new TopicPointerViewComponent(mvcTopicRoutingService); + return new TopicPointerViewComponent(mvcTopicRoutingService, _topicRepository); } if (type == typeof(WysiwygViewComponent)) { return new WysiwygViewComponent(mvcTopicRoutingService); From a1c4ae22ace61c593a68e3a3b7980feceeb05d3a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 01:56:23 -0700 Subject: [PATCH 362/637] Added nullability hint for `GetAttributeViewModel()` Technically, since we're not (yet) enabling **C# 8.0**'s new nullability annotation context yet, this isn't strictly necessary. Since we have implemented nullability on a few view models, however, it at least helps with validation of calls depending on `GetAttributeViewModel()`. At some point, we'll likely choose to fully implement this, but that's not an immediate priority. --- .../Areas/Editor/Components/AttributeTypeViewComponentBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index 7b86d0e3..5eca2c99 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -10,6 +10,7 @@ using Ignia.Topics.AspNetCore.Mvc.Models; using Ignia.Topics.Editor.Models; using System; +using System.Diagnostics.CodeAnalysis; using Ignia.Topics.Editor.Models.Components.Options; namespace Ignia.Topics.Editor.Mvc.Components { @@ -88,6 +89,7 @@ DefaultOptions options /// /// The to populate with values. /// The Topic associated with the current request. + [return: NotNullIfNotNull("viewModel")] public AttributeViewModel GetAttributeViewModel(AttributeViewModel viewModel = null) { /*------------------------------------------------------------------------------------------------------------------------ From b0e56c00e05be51f8e6f0fcb9e4849f692a26228 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 13:38:19 -0700 Subject: [PATCH 363/637] Introduced initial version of `WysiwygViewComponent` The `WysiwygViewComponent` includes a custom `WysiwygOptions` class for defining what properties can be set via `DefaultConfiguration`, as well as a view which initializes the **CKEditor** script. --- .../Components/Options/WysiwygOptions.cs | 56 +++++++++++++++++++ .../Editor/Components/WysiwygViewComponent.cs | 50 ++++++++++++++++- .../Editor/Components/WYSIWYG/Default.cshtml | 49 +++++++++++++++- 3 files changed, 152 insertions(+), 3 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/Options/WysiwygOptions.cs diff --git a/Ignia.Topics.Editor.Models/Components/Options/WysiwygOptions.cs b/Ignia.Topics.Editor.Models/Components/Options/WysiwygOptions.cs new file mode 100644 index 00000000..72775313 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/Options/WysiwygOptions.cs @@ -0,0 +1,56 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Metadata; +using System; + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Components.Options { + + /*============================================================================================================================ + | CLASS: WYSIWYG (OPTIONS) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes options associated with the . + /// + public class WysiwygOptions: DefaultOptions { + + + /*========================================================================================================================== + | COLUMNS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the number of columns (width) that the should take up. Defaults to + /// 70. + /// + public int? Columns { get; set; } + + /*========================================================================================================================== + | ROWS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the number of rows (height) that the should take up. Defaults to + /// 30. + /// + public int? Rows { get; set; } + + /*========================================================================================================================== + | HEIGHT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the number of pixels that the should take up. Defaults to x 20. + /// + /// + /// If set, this value overrides . + /// + public int? Height { get; set; } + + + } // Class +} // Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs index cb93870e..61c2accf 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs @@ -3,7 +3,10 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.Options; using Microsoft.AspNetCore.Mvc; +using System.Threading.Tasks; namespace Ignia.Topics.Editor.Mvc.Components { @@ -14,7 +17,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// Delivers a view model for a WYSIWYG attribute type. /// [ViewComponent(Name = "WYSIWYG")] - public class WysiwygViewComponent : DefaultAttributeTypeViewComponent { + public class WysiwygViewComponent : AttributeTypeViewComponentBase { /*========================================================================================================================== | CONSTRUCTOR @@ -24,5 +27,50 @@ public class WysiwygViewComponent : DefaultAttributeTypeViewComponent { /// public WysiwygViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + + /*========================================================================================================================== + | METHOD: INVOKE (ASYNC) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Assembles the view model for the . + /// + public async Task InvokeAsync( + AttributeDescriptorTopicViewModel attribute, + string htmlFieldPrefix, + WysiwygOptions options = null + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + + /*------------------------------------------------------------------------------------------------------------------------ + | Set configuration values + \-----------------------------------------------------------------------------------------------------------------------*/ + options ??= new WysiwygOptions(); + options.Columns ??= attribute.GetIntegerConfigurationValue( "Columns", 70); + options.Rows ??= attribute.GetIntegerConfigurationValue( "Rows", 20); + options.Height ??= attribute.GetIntegerConfigurationValue( "Height", 0); + options.CssClass ??= attribute.GetConfigurationValue( "CssClass", "FormField Field"); + + if (options.Height == null || options.Height == 0 && options.Rows != null) { + options.Height = options.Rows * 20; + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var viewModel = new AttributeViewModel(attribute, options); + + GetAttributeViewModel(viewModel); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(viewModel); + + } + } // Class } // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/WYSIWYG/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/WYSIWYG/Default.cshtml index f71c557f..9e1988bd 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/WYSIWYG/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/WYSIWYG/Default.cshtml @@ -1,7 +1,52 @@ -@model AttributeViewModel +@model AttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -@Html.TextAreaFor(m => m.Value, 15, 100, new { id = "Wysiwyg_" + Model.AttributeDescriptor.Key, @class = "form-control" }) \ No newline at end of file + + + + + \ No newline at end of file From d27d40dd33ae91514ac6364bb2ca6fa2ed332411 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 14:18:09 -0700 Subject: [PATCH 364/637] Mitigated issue with `VersionHistory` not getting populated Technically, `VersionHistory` should get automatically mapped to the corresponding `VersionHistory` property on `Topic`. For some reason, however, that isn't working. We need to look more into this. In the meanwhile, I'm adding a manual mapping so we can move forward with development. --- .../Areas/Editor/Controllers/EditorController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index ccd1f7d5..9bcb7c4d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -153,6 +153,7 @@ await _topicMappingService.MapAsync(CurrentTopic), contentTypeViewModel, isModal ); + editorViewModel.Topic.VersionHistory = CurrentTopic.VersionHistory; } /*------------------------------------------------------------------------------------------------------------------------ From 2856a9bf38e8a882cd2f0156e0ce0c0049f31e82 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 14:19:05 -0700 Subject: [PATCH 365/637] Conditionally hide _Version History_ If the count of the `VersionHistory` is not greater than one, then don't display the version history drop down list. --- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 702d47cb..39fe046f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -10,22 +10,24 @@
    - - - + @if (Model.Topic.VersionHistory.Count > 1) { + + + + } From 66ad16cb248022c5241fa5ceb1ef116488496e80 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 15:11:59 -0700 Subject: [PATCH 366/637] Temporarily disabled database calls During testing, we don't want to be modifying the actual database. For now, we'll comment these functions out. Prior to release, once the calling scenarios are well tested, we'll reenable them. --- .../Areas/Editor/Controllers/EditorController.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 9bcb7c4d..20fd83ae 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -279,7 +279,7 @@ public async Task SetVersion(DateTime version) { /*-------------------------------------------------------------------------------------------------------------------------- | Initiate rollback \-------------------------------------------------------------------------------------------------------------------------*/ - TopicRepository.Rollback(CurrentTopic, version); + //TopicRepository.Rollback(CurrentTopic, version); /*-------------------------------------------------------------------------------------------------------------------------- | Render index @@ -307,7 +307,7 @@ public IActionResult Delete(bool isModal = false) { | Lock the Topic repository before executing the delete \-------------------------------------------------------------------------------------------------------------------------*/ lock (TopicRepository) { - TopicRepository.Delete(CurrentTopic); + //TopicRepository.Delete(CurrentTopic); } /*-------------------------------------------------------------------------------------------------------------------------- @@ -361,10 +361,10 @@ public IActionResult Move(int topicId, int targetTopicId, int siblingId) { lock (TopicRepository) { if (siblingId > 0) { var sibling = TopicRepository.Load(siblingId); - TopicRepository.Move(topic, target, sibling); + //TopicRepository.Move(topic, target, sibling); } else { - TopicRepository.Move(topic, target); + //TopicRepository.Move(topic, target); } } @@ -405,7 +405,7 @@ public JsonResult Json(JsonTopicViewModelOptions options) { } /*-------------------------------------------------------------------------------------------------------------------------- - | Assembly view model + | Assemble view model \-------------------------------------------------------------------------------------------------------------------------*/ var jsonTopicViewModel = new JsonTopicViewModel(CurrentTopic, relatedTopics, options); From 665899f1f7cb6bc49f2e0950eeadd116811196d7 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 15:33:43 -0700 Subject: [PATCH 367/637] Implemented `Move()` functionality Update the legacy **ASP.NET WebForms** `PageMethods` call with a **jQuery** `$.ajax()` call in `_TreeViewScript.cshtml`. Fixed a bug in `JsonTopicViewModel` that resulted in all nodes being marked as `!IsDraggable`. (That said, no nodes seem to be coming through as marked `DisableDelete`, so we should make sure that's correctly implemented, and isn't accidentally getting deleted.) --- Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs | 4 +++- .../Areas/Editor/Views/Shared/_TreeViewScript.cshtml | 11 +++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs index 46971478..428cfcd5 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs @@ -8,6 +8,7 @@ using System.Linq; using Ignia.Topics.Collections; using System.Text.Json.Serialization; +using System.ComponentModel; namespace Ignia.Topics.Editor.Models.Json { @@ -41,7 +42,7 @@ JsonTopicViewModelOptions options topic.GetUniqueKey(), topic.GetWebPath(), options.MarkRelated? related.Contains(topic) : true, - topic.Attributes.GetValue("DisableDelete", "0").Equals("1") + topic.Attributes.GetValue("DisableDelete", "0").Equals("0") ) { /*------------------------------------------------------------------------------------------------------------------------ @@ -221,6 +222,7 @@ public bool IsChecked { /// Determines whether the current topic is intended to be draggable or not. /// [JsonPropertyName("draggable")] + [DefaultValue(true)] public bool IsDraggable { get; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml index 41ad02a3..eab8fdc9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_TreeViewScript.cshtml @@ -92,12 +92,11 @@ // console.log("Node: " + node.attributes.id + ", Parent: " + newParent.attributes.id + ", Sibling: " + siblingId); - PageMethods.MoveNode( - node.attributes.Id, - newParent.attributes.Id, - siblingId, - function(result) {} - ); + $.ajax({ + method: "POST", + url: "/OnTopic/Move", + data: { topicId: node.attributes.id, targetTopicId: newParent.attributes.id, siblingId } + }) } } From 8f2d6995dc9a5a32bb219bb6ed4a18b5e4a642df Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 15:35:09 -0700 Subject: [PATCH 368/637] Updated namespace for `Contract` class The `Contract` class was previously calling the out-of-the-box _Code Contracts_, which don't actually provide any runtime validation. To mitigate this, updated the reference to **OnTopic**'s `Contract` class, which mimics the out-of-the-box interface, but _does_ provide runtime validation. --- Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs index a726fa3f..4dd74df8 100644 --- a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs +++ b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs @@ -4,8 +4,8 @@ | Project Topics Library \=============================================================================================================================*/ using System; -using System.Diagnostics.Contracts; using Ignia.Topics.Editor.Mvc.Infrastructure; +using Ignia.Topics.Internal.Diagnostics; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; From e102d87b41ff01701434f9b2e44a3ad94b128e2e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 17:07:15 -0700 Subject: [PATCH 369/637] Implemented `Delete()` functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rewrote the **jQuery** statement for handling the delete functionality. There were previously two legacy versions—one which did an AJAX call, but didn't function, and another which confirmed the user's intention, but didn't submit. The new version confirms the user's intention and then, if they confirm, does a redirect. I setup `Delete()` to support `[Get]` for now, so that a simple redirect can be done. In the future, we likely want to update this (and other confirmations) with a fancier confirmation box from either **jQuery** or **Bootstrap** (or, **Foundation**, if we migrate to it), and ideally an AJAX submission. We can reevaluate all of that later; for now, the objective is to maintain the legacy functionality. --- .../Editor/Controllers/EditorController.cs | 2 +- .../Areas/Editor/Views/Editor/Edit.cshtml | 31 ++++--------------- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 2 +- 3 files changed, 8 insertions(+), 27 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 20fd83ae..b1fc8fed 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -294,7 +294,7 @@ public async Task SetVersion(DateTime version) { /// /// Fires when the user clicks the "Delete" button; deletes the current topic and any child attributes. /// - [HttpPost] + [HttpPost, HttpGet] public IActionResult Delete(bool isModal = false) { /*-------------------------------------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 8093f336..ba57ec17 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -92,34 +92,15 @@ /** * Sends AJAX request to Delete Action */ - $('#DeletePageButton').click(function () { - - var topicToDelete = '@Model.Topic.UniqueKey'; - - $.ajax({ - url : '@Url.Action("Delete" + Model.Topic.WebPath, "Editor")', - type : 'POST', - success: function (result) { - if (result == true) { - console.log('Topic ' + topicToDelete + ' deleted.'); - } - }, - error: function (XMLHttpRequest, textStatus, errorThrown) { - console.log(XMLHttpRequest); - console.log(errorThrown); - } - }); - + $('#DeletePageButton').on('click', function(e) { + e.preventDefault(); + var $this = $(this); + if (confirm('Are you sure you want to delete the "@(Model.Topic.Title?.Replace("'", "’")?? Model.Topic.Key)" topic? The topic and all descendants will be permanently deleted.')) { + window.location.href = "@Url.Action("Delete", "Editor", new { path = Model.Topic.WebPath })"; + } }); }); - /** - * Force the user to confirm they wish to delete a Topic before performing the deletion - */ - function confirmDelete() { - return confirm('Are you sure you want to delete the "@(Model.Topic.Title?.Replace("'", "’")?? Model.Topic.Key)" topic? The topic and all descendants will be permanently deleted.'); - } - } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 39fe046f..86c4e0fb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -37,7 +37,7 @@ - + From 26d18ec3a20e3ffa5e1ed0c8d8b91d6ace615895 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 17:25:34 -0700 Subject: [PATCH 370/637] Implemented `SetVersion`/`Rollback` functionality This required updating how the action was called in `_Toolbar.cshtml`, as well as how the redirect was handled in the `EditorController`'s `SetVersion()` action. --- .../Areas/Editor/Controllers/EditorController.cs | 2 +- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index b1fc8fed..b3bd259b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -284,7 +284,7 @@ public async Task SetVersion(DateTime version) { /*-------------------------------------------------------------------------------------------------------------------------- | Render index \-------------------------------------------------------------------------------------------------------------------------*/ - return await Edit(); + return RedirectToAction("Edit", new { path = CurrentTopic.GetWebPath() }); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 86c4e0fb..62da1d83 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -21,7 +21,7 @@ From f68f42057aba7ab8843c131c9bc2dab5748d4308 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 22:01:56 -0700 Subject: [PATCH 371/637] Fixed documentation for `WebPath` --- Ignia.Topics.Editor.Models/EditingTopicViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs b/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs index 9e86e8cd..33d95c0c 100644 --- a/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs @@ -30,7 +30,7 @@ public EditingTopicViewModel() : base() {} | PROPERTY: WEB PATH \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Provides a reference to the result. + /// Provides a reference to the result. /// public string WebPath { get; set; } From f0c99119871e966b6ff91d42b121155d851017d3 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 22:03:04 -0700 Subject: [PATCH 372/637] Annotated `PermittedContentTypes` While not strictly necessary, added a `[Relationship()]` annotation hint to ensure that the property is correcty mapped to the `PermittedContentTypes` relationship. --- .../ContentTypeDescriptorTopicViewModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs index a8d870d8..23dedf44 100644 --- a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using System.Collections.Generic; +using Ignia.Topics.Mapping; using Ignia.Topics.Metadata; namespace Ignia.Topics.Editor.Models { @@ -66,6 +67,7 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// Determines which s, if any, are permitted to be created under s of the /// current . /// + [Relationship(RelationshipType.Relationship)] public List PermittedContentTypes { get; } = new List(); } // Class From 1f6d9fc6bae372c9a5249a6bb13da2fe8e0a5817 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 22:22:40 -0700 Subject: [PATCH 373/637] Scaffolded `TopicLookup` for navigation Added a nested `TopicLookup` for listing available content types. There are some issues with this still since the `TargetPopup`, `TargetUrl`, and `OnClientClose` features aren't yet implemented. It also incorrectly displays the dropdown box even if there's only a single entry. Plus it shows the label (from `_layout.cshtml`), which isn't desirable. Those issues will need to be worked out. For now, however, this establishes the basic functionality, and provides a basis to add and test additional features. --- .../Components/TopicList/Default.cshtml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml index 3788000e..cfee094b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml @@ -38,3 +38,28 @@
    + +@if (!Model.IsNew) { + var options = new TopicLookupOptions() { + Scope = "Configuration:ContentTypes", + AttributeName = "ContentType", + AttributeValue = "ContentType", + AllowedKeys = Model.Options.ContentTypes, + Label = "Add child topic…", + TargetUrl = $"?ContentType{{Topic}}&Path={Model.UniqueKey}:{Model.AttributeDescriptor.Key}&Action=Add", + TargetPopup = Model.Options.TargetPopup, + OnClientClose = $"{Model.AttributeDescriptor.Key}Tree_refresh" + }; + + + + +} +else { +
    + Subtopics cannot be created until this topic has been saved. Save the topic, then add nested topics. +
    +} From ea9ad1e3acd1fc2f0f21b33c34055d51c83eb1e7 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 22 Oct 2019 22:57:31 -0700 Subject: [PATCH 374/637] Scaffolded `TopicLookup` for navigation Added a nested `TopicLookup` for listing available content types. As with #1f6d9fc, there are some issues with this still since the `TargetUrl` feature isn't yet implemented. It also incorrectly displays the dropdown box even if there's only a single entry. Plus it shows the label (from `_layout.cshtml`), which isn't desirable. Those issues will need to be worked out. For now, however, this establishes the basic functionality, and provides a basis to add and test additional features. Aside, it's unclear why this manual mapping of `PermittedContentTypes` is necessary; this suggests a bug in the `DynamicTopicViewModelLookupService`; that will require further investigation. --- .../ContentTypeDescriptorTopicViewModel.cs | 1 - .../Editor/Controllers/EditorController.cs | 2 +- .../Areas/Editor/Views/Shared/_Layout.cshtml | 21 ++++++++++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs index 23dedf44..febe7c4f 100644 --- a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs @@ -67,7 +67,6 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// Determines which s, if any, are permitted to be created under s of the /// current . /// - [Relationship(RelationshipType.Relationship)] public List PermittedContentTypes { get; } = new List(); } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index b3bd259b..95eb056a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -129,7 +129,7 @@ await _topicMappingService.MapAsync(attribute //Manually map permitted content types since mapping reference collections isn't currently supported if (contentTypeViewModel.PermittedContentTypes.Count.Equals(0)) { - foreach (var contentTypeReference in _topicRepository.GetContentTypeDescriptors()) { + foreach (var contentTypeReference in contentTypeDescriptor.PermittedContentTypes) { contentTypeViewModel.PermittedContentTypes.Add( await _topicMappingService.MapAsync(contentTypeReference) ); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 4cb934ff..52374977 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -1,4 +1,6 @@ - +@model EditorViewModel + + @@ -89,6 +91,23 @@ From 99ffbe5c2d6d7f550a5defd7b3e24ef7bf53d1ca Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 12:29:46 -0700 Subject: [PATCH 375/637] Worked around mapping issue with `ContentTypeDescriptorTopicViewModel` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, `ITopicMappingService.MapAsync` would map top-level properties, but run into issues recursing over nested topics and relationships due to the `Ignia.Topics.Editor.Models` assembly not being loaded in the `AppDomain` of the `Ignia.Topics` assembly—even though it was loaded in context of the `Ignia.Topics.Editor.Mvc` assembly which was calling `ITopicMappingService<>`. To work around this, an `EditorViewModelLookupService` was established which provides a static reference to local view models. On the downside, this has to be manually maintained any time a new type is added. On the upside, this solves the problem and is much faster. --- .../ContentTypeDescriptorTopicViewModel.cs | 4 +- .../SampleActivator.cs | 4 +- .../Editor/Controllers/EditorController.cs | 16 -------- .../EditorViewModelLookupService.cs | 38 +++++++++++++++++++ 4 files changed, 43 insertions(+), 19 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs diff --git a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs index febe7c4f..e79be364 100644 --- a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs @@ -33,6 +33,7 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// A list of instances representing each of the permitted by the underlying . /// + [Relationship("Attributes", Type=RelationshipType.NestedTopics)] public List AttributeDescriptors { get; } = new List(); /*========================================================================================================================== @@ -67,7 +68,8 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// Determines which s, if any, are permitted to be created under s of the /// current . /// - public List PermittedContentTypes { get; } = new List(); + [Relationship("ContentTypes", Type=RelationshipType.Relationship)] + public List PermittedContentTypes { get; set; } } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 87a27276..de9886fc 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -11,8 +11,8 @@ using Ignia.Topics.Data.Sql; using Ignia.Topics.Editor.Mvc.Components; using Ignia.Topics.Editor.Mvc.Controllers; +using Ignia.Topics.Editor.Mvc.Infrastructure; using Ignia.Topics.Mapping; -using Ignia.Topics.Reflection; using Ignia.Topics.Repositories; using Ignia.Topics.ViewModels; using Microsoft.AspNetCore.Hosting; @@ -72,7 +72,7 @@ public SampleActivator(string connectionString, IWebHostEnvironment webHostEnvir | Preload repository \-----------------------------------------------------------------------------------------------------------------------*/ _topicRepository = cachedTopicRepository; - _typeLookupService = new DynamicTopicViewModelLookupService(); + _typeLookupService = new EditorViewModelLookupService(); _topicMappingService = new TopicMappingService(_topicRepository, _typeLookupService); _rootTopic = _topicRepository.Load(); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 95eb056a..87b61973 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -120,22 +120,6 @@ public async Task Edit(bool isNew = false, string contentType = n var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); var contentTypeViewModel = await _topicMappingService.MapAsync(contentTypeDescriptor); - //Manually map attribute types, since mapping reference collections isn't currently supported - foreach (var attributeDescriptor in contentTypeDescriptor.AttributeDescriptors) { - contentTypeViewModel.AttributeDescriptors.Add( - await _topicMappingService.MapAsync(attributeDescriptor) - ); - } - - //Manually map permitted content types since mapping reference collections isn't currently supported - if (contentTypeViewModel.PermittedContentTypes.Count.Equals(0)) { - foreach (var contentTypeReference in contentTypeDescriptor.PermittedContentTypes) { - contentTypeViewModel.PermittedContentTypes.Add( - await _topicMappingService.MapAsync(contentTypeReference) - ); - } - } - /*------------------------------------------------------------------------------------------------------------------------ | CONSTRUCT VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs new file mode 100644 index 00000000..22490866 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs @@ -0,0 +1,38 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; + +namespace Ignia.Topics.Editor.Mvc.Infrastructure { + + /*============================================================================================================================ + | CLASS: EDITOR TOPIC VIEW MODEL LOOKUP SERVICE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a mapping between string and class names to be used when mapping to a or derived class. + /// + public class EditorViewModelLookupService : ViewModels.TopicViewModelLookupService { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Instantiates a new instance of the . + /// + /// A new instance of the . + public EditorViewModelLookupService() : base() { + + /*------------------------------------------------------------------------------------------------------------------------ + | Add Editor-specific view models + \-----------------------------------------------------------------------------------------------------------------------*/ + Add(typeof(AttributeDescriptorTopicViewModel)); + Add(typeof(ContentTypeDescriptorTopicViewModel)); + Add(typeof(EditingTopicViewModel)); + + } + + } //Class +} //Namespace From 9d71cb202862edf45c4c9a1bfa87eb984e3b9bc8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 13:13:40 -0700 Subject: [PATCH 376/637] Moved `SCSS` files out of `wwwroot` `SCSS` files need to be compiled, and should not be accessible directly to web clients. Placing them in `wwwroot` was a quick shortcut due to the original compilation process outputting the resulting `CSS` files in the same location. We'll be updating our build process, however, to account for **ASP.NET Core**'s convention of using `wwwroot` as a build/output folder for static files. In preparation for that, these files are being moved back to their original location. --- .../{wwwroot => }/Shared/Styles/Base/_base.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_buttons.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_callouts.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_fonts.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_forms.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_icons.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_links.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_tabs.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_tooltips.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_typography.scss | 0 .../{wwwroot => }/Shared/Styles/Base/_utilities.scss | 0 .../Shared/Styles/Components/TreeView/_treeView.scss | 0 .../{wwwroot => }/Shared/Styles/Components/_components.scss | 0 .../{wwwroot => }/Shared/Styles/Layout/_layout.scss | 0 Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Style.scss | 0 .../{wwwroot => }/Shared/Styles/_variables.scss | 0 16 files changed, 0 insertions(+), 0 deletions(-) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_base.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_buttons.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_callouts.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_fonts.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_forms.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_icons.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_links.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_tabs.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_tooltips.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_typography.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Base/_utilities.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Components/TreeView/_treeView.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Components/_components.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Layout/_layout.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/Style.scss (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Styles/_variables.scss (100%) diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_base.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_base.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_base.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_base.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_buttons.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_buttons.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_buttons.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_buttons.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_callouts.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_callouts.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_callouts.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_callouts.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_fonts.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_fonts.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_fonts.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_fonts.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_forms.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_forms.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_forms.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_forms.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_icons.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_icons.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_icons.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_icons.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_links.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_links.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_links.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_links.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tabs.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_tabs.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tabs.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_tabs.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tooltips.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_tooltips.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_tooltips.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_tooltips.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_typography.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_typography.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_typography.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_typography.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_utilities.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_utilities.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Base/_utilities.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_utilities.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/TreeView/_treeView.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Components/TreeView/_treeView.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/TreeView/_treeView.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Components/TreeView/_treeView.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/_components.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Components/_components.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Components/_components.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Components/_components.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Layout/_layout.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Layout/_layout.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Layout/_layout.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Layout/_layout.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Style.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/Style.scss diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/_variables.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/_variables.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/_variables.scss rename to Ignia.Topics.Editor.Mvc/Shared/Styles/_variables.scss From fb6c764b75f128d16c07b8b73e5359759bd966bd Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 13:17:56 -0700 Subject: [PATCH 377/637] Moved `JS` files out of `wwwroot` Unlike the `SCSS` files (see #9d71cb2), the `JS` files _can_ be used in situ without relying on a build process to compile and relocate them. _That said_, it is _preferred_ that they, at minimum, be uglified and concactenated into a single file so that we don't need to open several HTTP sessions to download them individually. And, of course, we'd ultimately like to migrate these over to *TypeScript*, at which point they _will_ need a precompilation process. As such, they're being moved _back_ to the root `/Shared` folder, and will be built using the forthcoming **Gulp** configuration. --- .../{wwwroot => }/Shared/Scripts/Common.Functions.js | 0 Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Scripts/Modal.js | 0 .../{wwwroot => }/Shared/Scripts/TokenizedTopicList.js | 0 Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Scripts/TopicList.js | 0 .../{wwwroot => }/Shared/Scripts/Window.Primary.Functions.js | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Scripts/Common.Functions.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Scripts/Modal.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Scripts/TokenizedTopicList.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Scripts/TopicList.js (100%) rename Ignia.Topics.Editor.Mvc/{wwwroot => }/Shared/Scripts/Window.Primary.Functions.js (100%) diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Common.Functions.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Common.Functions.js rename to Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Modal.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Modal.js rename to Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TokenizedTopicList.js rename to Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/TopicList.js rename to Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Scripts/Window.Primary.Functions.js rename to Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js From 68d413c1dcd3281373983d48266f1362c1cf6628 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 13:32:53 -0700 Subject: [PATCH 378/637] Deleted unused `CSS` files The `Site.css` file represents a rollup of vendor `CSS` files from a legacy build process. Currently, however, all `CSS` files are being accessed by their individual vendor files, and the `Site.css` is neither maintained nor referenced. We'll likely be building a new version of this as part of the forthcoming **Gulp** workflow, but there's no need to keep this legacy file around in the interim, as it only causes confusion. Likewise, the `Stylesheet.css` is not used and, in fact, only contains commented out styles. --- .../wwwroot/Shared/Styles/Site.css | 8441 ----------------- .../wwwroot/Shared/Styles/Style.min.css | 1 - .../wwwroot/Shared/Styles/Stylesheet.css | 14 - 3 files changed, 8456 deletions(-) delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css deleted file mode 100644 index 6792400f..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Site.css +++ /dev/null @@ -1,8441 +0,0 @@ -@import "Vendor/TokenInput/token-input.css"; -/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ -html { - font-family: sans-serif; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; -} - -body { - margin: 0; -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -nav, -section, -summary { - display: block; -} - -audio, -canvas, -progress, -video { - display: inline-block; - vertical-align: baseline; -} - - audio:not([controls]) { - display: none; - height: 0; - } - -[hidden], -template { - display: none; -} - -a { - background: transparent; -} - - a:active, - a:hover { - outline: 0; - } - -abbr[title] { - border-bottom: 1px dotted; -} - -b, -strong { - font-weight: bold; -} - -dfn { - font-style: italic; -} - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -mark { - background: #ff0; - color: #000; -} - -small { - font-size: 80%; -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -img { - border: 0; -} - -svg:not(:root) { - overflow: hidden; -} - -figure { - margin: 1em 40px; -} - -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} - -pre { - overflow: auto; -} - -code, -kbd, -pre, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -button, -input, -optgroup, -select, -textarea { - color: inherit; - font: inherit; - margin: 0; -} - -button { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; -} - - button[disabled], - html input[disabled] { - cursor: default; - } - - button::-moz-focus-inner, - input::-moz-focus-inner { - border: 0; - padding: 0; - } - -input { - line-height: normal; -} - - input[type="checkbox"], - input[type="radio"] { - box-sizing: border-box; - padding: 0; - } - - input[type="number"]::-webkit-inner-spin-button, - input[type="number"]::-webkit-outer-spin-button { - height: auto; - } - - input[type="search"] { - -webkit-appearance: textfield; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; - box-sizing: content-box; - } - - input[type="search"]::-webkit-search-cancel-button, - input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; - } - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -legend { - border: 0; - padding: 0; -} - -textarea { - overflow: auto; -} - -optgroup { - font-weight: bold; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -td, -th { - padding: 0; -} - -@media print { - * { - text-shadow: none !important; - color: #000 !important; - background: transparent !important; - box-shadow: none !important; - } - - a, - a:visited { - text-decoration: underline; - } - - a[href]:after { - content: " (" attr(href) ")"; - } - - abbr[title]:after { - content: " (" attr(title) ")"; - } - - a[href^="javascript:"]:after, - a[href^="#"]:after { - content: ""; - } - - pre, - blockquote { - border: 1px solid #999; - page-break-inside: avoid; - } - - thead { - display: table-header-group; - } - - tr, - img { - page-break-inside: avoid; - } - - img { - max-width: 100% !important; - } - - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - - h2, - h3 { - page-break-after: avoid; - } - - select { - background: #fff !important; - } - - .navbar { - display: none; - } - - .table td, - .table th { - background-color: #fff !important; - } - - .btn > .caret, - .dropup > .btn > .caret { - border-top-color: #000 !important; - } - - .label { - border: 1px solid #000; - } - - .table { - border-collapse: collapse !important; - } - - .table-bordered th, - .table-bordered td { - border: 1px solid #ddd !important; - } -} - -@font-face { - font-family: 'Glyphicons Halflings'; - src: url('../fonts/glyphicons-halflings-regular.eot'); - src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); -} - -.glyphicon { - position: relative; - top: 1px; - display: inline-block; - font-family: 'Glyphicons Halflings'; - font-style: normal; - font-weight: normal; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.glyphicon-asterisk:before { - content: "\2a"; -} - -.glyphicon-plus:before { - content: "\2b"; -} - -.glyphicon-euro:before { - content: "\20ac"; -} - -.glyphicon-minus:before { - content: "\2212"; -} - -.glyphicon-cloud:before { - content: "\2601"; -} - -.glyphicon-envelope:before { - content: "\2709"; -} - -.glyphicon-pencil:before { - content: "\270f"; -} - -.glyphicon-glass:before { - content: "\e001"; -} - -.glyphicon-music:before { - content: "\e002"; -} - -.glyphicon-search:before { - content: "\e003"; -} - -.glyphicon-heart:before { - content: "\e005"; -} - -.glyphicon-star:before { - content: "\e006"; -} - -.glyphicon-star-empty:before { - content: "\e007"; -} - -.glyphicon-user:before { - content: "\e008"; -} - -.glyphicon-film:before { - content: "\e009"; -} - -.glyphicon-th-large:before { - content: "\e010"; -} - -.glyphicon-th:before { - content: "\e011"; -} - -.glyphicon-th-list:before { - content: "\e012"; -} - -.glyphicon-ok:before { - content: "\e013"; -} - -.glyphicon-remove:before { - content: "\e014"; -} - -.glyphicon-zoom-in:before { - content: "\e015"; -} - -.glyphicon-zoom-out:before { - content: "\e016"; -} - -.glyphicon-off:before { - content: "\e017"; -} - -.glyphicon-signal:before { - content: "\e018"; -} - -.glyphicon-cog:before { - content: "\e019"; -} - -.glyphicon-trash:before { - content: "\e020"; -} - -.glyphicon-home:before { - content: "\e021"; -} - -.glyphicon-file:before { - content: "\e022"; -} - -.glyphicon-time:before { - content: "\e023"; -} - -.glyphicon-road:before { - content: "\e024"; -} - -.glyphicon-download-alt:before { - content: "\e025"; -} - -.glyphicon-download:before { - content: "\e026"; -} - -.glyphicon-upload:before { - content: "\e027"; -} - -.glyphicon-inbox:before { - content: "\e028"; -} - -.glyphicon-play-circle:before { - content: "\e029"; -} - -.glyphicon-repeat:before { - content: "\e030"; -} - -.glyphicon-refresh:before { - content: "\e031"; -} - -.glyphicon-list-alt:before { - content: "\e032"; -} - -.glyphicon-lock:before { - content: "\e033"; -} - -.glyphicon-flag:before { - content: "\e034"; -} - -.glyphicon-headphones:before { - content: "\e035"; -} - -.glyphicon-volume-off:before { - content: "\e036"; -} - -.glyphicon-volume-down:before { - content: "\e037"; -} - -.glyphicon-volume-up:before { - content: "\e038"; -} - -.glyphicon-qrcode:before { - content: "\e039"; -} - -.glyphicon-barcode:before { - content: "\e040"; -} - -.glyphicon-tag:before { - content: "\e041"; -} - -.glyphicon-tags:before { - content: "\e042"; -} - -.glyphicon-book:before { - content: "\e043"; -} - -.glyphicon-bookmark:before { - content: "\e044"; -} - -.glyphicon-print:before { - content: "\e045"; -} - -.glyphicon-camera:before { - content: "\e046"; -} - -.glyphicon-font:before { - content: "\e047"; -} - -.glyphicon-bold:before { - content: "\e048"; -} - -.glyphicon-italic:before { - content: "\e049"; -} - -.glyphicon-text-height:before { - content: "\e050"; -} - -.glyphicon-text-width:before { - content: "\e051"; -} - -.glyphicon-align-left:before { - content: "\e052"; -} - -.glyphicon-align-center:before { - content: "\e053"; -} - -.glyphicon-align-right:before { - content: "\e054"; -} - -.glyphicon-align-justify:before { - content: "\e055"; -} - -.glyphicon-list:before { - content: "\e056"; -} - -.glyphicon-indent-left:before { - content: "\e057"; -} - -.glyphicon-indent-right:before { - content: "\e058"; -} - -.glyphicon-facetime-video:before { - content: "\e059"; -} - -.glyphicon-picture:before { - content: "\e060"; -} - -.glyphicon-map-marker:before { - content: "\e062"; -} - -.glyphicon-adjust:before { - content: "\e063"; -} - -.glyphicon-tint:before { - content: "\e064"; -} - -.glyphicon-edit:before { - content: "\e065"; -} - -.glyphicon-share:before { - content: "\e066"; -} - -.glyphicon-check:before { - content: "\e067"; -} - -.glyphicon-move:before { - content: "\e068"; -} - -.glyphicon-step-backward:before { - content: "\e069"; -} - -.glyphicon-fast-backward:before { - content: "\e070"; -} - -.glyphicon-backward:before { - content: "\e071"; -} - -.glyphicon-play:before { - content: "\e072"; -} - -.glyphicon-pause:before { - content: "\e073"; -} - -.glyphicon-stop:before { - content: "\e074"; -} - -.glyphicon-forward:before { - content: "\e075"; -} - -.glyphicon-fast-forward:before { - content: "\e076"; -} - -.glyphicon-step-forward:before { - content: "\e077"; -} - -.glyphicon-eject:before { - content: "\e078"; -} - -.glyphicon-chevron-left:before { - content: "\e079"; -} - -.glyphicon-chevron-right:before { - content: "\e080"; -} - -.glyphicon-plus-sign:before { - content: "\e081"; -} - -.glyphicon-minus-sign:before { - content: "\e082"; -} - -.glyphicon-remove-sign:before { - content: "\e083"; -} - -.glyphicon-ok-sign:before { - content: "\e084"; -} - -.glyphicon-question-sign:before { - content: "\e085"; -} - -.glyphicon-info-sign:before { - content: "\e086"; -} - -.glyphicon-screenshot:before { - content: "\e087"; -} - -.glyphicon-remove-circle:before { - content: "\e088"; -} - -.glyphicon-ok-circle:before { - content: "\e089"; -} - -.glyphicon-ban-circle:before { - content: "\e090"; -} - -.glyphicon-arrow-left:before { - content: "\e091"; -} - -.glyphicon-arrow-right:before { - content: "\e092"; -} - -.glyphicon-arrow-up:before { - content: "\e093"; -} - -.glyphicon-arrow-down:before { - content: "\e094"; -} - -.glyphicon-share-alt:before { - content: "\e095"; -} - -.glyphicon-resize-full:before { - content: "\e096"; -} - -.glyphicon-resize-small:before { - content: "\e097"; -} - -.glyphicon-exclamation-sign:before { - content: "\e101"; -} - -.glyphicon-gift:before { - content: "\e102"; -} - -.glyphicon-leaf:before { - content: "\e103"; -} - -.glyphicon-fire:before { - content: "\e104"; -} - -.glyphicon-eye-open:before { - content: "\e105"; -} - -.glyphicon-eye-close:before { - content: "\e106"; -} - -.glyphicon-warning-sign:before { - content: "\e107"; -} - -.glyphicon-plane:before { - content: "\e108"; -} - -.glyphicon-calendar:before { - content: "\e109"; -} - -.glyphicon-random:before { - content: "\e110"; -} - -.glyphicon-comment:before { - content: "\e111"; -} - -.glyphicon-magnet:before { - content: "\e112"; -} - -.glyphicon-chevron-up:before { - content: "\e113"; -} - -.glyphicon-chevron-down:before { - content: "\e114"; -} - -.glyphicon-retweet:before { - content: "\e115"; -} - -.glyphicon-shopping-cart:before { - content: "\e116"; -} - -.glyphicon-folder-close:before { - content: "\e117"; -} - -.glyphicon-folder-open:before { - content: "\e118"; -} - -.glyphicon-resize-vertical:before { - content: "\e119"; -} - -.glyphicon-resize-horizontal:before { - content: "\e120"; -} - -.glyphicon-hdd:before { - content: "\e121"; -} - -.glyphicon-bullhorn:before { - content: "\e122"; -} - -.glyphicon-bell:before { - content: "\e123"; -} - -.glyphicon-certificate:before { - content: "\e124"; -} - -.glyphicon-thumbs-up:before { - content: "\e125"; -} - -.glyphicon-thumbs-down:before { - content: "\e126"; -} - -.glyphicon-hand-right:before { - content: "\e127"; -} - -.glyphicon-hand-left:before { - content: "\e128"; -} - -.glyphicon-hand-up:before { - content: "\e129"; -} - -.glyphicon-hand-down:before { - content: "\e130"; -} - -.glyphicon-circle-arrow-right:before { - content: "\e131"; -} - -.glyphicon-circle-arrow-left:before { - content: "\e132"; -} - -.glyphicon-circle-arrow-up:before { - content: "\e133"; -} - -.glyphicon-circle-arrow-down:before { - content: "\e134"; -} - -.glyphicon-globe:before { - content: "\e135"; -} - -.glyphicon-wrench:before { - content: "\e136"; -} - -.glyphicon-tasks:before { - content: "\e137"; -} - -.glyphicon-filter:before { - content: "\e138"; -} - -.glyphicon-briefcase:before { - content: "\e139"; -} - -.glyphicon-fullscreen:before { - content: "\e140"; -} - -.glyphicon-dashboard:before { - content: "\e141"; -} - -.glyphicon-paperclip:before { - content: "\e142"; -} - -.glyphicon-heart-empty:before { - content: "\e143"; -} - -.glyphicon-link:before { - content: "\e144"; -} - -.glyphicon-phone:before { - content: "\e145"; -} - -.glyphicon-pushpin:before { - content: "\e146"; -} - -.glyphicon-usd:before { - content: "\e148"; -} - -.glyphicon-gbp:before { - content: "\e149"; -} - -.glyphicon-sort:before { - content: "\e150"; -} - -.glyphicon-sort-by-alphabet:before { - content: "\e151"; -} - -.glyphicon-sort-by-alphabet-alt:before { - content: "\e152"; -} - -.glyphicon-sort-by-order:before { - content: "\e153"; -} - -.glyphicon-sort-by-order-alt:before { - content: "\e154"; -} - -.glyphicon-sort-by-attributes:before { - content: "\e155"; -} - -.glyphicon-sort-by-attributes-alt:before { - content: "\e156"; -} - -.glyphicon-unchecked:before { - content: "\e157"; -} - -.glyphicon-expand:before { - content: "\e158"; -} - -.glyphicon-collapse-down:before { - content: "\e159"; -} - -.glyphicon-collapse-up:before { - content: "\e160"; -} - -.glyphicon-log-in:before { - content: "\e161"; -} - -.glyphicon-flash:before { - content: "\e162"; -} - -.glyphicon-log-out:before { - content: "\e163"; -} - -.glyphicon-new-window:before { - content: "\e164"; -} - -.glyphicon-record:before { - content: "\e165"; -} - -.glyphicon-save:before { - content: "\e166"; -} - -.glyphicon-open:before { - content: "\e167"; -} - -.glyphicon-saved:before { - content: "\e168"; -} - -.glyphicon-import:before { - content: "\e169"; -} - -.glyphicon-export:before { - content: "\e170"; -} - -.glyphicon-send:before { - content: "\e171"; -} - -.glyphicon-floppy-disk:before { - content: "\e172"; -} - -.glyphicon-floppy-saved:before { - content: "\e173"; -} - -.glyphicon-floppy-remove:before { - content: "\e174"; -} - -.glyphicon-floppy-save:before { - content: "\e175"; -} - -.glyphicon-floppy-open:before { - content: "\e176"; -} - -.glyphicon-credit-card:before { - content: "\e177"; -} - -.glyphicon-transfer:before { - content: "\e178"; -} - -.glyphicon-cutlery:before { - content: "\e179"; -} - -.glyphicon-header:before { - content: "\e180"; -} - -.glyphicon-compressed:before { - content: "\e181"; -} - -.glyphicon-earphone:before { - content: "\e182"; -} - -.glyphicon-phone-alt:before { - content: "\e183"; -} - -.glyphicon-tower:before { - content: "\e184"; -} - -.glyphicon-stats:before { - content: "\e185"; -} - -.glyphicon-sd-video:before { - content: "\e186"; -} - -.glyphicon-hd-video:before { - content: "\e187"; -} - -.glyphicon-subtitles:before { - content: "\e188"; -} - -.glyphicon-sound-stereo:before { - content: "\e189"; -} - -.glyphicon-sound-dolby:before { - content: "\e190"; -} - -.glyphicon-sound-5-1:before { - content: "\e191"; -} - -.glyphicon-sound-6-1:before { - content: "\e192"; -} - -.glyphicon-sound-7-1:before { - content: "\e193"; -} - -.glyphicon-copyright-mark:before { - content: "\e194"; -} - -.glyphicon-registration-mark:before { - content: "\e195"; -} - -.glyphicon-cloud-download:before { - content: "\e197"; -} - -.glyphicon-cloud-upload:before { - content: "\e198"; -} - -.glyphicon-tree-conifer:before { - content: "\e199"; -} - -.glyphicon-tree-deciduous:before { - content: "\e200"; -} - -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - - *:before, - *:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - -html { - font-size: 10px; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -body { - font-family: 'Lato', Helvetica, Arial, sans-serif; - font-size: 16px; - line-height: 1.42857143; - color: #ffffff; - background-color: #333333; -} - -input, -button, -select, -textarea { - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -a { - color: #0a94d4; - text-decoration: none; -} - - a:hover, - a:focus { - color: #07618b; - text-decoration: underline; - } - - a:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; - } - -figure { - margin: 0; -} - -img { - vertical-align: middle; -} - -.img-responsive, -.thumbnail > img, -.thumbnail a > img, -.carousel-inner > .item > img, -.carousel-inner > .item > a > img { - display: block; - width: 100% \9; - max-width: 100%; - height: auto; -} - -.img-rounded { - border-radius: 2px; -} - -.img-thumbnail { - padding: 4px; - line-height: 1.42857143; - background-color: #333333; - border: 1px solid #dddddd; - border-radius: 1px; - -webkit-transition: all 0.2s ease-in-out; - -o-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; - display: inline-block; - width: 100% \9; - max-width: 100%; - height: auto; -} - -.img-circle { - border-radius: 50%; -} - -hr { - margin-top: 22px; - margin-bottom: 22px; - border: 0; - border-top: 1px solid #cccccc; -} - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - margin: -1px; - padding: 0; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} - -.sr-only-focusable:active, -.sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto; -} - -h1, -h2, -h3, -h4, -h5, -h6, -.h1, -.h2, -.h3, -.h4, -.h5, -.h6 { - font-family: inherit; - font-weight: 500; - line-height: 1.1; - color: inherit; -} - - h1 small, - h2 small, - h3 small, - h4 small, - h5 small, - h6 small, - .h1 small, - .h2 small, - .h3 small, - .h4 small, - .h5 small, - .h6 small, - h1 .small, - h2 .small, - h3 .small, - h4 .small, - h5 .small, - h6 .small, - .h1 .small, - .h2 .small, - .h3 .small, - .h4 .small, - .h5 .small, - .h6 .small { - font-weight: normal; - line-height: 1; - color: #666666; - } - -h1, -.h1, -h2, -.h2, -h3, -.h3 { - margin-top: 22px; - margin-bottom: 11px; -} - - h1 small, - .h1 small, - h2 small, - .h2 small, - h3 small, - .h3 small, - h1 .small, - .h1 .small, - h2 .small, - .h2 .small, - h3 .small, - .h3 .small { - font-size: 65%; - } - -h4, -.h4, -h5, -.h5, -h6, -.h6 { - margin-top: 11px; - margin-bottom: 11px; -} - - h4 small, - .h4 small, - h5 small, - .h5 small, - h6 small, - .h6 small, - h4 .small, - .h4 .small, - h5 .small, - .h5 .small, - h6 .small, - .h6 .small { - font-size: 75%; - } - -h1, -.h1 { - font-size: 41px; -} - -h2, -.h2 { - font-size: 34px; -} - -h3, -.h3 { - font-size: 28px; -} - -h4, -.h4 { - font-size: 20px; -} - -h5, -.h5 { - font-size: 16px; -} - -h6, -.h6 { - font-size: 14px; -} - -p { - margin: 0 0 11px; -} - -.lead { - margin-bottom: 22px; - font-size: 18px; - font-weight: 300; - line-height: 1.4; -} - -@media (min-width: 768px) { - .lead { - font-size: 24px; - } -} - -small, -.small { - font-size: 87%; -} - -cite { - font-style: normal; -} - -mark, -.mark { - background-color: #fcf8e3; - padding: .2em; -} - -.text-left { - text-align: left; -} - -.text-right { - text-align: right; -} - -.text-center { - text-align: center; -} - -.text-justify { - text-align: justify; -} - -.text-nowrap { - white-space: nowrap; -} - -.text-lowercase { - text-transform: lowercase; -} - -.text-uppercase { - text-transform: uppercase; -} - -.text-capitalize { - text-transform: capitalize; -} - -.text-muted { - color: #666666; -} - -.text-primary { - color: #4d4d4d; -} - -a.text-primary:hover { - color: #333333; -} - -.text-success { - color: #125204; -} - -a.text-success:hover { - color: #072102; -} - -.text-info { - color: #0872a3; -} - -a.text-info:hover { - color: #055073; -} - -.text-warning { - color: #8a6d3b; -} - -a.text-warning:hover { - color: #66512c; -} - -.text-danger { - color: #d63510; -} - -a.text-danger:hover { - color: #a6290c; -} - -.bg-primary { - color: #fff; - background-color: #4d4d4d; -} - -a.bg-primary:hover { - background-color: #333333; -} - -.bg-success { - background-color: #d3e5cf; -} - -a.bg-success:hover { - background-color: #b5d3ae; -} - -.bg-info { - background-color: #daebf2; -} - -a.bg-info:hover { - background-color: #b4d7e5; -} - -.bg-warning { - background-color: #fcf8e3; -} - -a.bg-warning:hover { - background-color: #f7ecb5; -} - -.bg-danger { - background-color: #f0dcd8; -} - -a.bg-danger:hover { - background-color: #e2bbb3; -} - -.page-header { - padding-bottom: 10px; - margin: 44px 0 22px; - border-bottom: 1px solid #cccccc; -} - -ul, -ol { - margin-top: 0; - margin-bottom: 11px; -} - - ul ul, - ol ul, - ul ol, - ol ol { - margin-bottom: 0; - } - -.list-unstyled { - padding-left: 0; - list-style: none; -} - -.list-inline { - padding-left: 0; - list-style: none; - margin-left: -5px; -} - - .list-inline > li { - display: inline-block; - padding-left: 5px; - padding-right: 5px; - } - -dl { - margin-top: 0; - margin-bottom: 22px; -} - -dt, -dd { - line-height: 1.42857143; -} - -dt { - font-weight: bold; -} - -dd { - margin-left: 0; -} - -@media (min-width: 768px) { - .dl-horizontal dt { - float: left; - width: 160px; - clear: left; - text-align: right; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - .dl-horizontal dd { - margin-left: 180px; - } -} - -abbr[title], -abbr[data-original-title] { - cursor: help; - border-bottom: 1px dotted #666666; -} - -.initialism { - font-size: 90%; - text-transform: uppercase; -} - -blockquote { - padding: 11px 22px; - margin: 0 0 22px; - font-size: 20px; - border-left: 5px solid #cccccc; -} - - blockquote p:last-child, - blockquote ul:last-child, - blockquote ol:last-child { - margin-bottom: 0; - } - - blockquote footer, - blockquote small, - blockquote .small { - display: block; - font-size: 80%; - line-height: 1.42857143; - color: #666666; - } - - blockquote footer:before, - blockquote small:before, - blockquote .small:before { - content: '\2014 \00A0'; - } - - .blockquote-reverse, - blockquote.pull-right { - padding-right: 15px; - padding-left: 0; - border-right: 5px solid #cccccc; - border-left: 0; - text-align: right; - } - - .blockquote-reverse footer:before, - blockquote.pull-right footer:before, - .blockquote-reverse small:before, - blockquote.pull-right small:before, - .blockquote-reverse .small:before, - blockquote.pull-right .small:before { - content: ''; - } - - .blockquote-reverse footer:after, - blockquote.pull-right footer:after, - .blockquote-reverse small:after, - blockquote.pull-right small:after, - .blockquote-reverse .small:after, - blockquote.pull-right .small:after { - content: '\00A0 \2014'; - } - - blockquote:before, - blockquote:after { - content: ""; - } - -address { - margin-bottom: 22px; - font-style: normal; - line-height: 1.42857143; -} - -code, -kbd, -pre, -samp { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; -} - -code { - padding: 2px 4px; - font-size: 90%; - color: #c7254e; - background-color: #f9f2f4; - border-radius: 1px; -} - -kbd { - padding: 2px 4px; - font-size: 90%; - color: #ffffff; - background-color: #333333; - border-radius: 0; - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); -} - - kbd kbd { - padding: 0; - font-size: 100%; - box-shadow: none; - } - -pre { - display: block; - padding: 10.5px; - margin: 0 0 11px; - font-size: 15px; - line-height: 1.42857143; - word-break: break-all; - word-wrap: break-word; - color: #333333; - background-color: #f5f5f5; - border: 1px solid #cccccc; - border-radius: 1px; -} - - pre code { - padding: 0; - font-size: inherit; - color: inherit; - white-space: pre-wrap; - background-color: transparent; - border-radius: 0; - } - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} - -.container { - margin-right: auto; - margin-left: auto; - padding-left: 15px; - padding-right: 15px; -} - -@media (min-width: 768px) { - .container { - width: 750px; - } -} - -@media (min-width: 992px) { - .container { - width: 990px; - } -} - -@media (min-width: 1240px) { - .container { - width: 1220px; - } -} - -.container-fluid { - margin-right: auto; - margin-left: auto; - padding-left: 15px; - padding-right: 15px; -} - -.row { - margin-left: -15px; - margin-right: -15px; -} - -.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { - position: relative; - min-height: 1px; - padding-left: 15px; - padding-right: 15px; -} - -.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { - float: left; -} - -.col-xs-12 { - width: 100%; -} - -.col-xs-11 { - width: 91.66666667%; -} - -.col-xs-10 { - width: 83.33333333%; -} - -.col-xs-9 { - width: 75%; -} - -.col-xs-8 { - width: 66.66666667%; -} - -.col-xs-7 { - width: 58.33333333%; -} - -.col-xs-6 { - width: 50%; -} - -.col-xs-5 { - width: 41.66666667%; -} - -.col-xs-4 { - width: 33.33333333%; -} - -.col-xs-3 { - width: 25%; -} - -.col-xs-2 { - width: 16.66666667%; -} - -.col-xs-1 { - width: 8.33333333%; -} - -.col-xs-pull-12 { - right: 100%; -} - -.col-xs-pull-11 { - right: 91.66666667%; -} - -.col-xs-pull-10 { - right: 83.33333333%; -} - -.col-xs-pull-9 { - right: 75%; -} - -.col-xs-pull-8 { - right: 66.66666667%; -} - -.col-xs-pull-7 { - right: 58.33333333%; -} - -.col-xs-pull-6 { - right: 50%; -} - -.col-xs-pull-5 { - right: 41.66666667%; -} - -.col-xs-pull-4 { - right: 33.33333333%; -} - -.col-xs-pull-3 { - right: 25%; -} - -.col-xs-pull-2 { - right: 16.66666667%; -} - -.col-xs-pull-1 { - right: 8.33333333%; -} - -.col-xs-pull-0 { - right: auto; -} - -.col-xs-push-12 { - left: 100%; -} - -.col-xs-push-11 { - left: 91.66666667%; -} - -.col-xs-push-10 { - left: 83.33333333%; -} - -.col-xs-push-9 { - left: 75%; -} - -.col-xs-push-8 { - left: 66.66666667%; -} - -.col-xs-push-7 { - left: 58.33333333%; -} - -.col-xs-push-6 { - left: 50%; -} - -.col-xs-push-5 { - left: 41.66666667%; -} - -.col-xs-push-4 { - left: 33.33333333%; -} - -.col-xs-push-3 { - left: 25%; -} - -.col-xs-push-2 { - left: 16.66666667%; -} - -.col-xs-push-1 { - left: 8.33333333%; -} - -.col-xs-push-0 { - left: auto; -} - -.col-xs-offset-12 { - margin-left: 100%; -} - -.col-xs-offset-11 { - margin-left: 91.66666667%; -} - -.col-xs-offset-10 { - margin-left: 83.33333333%; -} - -.col-xs-offset-9 { - margin-left: 75%; -} - -.col-xs-offset-8 { - margin-left: 66.66666667%; -} - -.col-xs-offset-7 { - margin-left: 58.33333333%; -} - -.col-xs-offset-6 { - margin-left: 50%; -} - -.col-xs-offset-5 { - margin-left: 41.66666667%; -} - -.col-xs-offset-4 { - margin-left: 33.33333333%; -} - -.col-xs-offset-3 { - margin-left: 25%; -} - -.col-xs-offset-2 { - margin-left: 16.66666667%; -} - -.col-xs-offset-1 { - margin-left: 8.33333333%; -} - -.col-xs-offset-0 { - margin-left: 0%; -} - -@media (min-width: 768px) { - .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { - float: left; - } - - .col-sm-12 { - width: 100%; - } - - .col-sm-11 { - width: 91.66666667%; - } - - .col-sm-10 { - width: 83.33333333%; - } - - .col-sm-9 { - width: 75%; - } - - .col-sm-8 { - width: 66.66666667%; - } - - .col-sm-7 { - width: 58.33333333%; - } - - .col-sm-6 { - width: 50%; - } - - .col-sm-5 { - width: 41.66666667%; - } - - .col-sm-4 { - width: 33.33333333%; - } - - .col-sm-3 { - width: 25%; - } - - .col-sm-2 { - width: 16.66666667%; - } - - .col-sm-1 { - width: 8.33333333%; - } - - .col-sm-pull-12 { - right: 100%; - } - - .col-sm-pull-11 { - right: 91.66666667%; - } - - .col-sm-pull-10 { - right: 83.33333333%; - } - - .col-sm-pull-9 { - right: 75%; - } - - .col-sm-pull-8 { - right: 66.66666667%; - } - - .col-sm-pull-7 { - right: 58.33333333%; - } - - .col-sm-pull-6 { - right: 50%; - } - - .col-sm-pull-5 { - right: 41.66666667%; - } - - .col-sm-pull-4 { - right: 33.33333333%; - } - - .col-sm-pull-3 { - right: 25%; - } - - .col-sm-pull-2 { - right: 16.66666667%; - } - - .col-sm-pull-1 { - right: 8.33333333%; - } - - .col-sm-pull-0 { - right: auto; - } - - .col-sm-push-12 { - left: 100%; - } - - .col-sm-push-11 { - left: 91.66666667%; - } - - .col-sm-push-10 { - left: 83.33333333%; - } - - .col-sm-push-9 { - left: 75%; - } - - .col-sm-push-8 { - left: 66.66666667%; - } - - .col-sm-push-7 { - left: 58.33333333%; - } - - .col-sm-push-6 { - left: 50%; - } - - .col-sm-push-5 { - left: 41.66666667%; - } - - .col-sm-push-4 { - left: 33.33333333%; - } - - .col-sm-push-3 { - left: 25%; - } - - .col-sm-push-2 { - left: 16.66666667%; - } - - .col-sm-push-1 { - left: 8.33333333%; - } - - .col-sm-push-0 { - left: auto; - } - - .col-sm-offset-12 { - margin-left: 100%; - } - - .col-sm-offset-11 { - margin-left: 91.66666667%; - } - - .col-sm-offset-10 { - margin-left: 83.33333333%; - } - - .col-sm-offset-9 { - margin-left: 75%; - } - - .col-sm-offset-8 { - margin-left: 66.66666667%; - } - - .col-sm-offset-7 { - margin-left: 58.33333333%; - } - - .col-sm-offset-6 { - margin-left: 50%; - } - - .col-sm-offset-5 { - margin-left: 41.66666667%; - } - - .col-sm-offset-4 { - margin-left: 33.33333333%; - } - - .col-sm-offset-3 { - margin-left: 25%; - } - - .col-sm-offset-2 { - margin-left: 16.66666667%; - } - - .col-sm-offset-1 { - margin-left: 8.33333333%; - } - - .col-sm-offset-0 { - margin-left: 0%; - } -} - -@media (min-width: 992px) { - .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { - float: left; - } - - .col-md-12 { - width: 100%; - } - - .col-md-11 { - width: 91.66666667%; - } - - .col-md-10 { - width: 83.33333333%; - } - - .col-md-9 { - width: 75%; - } - - .col-md-8 { - width: 66.66666667%; - } - - .col-md-7 { - width: 58.33333333%; - } - - .col-md-6 { - width: 50%; - } - - .col-md-5 { - width: 41.66666667%; - } - - .col-md-4 { - width: 33.33333333%; - } - - .col-md-3 { - width: 25%; - } - - .col-md-2 { - width: 16.66666667%; - } - - .col-md-1 { - width: 8.33333333%; - } - - .col-md-pull-12 { - right: 100%; - } - - .col-md-pull-11 { - right: 91.66666667%; - } - - .col-md-pull-10 { - right: 83.33333333%; - } - - .col-md-pull-9 { - right: 75%; - } - - .col-md-pull-8 { - right: 66.66666667%; - } - - .col-md-pull-7 { - right: 58.33333333%; - } - - .col-md-pull-6 { - right: 50%; - } - - .col-md-pull-5 { - right: 41.66666667%; - } - - .col-md-pull-4 { - right: 33.33333333%; - } - - .col-md-pull-3 { - right: 25%; - } - - .col-md-pull-2 { - right: 16.66666667%; - } - - .col-md-pull-1 { - right: 8.33333333%; - } - - .col-md-pull-0 { - right: auto; - } - - .col-md-push-12 { - left: 100%; - } - - .col-md-push-11 { - left: 91.66666667%; - } - - .col-md-push-10 { - left: 83.33333333%; - } - - .col-md-push-9 { - left: 75%; - } - - .col-md-push-8 { - left: 66.66666667%; - } - - .col-md-push-7 { - left: 58.33333333%; - } - - .col-md-push-6 { - left: 50%; - } - - .col-md-push-5 { - left: 41.66666667%; - } - - .col-md-push-4 { - left: 33.33333333%; - } - - .col-md-push-3 { - left: 25%; - } - - .col-md-push-2 { - left: 16.66666667%; - } - - .col-md-push-1 { - left: 8.33333333%; - } - - .col-md-push-0 { - left: auto; - } - - .col-md-offset-12 { - margin-left: 100%; - } - - .col-md-offset-11 { - margin-left: 91.66666667%; - } - - .col-md-offset-10 { - margin-left: 83.33333333%; - } - - .col-md-offset-9 { - margin-left: 75%; - } - - .col-md-offset-8 { - margin-left: 66.66666667%; - } - - .col-md-offset-7 { - margin-left: 58.33333333%; - } - - .col-md-offset-6 { - margin-left: 50%; - } - - .col-md-offset-5 { - margin-left: 41.66666667%; - } - - .col-md-offset-4 { - margin-left: 33.33333333%; - } - - .col-md-offset-3 { - margin-left: 25%; - } - - .col-md-offset-2 { - margin-left: 16.66666667%; - } - - .col-md-offset-1 { - margin-left: 8.33333333%; - } - - .col-md-offset-0 { - margin-left: 0%; - } -} - -@media (min-width: 1240px) { - .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { - float: left; - } - - .col-lg-12 { - width: 100%; - } - - .col-lg-11 { - width: 91.66666667%; - } - - .col-lg-10 { - width: 83.33333333%; - } - - .col-lg-9 { - width: 75%; - } - - .col-lg-8 { - width: 66.66666667%; - } - - .col-lg-7 { - width: 58.33333333%; - } - - .col-lg-6 { - width: 50%; - } - - .col-lg-5 { - width: 41.66666667%; - } - - .col-lg-4 { - width: 33.33333333%; - } - - .col-lg-3 { - width: 25%; - } - - .col-lg-2 { - width: 16.66666667%; - } - - .col-lg-1 { - width: 8.33333333%; - } - - .col-lg-pull-12 { - right: 100%; - } - - .col-lg-pull-11 { - right: 91.66666667%; - } - - .col-lg-pull-10 { - right: 83.33333333%; - } - - .col-lg-pull-9 { - right: 75%; - } - - .col-lg-pull-8 { - right: 66.66666667%; - } - - .col-lg-pull-7 { - right: 58.33333333%; - } - - .col-lg-pull-6 { - right: 50%; - } - - .col-lg-pull-5 { - right: 41.66666667%; - } - - .col-lg-pull-4 { - right: 33.33333333%; - } - - .col-lg-pull-3 { - right: 25%; - } - - .col-lg-pull-2 { - right: 16.66666667%; - } - - .col-lg-pull-1 { - right: 8.33333333%; - } - - .col-lg-pull-0 { - right: auto; - } - - .col-lg-push-12 { - left: 100%; - } - - .col-lg-push-11 { - left: 91.66666667%; - } - - .col-lg-push-10 { - left: 83.33333333%; - } - - .col-lg-push-9 { - left: 75%; - } - - .col-lg-push-8 { - left: 66.66666667%; - } - - .col-lg-push-7 { - left: 58.33333333%; - } - - .col-lg-push-6 { - left: 50%; - } - - .col-lg-push-5 { - left: 41.66666667%; - } - - .col-lg-push-4 { - left: 33.33333333%; - } - - .col-lg-push-3 { - left: 25%; - } - - .col-lg-push-2 { - left: 16.66666667%; - } - - .col-lg-push-1 { - left: 8.33333333%; - } - - .col-lg-push-0 { - left: auto; - } - - .col-lg-offset-12 { - margin-left: 100%; - } - - .col-lg-offset-11 { - margin-left: 91.66666667%; - } - - .col-lg-offset-10 { - margin-left: 83.33333333%; - } - - .col-lg-offset-9 { - margin-left: 75%; - } - - .col-lg-offset-8 { - margin-left: 66.66666667%; - } - - .col-lg-offset-7 { - margin-left: 58.33333333%; - } - - .col-lg-offset-6 { - margin-left: 50%; - } - - .col-lg-offset-5 { - margin-left: 41.66666667%; - } - - .col-lg-offset-4 { - margin-left: 33.33333333%; - } - - .col-lg-offset-3 { - margin-left: 25%; - } - - .col-lg-offset-2 { - margin-left: 16.66666667%; - } - - .col-lg-offset-1 { - margin-left: 8.33333333%; - } - - .col-lg-offset-0 { - margin-left: 0%; - } -} - -table { - background-color: transparent; -} - -th { - text-align: left; -} - -.table { - width: 100%; - max-width: 100%; - margin-bottom: 22px; -} - - .table > thead > tr > th, - .table > tbody > tr > th, - .table > tfoot > tr > th, - .table > thead > tr > td, - .table > tbody > tr > td, - .table > tfoot > tr > td { - padding: 8px; - line-height: 1.42857143; - vertical-align: top; - border-top: 1px solid #dddddd; - } - - .table > thead > tr > th { - vertical-align: bottom; - border-bottom: 2px solid #dddddd; - } - - .table > caption + thead > tr:first-child > th, - .table > colgroup + thead > tr:first-child > th, - .table > thead:first-child > tr:first-child > th, - .table > caption + thead > tr:first-child > td, - .table > colgroup + thead > tr:first-child > td, - .table > thead:first-child > tr:first-child > td { - border-top: 0; - } - - .table > tbody + tbody { - border-top: 2px solid #dddddd; - } - - .table .table { - background-color: #333333; - } - -.table-condensed > thead > tr > th, -.table-condensed > tbody > tr > th, -.table-condensed > tfoot > tr > th, -.table-condensed > thead > tr > td, -.table-condensed > tbody > tr > td, -.table-condensed > tfoot > tr > td { - padding: 5px; -} - -.table-bordered { - border: 1px solid #dddddd; -} - - .table-bordered > thead > tr > th, - .table-bordered > tbody > tr > th, - .table-bordered > tfoot > tr > th, - .table-bordered > thead > tr > td, - .table-bordered > tbody > tr > td, - .table-bordered > tfoot > tr > td { - border: 1px solid #dddddd; - } - - .table-bordered > thead > tr > th, - .table-bordered > thead > tr > td { - border-bottom-width: 2px; - } - -.table-striped > tbody > tr:nth-child(odd) > td, -.table-striped > tbody > tr:nth-child(odd) > th { - background-color: #f9f9f9; -} - -.table-hover > tbody > tr:hover > td, -.table-hover > tbody > tr:hover > th { - background-color: #f5f5f5; -} - -table col[class*="col-"] { - position: static; - float: none; - display: table-column; -} - -table td[class*="col-"], -table th[class*="col-"] { - position: static; - float: none; - display: table-cell; -} - -.table > thead > tr > td.active, -.table > tbody > tr > td.active, -.table > tfoot > tr > td.active, -.table > thead > tr > th.active, -.table > tbody > tr > th.active, -.table > tfoot > tr > th.active, -.table > thead > tr.active > td, -.table > tbody > tr.active > td, -.table > tfoot > tr.active > td, -.table > thead > tr.active > th, -.table > tbody > tr.active > th, -.table > tfoot > tr.active > th { - background-color: #f5f5f5; -} - -.table-hover > tbody > tr > td.active:hover, -.table-hover > tbody > tr > th.active:hover, -.table-hover > tbody > tr.active:hover > td, -.table-hover > tbody > tr:hover > .active, -.table-hover > tbody > tr.active:hover > th { - background-color: #e8e8e8; -} - -.table > thead > tr > td.success, -.table > tbody > tr > td.success, -.table > tfoot > tr > td.success, -.table > thead > tr > th.success, -.table > tbody > tr > th.success, -.table > tfoot > tr > th.success, -.table > thead > tr.success > td, -.table > tbody > tr.success > td, -.table > tfoot > tr.success > td, -.table > thead > tr.success > th, -.table > tbody > tr.success > th, -.table > tfoot > tr.success > th { - background-color: #d3e5cf; -} - -.table-hover > tbody > tr > td.success:hover, -.table-hover > tbody > tr > th.success:hover, -.table-hover > tbody > tr.success:hover > td, -.table-hover > tbody > tr:hover > .success, -.table-hover > tbody > tr.success:hover > th { - background-color: #c4dcbe; -} - -.table > thead > tr > td.info, -.table > tbody > tr > td.info, -.table > tfoot > tr > td.info, -.table > thead > tr > th.info, -.table > tbody > tr > th.info, -.table > tfoot > tr > th.info, -.table > thead > tr.info > td, -.table > tbody > tr.info > td, -.table > tfoot > tr.info > td, -.table > thead > tr.info > th, -.table > tbody > tr.info > th, -.table > tfoot > tr.info > th { - background-color: #daebf2; -} - -.table-hover > tbody > tr > td.info:hover, -.table-hover > tbody > tr > th.info:hover, -.table-hover > tbody > tr.info:hover > td, -.table-hover > tbody > tr:hover > .info, -.table-hover > tbody > tr.info:hover > th { - background-color: #c7e1eb; -} - -.table > thead > tr > td.warning, -.table > tbody > tr > td.warning, -.table > tfoot > tr > td.warning, -.table > thead > tr > th.warning, -.table > tbody > tr > th.warning, -.table > tfoot > tr > th.warning, -.table > thead > tr.warning > td, -.table > tbody > tr.warning > td, -.table > tfoot > tr.warning > td, -.table > thead > tr.warning > th, -.table > tbody > tr.warning > th, -.table > tfoot > tr.warning > th { - background-color: #fcf8e3; -} - -.table-hover > tbody > tr > td.warning:hover, -.table-hover > tbody > tr > th.warning:hover, -.table-hover > tbody > tr.warning:hover > td, -.table-hover > tbody > tr:hover > .warning, -.table-hover > tbody > tr.warning:hover > th { - background-color: #faf2cc; -} - -.table > thead > tr > td.danger, -.table > tbody > tr > td.danger, -.table > tfoot > tr > td.danger, -.table > thead > tr > th.danger, -.table > tbody > tr > th.danger, -.table > tfoot > tr > th.danger, -.table > thead > tr.danger > td, -.table > tbody > tr.danger > td, -.table > tfoot > tr.danger > td, -.table > thead > tr.danger > th, -.table > tbody > tr.danger > th, -.table > tfoot > tr.danger > th { - background-color: #f0dcd8; -} - -.table-hover > tbody > tr > td.danger:hover, -.table-hover > tbody > tr > th.danger:hover, -.table-hover > tbody > tr.danger:hover > td, -.table-hover > tbody > tr:hover > .danger, -.table-hover > tbody > tr.danger:hover > th { - background-color: #e9cbc6; -} - -@media screen and (max-width: 767px) { - .table-responsive { - width: 100%; - margin-bottom: 16.5px; - overflow-y: hidden; - overflow-x: auto; - -ms-overflow-style: -ms-autohiding-scrollbar; - border: 1px solid #dddddd; - -webkit-overflow-scrolling: touch; - } - - .table-responsive > .table { - margin-bottom: 0; - } - - .table-responsive > .table > thead > tr > th, - .table-responsive > .table > tbody > tr > th, - .table-responsive > .table > tfoot > tr > th, - .table-responsive > .table > thead > tr > td, - .table-responsive > .table > tbody > tr > td, - .table-responsive > .table > tfoot > tr > td { - white-space: nowrap; - } - - .table-responsive > .table-bordered { - border: 0; - } - - .table-responsive > .table-bordered > thead > tr > th:first-child, - .table-responsive > .table-bordered > tbody > tr > th:first-child, - .table-responsive > .table-bordered > tfoot > tr > th:first-child, - .table-responsive > .table-bordered > thead > tr > td:first-child, - .table-responsive > .table-bordered > tbody > tr > td:first-child, - .table-responsive > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; - } - - .table-responsive > .table-bordered > thead > tr > th:last-child, - .table-responsive > .table-bordered > tbody > tr > th:last-child, - .table-responsive > .table-bordered > tfoot > tr > th:last-child, - .table-responsive > .table-bordered > thead > tr > td:last-child, - .table-responsive > .table-bordered > tbody > tr > td:last-child, - .table-responsive > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; - } - - .table-responsive > .table-bordered > tbody > tr:last-child > th, - .table-responsive > .table-bordered > tfoot > tr:last-child > th, - .table-responsive > .table-bordered > tbody > tr:last-child > td, - .table-responsive > .table-bordered > tfoot > tr:last-child > td { - border-bottom: 0; - } -} - -fieldset { - padding: 0; - margin: 0; - border: 0; - min-width: 0; -} - -legend { - display: block; - width: 100%; - padding: 0; - margin-bottom: 22px; - font-size: 24px; - line-height: inherit; - color: #333333; - border: 0; - border-bottom: 1px solid #e5e5e5; -} - -label { - display: inline-block; - max-width: 100%; - margin-bottom: 5px; - font-weight: bold; -} - -input[type="search"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -input[type="radio"], -input[type="checkbox"] { - margin: 4px 0 0; - margin-top: 1px \9; - line-height: normal; -} - -input[type="file"] { - display: block; -} - -input[type="range"] { - display: block; - width: 100%; -} - -select[multiple], -select[size] { - height: auto; -} - -input[type="file"]:focus, -input[type="radio"]:focus, -input[type="checkbox"]:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} - -output { - display: block; - padding-top: 7px; - font-size: 16px; - line-height: 1.42857143; - color: #4d4d4d; -} - -.form-control { - display: block; - width: 100%; - height: 36px; - padding: 6px 12px; - font-size: 16px; - line-height: 1.42857143; - color: #4d4d4d; - background-color: #ffffff; - background-image: none; - border: 1px solid #cccccc; - border-radius: 1px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -} - - .form-control:focus { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); - } - - .form-control::-moz-placeholder { - color: #666666; - opacity: 1; - } - - .form-control:-ms-input-placeholder { - color: #666666; - } - - .form-control::-webkit-input-placeholder { - color: #666666; - } - - .form-control[disabled], - .form-control[readonly], - fieldset[disabled] .form-control { - cursor: not-allowed; - background-color: #cccccc; - opacity: 1; - } - -textarea.form-control { - height: auto; -} - -input[type="search"] { - -webkit-appearance: none; -} - -input[type="date"], -input[type="time"], -input[type="datetime-local"], -input[type="month"] { - line-height: 36px; - line-height: 1.42857143 \0; -} - - input[type="date"].input-sm, - input[type="time"].input-sm, - input[type="datetime-local"].input-sm, - input[type="month"].input-sm { - line-height: 33px; - } - - input[type="date"].input-lg, - input[type="time"].input-lg, - input[type="datetime-local"].input-lg, - input[type="month"].input-lg { - line-height: 49px; - } - -.form-group { - margin-bottom: 15px; -} - -.radio, -.checkbox { - position: relative; - display: block; - min-height: 22px; - margin-top: 10px; - margin-bottom: 10px; -} - - .radio label, - .checkbox label { - padding-left: 20px; - margin-bottom: 0; - font-weight: normal; - cursor: pointer; - } - - .radio input[type="radio"], - .radio-inline input[type="radio"], - .checkbox input[type="checkbox"], - .checkbox-inline input[type="checkbox"] { - position: absolute; - margin-left: -20px; - margin-top: 4px \9; - } - - .radio + .radio, - .checkbox + .checkbox { - margin-top: -5px; - } - -.radio-inline, -.checkbox-inline { - display: inline-block; - padding-left: 20px; - margin-bottom: 0; - vertical-align: middle; - font-weight: normal; - cursor: pointer; -} - - .radio-inline + .radio-inline, - .checkbox-inline + .checkbox-inline { - margin-top: 0; - margin-left: 10px; - } - -input[type="radio"][disabled], -input[type="checkbox"][disabled], -input[type="radio"].disabled, -input[type="checkbox"].disabled, -fieldset[disabled] input[type="radio"], -fieldset[disabled] input[type="checkbox"] { - cursor: not-allowed; -} - -.radio-inline.disabled, -.checkbox-inline.disabled, -fieldset[disabled] .radio-inline, -fieldset[disabled] .checkbox-inline { - cursor: not-allowed; -} - -.radio.disabled label, -.checkbox.disabled label, -fieldset[disabled] .radio label, -fieldset[disabled] .checkbox label { - cursor: not-allowed; -} - -.form-control-static { - padding-top: 7px; - padding-bottom: 7px; - margin-bottom: 0; -} - - .form-control-static.input-lg, - .form-control-static.input-sm { - padding-left: 0; - padding-right: 0; - } - -.input-sm, -.form-horizontal .form-group-sm .form-control { - height: 33px; - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; -} - -select.input-sm { - height: 33px; - line-height: 33px; -} - -textarea.input-sm, -select[multiple].input-sm { - height: auto; -} - -.input-lg, -.form-horizontal .form-group-lg .form-control { - height: 49px; - padding: 10px 16px; - font-size: 20px; - line-height: 1.33; - border-radius: 2px; -} - -select.input-lg { - height: 49px; - line-height: 49px; -} - -textarea.input-lg, -select[multiple].input-lg { - height: auto; -} - -.has-feedback { - position: relative; -} - - .has-feedback .form-control { - padding-right: 45px; - } - -.form-control-feedback { - position: absolute; - top: 27px; - right: 0; - z-index: 2; - display: block; - width: 36px; - height: 36px; - line-height: 36px; - text-align: center; -} - -.input-lg + .form-control-feedback { - width: 49px; - height: 49px; - line-height: 49px; -} - -.input-sm + .form-control-feedback { - width: 33px; - height: 33px; - line-height: 33px; -} - -.has-success .help-block, -.has-success .control-label, -.has-success .radio, -.has-success .checkbox, -.has-success .radio-inline, -.has-success .checkbox-inline { - color: #125204; -} - -.has-success .form-control { - border-color: #125204; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} - - .has-success .form-control:focus { - border-color: #072102; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #28b309; - } - -.has-success .input-group-addon { - color: #125204; - border-color: #125204; - background-color: #d3e5cf; -} - -.has-success .form-control-feedback { - color: #125204; -} - -.has-warning .help-block, -.has-warning .control-label, -.has-warning .radio, -.has-warning .checkbox, -.has-warning .radio-inline, -.has-warning .checkbox-inline { - color: #8a6d3b; -} - -.has-warning .form-control { - border-color: #8a6d3b; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} - - .has-warning .form-control:focus { - border-color: #66512c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; - } - -.has-warning .input-group-addon { - color: #8a6d3b; - border-color: #8a6d3b; - background-color: #fcf8e3; -} - -.has-warning .form-control-feedback { - color: #8a6d3b; -} - -.has-error .help-block, -.has-error .control-label, -.has-error .radio, -.has-error .checkbox, -.has-error .radio-inline, -.has-error .checkbox-inline { - color: #d63510; -} - -.has-error .form-control { - border-color: #d63510; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} - - .has-error .form-control:focus { - border-color: #a6290c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f37558; - } - -.has-error .input-group-addon { - color: #d63510; - border-color: #d63510; - background-color: #f0dcd8; -} - -.has-error .form-control-feedback { - color: #d63510; -} - -.has-feedback label.sr-only ~ .form-control-feedback { - top: 0; -} - -.help-block { - display: block; - margin-top: 5px; - margin-bottom: 10px; - color: #ffffff; -} - -@media (min-width: 768px) { - .form-inline .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; - } - - .form-inline .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - - .form-inline .input-group { - display: inline-table; - vertical-align: middle; - } - - .form-inline .input-group .input-group-addon, - .form-inline .input-group .input-group-btn, - .form-inline .input-group .form-control { - width: auto; - } - - .form-inline .input-group > .form-control { - width: 100%; - } - - .form-inline .control-label { - margin-bottom: 0; - vertical-align: middle; - } - - .form-inline .radio, - .form-inline .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; - } - - .form-inline .radio label, - .form-inline .checkbox label { - padding-left: 0; - } - - .form-inline .radio input[type="radio"], - .form-inline .checkbox input[type="checkbox"] { - position: relative; - margin-left: 0; - } - - .form-inline .has-feedback .form-control-feedback { - top: 0; - } -} - -.form-horizontal .radio, -.form-horizontal .checkbox, -.form-horizontal .radio-inline, -.form-horizontal .checkbox-inline { - margin-top: 0; - margin-bottom: 0; - padding-top: 7px; -} - -.form-horizontal .radio, -.form-horizontal .checkbox { - min-height: 29px; -} - -.form-horizontal .form-group { - margin-left: -15px; - margin-right: -15px; -} - -@media (min-width: 768px) { - .form-horizontal .control-label { - text-align: right; - margin-bottom: 0; - padding-top: 7px; - } -} - -.form-horizontal .has-feedback .form-control-feedback { - top: 0; - right: 15px; -} - -@media (min-width: 768px) { - .form-horizontal .form-group-lg .control-label { - padding-top: 14.3px; - } -} - -@media (min-width: 768px) { - .form-horizontal .form-group-sm .control-label { - padding-top: 6px; - } -} - -.btn { - display: inline-block; - margin-bottom: 0; - font-weight: normal; - text-align: center; - vertical-align: middle; - cursor: pointer; - background-image: none; - border: 1px solid transparent; - white-space: nowrap; - padding: 6px 12px; - font-size: 16px; - line-height: 1.42857143; - border-radius: 1px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - - .btn:focus, - .btn:active:focus, - .btn.active:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; - } - - .btn:hover, - .btn:focus { - color: #ffffff; - text-decoration: none; - } - - .btn:active, - .btn.active { - outline: 0; - background-image: none; - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - } - - .btn.disabled, - .btn[disabled], - fieldset[disabled] .btn { - cursor: not-allowed; - pointer-events: none; - opacity: 0.65; - filter: alpha(opacity=65); - -webkit-box-shadow: none; - box-shadow: none; - } - -.btn-default { - color: #ffffff; - background-color: #959595; - border-color: #959595; -} - - .btn-default:hover, - .btn-default:focus, - .btn-default:active, - .btn-default.active, - .open > .dropdown-toggle.btn-default { - color: #ffffff; - background-color: #7c7c7c; - border-color: #767676; - } - - .btn-default:active, - .btn-default.active, - .open > .dropdown-toggle.btn-default { - background-image: none; - } - - .btn-default.disabled, - .btn-default[disabled], - fieldset[disabled] .btn-default, - .btn-default.disabled:hover, - .btn-default[disabled]:hover, - fieldset[disabled] .btn-default:hover, - .btn-default.disabled:focus, - .btn-default[disabled]:focus, - fieldset[disabled] .btn-default:focus, - .btn-default.disabled:active, - .btn-default[disabled]:active, - fieldset[disabled] .btn-default:active, - .btn-default.disabled.active, - .btn-default[disabled].active, - fieldset[disabled] .btn-default.active { - background-color: #959595; - border-color: #959595; - } - - .btn-default .badge { - color: #959595; - background-color: #ffffff; - } - -.btn-primary { - color: #ffffff; - background-color: #0a94d4; - border-color: #0a94d4; -} - - .btn-primary:hover, - .btn-primary:focus, - .btn-primary:active, - .btn-primary.active, - .open > .dropdown-toggle.btn-primary { - color: #ffffff; - background-color: #0872a3; - border-color: #076b9a; - } - - .btn-primary:active, - .btn-primary.active, - .open > .dropdown-toggle.btn-primary { - background-image: none; - } - - .btn-primary.disabled, - .btn-primary[disabled], - fieldset[disabled] .btn-primary, - .btn-primary.disabled:hover, - .btn-primary[disabled]:hover, - fieldset[disabled] .btn-primary:hover, - .btn-primary.disabled:focus, - .btn-primary[disabled]:focus, - fieldset[disabled] .btn-primary:focus, - .btn-primary.disabled:active, - .btn-primary[disabled]:active, - fieldset[disabled] .btn-primary:active, - .btn-primary.disabled.active, - .btn-primary[disabled].active, - fieldset[disabled] .btn-primary.active { - background-color: #0a94d4; - border-color: #0a94d4; - } - - .btn-primary .badge { - color: #0a94d4; - background-color: #ffffff; - } - -.btn-success { - color: #ffffff; - background-color: #28b309; - border-color: #28b309; -} - - .btn-success:hover, - .btn-success:focus, - .btn-success:active, - .btn-success.active, - .open > .dropdown-toggle.btn-success { - color: #ffffff; - background-color: #1d8207; - border-color: #1b7906; - } - - .btn-success:active, - .btn-success.active, - .open > .dropdown-toggle.btn-success { - background-image: none; - } - - .btn-success.disabled, - .btn-success[disabled], - fieldset[disabled] .btn-success, - .btn-success.disabled:hover, - .btn-success[disabled]:hover, - fieldset[disabled] .btn-success:hover, - .btn-success.disabled:focus, - .btn-success[disabled]:focus, - fieldset[disabled] .btn-success:focus, - .btn-success.disabled:active, - .btn-success[disabled]:active, - fieldset[disabled] .btn-success:active, - .btn-success.disabled.active, - .btn-success[disabled].active, - fieldset[disabled] .btn-success.active { - background-color: #28b309; - border-color: #28b309; - } - - .btn-success .badge { - color: #28b309; - background-color: #ffffff; - } - -.btn-info { - color: #ffffff; - background-color: #0a94d4; - border-color: #0a94d4; -} - - .btn-info:hover, - .btn-info:focus, - .btn-info:active, - .btn-info.active, - .open > .dropdown-toggle.btn-info { - color: #ffffff; - background-color: #0872a3; - border-color: #076b9a; - } - - .btn-info:active, - .btn-info.active, - .open > .dropdown-toggle.btn-info { - background-image: none; - } - - .btn-info.disabled, - .btn-info[disabled], - fieldset[disabled] .btn-info, - .btn-info.disabled:hover, - .btn-info[disabled]:hover, - fieldset[disabled] .btn-info:hover, - .btn-info.disabled:focus, - .btn-info[disabled]:focus, - fieldset[disabled] .btn-info:focus, - .btn-info.disabled:active, - .btn-info[disabled]:active, - fieldset[disabled] .btn-info:active, - .btn-info.disabled.active, - .btn-info[disabled].active, - fieldset[disabled] .btn-info.active { - background-color: #0a94d4; - border-color: #0a94d4; - } - - .btn-info .badge { - color: #0a94d4; - background-color: #ffffff; - } - -.btn-warning { - color: #ffffff; - background-color: #f0ad20; - border-color: #f0ad20; -} - - .btn-warning:hover, - .btn-warning:focus, - .btn-warning:active, - .btn-warning.active, - .open > .dropdown-toggle.btn-warning { - color: #ffffff; - background-color: #cf910e; - border-color: #c68a0d; - } - - .btn-warning:active, - .btn-warning.active, - .open > .dropdown-toggle.btn-warning { - background-image: none; - } - - .btn-warning.disabled, - .btn-warning[disabled], - fieldset[disabled] .btn-warning, - .btn-warning.disabled:hover, - .btn-warning[disabled]:hover, - fieldset[disabled] .btn-warning:hover, - .btn-warning.disabled:focus, - .btn-warning[disabled]:focus, - fieldset[disabled] .btn-warning:focus, - .btn-warning.disabled:active, - .btn-warning[disabled]:active, - fieldset[disabled] .btn-warning:active, - .btn-warning.disabled.active, - .btn-warning[disabled].active, - fieldset[disabled] .btn-warning.active { - background-color: #f0ad20; - border-color: #f0ad20; - } - - .btn-warning .badge { - color: #f0ad20; - background-color: #ffffff; - } - -.btn-danger { - color: #ffffff; - background-color: #ef4a24; - border-color: #ef4a24; -} - - .btn-danger:hover, - .btn-danger:focus, - .btn-danger:active, - .btn-danger.active, - .open > .dropdown-toggle.btn-danger { - color: #ffffff; - background-color: #d1330f; - border-color: #c7310f; - } - - .btn-danger:active, - .btn-danger.active, - .open > .dropdown-toggle.btn-danger { - background-image: none; - } - - .btn-danger.disabled, - .btn-danger[disabled], - fieldset[disabled] .btn-danger, - .btn-danger.disabled:hover, - .btn-danger[disabled]:hover, - fieldset[disabled] .btn-danger:hover, - .btn-danger.disabled:focus, - .btn-danger[disabled]:focus, - fieldset[disabled] .btn-danger:focus, - .btn-danger.disabled:active, - .btn-danger[disabled]:active, - fieldset[disabled] .btn-danger:active, - .btn-danger.disabled.active, - .btn-danger[disabled].active, - fieldset[disabled] .btn-danger.active { - background-color: #ef4a24; - border-color: #ef4a24; - } - - .btn-danger .badge { - color: #ef4a24; - background-color: #ffffff; - } - -.btn-link { - color: #0a94d4; - font-weight: normal; - cursor: pointer; - border-radius: 0; -} - - .btn-link, - .btn-link:active, - .btn-link[disabled], - fieldset[disabled] .btn-link { - background-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .btn-link, - .btn-link:hover, - .btn-link:focus, - .btn-link:active { - border-color: transparent; - } - - .btn-link:hover, - .btn-link:focus { - color: #07618b; - text-decoration: underline; - background-color: transparent; - } - - .btn-link[disabled]:hover, - fieldset[disabled] .btn-link:hover, - .btn-link[disabled]:focus, - fieldset[disabled] .btn-link:focus { - color: #666666; - text-decoration: none; - } - -.btn-lg, -.btn-group-lg > .btn { - padding: 10px 16px; - font-size: 20px; - line-height: 1.33; - border-radius: 2px; -} - -.btn-sm, -.btn-group-sm > .btn { - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; -} - -.btn-xs, -.btn-group-xs > .btn { - padding: 1px 5px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; -} - -.btn-block { - display: block; - width: 100%; -} - - .btn-block + .btn-block { - margin-top: 5px; - } - -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} - -.fade { - opacity: 0; - -webkit-transition: opacity 0.15s linear; - -o-transition: opacity 0.15s linear; - transition: opacity 0.15s linear; -} - - .fade.in { - opacity: 1; - } - -.collapse { - display: none; -} - - .collapse.in { - display: block; - } - -tr.collapse.in { - display: table-row; -} - -tbody.collapse.in { - display: table-row-group; -} - -.collapsing { - position: relative; - height: 0; - overflow: hidden; - -webkit-transition: height 0.35s ease; - -o-transition: height 0.35s ease; - transition: height 0.35s ease; -} - -.caret { - display: inline-block; - width: 0; - height: 0; - margin-left: 2px; - vertical-align: middle; - border-top: 4px solid; - border-right: 4px solid transparent; - border-left: 4px solid transparent; -} - -.dropdown { - position: relative; -} - -.dropdown-toggle:focus { - outline: 0; -} - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; - list-style: none; - font-size: 16px; - text-align: left; - background-color: #ffffff; - border: 1px solid #cccccc; - border: 1px solid rgba(0, 0, 0, 0.15); - border-radius: 1px; - -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); - box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); - background-clip: padding-box; -} - - .dropdown-menu.pull-right { - right: 0; - left: auto; - } - - .dropdown-menu .divider { - height: 1px; - margin: 10px 0; - overflow: hidden; - background-color: #e5e5e5; - } - - .dropdown-menu > li > a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: 1.42857143; - color: #333333; - white-space: nowrap; - } - - .dropdown-menu > li > a:hover, - .dropdown-menu > li > a:focus { - text-decoration: none; - color: #262626; - background-color: #f5f5f5; - } - - .dropdown-menu > .active > a, - .dropdown-menu > .active > a:hover, - .dropdown-menu > .active > a:focus { - color: #ffffff; - text-decoration: none; - outline: 0; - background-color: #4d4d4d; - } - - .dropdown-menu > .disabled > a, - .dropdown-menu > .disabled > a:hover, - .dropdown-menu > .disabled > a:focus { - color: #666666; - } - - .dropdown-menu > .disabled > a:hover, - .dropdown-menu > .disabled > a:focus { - text-decoration: none; - background-color: transparent; - background-image: none; - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - cursor: not-allowed; - } - -.open > .dropdown-menu { - display: block; -} - -.open > a { - outline: 0; -} - -.dropdown-menu-right { - left: auto; - right: 0; -} - -.dropdown-menu-left { - left: 0; - right: auto; -} - -.dropdown-header { - display: block; - padding: 3px 20px; - font-size: 14px; - line-height: 1.42857143; - color: #666666; - white-space: nowrap; -} - -.dropdown-backdrop { - position: fixed; - left: 0; - right: 0; - bottom: 0; - top: 0; - z-index: 990; -} - -.pull-right > .dropdown-menu { - right: 0; - left: auto; -} - -.dropup .caret, -.navbar-fixed-bottom .dropdown .caret { - border-top: 0; - border-bottom: 4px solid; - content: ""; -} - -.dropup .dropdown-menu, -.navbar-fixed-bottom .dropdown .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 1px; -} - -@media (min-width: 768px) { - .navbar-right .dropdown-menu { - left: auto; - right: 0; - } - - .navbar-right .dropdown-menu-left { - left: 0; - right: auto; - } -} - -.btn-group, -.btn-group-vertical { - position: relative; - display: inline-block; - vertical-align: middle; -} - - .btn-group > .btn, - .btn-group-vertical > .btn { - position: relative; - float: left; - } - - .btn-group > .btn:hover, - .btn-group-vertical > .btn:hover, - .btn-group > .btn:focus, - .btn-group-vertical > .btn:focus, - .btn-group > .btn:active, - .btn-group-vertical > .btn:active, - .btn-group > .btn.active, - .btn-group-vertical > .btn.active { - z-index: 2; - } - - .btn-group > .btn:focus, - .btn-group-vertical > .btn:focus { - outline: 0; - } - - .btn-group .btn + .btn, - .btn-group .btn + .btn-group, - .btn-group .btn-group + .btn, - .btn-group .btn-group + .btn-group { - margin-left: -1px; - } - -.btn-toolbar { - margin-left: -5px; -} - - .btn-toolbar .btn-group, - .btn-toolbar .input-group { - float: left; - } - - .btn-toolbar > .btn, - .btn-toolbar > .btn-group, - .btn-toolbar > .input-group { - margin-left: 5px; - } - -.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { - border-radius: 0; -} - -.btn-group > .btn:first-child { - margin-left: 0; -} - - .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - -.btn-group > .btn:last-child:not(:first-child), -.btn-group > .dropdown-toggle:not(:first-child) { - border-bottom-left-radius: 0; - border-top-left-radius: 0; -} - -.btn-group > .btn-group { - float: left; -} - - .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; - } - - .btn-group > .btn-group:first-child > .btn:last-child, - .btn-group > .btn-group:first-child > .dropdown-toggle { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - - .btn-group > .btn-group:last-child > .btn:first-child { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - -.btn-group .dropdown-toggle:active, -.btn-group.open .dropdown-toggle { - outline: 0; -} - -.btn-group > .btn + .dropdown-toggle { - padding-left: 8px; - padding-right: 8px; -} - -.btn-group > .btn-lg + .dropdown-toggle { - padding-left: 12px; - padding-right: 12px; -} - -.btn-group.open .dropdown-toggle { - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); -} - - .btn-group.open .dropdown-toggle.btn-link { - -webkit-box-shadow: none; - box-shadow: none; - } - -.btn .caret { - margin-left: 0; -} - -.btn-lg .caret { - border-width: 5px 5px 0; - border-bottom-width: 0; -} - -.dropup .btn-lg .caret { - border-width: 0 5px 5px; -} - -.btn-group-vertical > .btn, -.btn-group-vertical > .btn-group, -.btn-group-vertical > .btn-group > .btn { - display: block; - float: none; - width: 100%; - max-width: 100%; -} - - .btn-group-vertical > .btn-group > .btn { - float: none; - } - - .btn-group-vertical > .btn + .btn, - .btn-group-vertical > .btn + .btn-group, - .btn-group-vertical > .btn-group + .btn, - .btn-group-vertical > .btn-group + .btn-group { - margin-top: -1px; - margin-left: 0; - } - - .btn-group-vertical > .btn:not(:first-child):not(:last-child) { - border-radius: 0; - } - - .btn-group-vertical > .btn:first-child:not(:last-child) { - border-top-right-radius: 1px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; - } - - .btn-group-vertical > .btn:last-child:not(:first-child) { - border-bottom-left-radius: 1px; - border-top-right-radius: 0; - border-top-left-radius: 0; - } - - .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; - } - - .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, - .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; - } - - .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { - border-top-right-radius: 0; - border-top-left-radius: 0; - } - -.btn-group-justified { - display: table; - width: 100%; - table-layout: fixed; - border-collapse: separate; -} - - .btn-group-justified > .btn, - .btn-group-justified > .btn-group { - float: none; - display: table-cell; - width: 1%; - } - - .btn-group-justified > .btn-group .btn { - width: 100%; - } - - .btn-group-justified > .btn-group .dropdown-menu { - left: auto; - } - -[data-toggle="buttons"] > .btn > input[type="radio"], -[data-toggle="buttons"] > .btn > input[type="checkbox"] { - position: absolute; - z-index: -1; - opacity: 0; - filter: alpha(opacity=0); -} - -.input-group { - position: relative; - display: table; - border-collapse: separate; -} - - .input-group[class*="col-"] { - float: none; - padding-left: 0; - padding-right: 0; - } - - .input-group .form-control { - position: relative; - z-index: 2; - float: left; - width: 100%; - margin-bottom: 0; - } - -.input-group-lg > .form-control, -.input-group-lg > .input-group-addon, -.input-group-lg > .input-group-btn > .btn { - height: 49px; - padding: 10px 16px; - font-size: 20px; - line-height: 1.33; - border-radius: 2px; -} - -select.input-group-lg > .form-control, -select.input-group-lg > .input-group-addon, -select.input-group-lg > .input-group-btn > .btn { - height: 49px; - line-height: 49px; -} - -textarea.input-group-lg > .form-control, -textarea.input-group-lg > .input-group-addon, -textarea.input-group-lg > .input-group-btn > .btn, -select[multiple].input-group-lg > .form-control, -select[multiple].input-group-lg > .input-group-addon, -select[multiple].input-group-lg > .input-group-btn > .btn { - height: auto; -} - -.input-group-sm > .form-control, -.input-group-sm > .input-group-addon, -.input-group-sm > .input-group-btn > .btn { - height: 33px; - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; -} - -select.input-group-sm > .form-control, -select.input-group-sm > .input-group-addon, -select.input-group-sm > .input-group-btn > .btn { - height: 33px; - line-height: 33px; -} - -textarea.input-group-sm > .form-control, -textarea.input-group-sm > .input-group-addon, -textarea.input-group-sm > .input-group-btn > .btn, -select[multiple].input-group-sm > .form-control, -select[multiple].input-group-sm > .input-group-addon, -select[multiple].input-group-sm > .input-group-btn > .btn { - height: auto; -} - -.input-group-addon, -.input-group-btn, -.input-group .form-control { - display: table-cell; -} - - .input-group-addon:not(:first-child):not(:last-child), - .input-group-btn:not(:first-child):not(:last-child), - .input-group .form-control:not(:first-child):not(:last-child) { - border-radius: 0; - } - -.input-group-addon, -.input-group-btn { - width: 1%; - white-space: nowrap; - vertical-align: middle; -} - -.input-group-addon { - padding: 6px 12px; - font-size: 16px; - font-weight: normal; - line-height: 1; - color: #4d4d4d; - text-align: center; - background-color: #cccccc; - border: 1px solid #cccccc; - border-radius: 1px; -} - - .input-group-addon.input-sm { - padding: 5px 10px; - font-size: 14px; - border-radius: 0; - } - - .input-group-addon.input-lg { - padding: 10px 16px; - font-size: 20px; - border-radius: 2px; - } - - .input-group-addon input[type="radio"], - .input-group-addon input[type="checkbox"] { - margin-top: 0; - } - - .input-group .form-control:first-child, - .input-group-addon:first-child, - .input-group-btn:first-child > .btn, - .input-group-btn:first-child > .btn-group > .btn, - .input-group-btn:first-child > .dropdown-toggle, - .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), - .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - - .input-group-addon:first-child { - border-right: 0; - } - - .input-group .form-control:last-child, - .input-group-addon:last-child, - .input-group-btn:last-child > .btn, - .input-group-btn:last-child > .btn-group > .btn, - .input-group-btn:last-child > .dropdown-toggle, - .input-group-btn:first-child > .btn:not(:first-child), - .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - - .input-group-addon:last-child { - border-left: 0; - } - -.input-group-btn { - position: relative; - font-size: 0; - white-space: nowrap; -} - - .input-group-btn > .btn { - position: relative; - } - - .input-group-btn > .btn + .btn { - margin-left: -1px; - } - - .input-group-btn > .btn:hover, - .input-group-btn > .btn:focus, - .input-group-btn > .btn:active { - z-index: 2; - } - - .input-group-btn:first-child > .btn, - .input-group-btn:first-child > .btn-group { - margin-right: -1px; - } - - .input-group-btn:last-child > .btn, - .input-group-btn:last-child > .btn-group { - margin-left: -1px; - } - -.nav { - margin-bottom: 0; - padding-left: 0; - list-style: none; -} - - .nav > li { - position: relative; - display: block; - } - - .nav > li > a { - position: relative; - display: block; - padding: 5px 5px; - } - - .nav > li > a:hover, - .nav > li > a:focus { - text-decoration: none; - background-color: transparent; - } - - .nav > li.disabled > a { - color: #666666; - } - - .nav > li.disabled > a:hover, - .nav > li.disabled > a:focus { - color: #666666; - text-decoration: none; - background-color: transparent; - cursor: not-allowed; - } - - .nav .open > a, - .nav .open > a:hover, - .nav .open > a:focus { - background-color: transparent; - border-color: #0a94d4; - } - - .nav .nav-divider { - height: 1px; - margin: 10px 0; - overflow: hidden; - background-color: #e5e5e5; - } - - .nav > li > a > img { - max-width: none; - } - -.nav-tabs { - border-bottom: 1px solid #dddddd; -} - - .nav-tabs > li { - float: left; - margin-bottom: -1px; - } - - .nav-tabs > li > a { - margin-right: 2px; - line-height: 1.42857143; - border: 1px solid transparent; - border-radius: 1px 1px 0 0; - } - - .nav-tabs > li > a:hover { - border-color: #cccccc #cccccc #dddddd; - } - - .nav-tabs > li.active > a, - .nav-tabs > li.active > a:hover, - .nav-tabs > li.active > a:focus { - color: #4d4d4d; - background-color: #333333; - border: 1px solid #dddddd; - border-bottom-color: transparent; - cursor: default; - } - - .nav-tabs.nav-justified { - width: 100%; - border-bottom: 0; - } - - .nav-tabs.nav-justified > li { - float: none; - } - - .nav-tabs.nav-justified > li > a { - text-align: center; - margin-bottom: 5px; - } - - .nav-tabs.nav-justified > .dropdown .dropdown-menu { - top: auto; - left: auto; - } - -@media (min-width: 768px) { - .nav-tabs.nav-justified > li { - display: table-cell; - width: 1%; - } - - .nav-tabs.nav-justified > li > a { - margin-bottom: 0; - } -} - -.nav-tabs.nav-justified > li > a { - margin-right: 0; - border-radius: 1px; -} - -.nav-tabs.nav-justified > .active > a, -.nav-tabs.nav-justified > .active > a:hover, -.nav-tabs.nav-justified > .active > a:focus { - border: 1px solid #dddddd; -} - -@media (min-width: 768px) { - .nav-tabs.nav-justified > li > a { - border-bottom: 1px solid #dddddd; - border-radius: 1px 1px 0 0; - } - - .nav-tabs.nav-justified > .active > a, - .nav-tabs.nav-justified > .active > a:hover, - .nav-tabs.nav-justified > .active > a:focus { - border-bottom-color: #333333; - } -} - -.nav-pills > li { - float: left; -} - - .nav-pills > li > a { - border-radius: 1px; - } - - .nav-pills > li + li { - margin-left: 2px; - } - - .nav-pills > li.active > a, - .nav-pills > li.active > a:hover, - .nav-pills > li.active > a:focus { - color: #ffffff; - background-color: #4d4d4d; - } - -.nav-stacked > li { - float: none; -} - - .nav-stacked > li + li { - margin-top: 2px; - margin-left: 0; - } - -.nav-justified { - width: 100%; -} - - .nav-justified > li { - float: none; - } - - .nav-justified > li > a { - text-align: center; - margin-bottom: 5px; - } - - .nav-justified > .dropdown .dropdown-menu { - top: auto; - left: auto; - } - -@media (min-width: 768px) { - .nav-justified > li { - display: table-cell; - width: 1%; - } - - .nav-justified > li > a { - margin-bottom: 0; - } -} - -.nav-tabs-justified { - border-bottom: 0; -} - - .nav-tabs-justified > li > a { - margin-right: 0; - border-radius: 1px; - } - - .nav-tabs-justified > .active > a, - .nav-tabs-justified > .active > a:hover, - .nav-tabs-justified > .active > a:focus { - border: 1px solid #dddddd; - } - -@media (min-width: 768px) { - .nav-tabs-justified > li > a { - border-bottom: 1px solid #dddddd; - border-radius: 1px 1px 0 0; - } - - .nav-tabs-justified > .active > a, - .nav-tabs-justified > .active > a:hover, - .nav-tabs-justified > .active > a:focus { - border-bottom-color: #333333; - } -} - -.tab-content > .tab-pane { - display: none; -} - -.tab-content > .active { - display: block; -} - -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.navbar { - position: relative; - min-height: 50px; - margin-bottom: 22px; - border: 1px solid transparent; -} - -@media (min-width: 768px) { - .navbar { - border-radius: 1px; - } -} - -@media (min-width: 768px) { - .navbar-header { - float: left; - } -} - -.navbar-collapse { - overflow-x: visible; - padding-right: 15px; - padding-left: 15px; - border-top: 1px solid transparent; - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); - -webkit-overflow-scrolling: touch; -} - - .navbar-collapse.in { - overflow-y: auto; - } - -@media (min-width: 768px) { - .navbar-collapse { - width: auto; - border-top: 0; - box-shadow: none; - } - - .navbar-collapse.collapse { - display: block !important; - height: auto !important; - padding-bottom: 0; - overflow: visible !important; - } - - .navbar-collapse.in { - overflow-y: visible; - } - - .navbar-fixed-top .navbar-collapse, - .navbar-static-top .navbar-collapse, - .navbar-fixed-bottom .navbar-collapse { - padding-left: 0; - padding-right: 0; - } -} - -.navbar-fixed-top .navbar-collapse, -.navbar-fixed-bottom .navbar-collapse { - max-height: 340px; -} - -@media (max-width: 480px) and (orientation: landscape) { - .navbar-fixed-top .navbar-collapse, - .navbar-fixed-bottom .navbar-collapse { - max-height: 200px; - } -} - -.container > .navbar-header, -.container-fluid > .navbar-header, -.container > .navbar-collapse, -.container-fluid > .navbar-collapse { - margin-right: -15px; - margin-left: -15px; -} - -@media (min-width: 768px) { - .container > .navbar-header, - .container-fluid > .navbar-header, - .container > .navbar-collapse, - .container-fluid > .navbar-collapse { - margin-right: 0; - margin-left: 0; - } -} - -.navbar-static-top { - z-index: 1000; - border-width: 0 0 1px; -} - -@media (min-width: 768px) { - .navbar-static-top { - border-radius: 0; - } -} - -.navbar-fixed-top, -.navbar-fixed-bottom { - position: fixed; - right: 0; - left: 0; - z-index: 1030; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} - -@media (min-width: 768px) { - .navbar-fixed-top, - .navbar-fixed-bottom { - border-radius: 0; - } -} - -.navbar-fixed-top { - top: 0; - border-width: 0 0 1px; -} - -.navbar-fixed-bottom { - bottom: 0; - margin-bottom: 0; - border-width: 1px 0 0; -} - -.navbar-brand { - float: left; - padding: 14px 15px; - font-size: 20px; - line-height: 22px; - height: 50px; -} - - .navbar-brand:hover, - .navbar-brand:focus { - text-decoration: none; - } - -@media (min-width: 768px) { - .navbar > .container .navbar-brand, - .navbar > .container-fluid .navbar-brand { - margin-left: -15px; - } -} - -.navbar-toggle { - position: relative; - float: right; - margin-right: 15px; - padding: 9px 10px; - margin-top: 8px; - margin-bottom: 8px; - background-color: transparent; - background-image: none; - border: 1px solid transparent; - border-radius: 1px; -} - - .navbar-toggle:focus { - outline: 0; - } - - .navbar-toggle .icon-bar { - display: block; - width: 22px; - height: 2px; - border-radius: 1px; - } - - .navbar-toggle .icon-bar + .icon-bar { - margin-top: 4px; - } - -@media (min-width: 768px) { - .navbar-toggle { - display: none; - } -} - -.navbar-nav { - margin: 7px -15px; -} - - .navbar-nav > li > a { - padding-top: 10px; - padding-bottom: 10px; - line-height: 22px; - } - -@media (max-width: 767px) { - .navbar-nav .open .dropdown-menu { - position: static; - float: none; - width: auto; - margin-top: 0; - background-color: transparent; - border: 0; - box-shadow: none; - } - - .navbar-nav .open .dropdown-menu > li > a, - .navbar-nav .open .dropdown-menu .dropdown-header { - padding: 5px 15px 5px 25px; - } - - .navbar-nav .open .dropdown-menu > li > a { - line-height: 22px; - } - - .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-nav .open .dropdown-menu > li > a:focus { - background-image: none; - } -} - -@media (min-width: 768px) { - .navbar-nav { - float: left; - margin: 0; - } - - .navbar-nav > li { - float: left; - } - - .navbar-nav > li > a { - padding-top: 14px; - padding-bottom: 14px; - } - - .navbar-nav.navbar-right:last-child { - margin-right: -15px; - } -} - -@media (min-width: 768px) { - .navbar-left { - float: left !important; - } - - .navbar-right { - float: right !important; - } -} - -.navbar-form { - margin-left: -15px; - margin-right: -15px; - padding: 10px 15px; - border-top: 1px solid transparent; - border-bottom: 1px solid transparent; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); - margin-top: 7px; - margin-bottom: 7px; -} - -@media (min-width: 768px) { - .navbar-form .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; - } - - .navbar-form .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - - .navbar-form .input-group { - display: inline-table; - vertical-align: middle; - } - - .navbar-form .input-group .input-group-addon, - .navbar-form .input-group .input-group-btn, - .navbar-form .input-group .form-control { - width: auto; - } - - .navbar-form .input-group > .form-control { - width: 100%; - } - - .navbar-form .control-label { - margin-bottom: 0; - vertical-align: middle; - } - - .navbar-form .radio, - .navbar-form .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; - } - - .navbar-form .radio label, - .navbar-form .checkbox label { - padding-left: 0; - } - - .navbar-form .radio input[type="radio"], - .navbar-form .checkbox input[type="checkbox"] { - position: relative; - margin-left: 0; - } - - .navbar-form .has-feedback .form-control-feedback { - top: 0; - } -} - -@media (max-width: 767px) { - .navbar-form .form-group { - margin-bottom: 5px; - } -} - -@media (min-width: 768px) { - .navbar-form { - width: auto; - border: 0; - margin-left: 0; - margin-right: 0; - padding-top: 0; - padding-bottom: 0; - -webkit-box-shadow: none; - box-shadow: none; - } - - .navbar-form.navbar-right:last-child { - margin-right: -15px; - } -} - -.navbar-nav > li > .dropdown-menu { - margin-top: 0; - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} - -.navbar-btn { - margin-top: 7px; - margin-bottom: 7px; -} - - .navbar-btn.btn-sm { - margin-top: 8.5px; - margin-bottom: 8.5px; - } - - .navbar-btn.btn-xs { - margin-top: 14px; - margin-bottom: 14px; - } - -.navbar-text { - margin-top: 14px; - margin-bottom: 14px; -} - -@media (min-width: 768px) { - .navbar-text { - float: left; - margin-left: 15px; - margin-right: 15px; - } - - .navbar-text.navbar-right:last-child { - margin-right: 0; - } -} - -.navbar-default { - background-color: #f8f8f8; - border-color: #e7e7e7; -} - - .navbar-default .navbar-brand { - color: #777777; - } - - .navbar-default .navbar-brand:hover, - .navbar-default .navbar-brand:focus { - color: #5e5e5e; - background-color: transparent; - } - - .navbar-default .navbar-text { - color: #777777; - } - - .navbar-default .navbar-nav > li > a { - color: #777777; - } - - .navbar-default .navbar-nav > li > a:hover, - .navbar-default .navbar-nav > li > a:focus { - color: #333333; - background-color: transparent; - } - - .navbar-default .navbar-nav > .active > a, - .navbar-default .navbar-nav > .active > a:hover, - .navbar-default .navbar-nav > .active > a:focus { - color: #555555; - background-color: #e7e7e7; - } - - .navbar-default .navbar-nav > .disabled > a, - .navbar-default .navbar-nav > .disabled > a:hover, - .navbar-default .navbar-nav > .disabled > a:focus { - color: #cccccc; - background-color: transparent; - } - - .navbar-default .navbar-toggle { - border-color: #dddddd; - } - - .navbar-default .navbar-toggle:hover, - .navbar-default .navbar-toggle:focus { - background-color: #dddddd; - } - - .navbar-default .navbar-toggle .icon-bar { - background-color: #888888; - } - - .navbar-default .navbar-collapse, - .navbar-default .navbar-form { - border-color: #e7e7e7; - } - - .navbar-default .navbar-nav > .open > a, - .navbar-default .navbar-nav > .open > a:hover, - .navbar-default .navbar-nav > .open > a:focus { - background-color: #e7e7e7; - color: #555555; - } - -@media (max-width: 767px) { - .navbar-default .navbar-nav .open .dropdown-menu > li > a { - color: #777777; - } - - .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { - color: #333333; - background-color: transparent; - } - - .navbar-default .navbar-nav .open .dropdown-menu > .active > a, - .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #555555; - background-color: #e7e7e7; - } - - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #cccccc; - background-color: transparent; - } -} - -.navbar-default .navbar-link { - color: #777777; -} - - .navbar-default .navbar-link:hover { - color: #333333; - } - -.navbar-default .btn-link { - color: #777777; -} - - .navbar-default .btn-link:hover, - .navbar-default .btn-link:focus { - color: #333333; - } - - .navbar-default .btn-link[disabled]:hover, - fieldset[disabled] .navbar-default .btn-link:hover, - .navbar-default .btn-link[disabled]:focus, - fieldset[disabled] .navbar-default .btn-link:focus { - color: #cccccc; - } - -.navbar-inverse { - background-color: #222222; - border-color: #080808; -} - - .navbar-inverse .navbar-brand { - color: #666666; - } - - .navbar-inverse .navbar-brand:hover, - .navbar-inverse .navbar-brand:focus { - color: #ffffff; - background-color: transparent; - } - - .navbar-inverse .navbar-text { - color: #666666; - } - - .navbar-inverse .navbar-nav > li > a { - color: #666666; - } - - .navbar-inverse .navbar-nav > li > a:hover, - .navbar-inverse .navbar-nav > li > a:focus { - color: #ffffff; - background-color: transparent; - } - - .navbar-inverse .navbar-nav > .active > a, - .navbar-inverse .navbar-nav > .active > a:hover, - .navbar-inverse .navbar-nav > .active > a:focus { - color: #ffffff; - background-color: #080808; - } - - .navbar-inverse .navbar-nav > .disabled > a, - .navbar-inverse .navbar-nav > .disabled > a:hover, - .navbar-inverse .navbar-nav > .disabled > a:focus { - color: #444444; - background-color: transparent; - } - - .navbar-inverse .navbar-toggle { - border-color: #333333; - } - - .navbar-inverse .navbar-toggle:hover, - .navbar-inverse .navbar-toggle:focus { - background-color: #333333; - } - - .navbar-inverse .navbar-toggle .icon-bar { - background-color: #ffffff; - } - - .navbar-inverse .navbar-collapse, - .navbar-inverse .navbar-form { - border-color: #101010; - } - - .navbar-inverse .navbar-nav > .open > a, - .navbar-inverse .navbar-nav > .open > a:hover, - .navbar-inverse .navbar-nav > .open > a:focus { - background-color: #080808; - color: #ffffff; - } - -@media (max-width: 767px) { - .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { - border-color: #080808; - } - - .navbar-inverse .navbar-nav .open .dropdown-menu .divider { - background-color: #080808; - } - - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { - color: #666666; - } - - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { - color: #ffffff; - background-color: transparent; - } - - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #ffffff; - background-color: #080808; - } - - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #444444; - background-color: transparent; - } -} - -.navbar-inverse .navbar-link { - color: #666666; -} - - .navbar-inverse .navbar-link:hover { - color: #ffffff; - } - -.navbar-inverse .btn-link { - color: #666666; -} - - .navbar-inverse .btn-link:hover, - .navbar-inverse .btn-link:focus { - color: #ffffff; - } - - .navbar-inverse .btn-link[disabled]:hover, - fieldset[disabled] .navbar-inverse .btn-link:hover, - .navbar-inverse .btn-link[disabled]:focus, - fieldset[disabled] .navbar-inverse .btn-link:focus { - color: #444444; - } - -.breadcrumb { - padding: 8px 15px; - margin-bottom: 22px; - list-style: none; - background-color: #f5f5f5; - border-radius: 1px; -} - - .breadcrumb > li { - display: inline-block; - } - - .breadcrumb > li + li:before { - content: "/\00a0"; - padding: 0 5px; - color: #cccccc; - } - - .breadcrumb > .active { - color: #666666; - } - -.pagination { - display: inline-block; - padding-left: 0; - margin: 22px 0; - border-radius: 1px; -} - - .pagination > li { - display: inline; - } - - .pagination > li > a, - .pagination > li > span { - position: relative; - float: left; - padding: 6px 12px; - line-height: 1.42857143; - text-decoration: none; - color: #0a94d4; - background-color: #ffffff; - border: 1px solid #dddddd; - margin-left: -1px; - } - - .pagination > li:first-child > a, - .pagination > li:first-child > span { - margin-left: 0; - border-bottom-left-radius: 1px; - border-top-left-radius: 1px; - } - - .pagination > li:last-child > a, - .pagination > li:last-child > span { - border-bottom-right-radius: 1px; - border-top-right-radius: 1px; - } - - .pagination > li > a:hover, - .pagination > li > span:hover, - .pagination > li > a:focus, - .pagination > li > span:focus { - color: #07618b; - background-color: #cccccc; - border-color: #dddddd; - } - - .pagination > .active > a, - .pagination > .active > span, - .pagination > .active > a:hover, - .pagination > .active > span:hover, - .pagination > .active > a:focus, - .pagination > .active > span:focus { - z-index: 2; - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; - cursor: default; - } - - .pagination > .disabled > span, - .pagination > .disabled > span:hover, - .pagination > .disabled > span:focus, - .pagination > .disabled > a, - .pagination > .disabled > a:hover, - .pagination > .disabled > a:focus { - color: #666666; - background-color: #ffffff; - border-color: #dddddd; - cursor: not-allowed; - } - -.pagination-lg > li > a, -.pagination-lg > li > span { - padding: 10px 16px; - font-size: 20px; -} - -.pagination-lg > li:first-child > a, -.pagination-lg > li:first-child > span { - border-bottom-left-radius: 2px; - border-top-left-radius: 2px; -} - -.pagination-lg > li:last-child > a, -.pagination-lg > li:last-child > span { - border-bottom-right-radius: 2px; - border-top-right-radius: 2px; -} - -.pagination-sm > li > a, -.pagination-sm > li > span { - padding: 5px 10px; - font-size: 14px; -} - -.pagination-sm > li:first-child > a, -.pagination-sm > li:first-child > span { - border-bottom-left-radius: 0; - border-top-left-radius: 0; -} - -.pagination-sm > li:last-child > a, -.pagination-sm > li:last-child > span { - border-bottom-right-radius: 0; - border-top-right-radius: 0; -} - -.pager { - padding-left: 0; - margin: 22px 0; - list-style: none; - text-align: center; -} - - .pager li { - display: inline; - } - - .pager li > a, - .pager li > span { - display: inline-block; - padding: 5px 14px; - background-color: #ffffff; - border: 1px solid #dddddd; - border-radius: 15px; - } - - .pager li > a:hover, - .pager li > a:focus { - text-decoration: none; - background-color: #cccccc; - } - - .pager .next > a, - .pager .next > span { - float: right; - } - - .pager .previous > a, - .pager .previous > span { - float: left; - } - - .pager .disabled > a, - .pager .disabled > a:hover, - .pager .disabled > a:focus, - .pager .disabled > span { - color: #666666; - background-color: #ffffff; - cursor: not-allowed; - } - -.label { - display: inline; - padding: .2em .6em .3em; - font-size: 75%; - font-weight: bold; - line-height: 1; - color: #ffffff; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: .25em; -} - -a.label:hover, -a.label:focus { - color: #ffffff; - text-decoration: none; - cursor: pointer; -} - -.label:empty { - display: none; -} - -.btn .label { - position: relative; - top: -1px; -} - -.label-default { - background-color: #666666; -} - - .label-default[href]:hover, - .label-default[href]:focus { - background-color: #4d4d4d; - } - -.label-primary { - background-color: #4d4d4d; -} - - .label-primary[href]:hover, - .label-primary[href]:focus { - background-color: #333333; - } - -.label-success { - background-color: #28b309; -} - - .label-success[href]:hover, - .label-success[href]:focus { - background-color: #1d8207; - } - -.label-info { - background-color: #0a94d4; -} - - .label-info[href]:hover, - .label-info[href]:focus { - background-color: #0872a3; - } - -.label-warning { - background-color: #f0ad20; -} - - .label-warning[href]:hover, - .label-warning[href]:focus { - background-color: #cf910e; - } - -.label-danger { - background-color: #ef4a24; -} - - .label-danger[href]:hover, - .label-danger[href]:focus { - background-color: #d1330f; - } - -.badge { - display: inline-block; - min-width: 10px; - padding: 3px 7px; - font-size: 14px; - font-weight: bold; - color: #ffffff; - line-height: 1; - vertical-align: baseline; - white-space: nowrap; - text-align: center; - background-color: #666666; - border-radius: 10px; -} - - .badge:empty { - display: none; - } - -.btn .badge { - position: relative; - top: -1px; -} - -.btn-xs .badge { - top: 0; - padding: 1px 5px; -} - -a.badge:hover, -a.badge:focus { - color: #ffffff; - text-decoration: none; - cursor: pointer; -} - -a.list-group-item.active > .badge, -.nav-pills > .active > a > .badge { - color: #0a94d4; - background-color: #ffffff; -} - -.nav-pills > li > a > .badge { - margin-left: 3px; -} - -.jumbotron { - padding: 30px; - margin-bottom: 30px; - color: inherit; - background-color: #cccccc; -} - - .jumbotron h1, - .jumbotron .h1 { - color: inherit; - } - - .jumbotron p { - margin-bottom: 15px; - font-size: 24px; - font-weight: 200; - } - - .jumbotron > hr { - border-top-color: #b3b3b3; - } - -.container .jumbotron { - border-radius: 2px; -} - -.jumbotron .container { - max-width: 100%; -} - -@media screen and (min-width: 768px) { - .jumbotron { - padding-top: 48px; - padding-bottom: 48px; - } - - .container .jumbotron { - padding-left: 60px; - padding-right: 60px; - } - - .jumbotron h1, - .jumbotron .h1 { - font-size: 72px; - } -} - -.thumbnail { - display: block; - padding: 4px; - margin-bottom: 22px; - line-height: 1.42857143; - background-color: #333333; - border: 1px solid #dddddd; - border-radius: 1px; - -webkit-transition: all 0.2s ease-in-out; - -o-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; -} - - .thumbnail > img, - .thumbnail a > img { - margin-left: auto; - margin-right: auto; - } - -a.thumbnail:hover, -a.thumbnail:focus, -a.thumbnail.active { - border-color: #0a94d4; -} - -.thumbnail .caption { - padding: 9px; - color: #ffffff; -} - -.alert { - padding: 15px; - margin-bottom: 22px; - border: 1px solid transparent; - border-radius: 1px; -} - - .alert h4 { - margin-top: 0; - color: inherit; - } - - .alert .alert-link { - font-weight: bold; - } - - .alert > p, - .alert > ul { - margin-bottom: 0; - } - - .alert > p + p { - margin-top: 5px; - } - -.alert-dismissable, -.alert-dismissible { - padding-right: 35px; -} - - .alert-dismissable .close, - .alert-dismissible .close { - position: relative; - top: -2px; - right: -21px; - color: inherit; - } - -.alert-success { - background-color: #d3e5cf; - border-color: #c9dcbe; - color: #125204; -} - - .alert-success hr { - border-top-color: #bbd3ae; - } - - .alert-success .alert-link { - color: #072102; - } - -.alert-info { - background-color: #daebf2; - border-color: #c0e4e9; - color: #0872a3; -} - - .alert-info hr { - border-top-color: #addbe2; - } - - .alert-info .alert-link { - color: #055073; - } - -.alert-warning { - background-color: #fcf8e3; - border-color: #faebcc; - color: #8a6d3b; -} - - .alert-warning hr { - border-top-color: #f7e1b5; - } - - .alert-warning .alert-link { - color: #66512c; - } - -.alert-danger { - background-color: #f0dcd8; - border-color: #e9c6c6; - color: #d63510; -} - - .alert-danger hr { - border-top-color: #e2b3b3; - } - - .alert-danger .alert-link { - color: #a6290c; - } - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - - to { - background-position: 0 0; - } -} - -@keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - - to { - background-position: 0 0; - } -} - -.progress { - overflow: hidden; - height: 22px; - margin-bottom: 22px; - background-color: #f5f5f5; - border-radius: 1px; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -} - -.progress-bar { - float: left; - width: 0%; - height: 100%; - font-size: 14px; - line-height: 22px; - color: #ffffff; - text-align: center; - background-color: #4d4d4d; - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -webkit-transition: width 0.6s ease; - -o-transition: width 0.6s ease; - transition: width 0.6s ease; -} - -.progress-striped .progress-bar, -.progress-bar-striped { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-size: 40px 40px; -} - -.progress.active .progress-bar, -.progress-bar.active { - -webkit-animation: progress-bar-stripes 2s linear infinite; - -o-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite; -} - -.progress-bar[aria-valuenow="1"], -.progress-bar[aria-valuenow="2"] { - min-width: 30px; -} - -.progress-bar[aria-valuenow="0"] { - color: #666666; - min-width: 30px; - background-color: transparent; - background-image: none; - box-shadow: none; -} - -.progress-bar-success { - background-color: #28b309; -} - -.progress-striped .progress-bar-success { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-bar-info { - background-color: #0a94d4; -} - -.progress-striped .progress-bar-info { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-bar-warning { - background-color: #f0ad20; -} - -.progress-striped .progress-bar-warning { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.progress-bar-danger { - background-color: #ef4a24; -} - -.progress-striped .progress-bar-danger { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -} - -.media, -.media-body { - overflow: hidden; - zoom: 1; -} - - .media, - .media .media { - margin-top: 15px; - } - - .media:first-child { - margin-top: 0; - } - -.media-object { - display: block; -} - -.media-heading { - margin: 0 0 5px; -} - -.media > .pull-left { - margin-right: 10px; -} - -.media > .pull-right { - margin-left: 10px; -} - -.media-list { - padding-left: 0; - list-style: none; -} - -.list-group { - margin-bottom: 20px; - padding-left: 0; -} - -.list-group-item { - position: relative; - display: block; - padding: 10px 15px; - margin-bottom: -1px; - background-color: #ffffff; - border: 1px solid #dddddd; -} - - .list-group-item:first-child { - border-top-right-radius: 1px; - border-top-left-radius: 1px; - } - - .list-group-item:last-child { - margin-bottom: 0; - border-bottom-right-radius: 1px; - border-bottom-left-radius: 1px; - } - - .list-group-item > .badge { - float: right; - } - - .list-group-item > .badge + .badge { - margin-right: 5px; - } - -a.list-group-item { - color: #555555; -} - - a.list-group-item .list-group-item-heading { - color: #333333; - } - - a.list-group-item:hover, - a.list-group-item:focus { - text-decoration: none; - color: #555555; - background-color: #f5f5f5; - } - -.list-group-item.disabled, -.list-group-item.disabled:hover, -.list-group-item.disabled:focus { - background-color: #cccccc; - color: #666666; -} - - .list-group-item.disabled .list-group-item-heading, - .list-group-item.disabled:hover .list-group-item-heading, - .list-group-item.disabled:focus .list-group-item-heading { - color: inherit; - } - - .list-group-item.disabled .list-group-item-text, - .list-group-item.disabled:hover .list-group-item-text, - .list-group-item.disabled:focus .list-group-item-text { - color: #666666; - } - -.list-group-item.active, -.list-group-item.active:hover, -.list-group-item.active:focus { - z-index: 2; - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; -} - - .list-group-item.active .list-group-item-heading, - .list-group-item.active:hover .list-group-item-heading, - .list-group-item.active:focus .list-group-item-heading, - .list-group-item.active .list-group-item-heading > small, - .list-group-item.active:hover .list-group-item-heading > small, - .list-group-item.active:focus .list-group-item-heading > small, - .list-group-item.active .list-group-item-heading > .small, - .list-group-item.active:hover .list-group-item-heading > .small, - .list-group-item.active:focus .list-group-item-heading > .small { - color: inherit; - } - - .list-group-item.active .list-group-item-text, - .list-group-item.active:hover .list-group-item-text, - .list-group-item.active:focus .list-group-item-text { - color: #b3b3b3; - } - -.list-group-item-success { - color: #125204; - background-color: #d3e5cf; -} - -a.list-group-item-success { - color: #125204; -} - - a.list-group-item-success .list-group-item-heading { - color: inherit; - } - - a.list-group-item-success:hover, - a.list-group-item-success:focus { - color: #125204; - background-color: #c4dcbe; - } - - a.list-group-item-success.active, - a.list-group-item-success.active:hover, - a.list-group-item-success.active:focus { - color: #fff; - background-color: #125204; - border-color: #125204; - } - -.list-group-item-info { - color: #0872a3; - background-color: #daebf2; -} - -a.list-group-item-info { - color: #0872a3; -} - - a.list-group-item-info .list-group-item-heading { - color: inherit; - } - - a.list-group-item-info:hover, - a.list-group-item-info:focus { - color: #0872a3; - background-color: #c7e1eb; - } - - a.list-group-item-info.active, - a.list-group-item-info.active:hover, - a.list-group-item-info.active:focus { - color: #fff; - background-color: #0872a3; - border-color: #0872a3; - } - -.list-group-item-warning { - color: #8a6d3b; - background-color: #fcf8e3; -} - -a.list-group-item-warning { - color: #8a6d3b; -} - - a.list-group-item-warning .list-group-item-heading { - color: inherit; - } - - a.list-group-item-warning:hover, - a.list-group-item-warning:focus { - color: #8a6d3b; - background-color: #faf2cc; - } - - a.list-group-item-warning.active, - a.list-group-item-warning.active:hover, - a.list-group-item-warning.active:focus { - color: #fff; - background-color: #8a6d3b; - border-color: #8a6d3b; - } - -.list-group-item-danger { - color: #d63510; - background-color: #f0dcd8; -} - -a.list-group-item-danger { - color: #d63510; -} - - a.list-group-item-danger .list-group-item-heading { - color: inherit; - } - - a.list-group-item-danger:hover, - a.list-group-item-danger:focus { - color: #d63510; - background-color: #e9cbc6; - } - - a.list-group-item-danger.active, - a.list-group-item-danger.active:hover, - a.list-group-item-danger.active:focus { - color: #fff; - background-color: #d63510; - border-color: #d63510; - } - -.list-group-item-heading { - margin-top: 0; - margin-bottom: 5px; -} - -.list-group-item-text { - margin-bottom: 0; - line-height: 1.3; -} - -.panel { - margin-bottom: 22px; - background-color: #ffffff; - border: 1px solid transparent; - border-radius: 1px; - -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); -} - -.panel-body { - padding: 15px; -} - -.panel-heading { - padding: 10px 15px; - border-bottom: 1px solid transparent; - border-top-right-radius: 0px; - border-top-left-radius: 0px; -} - - .panel-heading > .dropdown .dropdown-toggle { - color: inherit; - } - -.panel-title { - margin-top: 0; - margin-bottom: 0; - font-size: 18px; - color: inherit; -} - - .panel-title > a { - color: inherit; - } - -.panel-footer { - padding: 10px 15px; - background-color: #f5f5f5; - border-top: 1px solid #dddddd; - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; -} - -.panel > .list-group { - margin-bottom: 0; -} - - .panel > .list-group .list-group-item { - border-width: 1px 0; - border-radius: 0; - } - - .panel > .list-group:first-child .list-group-item:first-child { - border-top: 0; - border-top-right-radius: 0px; - border-top-left-radius: 0px; - } - - .panel > .list-group:last-child .list-group-item:last-child { - border-bottom: 0; - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; - } - -.panel-heading + .list-group .list-group-item:first-child { - border-top-width: 0; -} - -.list-group + .panel-footer { - border-top-width: 0; -} - -.panel > .table, -.panel > .table-responsive > .table, -.panel > .panel-collapse > .table { - margin-bottom: 0; -} - - .panel > .table:first-child, - .panel > .table-responsive:first-child > .table:first-child { - border-top-right-radius: 0px; - border-top-left-radius: 0px; - } - - .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, - .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, - .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, - .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { - border-top-left-radius: 0px; - } - - .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, - .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, - .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, - .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { - border-top-right-radius: 0px; - } - - .panel > .table:last-child, - .panel > .table-responsive:last-child > .table:last-child { - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; - } - - .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, - .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { - border-bottom-left-radius: 0px; - } - - .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, - .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { - border-bottom-right-radius: 0px; - } - -.panel > .panel-body + .table, -.panel > .panel-body + .table-responsive { - border-top: 1px solid #dddddd; -} - -.panel > .table > tbody:first-child > tr:first-child th, -.panel > .table > tbody:first-child > tr:first-child td { - border-top: 0; -} - -.panel > .table-bordered, -.panel > .table-responsive > .table-bordered { - border: 0; -} - - .panel > .table-bordered > thead > tr > th:first-child, - .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, - .panel > .table-bordered > tbody > tr > th:first-child, - .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, - .panel > .table-bordered > tfoot > tr > th:first-child, - .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, - .panel > .table-bordered > thead > tr > td:first-child, - .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, - .panel > .table-bordered > tbody > tr > td:first-child, - .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, - .panel > .table-bordered > tfoot > tr > td:first-child, - .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; - } - - .panel > .table-bordered > thead > tr > th:last-child, - .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, - .panel > .table-bordered > tbody > tr > th:last-child, - .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, - .panel > .table-bordered > tfoot > tr > th:last-child, - .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, - .panel > .table-bordered > thead > tr > td:last-child, - .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, - .panel > .table-bordered > tbody > tr > td:last-child, - .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, - .panel > .table-bordered > tfoot > tr > td:last-child, - .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; - } - - .panel > .table-bordered > thead > tr:first-child > td, - .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, - .panel > .table-bordered > tbody > tr:first-child > td, - .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, - .panel > .table-bordered > thead > tr:first-child > th, - .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, - .panel > .table-bordered > tbody > tr:first-child > th, - .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { - border-bottom: 0; - } - - .panel > .table-bordered > tbody > tr:last-child > td, - .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, - .panel > .table-bordered > tfoot > tr:last-child > td, - .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, - .panel > .table-bordered > tbody > tr:last-child > th, - .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, - .panel > .table-bordered > tfoot > tr:last-child > th, - .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { - border-bottom: 0; - } - -.panel > .table-responsive { - border: 0; - margin-bottom: 0; -} - -.panel-group { - margin-bottom: 22px; -} - - .panel-group .panel { - margin-bottom: 0; - border-radius: 1px; - } - - .panel-group .panel + .panel { - margin-top: 5px; - } - - .panel-group .panel-heading { - border-bottom: 0; - } - - .panel-group .panel-heading + .panel-collapse > .panel-body { - border-top: 1px solid #dddddd; - } - - .panel-group .panel-footer { - border-top: 0; - } - - .panel-group .panel-footer + .panel-collapse .panel-body { - border-bottom: 1px solid #dddddd; - } - -.panel-default { - border-color: #dddddd; -} - - .panel-default > .panel-heading { - color: #333333; - background-color: #f5f5f5; - border-color: #dddddd; - } - - .panel-default > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #dddddd; - } - - .panel-default > .panel-heading .badge { - color: #f5f5f5; - background-color: #333333; - } - - .panel-default > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #dddddd; - } - -.panel-primary { - border-color: #4d4d4d; -} - - .panel-primary > .panel-heading { - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; - } - - .panel-primary > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #4d4d4d; - } - - .panel-primary > .panel-heading .badge { - color: #4d4d4d; - background-color: #ffffff; - } - - .panel-primary > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #4d4d4d; - } - -.panel-success { - border-color: #c9dcbe; -} - - .panel-success > .panel-heading { - color: #125204; - background-color: #d3e5cf; - border-color: #c9dcbe; - } - - .panel-success > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #c9dcbe; - } - - .panel-success > .panel-heading .badge { - color: #d3e5cf; - background-color: #125204; - } - - .panel-success > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #c9dcbe; - } - -.panel-info { - border-color: #c0e4e9; -} - - .panel-info > .panel-heading { - color: #0872a3; - background-color: #daebf2; - border-color: #c0e4e9; - } - - .panel-info > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #c0e4e9; - } - - .panel-info > .panel-heading .badge { - color: #daebf2; - background-color: #0872a3; - } - - .panel-info > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #c0e4e9; - } - -.panel-warning { - border-color: #faebcc; -} - - .panel-warning > .panel-heading { - color: #8a6d3b; - background-color: #fcf8e3; - border-color: #faebcc; - } - - .panel-warning > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #faebcc; - } - - .panel-warning > .panel-heading .badge { - color: #fcf8e3; - background-color: #8a6d3b; - } - - .panel-warning > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #faebcc; - } - -.panel-danger { - border-color: #e9c6c6; -} - - .panel-danger > .panel-heading { - color: #d63510; - background-color: #f0dcd8; - border-color: #e9c6c6; - } - - .panel-danger > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #e9c6c6; - } - - .panel-danger > .panel-heading .badge { - color: #f0dcd8; - background-color: #d63510; - } - - .panel-danger > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #e9c6c6; - } - -.embed-responsive { - position: relative; - display: block; - height: 0; - padding: 0; - overflow: hidden; -} - - .embed-responsive .embed-responsive-item, - .embed-responsive iframe, - .embed-responsive embed, - .embed-responsive object { - position: absolute; - top: 0; - left: 0; - bottom: 0; - height: 100%; - width: 100%; - border: 0; - } - - .embed-responsive.embed-responsive-16by9 { - padding-bottom: 56.25%; - } - - .embed-responsive.embed-responsive-4by3 { - padding-bottom: 75%; - } - -.well { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid #e3e3e3; - border-radius: 1px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -} - - .well blockquote { - border-color: #ddd; - border-color: rgba(0, 0, 0, 0.15); - } - -.well-lg { - padding: 24px; - border-radius: 2px; -} - -.well-sm { - padding: 9px; - border-radius: 0; -} - -.close { - float: right; - font-size: 24px; - font-weight: bold; - line-height: 1; - color: #000000; - text-shadow: 0 1px 0 #ffffff; - opacity: 0.2; - filter: alpha(opacity=20); -} - - .close:hover, - .close:focus { - color: #000000; - text-decoration: none; - cursor: pointer; - opacity: 0.5; - filter: alpha(opacity=50); - } - -button.close { - padding: 0; - cursor: pointer; - background: transparent; - border: 0; - -webkit-appearance: none; -} - -.modal-open { - overflow: hidden; -} - -.modal { - display: none; - overflow: hidden; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1050; - -webkit-overflow-scrolling: touch; - outline: 0; -} - - .modal.fade .modal-dialog { - -webkit-transform: translate3d(0, -25%, 0); - transform: translate3d(0, -25%, 0); - -webkit-transition: -webkit-transform 0.3s ease-out; - -moz-transition: -moz-transform 0.3s ease-out; - -o-transition: -o-transform 0.3s ease-out; - transition: transform 0.3s ease-out; - } - - .modal.in .modal-dialog { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } - -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto; -} - -.modal-dialog { - position: relative; - width: auto; - margin: 10px; -} - -.modal-content { - position: relative; - background-color: #ffffff; - border: 1px solid #999999; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 2px; - -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - background-clip: padding-box; - outline: 0; -} - -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; - background-color: #000000; -} - - .modal-backdrop.fade { - opacity: 0; - filter: alpha(opacity=0); - } - - .modal-backdrop.in { - opacity: 0.5; - filter: alpha(opacity=50); - } - -.modal-header { - padding: 15px; - border-bottom: 1px solid #e5e5e5; - min-height: 16.42857143px; -} - - .modal-header .close { - margin-top: -2px; - } - -.modal-title { - margin: 0; - line-height: 1.42857143; -} - -.modal-body { - position: relative; - padding: 15px; -} - -.modal-footer { - padding: 15px; - text-align: right; - border-top: 1px solid #e5e5e5; -} - - .modal-footer .btn + .btn { - margin-left: 5px; - margin-bottom: 0; - } - - .modal-footer .btn-group .btn + .btn { - margin-left: -1px; - } - - .modal-footer .btn-block + .btn-block { - margin-left: 0; - } - -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll; -} - -@media (min-width: 768px) { - .modal-dialog { - width: 600px; - margin: 30px auto; - } - - .modal-content { - -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); - } - - .modal-sm { - width: 300px; - } -} - -@media (min-width: 992px) { - .modal-lg { - width: 900px; - } -} - -.tooltip { - position: absolute; - z-index: 1070; - display: block; - visibility: visible; - font-size: 14px; - line-height: 1.4; - opacity: 0; - filter: alpha(opacity=0); -} - - .tooltip.in { - opacity: 0.9; - filter: alpha(opacity=90); - } - - .tooltip.top { - margin-top: -3px; - padding: 5px 0; - } - - .tooltip.right { - margin-left: 3px; - padding: 0 5px; - } - - .tooltip.bottom { - margin-top: 3px; - padding: 5px 0; - } - - .tooltip.left { - margin-left: -3px; - padding: 0 5px; - } - -.tooltip-inner { - max-width: 200px; - padding: 3px 8px; - color: #ffffff; - text-align: center; - text-decoration: none; - background-color: #000000; - border-radius: 1px; -} - -.tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} - -.tooltip.top .tooltip-arrow { - bottom: 0; - left: 50%; - margin-left: -5px; - border-width: 5px 5px 0; - border-top-color: #000000; -} - -.tooltip.top-left .tooltip-arrow { - bottom: 0; - left: 5px; - border-width: 5px 5px 0; - border-top-color: #000000; -} - -.tooltip.top-right .tooltip-arrow { - bottom: 0; - right: 5px; - border-width: 5px 5px 0; - border-top-color: #000000; -} - -.tooltip.right .tooltip-arrow { - top: 50%; - left: 0; - margin-top: -5px; - border-width: 5px 5px 5px 0; - border-right-color: #000000; -} - -.tooltip.left .tooltip-arrow { - top: 50%; - right: 0; - margin-top: -5px; - border-width: 5px 0 5px 5px; - border-left-color: #000000; -} - -.tooltip.bottom .tooltip-arrow { - top: 0; - left: 50%; - margin-left: -5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; -} - -.tooltip.bottom-left .tooltip-arrow { - top: 0; - left: 5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; -} - -.tooltip.bottom-right .tooltip-arrow { - top: 0; - right: 5px; - border-width: 0 5px 5px; - border-bottom-color: #000000; -} - -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: none; - max-width: 276px; - padding: 1px; - text-align: left; - background-color: #ffffff; - background-clip: padding-box; - border: 1px solid #cccccc; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 2px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - white-space: normal; -} - - .popover.top { - margin-top: -10px; - } - - .popover.right { - margin-left: 10px; - } - - .popover.bottom { - margin-top: 10px; - } - - .popover.left { - margin-left: -10px; - } - -.popover-title { - margin: 0; - padding: 8px 14px; - font-size: 16px; - font-weight: normal; - line-height: 18px; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-radius: 1px 1px 0 0; -} - -.popover-content { - padding: 9px 14px; -} - -.popover > .arrow, -.popover > .arrow:after { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} - -.popover > .arrow { - border-width: 11px; -} - - .popover > .arrow:after { - border-width: 10px; - content: ""; - } - -.popover.top > .arrow { - left: 50%; - margin-left: -11px; - border-bottom-width: 0; - border-top-color: #999999; - border-top-color: rgba(0, 0, 0, 0.25); - bottom: -11px; -} - - .popover.top > .arrow:after { - content: " "; - bottom: 1px; - margin-left: -10px; - border-bottom-width: 0; - border-top-color: #ffffff; - } - -.popover.right > .arrow { - top: 50%; - left: -11px; - margin-top: -11px; - border-left-width: 0; - border-right-color: #999999; - border-right-color: rgba(0, 0, 0, 0.25); -} - - .popover.right > .arrow:after { - content: " "; - left: 1px; - bottom: -10px; - border-left-width: 0; - border-right-color: #ffffff; - } - -.popover.bottom > .arrow { - left: 50%; - margin-left: -11px; - border-top-width: 0; - border-bottom-color: #999999; - border-bottom-color: rgba(0, 0, 0, 0.25); - top: -11px; -} - - .popover.bottom > .arrow:after { - content: " "; - top: 1px; - margin-left: -10px; - border-top-width: 0; - border-bottom-color: #ffffff; - } - -.popover.left > .arrow { - top: 50%; - right: -11px; - margin-top: -11px; - border-right-width: 0; - border-left-color: #999999; - border-left-color: rgba(0, 0, 0, 0.25); -} - - .popover.left > .arrow:after { - content: " "; - right: 1px; - border-right-width: 0; - border-left-color: #ffffff; - bottom: -10px; - } - -.carousel { - position: relative; -} - -.carousel-inner { - position: relative; - overflow: hidden; - width: 100%; -} - - .carousel-inner > .item { - display: none; - position: relative; - -webkit-transition: 0.6s ease-in-out left; - -o-transition: 0.6s ease-in-out left; - transition: 0.6s ease-in-out left; - } - - .carousel-inner > .item > img, - .carousel-inner > .item > a > img { - line-height: 1; - } - - .carousel-inner > .active, - .carousel-inner > .next, - .carousel-inner > .prev { - display: block; - } - - .carousel-inner > .active { - left: 0; - } - - .carousel-inner > .next, - .carousel-inner > .prev { - position: absolute; - top: 0; - width: 100%; - } - - .carousel-inner > .next { - left: 100%; - } - - .carousel-inner > .prev { - left: -100%; - } - - .carousel-inner > .next.left, - .carousel-inner > .prev.right { - left: 0; - } - - .carousel-inner > .active.left { - left: -100%; - } - - .carousel-inner > .active.right { - left: 100%; - } - -.carousel-control { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 15%; - opacity: 0.5; - filter: alpha(opacity=50); - font-size: 20px; - color: #ffffff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); -} - - .carousel-control.left { - background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); - } - - .carousel-control.right { - left: auto; - right: 0; - background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); - } - - .carousel-control:hover, - .carousel-control:focus { - outline: 0; - color: #ffffff; - text-decoration: none; - opacity: 0.9; - filter: alpha(opacity=90); - } - - .carousel-control .icon-prev, - .carousel-control .icon-next, - .carousel-control .glyphicon-chevron-left, - .carousel-control .glyphicon-chevron-right { - position: absolute; - top: 50%; - z-index: 5; - display: inline-block; - } - - .carousel-control .icon-prev, - .carousel-control .glyphicon-chevron-left { - left: 50%; - margin-left: -10px; - } - - .carousel-control .icon-next, - .carousel-control .glyphicon-chevron-right { - right: 50%; - margin-right: -10px; - } - - .carousel-control .icon-prev, - .carousel-control .icon-next { - width: 20px; - height: 20px; - margin-top: -10px; - font-family: serif; - } - - .carousel-control .icon-prev:before { - content: '\2039'; - } - - .carousel-control .icon-next:before { - content: '\203a'; - } - -.carousel-indicators { - position: absolute; - bottom: 10px; - left: 50%; - z-index: 15; - width: 60%; - margin-left: -30%; - padding-left: 0; - list-style: none; - text-align: center; -} - - .carousel-indicators li { - display: inline-block; - width: 10px; - height: 10px; - margin: 1px; - text-indent: -999px; - border: 1px solid #ffffff; - border-radius: 10px; - cursor: pointer; - background-color: #000 \9; - background-color: rgba(0, 0, 0, 0); - } - - .carousel-indicators .active { - margin: 0; - width: 12px; - height: 12px; - background-color: #ffffff; - } - -.carousel-caption { - position: absolute; - left: 15%; - right: 15%; - bottom: 20px; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #ffffff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); -} - - .carousel-caption .btn { - text-shadow: none; - } - -@media screen and (min-width: 768px) { - .carousel-control .glyphicon-chevron-left, - .carousel-control .glyphicon-chevron-right, - .carousel-control .icon-prev, - .carousel-control .icon-next { - width: 30px; - height: 30px; - margin-top: -15px; - font-size: 30px; - } - - .carousel-control .glyphicon-chevron-left, - .carousel-control .icon-prev { - margin-left: -15px; - } - - .carousel-control .glyphicon-chevron-right, - .carousel-control .icon-next { - margin-right: -15px; - } - - .carousel-caption { - left: 20%; - right: 20%; - padding-bottom: 30px; - } - - .carousel-indicators { - bottom: 20px; - } -} - -.clearfix:before, -.clearfix:after, -.dl-horizontal dd:before, -.dl-horizontal dd:after, -.container:before, -.container:after, -.container-fluid:before, -.container-fluid:after, -.row:before, -.row:after, -.form-horizontal .form-group:before, -.form-horizontal .form-group:after, -.btn-toolbar:before, -.btn-toolbar:after, -.btn-group-vertical > .btn-group:before, -.btn-group-vertical > .btn-group:after, -.nav:before, -.nav:after, -.navbar:before, -.navbar:after, -.navbar-header:before, -.navbar-header:after, -.navbar-collapse:before, -.navbar-collapse:after, -.pager:before, -.pager:after, -.panel-body:before, -.panel-body:after, -.modal-footer:before, -.modal-footer:after { - content: " "; - display: table; -} - -.clearfix:after, -.dl-horizontal dd:after, -.container:after, -.container-fluid:after, -.row:after, -.form-horizontal .form-group:after, -.btn-toolbar:after, -.btn-group-vertical > .btn-group:after, -.nav:after, -.navbar:after, -.navbar-header:after, -.navbar-collapse:after, -.pager:after, -.panel-body:after, -.modal-footer:after { - clear: both; -} - -.center-block { - display: block; - margin-left: auto; - margin-right: auto; -} - -.pull-right { - float: right !important; -} - -.pull-left { - float: left !important; -} - -.hide { - display: none !important; -} - -.show { - display: block !important; -} - -.invisible { - visibility: hidden; -} - -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} - -.hidden { - display: none !important; - visibility: hidden !important; -} - -.affix { - position: fixed; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} - -@-ms-viewport { - width: device-width; -} - -.visible-xs, -.visible-sm, -.visible-md, -.visible-lg { - display: none !important; -} - -.visible-xs-block, -.visible-xs-inline, -.visible-xs-inline-block, -.visible-sm-block, -.visible-sm-inline, -.visible-sm-inline-block, -.visible-md-block, -.visible-md-inline, -.visible-md-inline-block, -.visible-lg-block, -.visible-lg-inline, -.visible-lg-inline-block { - display: none !important; -} - -@media (max-width: 767px) { - .visible-xs { - display: block !important; - } - - table.visible-xs { - display: table; - } - - tr.visible-xs { - display: table-row !important; - } - - th.visible-xs, - td.visible-xs { - display: table-cell !important; - } -} - -@media (max-width: 767px) { - .visible-xs-block { - display: block !important; - } -} - -@media (max-width: 767px) { - .visible-xs-inline { - display: inline !important; - } -} - -@media (max-width: 767px) { - .visible-xs-inline-block { - display: inline-block !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm { - display: block !important; - } - - table.visible-sm { - display: table; - } - - tr.visible-sm { - display: table-row !important; - } - - th.visible-sm, - td.visible-sm { - display: table-cell !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-block { - display: block !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-inline { - display: inline !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-inline-block { - display: inline-block !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .visible-md { - display: block !important; - } - - table.visible-md { - display: table; - } - - tr.visible-md { - display: table-row !important; - } - - th.visible-md, - td.visible-md { - display: table-cell !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .visible-md-block { - display: block !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .visible-md-inline { - display: inline !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .visible-md-inline-block { - display: inline-block !important; - } -} - -@media (min-width: 1240px) { - .visible-lg { - display: block !important; - } - - table.visible-lg { - display: table; - } - - tr.visible-lg { - display: table-row !important; - } - - th.visible-lg, - td.visible-lg { - display: table-cell !important; - } -} - -@media (min-width: 1240px) { - .visible-lg-block { - display: block !important; - } -} - -@media (min-width: 1240px) { - .visible-lg-inline { - display: inline !important; - } -} - -@media (min-width: 1240px) { - .visible-lg-inline-block { - display: inline-block !important; - } -} - -@media (max-width: 767px) { - .hidden-xs { - display: none !important; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - .hidden-sm { - display: none !important; - } -} - -@media (min-width: 992px) and (max-width: 1239px) { - .hidden-md { - display: none !important; - } -} - -@media (min-width: 1240px) { - .hidden-lg { - display: none !important; - } -} - -.visible-print { - display: none !important; -} - -@media print { - .visible-print { - display: block !important; - } - - table.visible-print { - display: table; - } - - tr.visible-print { - display: table-row !important; - } - - th.visible-print, - td.visible-print { - display: table-cell !important; - } -} - -.visible-print-block { - display: none !important; -} - -@media print { - .visible-print-block { - display: block !important; - } -} - -.visible-print-inline { - display: none !important; -} - -@media print { - .visible-print-inline { - display: inline !important; - } -} - -.visible-print-inline-block { - display: none !important; -} - -@media print { - .visible-print-inline-block { - display: inline-block !important; - } -} - -@media print { - .hidden-print { - display: none !important; - } -} - -@font-face { - font-family: 'Lato Light'; - src: url('../Fonts/lato-light-webfont.eot'); - src: url('../Fonts/lato-light-webfont.eot?#iefix') format('embedded-opentype'), url('../Fonts/lato-light-webfont.woff') format('woff'), url('../Fonts/lato-light-webfont.ttf') format('truetype'), url('../Fonts/lato-light-webfont.svg#latolight') format('svg'); - font-weight: normal; - font-style: normal; -} - -@font-face { - font-family: 'Lato'; - src: url('../Fonts/lato-regular-webfont.eot'); - src: url('../Fonts/lato-regular-webfont.eot?#iefix') format('embedded-opentype'), url('../Fonts/lato-regular-webfont.woff') format('woff'), url('../Fonts/lato-regular-webfont.ttf') format('truetype'), url('../Fonts/lato-regular-webfont.svg#latoregular') format('svg'); - font-weight: normal; - font-style: normal; -} - -.btn-ancillary { - color: #ffffff; - background-color: #4d4d4d; - border-color: #4d4d4d; -} - - .btn-ancillary:hover, - .btn-ancillary:focus, - .btn-ancillary:active, - .btn-ancillary.active, - .open > .dropdown-toggle.btn-ancillary { - color: #ffffff; - background-color: #333333; - border-color: #2e2e2e; - } - - .btn-ancillary:active, - .btn-ancillary.active, - .open > .dropdown-toggle.btn-ancillary { - background-image: none; - } - - .btn-ancillary.disabled, - .btn-ancillary[disabled], - fieldset[disabled] .btn-ancillary, - .btn-ancillary.disabled:hover, - .btn-ancillary[disabled]:hover, - fieldset[disabled] .btn-ancillary:hover, - .btn-ancillary.disabled:focus, - .btn-ancillary[disabled]:focus, - fieldset[disabled] .btn-ancillary:focus, - .btn-ancillary.disabled:active, - .btn-ancillary[disabled]:active, - fieldset[disabled] .btn-ancillary:active, - .btn-ancillary.disabled.active, - .btn-ancillary[disabled].active, - fieldset[disabled] .btn-ancillary.active { - background-color: #4d4d4d; - border-color: #4d4d4d; - } - - .btn-ancillary .badge { - color: #4d4d4d; - background-color: #ffffff; - } - - .btn-ancillary:hover, - .btn-ancillary:focus, - .btn-ancillary:active, - .btn-ancillary.active { - background-color: #262626; - border-color: #262626; - } - -body.Modal { - background-color: #ffffff; - /* width: 98%; */ -} - -#HeaderArea, -#HeaderContainer { - background-color: #1a1a1a; - min-height: 85px; -} - -#HeaderArea { - border-bottom: 1px solid #cccccc; -} - - #HeaderArea .Site-Name, - #HeaderArea .Page-Title-Area { - min-height: 84px; - } - - #HeaderArea .Site-Name h1, - #HeaderArea .Page-Title-Area h1, - #HeaderArea .Site-Name h2, - #HeaderArea .Page-Title-Area h2, - #HeaderArea .Site-Name h3, - #HeaderArea .Page-Title-Area h3, - #HeaderArea .Site-Name h4, - #HeaderArea .Page-Title-Area h4, - #HeaderArea .Site-Name h5, - #HeaderArea .Page-Title-Area h5, - #HeaderArea .Site-Name h6, - #HeaderArea .Page-Title-Area h6 { - line-height: 41px; - margin: 0; - } - - #HeaderArea .Site-Name { - background-color: #ef4a24; - min-height: 95px; - border: 1px solid #cccccc; - border-top: 0 none transparent; - margin-bottom: -9px; - } - - #HeaderArea .Page-Title-Area { - background-color: #1a1a1a; - } - - #HeaderArea .Page-Title-Area .Breadcrumbs { - font-size: 13px; - font-style: italic; - letter-spacing: 0.02em; - color: #cccccc; - padding-top: 9px; - margin-bottom: -3px; - margin-left: 3px; - } - - #HeaderArea .Site-Name h1, - #HeaderArea h2.Page-Title { - font-family: 'Lato Light', Helvetica, Arial, sans-serif; - font-size: 34px; - color: #ffffff; - padding-top: 25px; - } - - #HeaderArea .Site-Name h1 { - margin-left: -2px; - } - - #HeaderArea h2.Page-Title { - margin-left: 3px; - } - -select { - font-size: 14px; - color: #666666; - padding: 3px 5px; -} - - select option { - margin-bottom: 3px; - } - -.Sidebar { - padding-right: 0; - padding-left: 0; -} - - .Sidebar #TreeView { - margin: 45px 1px 0 -1px; - } - - .Sidebar #TreeView:before, - .Sidebar #TreeView:after { - content: " "; - display: table; - } - - .Sidebar #TreeView:after { - clear: both; - } - - .Sidebar #TreeView:before, - .Sidebar #TreeView:after { - content: " "; - display: table; - } - - .Sidebar #TreeView:after { - clear: both; - } - - .Sidebar .AddTopic, - .Sidebar .Add-Topic { - margin-left: 1.3em; - } - - .Sidebar select { - background-color: #eeeeee; - width: 95%; - border-radius: 2px; - } - -.Content-Container .Content[class*="col-"] { - padding-right: 0; - padding-left: 0; -} - -.Content-Container .Content .Page-Content.Primary { - position: relative; - color: #333333; -} - -[id*="DynamicForm"] { - background-color: #333333; - padding-top: 50px; -} - - [id*="DynamicForm"] .row.Messages-Area, - [id*="DynamicForm"] .row.Form-Area { - margin: 0; - } - - [id*="DynamicForm"] .Editor-Navbar { - width: 100%; - height: 50px; - background-color: #333333; - } - - [id*="DynamicForm"]#Modal_DynamicForm { - padding-top: 49px; - } - - [id*="DynamicForm"]#Modal_DynamicForm .row.Toolbar-Area { - margin: 0; - } - - [id*="DynamicForm"]#Modal_DynamicForm .row.Messages-Area { - padding-right: 5px; - padding-left: 5px; - } - - [id*="DynamicForm"]#Modal_DynamicForm div[class*="col-"] { - padding-right: 0; - padding-left: 0; - } - - [id*="DynamicForm"]#Modal_DynamicForm div[class*="col-"].Form-Body { - padding-right: 15px; - padding-left: 15px; - } - - [id*="DynamicForm"]#Modal_DynamicForm .Editor-Navbar { - top: 0; - } - - [id*="DynamicForm"]#Modal_DynamicForm .Messages-Area .close, - [id*="DynamicForm"]#Modal_DynamicForm .Messages-Area .alert-dismissable .close { - right: 0; - } - - [id*="DynamicForm"] .Messages-Area, - [id*="DynamicForm"] .Form-Area { - background-color: #ffffff; - } - - [id*="DynamicForm"] .Messages-Area div[class*="Error"], - [id*="DynamicForm"] .Messages-Area div[class*="alert"] { - font-size: 13px; - letter-spacing: 0.02em; - } - - [id*="DynamicForm"] .Messages-Area div[class*="Error"], - [id*="DynamicForm"] .Messages-Area .alert { - margin: 10px 5px 0; - } - - [id*="DynamicForm"] .Messages-Area .Error.Messaging font { - margin: 10px 5px 0; - background-color: #f0dcd8; - border-color: #e9c6c6; - color: #d63510; - display: block; - color: #d63510 !important; - padding: 10px; - border: 1px solid #e9c6c6; - margin: 0; - } - - [id*="DynamicForm"] .Messages-Area .Error.Messaging font a { - cursor: pointer; - } - - [id*="DynamicForm"] .Messages-Area .Error.Messaging font hr { - border-top-color: #e2b3b3; - } - - [id*="DynamicForm"] .Messages-Area .Error.Messaging font .alert-link { - color: #a6290c; - } - - [id*="DynamicForm"] .Messages-Area .Error.Messaging font ul { - list-style-type: square; - padding-left: 25px; - } - - [id*="DynamicForm"] .Messages-Area .alert { - padding: 10px; - } - - [id*="DynamicForm"] .Messages-Area .alert a { - cursor: pointer; - } - - [id*="DynamicForm"] .Messages-Area .alert-dismissable .close { - right: 0; - font-size: 20px; - margin-top: 0; - } - - [id*="DynamicForm"] .Actions.Top { - float: right; - padding: 0 8px; - margin-top: -2px; - } - - [id*="DynamicForm"] .Actions.Top button, - [id*="DynamicForm"] .Actions.Top input { - margin-left: 4px; - } - - [id*="DynamicForm"] .Actions.Top #VersionsDropdown .glyphicon { - margin-right: 2px; - } - - [id*="DynamicForm"] .Actions.Top #VersionsDropdown .caret { - margin-left: 2px; - } - - [id*="DynamicForm"] ul.nav-tabs { - padding-left: 15px; - border-bottom: 0 none transparent; - } - - [id*="DynamicForm"] .nav-tabs > li { - margin-bottom: 0; - } - - [id*="DynamicForm"] .nav-tabs > li > a { - color: #cccccc; - border: 0 none transparent; - border-bottom: 8px solid transparent; - margin-right: 10px; - } - - [id*="DynamicForm"] .nav-tabs > li > a:hover, - [id*="DynamicForm"] .nav-tabs > li > a:active, - [id*="DynamicForm"] .nav-tabs > li > a:focus { - color: #ffffff; - border-bottom-color: #cccccc; - } - - [id*="DynamicForm"] .nav-tabs > li.active > a, - [id*="DynamicForm"] .nav-tabs > li.active > a:hover, - [id*="DynamicForm"] .nav-tabs > li.active > a:focus { - color: #ffffff; - border: 0 none transparent; - border-bottom: 8px solid #cccccc; - } - - [id*="DynamicForm"] label { - font-weight: normal; - } - - [id*="DynamicForm"] input[type="text"] { - width: 100%; - max-width: 960px; - } - - [id*="DynamicForm"] input[type="text"].form-control { - border-radius: 2px; - } - - [id*="DynamicForm"] ::-webkit-input-placeholder { - color: #999; - } - - [id*="DynamicForm"] :-moz-placeholder { - color: #999; - } - - [id*="DynamicForm"] ::-moz-placeholder { - color: #999; - } - - [id*="DynamicForm"] :-ms-input-placeholder { - color: #999; - } - - [id*="DynamicForm"] input[type="radio"] + label { - font-size: 14px; - margin: 0 3px; - } - - [id*="DynamicForm"] select { - padding: 3px 5px; - border-radius: 2px; - } - - [id*="DynamicForm"] select option { - font-size: 14px; - margin-bottom: 3px; - } - - [id*="DynamicForm"] .Radio-Buttons li { - display: inline-block; - } - - [id*="DynamicForm"] input[class*="Error"] { - border-color: #ef4a24; - } - - [id*="DynamicForm"] input[class*="Error"]:focus { - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f69983; - } - - [id*="DynamicForm"] .Last-Modified { - font-size: 14px; - color: #4d4d4d; - } - - [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] { - width: 100%; - padding: 0; - } - - [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Group-Item { - margin-bottom: 20px; - } - - [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading { - margin-bottom: 5px; - } - - [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .Content-Description { - position: relative; - font-size: 16px; - color: #959595; - text-decoration: none; - top: 2px; - left: 3px; - padding: 2px 5.5px 1px; - cursor: pointer; - } - - [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .tooltip .tooltip-arrow { - border-right-color: #1a1a1a; - } - - [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .Content-Heading .tooltip .tooltip-inner { - background-color: #1a1a1a; - max-width: 550px; - font-size: 14px; - color: #eeeeee; - text-align: left; - padding: 5px 10px; - } - - [id*="DynamicForm"] [id*="DisplayGroupTabsContent"] .tab-pane { - background-color: #ffffff; - padding: 20px 5px; - overflow: auto; - } - - [id*="DynamicForm"] .Callout-Area { - background-color: #ffffff; - padding: 20px 5px 20px 0; - } - - [id*="DynamicForm"] .Callout-Area #FixedCallouts { - position: absolute; - background-color: transparent; - width: 100%; - right: -20px; - } - - [id*="DynamicForm"] .Callout-Area .Callout { - width: 100%; - } - - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info { - position: fixed; - background-color: #ffffff; - width: 16%; - max-width: 214px; - padding: 15px; - border: 1px solid #cccccc; - z-index: 0; - } - - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info h3, - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dt, - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dd { - color: #666666; - } - - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info h3 { - font-family: 'Lato Light', Helvetica, Arial, sans-serif; - margin-top: 0; - } - - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl { - font-size: 13px; - line-height: 18px; - margin-bottom: -13px; - } - - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dt { - font-weight: normal; - } - - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dt .fa { - width: 1em; - margin-right: 5px; - } - - [id*="DynamicForm"] .Callout-Area .Callout.Page-Info dl dd { - margin-left: 1.7em; - margin-bottom: 8px; - } - -[id*="EditorModal"] .modal-header { - background-color: #1a1a1a; - padding: 20px; - border-bottom-color: #cccccc; -} - - [id*="EditorModal"] .modal-header .Page-Title { - font-family: 'Lato Light', Helvetica, Arial, sans-serif; - color: #ffffff; - margin: 0; - } - -[id*="EditorModal"] .modal-content { - background-color: #333333; -} - -[id*="EditorModal"] iframe { - display: block; - vertical-align: bottom; -} - -select[id*="ThemeColor"] option[value*="ThemeColor"], -select[id*="ThemeColor"] option[selected="selected"] { - color: #ffffff; - line-height: 1.6em; -} - - select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Blue"], - select[id*="ThemeColor"] option[selected="selected"][value*="Blue"] { - background-color: #02A3E0; - } - - select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Orange"], - select[id*="ThemeColor"] option[selected="selected"][value*="Orange"] { - background-color: #FF9E1A; - } - - select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Green"], - select[id*="ThemeColor"] option[selected="selected"][value*="Green"] { - background-color: #029A17; - } - - select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Purple"], - select[id*="ThemeColor"] option[selected="selected"][value*="Purple"] { - background-color: #9F5EB5; - } - - select[id*="ThemeColor"] option[value*="ThemeColor"][value*="Red"], - select[id*="ThemeColor"] option[selected="selected"][value*="Red"] { - background-color: #E30046; - } - -@media screen and (max-width: 1024px) { - .Sidebar .AddTopic, - .Sidebar .Add-Topic { - margin-left: 0.5em; - } -} - -@media (min-width: 768px) { - .modal-dialog { - min-width: 700px; - width: 720px; - } -} - -@media (min-width: 768px) and (max-width: 991px) { - [id*="DynamicForm"] .Callout-Area #FixedCallouts { - position: relative; - right: 0; - } - - [id*="DynamicForm"] .Callout-Area #FixedCallouts .Callout.Page-Info { - position: relative; - top: -30px; - left: 20px; - width: 50%; - } -} -/* OVERRIDE NON-SELECTABLE NAV LINKS FOR IE9 */ -.x-tree-arrows .x-tree-elbow-plus, -.x-tree-arrows .x-tree-elbow-minus, -.x-unselectable, -.x-unselectable * { - -moz-user-select: all !important; - -khtml-user-select: all !important; - -webkit-user-select: all !important; - -ms-user-select: all !important; -} - -.x-tree-arrows .x-tree-elbow-minus, -.x-tree-arrows .x-tree-elbow-plus, -.x-tree-arrows .x-tree-elbow-end-plus, -.x-tree-arrows .x-tree-elbow-end-minus { - background-image: url('/!Admin/Topics/Images/Navigation/Arrows.png'); - background-repeat: no-repeat; - background-position: 4px 0; -} - -.x-tree-arrows .x-tree-elbow, -.x-tree-arrows .x-tree-elbow-end { - background-image: url('/!Admin/Topics/Images/Navigation/Dashes.png'); - background-repeat: no-repeat; - background-position: 3px 4px; -} - -.x-tree-node-collapsed .x-tree-node-icon, -.x-tree-node-expanded .x-tree-node-icon, -.x-tree-node-leaf .x-tree-node-icon { - display: none; - background-image: none; -} - -.x-tree-root-node > .x-tree-node { - padding-left: 3px; -} - -.x-tree-node { - font-size: 14px; - white-space: normal; - padding: 1px 0; -} - - .x-tree-node x-tree-selected, - .x-tree-node .x-tree-node-over { - background-color: transparent; - } - - .x-tree-node .x-tree-node-el { - overflow: hidden; - white-space: nowrap; - line-height: normal; - color: #cccccc; - text-overflow: ellipsis; - padding: 0 5px 0 3px; - border: 1px solid transparent; - } - - .x-tree-node .x-tree-node-el .x-tree-node-indent { - display: inline-block; - margin-right: 5px; - margin-left: 0; - } - - .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus, - .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus { - background-position: -50px 0; - margin-right: -2px; - margin-left: 1px; - } - - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus, - .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus { - background-position: -31px 0; - } - - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus, - .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus, - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus, - .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus { - background-position: -16px 0; - } - - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow, - .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow, - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end, - .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end { - background-position: -11px 4px; - } - - .x-tree-node .x-tree-node-el.x-tree-selected a, - .x-tree-node .x-tree-node-el.x-tree-node-over a { - text-decoration: none !important; - } - - .x-tree-node .x-tree-node-el.x-tree-selected a span, - .x-tree-node .x-tree-node-el.x-tree-node-over a span { - color: #ffffff; - } - - .x-tree-node .x-tree-node-el.x-tree-selected { - background-color: transparent; - } - - .x-tree-node .x-tree-node-el .x-tree-node-ct { - display: block; - overflow: visible; - padding: 1px 0; - margin-left: 0; - } - - .x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus { - background-position: 4px 0; - } - - .x-tree-node .x-tree-node-el a.x-tree-node-anchor { - padding-right: 5px; - padding-left: 5px; - } - - .x-tree-node .x-tree-node-el a span { - font-family: 'Lato', Helvetica, Arial, sans-serif; - font-size: 13px; - letter-spacing: 0.02em; - color: #cccccc; - } - -#DisplayGroupTabsContent .x-tree-root-ct { - margin: 0 0 5px; -} - - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node-indent:before { - color: #666666; - } - - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el { - padding: 0 0 5px 0; - } - - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected, - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over { - background-color: transparent; - border-color: transparent; - } - - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-node-indent:before, - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-node-indent:before { - color: #ef4a24; - } - - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span, - #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el a span, - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span, - #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected a span, - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span, - #Modal_DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over a span { - color: #333333; - } - - #DisplayGroupTabsContent .x-tree-root-ct .x-tree-node .x-tree-node-el input[type="checkbox"] { - margin: 0 0 0 3px; - } - -#DisplayGroupTabsContent .cke_chrome { - width: 100%; - max-width: 960px; - padding: 0; - /* border: 0 none transparent; */ -} - - #DisplayGroupTabsContent .cke_chrome .cke_inner { - background: #DEDEDE; - border-radius: 0; - } - - #DisplayGroupTabsContent .cke_chrome .cke_editable { - font-size: 14px; - padding: 10px; - } - - #DisplayGroupTabsContent .cke_chrome .cke_editable ul, - #DisplayGroupTabsContent .cke_chrome .cke_editable ol { - padding-left: 25px; - } - - #DisplayGroupTabsContent .cke_chrome .cke_editable ul { - list-style-type: square; - } - - #DisplayGroupTabsContent .cke_chrome .cke_editable ol { - list-style-type: decimal; - } - -ul.token-input-list { - display: block; - width: 100%; - height: 36px; - padding: 6px 12px; - font-size: 16px; - line-height: 1.42857143; - color: #4d4d4d; - background-color: #ffffff; - background-image: none; - border: 1px solid #cccccc; - border-radius: 1px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - height: 33px; - padding: 5px 10px; - font-size: 14px; - line-height: 1.5; - border-radius: 0; - position: relative; - line-height: 115%; - padding: 2px 0; - border-radius: 2px; -} - - ul.token-input-list:focus { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); - } - - ul.token-input-list::-moz-placeholder { - color: #666666; - opacity: 1; - } - - ul.token-input-list:-ms-input-placeholder { - color: #666666; - } - - ul.token-input-list::-webkit-input-placeholder { - color: #666666; - } - - ul.token-input-list[disabled], - ul.token-input-list[readonly], - fieldset[disabled] ul.token-input-list { - cursor: not-allowed; - background-color: #cccccc; - opacity: 1; - } - -textareaul.token-input-list { - height: auto; -} - -selectul.token-input-list { - height: 33px; - line-height: 33px; -} - -textareaul.token-input-list, -select[multiple]ul.token-input-list { - height: auto; -} - -ul.token-input-list.token-input-focused { - border-color: #66afe9; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #bfdef6; -} - -ul.token-input-list li { - display: inline-block; - padding: 3px 7px; - margin: 3px 1px 0 4px; -} - - ul.token-input-list li input[type="text"] { - font-family: 'Lato', Helvetica, Arial, sans-serif; - height: 19px; - line-height: 21px; - padding: 0; - } - - ul.token-input-list li.token-input-token { - background-color: #CEE7F2; - } - - ul.token-input-list li.token-input-token p, - ul.token-input-list li.token-input-token span { - display: inline-block; - } - - ul.token-input-list li.token-input-token p { - font-family: 'Lato', Helvetica, Arial, sans-serif; - font-weight: normal; - color: #4d4d4d; - margin-right: 5px; - } - - ul.token-input-list li.token-input-token span.token-input-delete-token { - position: relative; - top: -1px; - color: #959595; - } - - ul.token-input-list li.token-input-token ~ li.token-input-input-token { - position: absolute; - bottom: 2px; - padding-top: 1px; - padding-bottom: 4px; - margin-left: -1px; - } - -div.token-input-dropdown p { - font-family: 'Lato', Helvetica, Arial, sans-serif; - font-weight: normal; -} - -div.token-input-dropdown ul li { - color: #4d4d4d; -} - - div.token-input-dropdown ul li.token-input-dropdown-item { - background-color: #EEE; - } - - div.token-input-dropdown ul li.token-input-selected-dropdown-item { - background-color: #D4EFFA; - } - - div.token-input-dropdown ul li .Breadcrumbs { - color: #666666; - } - - div.token-input-dropdown ul li em { - font-weight: normal; - } diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css deleted file mode 100644 index 2de093f7..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.min.css +++ /dev/null @@ -1 +0,0 @@ -@import url(https://fonts.googleapis.com/css?family=Lato:300,400);body,ol,p,td,ul{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(16);line-height:1.4}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:0;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;line-height:1.1}.logotype.lockup a,.page.title h1{margin:0;padding-top:25px;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:34px;font-weight:300;line-height:41px;color:#fff}.logotype.lockup a{text-decoration:none}.form{background-color:#fff}fieldset legend{margin-bottom:rem-calc(18);padding-top:rem-calc(34);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:rem-calc(20);font-weight:600}input.submit{margin-bottom:0}textarea{max-width:100%;min-height:128px}.form-control{border-radius:1px}.form-control:active,.form-control:focus{border-color:#09a4d4}.checkbox label,.radio label{height:auto;line-height:20px}.radio label:after{top:2px!important;left:2px!important;width:17px!important;height:17px!important}.radio input[type=radio]:checked+label:after{background-color:#09a4d4}span.radio{display:block}.checkbox{padding-bottom:rem-calc(20)}.checkbox label:after{line-height:1.8;color:#000}.checkbox input[type=checkbox]:checked+label:before{background-color:#09a4d4}.instructions{font-size:rem-calc(16);font-style:italic;color:#666}.instructions.error{color:#ef4a24}a{color:#0872a3}a:active,a:focus,a:hover{color:#07618b}.btn{border-radius:1px;color:#fff}.btn-default{border-color:#959595;background-color:#959595}.btn-primary{border-color:#09a4d4;background-color:#09a4d4}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{border-color:#076b9a;background-color:#0872a3}.btn-ancillary{border-color:#4d4d4d;background-color:#4d4d4d}.btn-ancillary:active,.btn-ancillary:focus,.btn-ancillary:hover{border-color:#2e2e2e;background-color:#333}.open>.dropdown-toggle{border-color:#2e2e2e;background-color:#333}.buttons.action button{margin-left:4px}.nav-tabs{border-bottom:0 none transparent;padding-left:15px}.nav-tabs>.nav-item{margin-bottom:0}.nav-tabs>.nav-item .nav-link{margin-right:10px;border:0 none transparent;border-bottom:8px solid transparent;padding:5px;color:#ccc}.nav-tabs>.nav-item .nav-link:active,.nav-tabs>.nav-item .nav-link:focus,.nav-tabs>.nav-item .nav-link:hover{border-bottom-color:#ccc;color:#fff}.nav-tabs>.nav-item .nav-link.active{border-bottom-color:#ccc;color:#fff;background-color:transparent}.nav-tabs>.nav-item .nav-link.active:focus,.nav-tabs>.nav-item .nav-link.active:hover{border-bottom-color:#ccc;color:#fff;background-color:transparent}.tab-content{padding:20px 0 20px 5px;background-color:#fff}.callouts{padding-top:20px;padding-right:20px}.callout.topic-info{position:fixed;border:1px solid #ccc;padding:15px;width:10.5%;max-width:214px}.callout.topic-info dd,.callout.topic-info dt,.callout.topic-info h3{color:#666}.callout.topic-info h3{margin-top:0;margin-bottom:12px;font-size:1rem;font-weight:300}.callout.topic-info dl{margin-bottom:-13px;font-size:13px;line-height:18px}.callout.topic-info dl dd,.callout.topic-info dl dt{font-weight:400}.callout.topic-info dl dt .fa{margin-right:5px;width:1em}.callout.topic-info dl dd{margin-bottom:8px;margin-left:22px}.tooltip-arrow{border-right-color:#1a1a1a}.tooltip-inner{padding:5px 10px;max-width:550px;font-size:14px;color:#eee;text-align:left;background-color:#1a1a1a}.fa-info-circle{position:relative;top:0;left:3px;padding-right:12px;font-size:16px;color:#959595;cursor:pointer}.hidden{display:none}.centered{text-align:center}.no-list-style{list-style:none}.uppercase{text-transform:uppercase}.no-transform{text-transform:none}.header,.navbar.fixed-top{background-color:#1a1a1a}.navbar.fixed-top{border-bottom:1px solid #ccc}.navbar.fixed-top .logotype.lockup{border:1px solid #ccc;border-top:0 none transparent;background-color:#ef4a24}.attribute{margin-bottom:20px}html{height:100%}body{position:relative;margin:0;padding-top:87px;min-height:100%;background-color:#333}#HeaderContainer,#SiteHeader{padding:0;min-height:85px}#HeaderContainer .row,#SiteHeader .row{width:100%}#HeaderContainer .logotype.lockup,#HeaderContainer .page.title,#SiteHeader .logotype.lockup,#SiteHeader .page.title{min-height:84px}#HeaderContainer .logotype.lockup,#SiteHeader .logotype.lockup{margin-bottom:-9px;min-height:95px}#HeaderContainer .logotype.lockup a,#SiteHeader .logotype.lockup a{display:block;margin-left:-2px}#HeaderContainer .page.title h1,#SiteHeader .page.title h1{margin-left:3px}#MainContentArea{padding:0}#MainContentArea #PageContentArea{margin:0;padding:50px 0 0}#MainContentArea #Toolbar{z-index:50;position:fixed;padding-top:10px}#MainContentArea #Toolbar .buttons{float:right;margin-top:-2px;padding:0 8px}#MainContentArea #FormArea{margin:0}.sidebar{padding-top:50px}.sidebar .treeview input[type=checkbox]{display:none}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end,.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-repeat:no-repeat}.x-tree-arrows .x-tree-elbow-end-minus,.x-tree-arrows .x-tree-elbow-end-plus,.x-tree-arrows .x-tree-elbow-minus,.x-tree-arrows .x-tree-elbow-plus{background-image:url(../../Images/Navigation/Arrows.png);background-position:4px 0}.x-tree-arrows .x-tree-elbow,.x-tree-arrows .x-tree-elbow-end{background-image:url(../../Images/Navigation/Dashes.png);background-position:3px 4px}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{display:none;background-image:none}.x-tree-root-node>.x-tree-node{padding-left:3px}.x-tree-node{padding:1px 0;font-size:14px;white-space:normal}.x-tree-node .x-tree-node-over,.x-tree-node .x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el{overflow:hidden;border:1px solid transparent;padding:0 5px 0 3px;line-height:normal;color:#ccc;white-space:nowrap;text-overflow:ellipsis}.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus{margin-right:-2px;margin-left:1px;background-position:-50px 0}.x-tree-node .x-tree-node-el.x-tree-node-over,.x-tree-node .x-tree-node-el.x-tree-selected{background-color:transparent}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end{background-position:-11px 4px}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus{background-position:-31px 0}.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus,.x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus{background-position:-16px 0}.x-tree-node .x-tree-node-el.x-tree-node-over a,.x-tree-node .x-tree-node-el.x-tree-selected a{text-decoration:none!important}.x-tree-node .x-tree-node-el.x-tree-node-over a span,.x-tree-node .x-tree-node-el.x-tree-selected a span{color:#fff}.x-tree-node .x-tree-node-el a.x-tree-node-anchor{padding-right:5px;padding-left:5px}.x-tree-node .x-tree-node-el a span{font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.02em;color:#ccc}.x-tree-node .x-tree-node-el .x-tree-node-indent{display:inline-block;margin-right:5px;margin-left:0}.x-tree-node .x-tree-node-el .x-tree-node-ct{display:block;overflow:visible;margin-left:0;padding:1px 0}.x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus{background-position:4px 0}.tab-content .x-tree-root-ct{margin:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node-indent:before{color:#ccc}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el{padding:0 0 5px}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected{border-color:transparent;background-color:transparent}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .tree-node-indent:before,.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .tree-node-indent:before{color:#ef4a24}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el a span{color:#333}.tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el input[type=checkbox]{margin:0 0 0 3px} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css deleted file mode 100644 index e9503efe..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Stylesheet.css +++ /dev/null @@ -1,14 +0,0 @@ -/* - -body { - font-family: sans-serif; - font-size: 14px; -} - -.attribute label { - display: block; - margin-top: 15px; - font-size: 1.2em; -} - -*/ From de55fc79b22993973679acde0de1b6eb207ffc29 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 13:43:57 -0700 Subject: [PATCH 379/637] Fixed warnings from `JSHint` In preparation for implementing a new **Gulp** workflow, identified some issues via `JSHint` (which, in fairness, **Visual Studio** had also flagged). Mostly, extraneous semi-colons. These are mostly resolved. (There remain a couple of issues pertaining to jQuery references, but we'll take care of those later.) --- .../Shared/Scripts/Common.Functions.js | 4 +-- .../Shared/Scripts/Modal.js | 2 +- .../Shared/Scripts/TokenizedTopicList.js | 30 +++++++++---------- .../Shared/Scripts/TopicList.js | 2 +- .../Scripts/Window.Primary.Functions.js | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js index be21eee5..05162e23 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js @@ -88,9 +88,9 @@ function initEditorModal(title, targetUrl, onCloseFunction) { backdrop : 'static', keyboard : false }); - }; + } -}; +} // Passthrough function for evaluating/setting the Topic Key value based on the Title value function getKeyValue(input) { diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js index 91d3cf15..705f6b6d 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js @@ -23,7 +23,7 @@ backdrop : 'static', keyboard : false }); - }; + } }; diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js index 85306a1c..a40d96ff 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js @@ -15,13 +15,13 @@ | 04.14.15 Katherine Trunkey Refactored to TokenizedTopics class structure \-----------------------------------------------------------------------------------------------------------------------------*/ - 'use strict'; - /*============================================================================================================================== | TOKENIZED TOPICS CLASS \-----------------------------------------------------------------------------------------------------------------------------*/ var TokenizedTopics = function() { + 'use strict'; + /*---------------------------------------------------------------------------------------------------------------------------- | Constructor/internal properties \---------------------------------------------------------------------------------------------------------------------------*/ @@ -51,14 +51,14 @@ /*---------------------------------------------------------------------------------------------------------------------------- | Build Topics.Json.aspx call URL \---------------------------------------------------------------------------------------------------------------------------*/ - var topicsUrl = '/OnTopic/Json/' - + self.scope - + '?ShowRoot=true' - + '&FlattenStructure=true' - + '&UsePartialMatch=true' - + '&AttributeName=' + self.attributeName - + '&AttributeValue=' + self.attributeValue - + '&ResultLimit=' + self.resultLimit; + var topicsUrl = '/OnTopic/Json/' + + self.scope + + '?ShowRoot=true' + + '&FlattenStructure=true' + + '&UsePartialMatch=true' + + '&AttributeName=' + self.attributeName + + '&AttributeValue=' + self.attributeValue + + '&ResultLimit=' + self.resultLimit; /*---------------------------------------------------------------------------------------------------------------------------- | Initialize Token-Input with options set on TokenizedTopics @@ -83,11 +83,11 @@ if (breadcrumbs.indexOf('Root:') >= 0) { breadcrumbs = breadcrumbs.substring(breadcrumbs.indexOf('Root:') + 5); } - return '' - + '
  • ' - + ' ' + breadcrumbs + '' - + '
    ' + item.text + '
    ' - + '
  • '; + return '' + + '
  • ' + + ' ' + breadcrumbs + '' + + '
    ' + item.text + '
    ' + + '
  • '; } }); diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js index 75b4715b..32ac300c 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js @@ -23,7 +23,7 @@ backdrop : 'static', keyboard : false }); - }; + } }; diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js index ce89d2f2..da528996 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js @@ -40,7 +40,7 @@ $(function() { var $formAreaOffset = $('#DisplayGroupTabsContent').offset(); if ($formAreaOffset) { $('#DisplayGroupTabsContent').css('min-height', ($windowHeight - $formAreaOffset.top) + 'px'); - }; + } }); From 5f769977055cc45dc910b7cbe117a592226fc94a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 13:47:30 -0700 Subject: [PATCH 380/637] Delete `Style.css` in preparation for *Gulp* workflow While `Style.css` is still being used, it will now be generated as part of the forthcoming **Gulp** workflow. The compiled version is no longer needed in source control. --- .../wwwroot/Shared/Styles/Style.css | 392 ------------------ 1 file changed, 392 deletions(-) delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css deleted file mode 100644 index f90fd713..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Style.css +++ /dev/null @@ -1,392 +0,0 @@ -@import url("https://fonts.googleapis.com/css?family=Lato:300,400"); -body, -p, -td, -ol, -ul { - font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: rem-calc(16); - line-height: 1.4; } - -h1, -.h1, -h2, -.h2, -h3, -.h3, -h4, -.h4, -h5, -.h5, -h6, -.h6 { - margin-bottom: 0; - font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-weight: 300; - line-height: 1.1; } - -.logotype.lockup a, -.page.title h1 { - margin: 0; - padding-top: 25px; - font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 34px; - font-weight: 300; - line-height: 41px; - color: white; } - -.logotype.lockup a { - text-decoration: none; } - -.form { - background-color: white; } - -fieldset legend { - margin-bottom: rem-calc(18); - padding-top: rem-calc(34); - font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: rem-calc(20); - font-weight: 600; } - -input.submit { - margin-bottom: 0; } - -textarea { - max-width: 100%; - min-height: 128px; } - -.form-control { - border-radius: 1px; } - .form-control:focus, .form-control:active { - border-color: #09a4d4; } - -.radio label, -.checkbox label { - height: auto; - line-height: 20px; } - -.radio label:after { - top: 2px !important; - left: 2px !important; - width: 17px !important; - height: 17px !important; } - -.radio input[type="radio"]:checked + label:after { - background-color: #09a4d4; } - -span.radio { - display: block; } - -.checkbox { - padding-bottom: rem-calc(20); } - .checkbox label:after { - line-height: 1.8; - color: black; } - .checkbox input[type="checkbox"]:checked + label:before { - background-color: #09a4d4; } - -.instructions { - font-size: rem-calc(16); - font-style: italic; - color: #666666; } - .instructions.error { - color: #ef4a24; } - -a { - color: #0872a3; } - a:hover, a:focus, a:active { - color: #07618b; } - -.btn { - border-radius: 1px; - color: white; } - -.btn-default { - border-color: #959595; - background-color: #959595; } - -.btn-primary { - border-color: #09a4d4; - background-color: #09a4d4; } - .btn-primary:hover, .btn-primary:focus, .btn-primary:active { - border-color: #076b9a; - background-color: #0872a3; } - -.btn-ancillary { - border-color: #4d4d4d; - background-color: #4d4d4d; } - .btn-ancillary:hover, .btn-ancillary:focus, .btn-ancillary:active { - border-color: #2e2e2e; - background-color: #333333; } - -.open > .dropdown-toggle { - border-color: #2e2e2e; - background-color: #333333; } - -.buttons.action button { - margin-left: 4px; } - -.nav-tabs { - border-bottom: 0 none transparent; - padding-left: 15px; } - .nav-tabs > .nav-item { - margin-bottom: 0; } - .nav-tabs > .nav-item .nav-link { - margin-right: 10px; - border: 0 none transparent; - border-bottom: 8px solid transparent; - padding: 5px; - color: #cccccc; } - .nav-tabs > .nav-item .nav-link:hover, .nav-tabs > .nav-item .nav-link:focus, .nav-tabs > .nav-item .nav-link:active { - border-bottom-color: #cccccc; - color: white; } - .nav-tabs > .nav-item .nav-link.active { - border-bottom-color: #cccccc; - color: white; - background-color: transparent; } - .nav-tabs > .nav-item .nav-link.active:hover, .nav-tabs > .nav-item .nav-link.active:focus { - border-bottom-color: #cccccc; - color: white; - background-color: transparent; } - -.tab-content { - padding: 20px 0 20px 5px; - background-color: white; } - -.callouts { - padding-top: 20px; - padding-right: 20px; } - -.callout.topic-info { - position: fixed; - border: 1px solid #cccccc; - padding: 15px; - width: 10.5%; - max-width: 214px; } - .callout.topic-info h3, - .callout.topic-info dt, - .callout.topic-info dd { - color: #666666; } - .callout.topic-info h3 { - margin-top: 0; - margin-bottom: 12px; - font-size: 1rem; - font-weight: 300; } - .callout.topic-info dl { - margin-bottom: -13px; - font-size: 13px; - line-height: 18px; } - .callout.topic-info dl dt, - .callout.topic-info dl dd { - font-weight: normal; } - .callout.topic-info dl dt .fa { - margin-right: 5px; - width: 1em; } - .callout.topic-info dl dd { - margin-bottom: 8px; - margin-left: 22px; } - -.tooltip-arrow { - border-right-color: #1a1a1a; } - -.tooltip-inner { - padding: 5px 10px; - max-width: 550px; - font-size: 14px; - color: #eeeeee; - text-align: left; - background-color: #1a1a1a; } - -.fa-info-circle { - position: relative; - top: 0; - left: 3px; - padding-right: 12px; - font-size: 16px; - color: #959595; - cursor: pointer; } - -.hidden { - display: none; } - -.centered { - text-align: center; } - -.no-list-style { - list-style: none; } - -.uppercase { - text-transform: uppercase; } - -.no-transform { - text-transform: none; } - -.navbar.fixed-top, -.header { - background-color: #1a1a1a; } - -.navbar.fixed-top { - border-bottom: 1px solid #cccccc; } - .navbar.fixed-top .logotype.lockup { - border: 1px solid #cccccc; - border-top: 0 none transparent; - background-color: #ef4a24; } - -.attribute { - margin-bottom: 20px; } - -html { - height: 100%; } - -body { - position: relative; - margin: 0; - padding-top: 87px; - min-height: 100%; - background-color: #333333; } - -#SiteHeader, -#HeaderContainer { - padding: 0; - min-height: 85px; } - #SiteHeader .row, - #HeaderContainer .row { - width: 100%; } - #SiteHeader .logotype.lockup, - #SiteHeader .page.title, - #HeaderContainer .logotype.lockup, - #HeaderContainer .page.title { - min-height: 84px; } - #SiteHeader .logotype.lockup, - #HeaderContainer .logotype.lockup { - margin-bottom: -9px; - min-height: 95px; } - #SiteHeader .logotype.lockup a, - #HeaderContainer .logotype.lockup a { - display: block; - margin-left: -2px; } - #SiteHeader .page.title h1, - #HeaderContainer .page.title h1 { - margin-left: 3px; } - -#MainContentArea { - padding: 0; } - #MainContentArea #PageContentArea { - margin: 0; - padding: 50px 0 0; } - #MainContentArea #Toolbar { - z-index: 50; - position: fixed; - padding-top: 10px; } - #MainContentArea #Toolbar .buttons { - float: right; - margin-top: -2px; - padding: 0 8px; } - #MainContentArea #FormArea { - margin: 0; } - -.sidebar { - padding-top: 50px; } - .sidebar .treeview input[type="checkbox"] { - display: none; } - -.x-tree-arrows .x-tree-elbow-minus, -.x-tree-arrows .x-tree-elbow-plus, -.x-tree-arrows .x-tree-elbow-end-minus, -.x-tree-arrows .x-tree-elbow-end-plus, -.x-tree-arrows .x-tree-elbow, -.x-tree-arrows .x-tree-elbow-end { - background-repeat: no-repeat; } - -.x-tree-arrows .x-tree-elbow-minus, -.x-tree-arrows .x-tree-elbow-plus, -.x-tree-arrows .x-tree-elbow-end-minus, -.x-tree-arrows .x-tree-elbow-end-plus { - background-image: url("../../Images/Navigation/Arrows.png"); - background-position: 4px 0; } - -.x-tree-arrows .x-tree-elbow, -.x-tree-arrows .x-tree-elbow-end { - background-image: url("../../Images/Navigation/Dashes.png"); - background-position: 3px 4px; } - -.x-tree-node-collapsed .x-tree-node-icon, -.x-tree-node-expanded .x-tree-node-icon, -.x-tree-node-leaf .x-tree-node-icon { - display: none; - background-image: none; } - -.x-tree-root-node > .x-tree-node { - padding-left: 3px; } - -.x-tree-node { - padding: 1px 0; - font-size: 14px; - white-space: normal; } - .x-tree-node .x-tree-selected, - .x-tree-node .x-tree-node-over { - background-color: transparent; } - .x-tree-node .x-tree-node-el { - overflow: hidden; - border: 1px solid transparent; - padding: 0 5px 0 3px; - line-height: normal; - color: #cccccc; - white-space: nowrap; - text-overflow: ellipsis; } - .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-minus, - .x-tree-node .x-tree-node-el.x-tree-node-expanded .x-tree-elbow-end-minus { - margin-right: -2px; - margin-left: 1px; - background-position: -50px 0; } - .x-tree-node .x-tree-node-el.x-tree-selected, .x-tree-node .x-tree-node-el.x-tree-node-over { - background-color: transparent; } - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow, - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow, - .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end { - background-position: -11px 4px; } - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-plus, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-plus { - background-position: -31px 0; } - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-minus, - .x-tree-node .x-tree-node-el.x-tree-selected .x-tree-elbow-end-minus, .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-minus, - .x-tree-node .x-tree-node-el.x-tree-node-over .x-tree-elbow-end-minus { - background-position: -16px 0; } - .x-tree-node .x-tree-node-el.x-tree-selected a, .x-tree-node .x-tree-node-el.x-tree-node-over a { - text-decoration: none !important; } - .x-tree-node .x-tree-node-el.x-tree-selected a span, .x-tree-node .x-tree-node-el.x-tree-node-over a span { - color: white; } - .x-tree-node .x-tree-node-el a.x-tree-node-anchor { - padding-right: 5px; - padding-left: 5px; } - .x-tree-node .x-tree-node-el a span { - font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 13px; - letter-spacing: 0.02em; - color: #cccccc; } - .x-tree-node .x-tree-node-el .x-tree-node-indent { - display: inline-block; - margin-right: 5px; - margin-left: 0; } - .x-tree-node .x-tree-node-el .x-tree-node-ct { - display: block; - overflow: visible; - margin-left: 0; - padding: 1px 0; } - .x-tree-node .x-tree-node-el .x-tree-node-ct .x-tree-ec-icon .x-tree-elbow-plus { - background-position: 4px 0; } - -.tab-content .x-tree-root-ct { - margin: 0 0 5px; } - .tab-content .x-tree-root-ct .x-tree-node-indent:before { - color: #cccccc; } - .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el { - padding: 0 0 5px; } - .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected, .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over { - border-color: transparent; - background-color: transparent; } - .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-selected .tree-node-indent:before, .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el.x-tree-node-over .tree-node-indent:before { - color: #ef4a24; } - .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el a span { - color: #333333; } - .tab-content .x-tree-root-ct .x-tree-node .x-tree-node-el input[type="checkbox"] { - margin: 0 0 0 3px; } From e5e7b09f80d54b2aa8fbf81cc27bae9ba574e9ce Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 13:49:50 -0700 Subject: [PATCH 381/637] Excludes generated `JS`, `CSS`, and `MAP` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repository doesn't need to track files that will be generated via the **Gulp** workflow. Excluding `*.js`, `*.css`, and `*.map` files in the `/wwwroot/Shared/Scripts` and `/wwwroot/Shared/Styles` folders. Will maintain the `/Vendor` subdirectories for now—though we'll be taking care of those at a later date. --- .gitignore | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3143ef69..8fb26216 100644 --- a/.gitignore +++ b/.gitignore @@ -293,10 +293,8 @@ __pycache__/ # Gulp build process files /node_modules -/bower_components **/*/.sass-cache *.sass-cache* -gulpFile.js # Custom config.yml @@ -304,4 +302,8 @@ config.yml compilerconfig.json compilerconfig.json.defaults **/ExtJS/* -**/Vendor/* \ No newline at end of file +**/Vendor/* +*.js.map +*.css.map +**/wwwroot/Shared/Styles/*.css +**/wwwroot/Shared/Scripts/*.js From ce91795c2a10cb1ae8b7e8c900b30468587bcb46 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 14:11:56 -0700 Subject: [PATCH 382/637] Introduced new *Gulp.js* workflow The new workflow compiles, minimizes, and maps the `SCSS` files from `/Shared/Styles` and outputs the results to `/wwwroot/Shared/Styles`. It also validates (`JSHint`), uglifies, and maps the `JS` files from `/Shared/Scripts` and outputs them to `/wwwroot/Shared/Scripts`. As part of this process, the `package.json` file was rebuilt with only the current dependencies. --- Ignia.Topics.Editor.Mvc/gulpFile.js | 118 + Ignia.Topics.Editor.Mvc/package-lock.json | 9652 ++++++++------------- Ignia.Topics.Editor.Mvc/package.json | 49 +- 3 files changed, 3827 insertions(+), 5992 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/gulpFile.js diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js new file mode 100644 index 00000000..778631fa --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -0,0 +1,118 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client GoldSim +| Project Website +\=============================================================================================================================*/ + +/*============================================================================================================================== +| DEPENDENCIES +\-----------------------------------------------------------------------------------------------------------------------------*/ +const {src, dest, parallel} = require('gulp'); + +const gulpif = require('gulp-if'), + concat = require('gulp-concat'), + merge = require('merge2'); + +const sass = require('gulp-sass'), + postCss = require("gulp-postcss"), + cssNano = require("cssnano"), + sourceMaps = require("gulp-sourcemaps"), + jshint = require('gulp-jshint'), + uglify = require('gulp-uglify'); + +/*============================================================================================================================== +| VARIABLES +\-----------------------------------------------------------------------------------------------------------------------------*/ +var environment = 'development', + outputDir = 'wwwroot', + isProduction = false; + +/*============================================================================================================================== +| SOURCE FILE PATHS +>------------------------------------------------------------------------------------------------------------------------------- +| Paths to files referenced in the build process. Path names may use any "magic" glob characters, as documented at +| https://github.com/isaacs/node-glob. +>------------------------------------------------------------------------------------------------------------------------------- +| ### NOTE: JJC021715: These paths are only intended for source files. Destination files will not use glob "magic", and will +| be conditional based on the outputDir. As a result, they will likely be hardcoded into each task's dest() method. +\-----------------------------------------------------------------------------------------------------------------------------*/ +const files = { + scss : 'Shared/Styles/Style.scss', + js : 'Shared/Scripts/*.js' +}; + +/*============================================================================================================================== +| SET ENVIRONMENT +>------------------------------------------------------------------------------------------------------------------------------- +| Looks for an environment variable and conditionally set local context accordingly. +\-----------------------------------------------------------------------------------------------------------------------------*/ +environment = process.env.BUILD_ENVIRONMENT || environment; + +// Environment: Development +if (environment === 'development') { + isProduction = false; +} + +// Environment: Production +else { + isProduction = true; +} + +/*============================================================================================================================== +| TASK: SCSS +>------------------------------------------------------------------------------------------------------------------------------- +| Compiles the SCSS files, including views, and moves them to the build directory. +\-----------------------------------------------------------------------------------------------------------------------------*/ +function scssTask() { + return src(files.scss, {base: 'Shared/Styles'}) + //.pipe(autoPrefixer({ browsers: ['last 2 versions', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'] })) + //.pipe(sassUnicode()) + .pipe(sourceMaps.init()) + .pipe(sass()) + .on("error", sass.logError) + .pipe(postCss([ + cssNano() + ])) + .pipe(sourceMaps.write('.')) + .pipe(dest(outputDir + '/Shared/Styles/')); +} + +/*============================================================================================================================== +| TASK: JAVASCRIPT FILES +>------------------------------------------------------------------------------------------------------------------------------- +| Minimizes JavaScript files as part of production process. +\-----------------------------------------------------------------------------------------------------------------------------*/ +function jsTask() { + return src(files.js, { base: 'Shared/Scripts' }) + //.pipe(jshint('.jshintrc')) + .pipe(sourceMaps.init()) + .pipe(jshint()) + .pipe(jshint.reporter('default')) + //.pipe(concat('Scripts.js')) + .pipe(uglify()) + .pipe(sourceMaps.write('.')) + .pipe(dest(outputDir + '/Shared/Scripts/')); +} + +/*============================================================================================================================== +| EXPORT TASKS +>------------------------------------------------------------------------------------------------------------------------------- +| Exports the above defined tasks for use by gulp. +\-----------------------------------------------------------------------------------------------------------------------------*/ +exports.scss = scssTask; +exports.js = jsTask; + +/*============================================================================================================================== +| TASK: BUILD +>------------------------------------------------------------------------------------------------------------------------------- +| Composite task that will call all build-related tasks. +\-----------------------------------------------------------------------------------------------------------------------------*/ +exports.build = parallel(scssTask, jsTask); + +/*============================================================================================================================== +| TASK: DEFAULT +>------------------------------------------------------------------------------------------------------------------------------- +| The default task when Gulp runs, assuming no task is specified. Assuming the environment variable isn't explicitly defined +| otherwise, will run on development-oriented tasks. +\-----------------------------------------------------------------------------------------------------------------------------*/ +exports.default = parallel(scssTask, jsTask); diff --git a/Ignia.Topics.Editor.Mvc/package-lock.json b/Ignia.Topics.Editor.Mvc/package-lock.json index a2b09bd4..3f27ff2e 100644 --- a/Ignia.Topics.Editor.Mvc/package-lock.json +++ b/Ignia.Topics.Editor.Mvc/package-lock.json @@ -1,8 +1,7 @@ { - "name": "gulp-workflow", - "version": "0.0.1", - "lockfileVersion": 1, + "name": "Ignia.Topics.Editor.Mvc", "requires": true, + "lockfileVersion": 1, "dependencies": { "@gulp-sourcemaps/identity-map": { "version": "1.0.2", @@ -27,39 +26,18 @@ "through2": "^2.0.3" } }, + "@types/q": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz", + "integrity": "sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==", + "dev": true + }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true }, - "accepts": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", - "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", - "dev": true, - "requires": { - "mime-types": "~2.1.18", - "negotiator": "0.6.1" - }, - "dependencies": { - "mime-db": { - "version": "1.38.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", - "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==", - "dev": true - }, - "mime-types": { - "version": "2.1.22", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", - "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", - "dev": true, - "requires": { - "mime-db": "~1.38.0" - } - } - } - }, "acorn": { "version": "5.7.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", @@ -67,9 +45,9 @@ "dev": true }, "ajv": { - "version": "6.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", - "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", + "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", "dev": true, "requires": { "fast-deep-equal": "^2.0.1", @@ -78,6 +56,12 @@ "uri-js": "^4.2.2" } }, + "alphanum-sort": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", + "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", + "dev": true + }, "amdefine": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", @@ -127,10 +111,13 @@ "dev": true }, "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } }, "ansi-wrap": { "version": "0.1.0", @@ -138,29 +125,31 @@ "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", "dev": true }, + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "append-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/append-buffer/-/append-buffer-1.0.2.tgz", + "integrity": "sha1-2CIM9GYIFSXv6lBhTz3mUU36WPE=", + "dev": true, + "requires": { + "buffer-equal": "^1.0.0" + } + }, "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true }, - "archive-type": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-3.2.0.tgz", - "integrity": "sha1-nNnABpV+vpX62tW9YJiUKoE3N/Y=", - "dev": true, - "requires": { - "file-type": "^3.1.0" - }, - "dependencies": { - "file-type": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", - "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=", - "dev": true - } - } - }, "archy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", @@ -175,69 +164,30 @@ "requires": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } } }, - "argh": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/argh/-/argh-0.1.4.tgz", - "integrity": "sha1-PrTWEpc/xrbcbvM49W91nyrFw6Y=", - "dev": true - }, "argparse": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", - "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "optional": true, "requires": { "sprintf-js": "~1.0.2" } }, "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "arr-filter": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/arr-filter/-/arr-filter-1.1.2.tgz", + "integrity": "sha1-Q/3d0JHo7xGqTEXZzcGOLf8XEe4=", "dev": true, "requires": { - "arr-flatten": "^1.0.1" + "make-iterator": "^1.0.0" } }, "arr-flatten": { @@ -246,16 +196,19 @@ "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "dev": true }, - "arr-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", - "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", - "dev": true + "arr-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/arr-map/-/arr-map-2.0.2.tgz", + "integrity": "sha1-Onc0X/wc814qkYJWAfnljy4kysQ=", + "dev": true, + "requires": { + "make-iterator": "^1.0.0" + } }, - "array-differ": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", - "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", "dev": true }, "array-each": { @@ -270,31 +223,70 @@ "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", "dev": true }, - "array-slice": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.0.0.tgz", - "integrity": "sha1-5zA08A3MH0CHYAj9IP6ud71LfC8=", - "dev": true + "array-initial": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/array-initial/-/array-initial-1.1.0.tgz", + "integrity": "sha1-L6dLJnOTccOUe9enrcc74zSz15U=", + "dev": true, + "requires": { + "array-slice": "^1.0.0", + "is-number": "^4.0.0" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true + } + } }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "array-last": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/array-last/-/array-last-1.3.0.tgz", + "integrity": "sha512-eOCut5rXlI6aCOS7Z7kCplKRKyiFQ6dHFBem4PwlwKeNFk2/XxTrhRh5T9PyaEWGy/NHTZWbY+nsZlNFJu9rYg==", "dev": true, "requires": { - "array-uniq": "^1.0.1" + "is-number": "^4.0.0" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true + } } }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "array-slice": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz", + "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==", "dev": true }, + "array-sort": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-sort/-/array-sort-1.0.0.tgz", + "integrity": "sha512-ihLeJkonmdiAsD7vpgN3CRcx2J2S0TiYW+IS/5zHBI7mKUq3ySvBdzzBfD236ubDBQFiiyG3SWCPc+msQ9KoYg==", + "dev": true, + "requires": { + "default-compare": "^1.0.0", + "get-value": "^2.0.6", + "kind-of": "^5.0.2" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", "dev": true }, "asn1": { @@ -318,16 +310,22 @@ "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", "dev": true }, - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true + "async-done": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/async-done/-/async-done-1.3.2.tgz", + "integrity": "sha512-uYkTP8dw2og1tu1nmza1n1CMW0qb8gWWlwqMmLb7MhBVs4BXrFziT6HXUd+/RlRA/i4H9AkofYloUbs1fwMqlw==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.2", + "process-nextick-args": "^2.0.0", + "stream-exhaust": "^1.0.1" + } }, - "async-each-series": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/async-each-series/-/async-each-series-1.1.0.tgz", - "integrity": "sha1-9C/YFV048hpbjqB8KOBj7RcAsTg=", + "async-each": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", + "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", "dev": true }, "async-foreach": { @@ -336,6 +334,15 @@ "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", "dev": true }, + "async-settle": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-settle/-/async-settle-1.0.0.tgz", + "integrity": "sha1-HQqRS7Aldb7IqPOnTlCA9yssDGs=", + "dev": true, + "requires": { + "async-done": "^1.2.2" + } + }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -348,20 +355,6 @@ "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", "dev": true }, - "autoprefixer": { - "version": "7.2.6", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.2.6.tgz", - "integrity": "sha512-Iq8TRIB+/9eQ8rbGhcP7ct5cYb/3qjNYAR2SnzLCEcwF6rvVOax8+9+fccgXk4bEhQGjOZd5TLhsksmAdsbGqQ==", - "dev": true, - "requires": { - "browserslist": "^2.11.3", - "caniuse-lite": "^1.0.30000805", - "normalize-range": "^0.1.2", - "num2fraction": "^1.2.2", - "postcss": "^6.0.17", - "postcss-value-parser": "^3.2.3" - } - }, "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -374,602 +367,338 @@ "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", "dev": true }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "bach": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/bach/-/bach-1.2.0.tgz", + "integrity": "sha1-Szzpa/JxNPeaG0FKUcFONMO9mIA=", "dev": true, "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" + "arr-filter": "^1.1.1", + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "array-each": "^1.0.0", + "array-initial": "^1.0.0", + "array-last": "^1.1.1", + "async-done": "^1.2.2", + "async-settle": "^1.0.0", + "now-and-later": "^2.0.0" } }, - "babel-core": { - "version": "6.26.3", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", "dev": true, "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.1", - "debug": "^2.6.9", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.8", - "slash": "^1.0.0", - "source-map": "^0.5.7" + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" }, "dependencies": { - "convert-source-map": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "safe-buffer": "~5.1.1" + "is-descriptor": "^1.0.0" } }, - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "kind-of": "^6.0.0" } }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } } } }, - "babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "tweetnacl": "^0.14.3" } }, - "babel-helpers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", - "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "binary-extensions": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "dev": true + }, + "block-stream": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", + "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" + "inherits": "~2.0.0" } }, - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "babel-register": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", - "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", "dev": true, "requires": { - "babel-core": "^6.26.0", - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "home-or-tmp": "^2.0.0", - "lodash": "^4.17.4", - "mkdirp": "^0.5.1", - "source-map-support": "^0.4.15" + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" }, "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } } } }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "browserslist": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.1.tgz", + "integrity": "sha512-QtULFqKIAtiyNx7NhZ/p4rB8m3xDozVo/pi5VgTlADLF2tNigz/QH+v0m5qhn7XfHT7u+607NcCNOnC0HZAlMg==", "dev": true, "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" + "caniuse-lite": "^1.0.30000999", + "electron-to-chromium": "^1.3.284", + "node-releases": "^1.1.36" } }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "buffer-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz", + "integrity": "sha1-WWFrSYME1Var1GaWayLu2j7KX74=", + "dev": true + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", "dev": true, "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" } }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "caller-callsite": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", + "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", "dev": true, "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } + "callsites": "^2.0.0" } }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "caller-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", + "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", "dev": true, "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } + "caller-callsite": "^2.0.0" } }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "callsites": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", + "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", "dev": true }, - "batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", "dev": true }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, - "beeper": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz", - "integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=", - "dev": true - }, - "bin-build": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/bin-build/-/bin-build-2.2.0.tgz", - "integrity": "sha1-EfjdYfcP/Por3KpbRvXo/t1CIcw=", + "camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", "dev": true, "requires": { - "archive-type": "^3.0.1", - "decompress": "^3.0.0", - "download": "^4.1.2", - "exec-series": "^1.0.0", - "rimraf": "^2.2.6", - "tempfile": "^1.0.0", - "url-regex": "^3.0.0" + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" }, "dependencies": { - "tempfile": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-1.1.1.tgz", - "integrity": "sha1-W8xOrsxKsscH2LwR2ZzMmiyyh/I=", - "dev": true, - "requires": { - "os-tmpdir": "^1.0.0", - "uuid": "^2.0.1" - } - }, - "uuid": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz", - "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=", + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", "dev": true } } }, - "bin-check": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/bin-check/-/bin-check-2.0.0.tgz", - "integrity": "sha1-hvjm9CU4k99g3DFpV/WvAqywWTA=", - "dev": true, - "requires": { - "executable": "^1.0.0" - } - }, - "bin-version": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/bin-version/-/bin-version-1.0.4.tgz", - "integrity": "sha1-nrSY7m/Xb3q5p8FgQ2+JV5Q1144=", + "caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", "dev": true, "requires": { - "find-versions": "^1.0.0" + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" } }, - "bin-version-check": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-2.1.0.tgz", - "integrity": "sha1-5OXfKQuQaffRETJAMe/BP90RpbA=", - "dev": true, - "requires": { - "bin-version": "^1.0.0", - "minimist": "^1.1.0", - "semver": "^4.0.3", - "semver-truncate": "^1.0.0" - } + "caniuse-lite": { + "version": "1.0.30001002", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001002.tgz", + "integrity": "sha512-pRuxPE8wdrWmVPKcDmJJiGBxr6lFJq4ivdSeo9FTmGj5Rb8NX3Mby2pARG57MXF15hYAhZ0nHV5XxT2ig4bz3g==", + "dev": true }, - "bin-wrapper": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/bin-wrapper/-/bin-wrapper-3.0.2.tgz", - "integrity": "sha1-Z9MwYmLksaXy+I7iNGT2plVneus=", - "dev": true, - "requires": { - "bin-check": "^2.0.0", - "bin-version-check": "^2.1.0", - "download": "^4.0.0", - "each-async": "^1.1.1", - "lazy-req": "^1.0.0", - "os-filter-obj": "^1.0.0" - } + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true }, - "bl": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.1.tgz", - "integrity": "sha1-ysMo977kVzDUBLaSID/LWQ4XLV4=", + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { - "readable-stream": "^2.0.5" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "has-flag": "^3.0.0" } } } }, - "block-stream": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", - "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", - "dev": true, - "requires": { - "inherits": "~2.0.0" - } - }, - "body": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/body/-/body-5.1.0.tgz", - "integrity": "sha1-5LoM5BCkaTYyM2dgnstOZVMSUGk=", + "chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", "dev": true, "requires": { - "continuable-cache": "^0.3.1", - "error": "^7.0.0", - "raw-body": "~1.1.0", - "safe-json-parse": "~1.0.1" + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "fsevents": "^1.2.7", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" }, "dependencies": { - "raw-body": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.1.7.tgz", - "integrity": "sha1-HQJ8K/oRasxmI7yo8AAWVyqH1CU=", - "dev": true, - "requires": { - "bytes": "1", - "string_decoder": "0.10" - } + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true } } }, - "brace-expansion": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", - "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "browserslist": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.3.tgz", - "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30000792", - "electron-to-chromium": "^1.3.30" - } - }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", - "dev": true - }, - "buffer-to-vinyl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-to-vinyl/-/buffer-to-vinyl-1.1.0.tgz", - "integrity": "sha1-APFfruOreh3aLN5tkSG//dB7ImI=", + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", "dev": true, "requires": { - "file-type": "^3.1.0", - "readable-stream": "^2.0.2", - "uuid": "^2.0.1", - "vinyl": "^1.0.0" + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" }, "dependencies": { - "file-type": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", - "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "uuid": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz", - "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=", - "dev": true - }, - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" + "is-descriptor": "^0.1.0" } } } }, - "builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true - }, - "bytes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz", - "integrity": "sha1-NWnt6Lo0MV+rmcPpLLBMciDeH6g=", - "dev": true - }, - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", - "dev": true - }, - "camelcase-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", - "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", - "dev": true, - "requires": { - "camelcase": "^2.0.0", - "map-obj": "^1.0.0" - } - }, - "caniuse-lite": { - "version": "1.0.30000951", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000951.tgz", - "integrity": "sha512-eRhP+nQ6YUkIcNQ6hnvdhMkdc7n3zadog0KXNRxAZTT2kHjUb1yGn71OrPhSn8MOvlX97g5CR97kGVj8fMsXWg==", - "dev": true - }, - "capture-stack-trace": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz", - "integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=", - "dev": true - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, - "caw": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/caw/-/caw-1.2.0.tgz", - "integrity": "sha1-/7Im/n78VHKI3GLuPpcHPCEtEDQ=", - "dev": true, - "requires": { - "get-proxy": "^1.0.1", - "is-obj": "^1.0.0", - "object-assign": "^3.0.0", - "tunnel-agent": "^0.4.0" - } - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "clap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/clap/-/clap-1.2.3.tgz", - "integrity": "sha512-4CoL/A3hf90V3VIEjeuhSvlGFEHKzOz+Wfc2IVZc+FaUgU0ZQafJTP49fvnULipOPcAfqhyI2duwQyns6xqjYA==", - "dev": true, - "optional": true, - "requires": { - "chalk": "^1.1.3" - } - }, - "clean-css": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz", - "integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==", - "dev": true, - "requires": { - "source-map": "~0.6.0" - } - }, "cli": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz", @@ -978,45 +707,6 @@ "requires": { "exit": "0.1.2", "glob": "^7.1.1" - }, - "dependencies": { - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "cli-color": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-1.1.0.tgz", - "integrity": "sha1-3hiM3Ekp2DtnrqBBEPvtQP2/Z3U=", - "dev": true, - "requires": { - "ansi-regex": "2", - "d": "^0.1.1", - "es5-ext": "^0.10.8", - "es6-iterator": "2", - "memoizee": "^0.3.9", - "timers-ext": "0.1" } }, "cliui": { @@ -1031,9 +721,9 @@ } }, "clone": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.2.tgz", - "integrity": "sha1-Jgt6meux7f4kdTgXX3gyQ8sZ0Uk=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", "dev": true }, "clone-buffer": { @@ -1043,35 +733,30 @@ "dev": true }, "clone-stats": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "integrity": "sha1-uI+UqCzzi4eR1YBG6kAprYjKmdE=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", + "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", "dev": true }, "cloneable-readable": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.0.0.tgz", - "integrity": "sha1-pikNQT8hemEjL5XkWP84QYz7ARc=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.3.tgz", + "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==", "dev": true, "requires": { "inherits": "^2.0.1", - "process-nextick-args": "^1.0.6", - "through2": "^2.0.1" + "process-nextick-args": "^2.0.0", + "readable-stream": "^2.3.5" } }, - "co": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/co/-/co-3.1.0.tgz", - "integrity": "sha1-TqVOpaCJOBUxheFSEMaNkJK8G3g=", - "dev": true - }, "coa": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/coa/-/coa-1.0.4.tgz", - "integrity": "sha1-qe8VNmDWqGqL3sAomlxoTSF0Mv0=", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", + "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", "dev": true, - "optional": true, "requires": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", "q": "^1.1.2" } }, @@ -1081,31 +766,44 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, + "collection-map": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-map/-/collection-map-1.0.0.tgz", + "integrity": "sha1-rqDwb40mx4DCt1SUOFVEsiVa8Yw=", + "dev": true, + "requires": { + "arr-map": "^2.0.2", + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + } + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, "color": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/color/-/color-0.8.0.tgz", - "integrity": "sha1-iQwHw/1OZJU3Y4kRz2keVFi2/KU=", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/color/-/color-3.1.2.tgz", + "integrity": "sha512-vXTJhHebByxZn3lDvDJYw4lR5+uB3vuoHsuYA5AKuxRVn5wzzIfQKGLBmgdVRHKTJYeK5rvJcHnrd0Li49CFpg==", "dev": true, "requires": { - "color-convert": "^0.5.0", - "color-string": "^0.3.0" - }, - "dependencies": { - "color-convert": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-0.5.3.tgz", - "integrity": "sha1-vbbGnOZg+t/+CwAHzER+G59ygr0=", - "dev": true - } + "color-convert": "^1.9.1", + "color-string": "^1.5.2" } }, "color-convert": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.0.tgz", - "integrity": "sha1-Gsz5fdc5uYO/mU1W/sj5WFNkG3o=", + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, "requires": { - "color-name": "^1.1.1" + "color-name": "1.1.3" } }, "color-name": { @@ -1115,12 +813,13 @@ "dev": true }, "color-string": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz", - "integrity": "sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE=", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.3.tgz", + "integrity": "sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw==", "dev": true, "requires": { - "color-name": "^1.0.0" + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" } }, "color-support": { @@ -1129,46 +828,26 @@ "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", "dev": true }, - "colornames": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/colornames/-/colornames-0.0.2.tgz", - "integrity": "sha1-2BH9bIT1kClJmorEQ2ICk1uSvjE=", - "dev": true - }, - "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", - "dev": true, - "optional": true - }, - "colorspace": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.0.1.tgz", - "integrity": "sha1-yZx5btMRKLmHalLh7l7gOkpxl0k=", - "dev": true, - "requires": { - "color": "0.8.x", - "text-hex": "0.0.x" - } - }, "combined-stream": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", - "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, "requires": { "delayed-stream": "~1.0.0" } }, "commander": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", - "integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", - "dev": true, - "requires": { - "graceful-readlink": ">= 1.0.0" - } + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true }, "concat-map": { "version": "0.0.1", @@ -1177,83 +856,26 @@ "dev": true }, "concat-stream": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz", - "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "requires": { + "buffer-from": "^1.0.0", "inherits": "^2.0.3", "readable-stream": "^2.2.2", "typedarray": "^0.0.6" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } } }, "concat-with-sourcemaps": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", - "integrity": "sha1-9Vs74q60dgGxCi1SWcz7cP0vHdY=", - "dev": true, - "requires": { - "source-map": "^0.5.1" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "connect": { - "version": "3.6.6", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.6.tgz", - "integrity": "sha1-Ce/2xVr3I24TcTWnJXSFi2eG9SQ=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "dev": true, "requires": { - "debug": "2.6.9", - "finalhandler": "1.1.0", - "parseurl": "~1.3.2", - "utils-merge": "1.0.1" + "source-map": "^0.6.1" } }, - "connect-livereload": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/connect-livereload/-/connect-livereload-0.6.1.tgz", - "integrity": "sha512-3R0kMOdL7CjJpU66fzAkCe6HNtd3AavCS4m+uW4KtJjrdGPT0SQEZieAYd+cm+lJoBznNQ4lqipYWkhBMgk00g==", - "dev": true - }, "console-browserify": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", @@ -1269,72 +891,57 @@ "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true }, - "console-stream": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/console-stream/-/console-stream-0.1.1.tgz", - "integrity": "sha1-oJX+B7IEZZVfL6/Si11yvM2UnUQ=", - "dev": true - }, - "content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", - "dev": true - }, - "continuable-cache": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/continuable-cache/-/continuable-cache-0.3.1.tgz", - "integrity": "sha1-vXJ6f67XfnH/OYWskzUakSczrQ8=", - "dev": true - }, "convert-source-map": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.0.tgz", - "integrity": "sha1-ms1whRxtXf3ZPZKC5e35SgP/RrU=", - "dev": true + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } }, - "core-js": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.5.tgz", - "integrity": "sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A==", + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", "dev": true }, + "copy-props": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/copy-props/-/copy-props-2.0.4.tgz", + "integrity": "sha512-7cjuUME+p+S3HZlbllgsn2CDwS+5eCCX16qBgNC4jgSTf49qR1VKy/Zhl400m0IQXl/bPGEVqncgUUMjrr4s8A==", + "dev": true, + "requires": { + "each-props": "^1.3.0", + "is-plain-object": "^2.0.1" + } + }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "create-error-class": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", - "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", + "cosmiconfig": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", + "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", "dev": true, "requires": { - "capture-stack-trace": "^1.0.0" + "import-fresh": "^2.0.0", + "is-directory": "^0.3.1", + "js-yaml": "^3.13.1", + "parse-json": "^4.0.0" } }, "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", + "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", "dev": true, "requires": { "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", "which": "^1.2.9" - }, - "dependencies": { - "lru-cache": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", - "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - } } }, "css": { @@ -1349,14 +956,47 @@ "urix": "^0.1.0" } }, - "csso": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/csso/-/csso-2.3.2.tgz", - "integrity": "sha1-3dUsWHAz9J6Utx/FVWnyUuj/X4U=", + "css-color-names": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", + "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=", + "dev": true + }, + "css-declaration-sorter": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-4.0.1.tgz", + "integrity": "sha512-BcxQSKTSEEQUftYpBVnsH4SF05NTuBokb19/sBt6asXGKZ/6VP7PLG1CBCkFDYOnhXhPh0jMhO6xZ71oYHXHBA==", + "dev": true, + "requires": { + "postcss": "^7.0.1", + "timsort": "^0.3.0" + } + }, + "css-select": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.0.2.tgz", + "integrity": "sha512-dSpYaDVoWaELjvZ3mS6IKZM/y2PMPa/XYoEfYNZePL4U/XgyxZNroHEHReDx/d+VgXh9VbCTtFqLkFbmeqeaRQ==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^2.1.2", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "css-select-base-adapter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", + "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==", + "dev": true + }, + "css-tree": { + "version": "1.0.0-alpha.33", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.33.tgz", + "integrity": "sha512-SPt57bh5nQnpsTBsx/IXbO14sRc9xXu5MtMAVuo0BaQQmyf0NupNPPSoMaqiAF5tDFafYsTkfeH4Q/HCKXkg4w==", "dev": true, - "optional": true, "requires": { - "clap": "^1.0.9", + "mdn-data": "2.0.4", "source-map": "^0.5.3" }, "dependencies": { @@ -1364,8 +1004,135 @@ "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "css-unit-converter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/css-unit-converter/-/css-unit-converter-1.1.1.tgz", + "integrity": "sha1-2bkoGtz9jO2TW9urqDeGiX9k6ZY=", + "dev": true + }, + "css-what": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz", + "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==", + "dev": true + }, + "cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true + }, + "cssnano": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-4.1.10.tgz", + "integrity": "sha512-5wny+F6H4/8RgNlaqab4ktc3e0/blKutmq8yNlBFXA//nSFFAqAngjNVRzUvCgYROULmZZUoosL/KSoZo5aUaQ==", + "dev": true, + "requires": { + "cosmiconfig": "^5.0.0", + "cssnano-preset-default": "^4.0.7", + "is-resolvable": "^1.0.0", + "postcss": "^7.0.0" + } + }, + "cssnano-preset-default": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-4.0.7.tgz", + "integrity": "sha512-x0YHHx2h6p0fCl1zY9L9roD7rnlltugGu7zXSKQx6k2rYw0Hi3IqxcoAGF7u9Q5w1nt7vK0ulxV8Lo+EvllGsA==", + "dev": true, + "requires": { + "css-declaration-sorter": "^4.0.1", + "cssnano-util-raw-cache": "^4.0.1", + "postcss": "^7.0.0", + "postcss-calc": "^7.0.1", + "postcss-colormin": "^4.0.3", + "postcss-convert-values": "^4.0.1", + "postcss-discard-comments": "^4.0.2", + "postcss-discard-duplicates": "^4.0.2", + "postcss-discard-empty": "^4.0.1", + "postcss-discard-overridden": "^4.0.1", + "postcss-merge-longhand": "^4.0.11", + "postcss-merge-rules": "^4.0.3", + "postcss-minify-font-values": "^4.0.2", + "postcss-minify-gradients": "^4.0.2", + "postcss-minify-params": "^4.0.2", + "postcss-minify-selectors": "^4.0.2", + "postcss-normalize-charset": "^4.0.1", + "postcss-normalize-display-values": "^4.0.2", + "postcss-normalize-positions": "^4.0.2", + "postcss-normalize-repeat-style": "^4.0.2", + "postcss-normalize-string": "^4.0.2", + "postcss-normalize-timing-functions": "^4.0.2", + "postcss-normalize-unicode": "^4.0.1", + "postcss-normalize-url": "^4.0.1", + "postcss-normalize-whitespace": "^4.0.2", + "postcss-ordered-values": "^4.1.2", + "postcss-reduce-initial": "^4.0.3", + "postcss-reduce-transforms": "^4.0.2", + "postcss-svgo": "^4.0.2", + "postcss-unique-selectors": "^4.0.1" + } + }, + "cssnano-util-get-arguments": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cssnano-util-get-arguments/-/cssnano-util-get-arguments-4.0.0.tgz", + "integrity": "sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8=", + "dev": true + }, + "cssnano-util-get-match": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cssnano-util-get-match/-/cssnano-util-get-match-4.0.0.tgz", + "integrity": "sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0=", + "dev": true + }, + "cssnano-util-raw-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/cssnano-util-raw-cache/-/cssnano-util-raw-cache-4.0.1.tgz", + "integrity": "sha512-qLuYtWK2b2Dy55I8ZX3ky1Z16WYsx544Q0UWViebptpwn/xDBmog2TLg4f+DBMg1rJ6JDWtn96WHbOKDWt1WQA==", + "dev": true, + "requires": { + "postcss": "^7.0.0" + } + }, + "cssnano-util-same-parent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.1.tgz", + "integrity": "sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q==", + "dev": true + }, + "csso": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/csso/-/csso-3.5.1.tgz", + "integrity": "sha512-vrqULLffYU1Q2tLdJvaCYbONStnfkfimRxXNaGjxMldI0C7JPBC4rB1RyjhfdZ4m1frm8pM9uRPKH3d2knZ8gg==", + "dev": true, + "requires": { + "css-tree": "1.0.0-alpha.29" + }, + "dependencies": { + "css-tree": { + "version": "1.0.0-alpha.29", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.29.tgz", + "integrity": "sha512-sRNb1XydwkW9IOci6iB2xmy8IGCj6r/fr+JWitvJ2JxQRPzN3T4AGGVWCMlVmVwM1gtgALJRmGIlWv5ppnGGkg==", "dev": true, - "optional": true + "requires": { + "mdn-data": "~1.1.0", + "source-map": "^0.5.3" + } + }, + "mdn-data": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-1.1.4.tgz", + "integrity": "sha512-FSYbp3lyKjyj3E7fMl6rYvUdX0FBXaluGqlFoYESWQlyUTq8R+wp0rkFxoYFqZlHCvsUXGjyJmLQSnXToYhOSA==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true } } }, @@ -1379,12 +1146,13 @@ } }, "d": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/d/-/d-0.1.1.tgz", - "integrity": "sha1-2hhMU10Y2O57oqoim5FACfrhEwk=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", + "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", "dev": true, "requires": { - "es5-ext": "~0.10.2" + "es5-ext": "^0.10.50", + "type": "^1.0.1" } }, "dashdash": { @@ -1402,12 +1170,6 @@ "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", "dev": true }, - "dateformat": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", - "integrity": "sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=", - "dev": true - }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -1428,15 +1190,6 @@ "object-assign": "4.X" }, "dependencies": { - "d": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", - "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", - "dev": true, - "requires": { - "es5-ext": "^0.10.9" - } - }, "debug": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", @@ -1446,83 +1199,11 @@ "ms": "^2.1.1" } }, - "es5-ext": { - "version": "0.10.49", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.49.tgz", - "integrity": "sha512-3NMEhi57E31qdzmYp2jwRArIUsj1HI/RxbQ4bgnSB+AIKIxsAmTiK83bYMifIcpWvEc3P1X30DhUKOqEtF/kvg==", - "dev": true, - "requires": { - "es6-iterator": "~2.0.3", - "es6-symbol": "~3.1.1", - "next-tick": "^1.0.0" - } - }, - "es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "es6-weak-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", - "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "^0.10.14", - "es6-iterator": "^2.0.1", - "es6-symbol": "^3.1.1" - } - }, - "memoizee": { - "version": "0.4.14", - "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.14.tgz", - "integrity": "sha512-/SWFvWegAIYAO4NQMpcX+gcra0yEZu4OntmUdrBaWrJncxOqAziGFlHxc7yjKVK2uu3lpPW27P27wkR82wA8mg==", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "^0.10.45", - "es6-weak-map": "^2.0.2", - "event-emitter": "^0.3.5", - "is-promise": "^2.1", - "lru-queue": "0.1", - "next-tick": "1", - "timers-ext": "^0.1.5" - } - }, "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "next-tick": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", - "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true - }, - "timers-ext": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", - "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", - "dev": true, - "requires": { - "es5-ext": "~0.10.46", - "next-tick": "1" - } } } }, @@ -1538,1752 +1219,769 @@ "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", "dev": true }, - "decompress": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/decompress/-/decompress-3.0.0.tgz", - "integrity": "sha1-rx3VDQbjv8QyRh033hGzjA2ZG+0=", - "dev": true, - "requires": { - "buffer-to-vinyl": "^1.0.0", - "concat-stream": "^1.4.6", - "decompress-tar": "^3.0.0", - "decompress-tarbz2": "^3.0.0", - "decompress-targz": "^3.0.0", - "decompress-unzip": "^3.0.0", - "stream-combiner2": "^1.1.1", - "vinyl-assign": "^1.0.1", - "vinyl-fs": "^2.2.0" + "default-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/default-compare/-/default-compare-1.0.0.tgz", + "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==", + "dev": true, + "requires": { + "kind-of": "^5.0.2" }, "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "glob-stream": { - "version": "5.3.5", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-5.3.5.tgz", - "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", - "dev": true, - "requires": { - "extend": "^3.0.0", - "glob": "^5.0.3", - "glob-parent": "^3.0.0", - "micromatch": "^2.3.7", - "ordered-read-streams": "^0.3.0", - "through2": "^0.6.0", - "to-absolute-glob": "^0.1.1", - "unique-stream": "^2.0.2" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - } - } - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "gulp-sourcemaps": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.6.0.tgz", - "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", - "dev": true, - "requires": { - "convert-source-map": "^1.1.1", - "graceful-fs": "^4.1.2", - "strip-bom": "^2.0.0", - "through2": "^2.0.0", - "vinyl": "^1.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", "dev": true - }, - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + } + } + }, + "default-resolution": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/default-resolution/-/default-resolution-2.0.0.tgz", + "integrity": "sha1-vLgrqnKtebQmp2cy8aga1t8m1oQ=", + "dev": true + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "is-extglob": "^2.1.0" + "kind-of": "^6.0.0" } }, - "isarray": { + "is-data-descriptor": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "ordered-read-streams": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.3.0.tgz", - "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "is-stream": "^1.0.1", - "readable-stream": "^2.0.1" + "kind-of": "^6.0.0" } }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - }, - "unique-stream": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.2.1.tgz", - "integrity": "sha1-WqADz76Uxf+GbE59ZouxxNuts2k=", - "dev": true, - "requires": { - "json-stable-stringify": "^1.0.0", - "through2-filter": "^2.0.0" - } - }, - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", - "dev": true, - "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - } - }, - "vinyl-fs": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-2.4.4.tgz", - "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", - "dev": true, - "requires": { - "duplexify": "^3.2.0", - "glob-stream": "^5.3.2", - "graceful-fs": "^4.0.0", - "gulp-sourcemaps": "1.6.0", - "is-valid-glob": "^0.3.0", - "lazystream": "^1.0.0", - "lodash.isequal": "^4.0.0", - "merge-stream": "^1.0.0", - "mkdirp": "^0.5.0", - "object-assign": "^4.0.0", - "readable-stream": "^2.0.4", - "strip-bom": "^2.0.0", - "strip-bom-stream": "^1.0.0", - "through2": "^2.0.0", - "through2-filter": "^2.0.0", - "vali-date": "^1.0.0", - "vinyl": "^1.0.0" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } }, - "decompress-tar": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-3.1.0.tgz", - "integrity": "sha1-IXx4n5uURQ76rcXF5TeXj8MzxGY=", + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true + }, + "detect-file": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", + "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", + "dev": true + }, + "detect-newline": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", + "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", + "dev": true + }, + "dom-serializer": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.1.tgz", + "integrity": "sha512-sK3ujri04WyjwQXVoK4PU3y8ula1stq10GJZpqHIUgoGZdsGzAGu65BnU3d08aTVSvO7mGPZUc0wTEDL+qGE0Q==", "dev": true, "requires": { - "is-tar": "^1.0.0", - "object-assign": "^2.0.0", - "strip-dirs": "^1.0.0", - "tar-stream": "^1.1.1", - "through2": "^0.6.1", - "vinyl": "^0.4.3" + "domelementtype": "^2.0.1", + "entities": "^2.0.0" }, "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true - }, - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", + "domelementtype": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.0.1.tgz", + "integrity": "sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ==", "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } } } }, - "decompress-tarbz2": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-3.1.0.tgz", - "integrity": "sha1-iyOTVoE1X58YnYclag+L3ZbZZm0=", + "domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "dev": true + }, + "domhandler": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", + "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", "dev": true, "requires": { - "is-bzip2": "^1.0.0", - "object-assign": "^2.0.0", - "seek-bzip": "^1.0.3", - "strip-dirs": "^1.0.0", - "tar-stream": "^1.1.1", - "through2": "^0.6.1", - "vinyl": "^0.4.3" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true - }, - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } - } + "domelementtype": "1" } }, - "decompress-targz": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-3.1.0.tgz", - "integrity": "sha1-ssE9+YFmJomRtxXWRH9kLpaW9aA=", + "domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", "dev": true, "requires": { - "is-gzip": "^1.0.0", - "object-assign": "^2.0.0", - "strip-dirs": "^1.0.0", - "tar-stream": "^1.1.1", - "through2": "^0.6.1", - "vinyl": "^0.4.3" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true - }, - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } - } + "dom-serializer": "0", + "domelementtype": "1" } }, - "decompress-unzip": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-3.4.0.tgz", - "integrity": "sha1-YUdbQVIGa74/7hL51inRX+ZHjus=", + "dot-prop": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", + "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", "dev": true, "requires": { - "is-zip": "^1.0.0", - "read-all-stream": "^3.0.0", - "stat-mode": "^0.2.0", - "strip-dirs": "^1.0.0", - "through2": "^2.0.0", - "vinyl": "^1.0.0", - "yauzl": "^2.2.1" - }, - "dependencies": { - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", - "dev": true, - "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - } - } + "is-obj": "^1.0.0" } }, - "deep-extend": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", - "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=", - "dev": true - }, - "defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", "dev": true, "requires": { - "clone": "^1.0.2" + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" } }, - "del": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-3.0.0.tgz", - "integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=", + "each-props": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/each-props/-/each-props-1.3.2.tgz", + "integrity": "sha512-vV0Hem3zAGkJAyU7JSjixeU66rwdynTAa1vofCrSA5fEln+m67Az9CcnkVD776/fsN/UjIWmBDoNRS6t6G9RfA==", "dev": true, "requires": { - "globby": "^6.1.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "p-map": "^1.1.1", - "pify": "^3.0.0", - "rimraf": "^2.2.8" + "is-plain-object": "^2.0.1", + "object.defaults": "^1.1.0" } }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true - }, - "delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "electron-to-chromium": { + "version": "1.3.294", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.294.tgz", + "integrity": "sha512-PR6e84kZbW2iQW+jJI0cg500LHzhoi+LPsmOnvHlu41OLE0CTAx2vphJUzkRmX8bwZ85QlVvn0tb/D6QmqdZxQ==", "dev": true }, - "deprecated": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/deprecated/-/deprecated-0.0.1.tgz", - "integrity": "sha1-+cmvVGSvoeepcUWKi97yqpTVuxk=", - "dev": true + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } }, - "destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", + "entities": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", + "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", "dev": true }, - "detect-file": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-0.1.0.tgz", - "integrity": "sha1-STXe39lIhkjgBrASlWbpOGcR6mM=", + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, "requires": { - "fs-exists-sync": "^0.1.0" + "is-arrayish": "^0.2.1" } }, - "detect-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "es-abstract": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.0.tgz", + "integrity": "sha512-xdQnfykZ9JMEiasTAJZJdMWCQ1Vm00NBw79/AWi7ELfZuuPCSOMDZbT9mkOfSctVtfhb+sAAzrm+j//GjjLHLg==", "dev": true, "requires": { - "repeating": "^2.0.0" + "es-to-primitive": "^1.2.0", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.0", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-inspect": "^1.6.0", + "object-keys": "^1.1.1", + "string.prototype.trimleft": "^2.1.0", + "string.prototype.trimright": "^2.1.0" } }, - "detect-newline": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", - "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", - "dev": true - }, - "diagnostics": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/diagnostics/-/diagnostics-1.0.1.tgz", - "integrity": "sha1-rM2wgMgrsl0N1zQwqeaof7tDFUE=", + "es-to-primitive": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", + "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", "dev": true, "requires": { - "colorspace": "1.0.x", - "enabled": "1.0.x", - "kuler": "0.0.x" + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" } }, - "dom-serializer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", - "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", + "es5-ext": { + "version": "0.10.51", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.51.tgz", + "integrity": "sha512-oRpWzM2WcLHVKpnrcyB7OW8j/s67Ba04JCm0WnNv3RiABSvs7mrQlutB8DBv793gKcp0XENR8Il8WxGTlZ73gQ==", "dev": true, "requires": { - "domelementtype": "~1.1.1", - "entities": "~1.1.1" - }, - "dependencies": { - "domelementtype": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", - "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", - "dev": true - } + "es6-iterator": "~2.0.3", + "es6-symbol": "~3.1.1", + "next-tick": "^1.0.0" } }, - "domelementtype": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", - "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=", - "dev": true + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } }, - "domhandler": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.1.tgz", - "integrity": "sha1-iS5HAAqZvlW783dP/qBWHYh5wlk=", + "es6-symbol": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.2.tgz", + "integrity": "sha512-/ZypxQsArlv+KHpGvng52/Iz8by3EQPxhmbuz8yFG89N/caTFBSbcXONDw0aMjy827gQg26XAjP4uXFvnfINmQ==", "dev": true, "requires": { - "domelementtype": "1" + "d": "^1.0.1", + "es5-ext": "^0.10.51" } }, - "domutils": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.6.2.tgz", - "integrity": "sha1-GVjMC0yUJuntNn+xyOhUiRsPo/8=", + "es6-weak-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", "dev": true, "requires": { - "dom-serializer": "0", - "domelementtype": "1" + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" } }, - "download": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/download/-/download-4.4.3.tgz", - "integrity": "sha1-qlX9rTktldS2jowr4D4MKqIbqaw=", + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", "dev": true, "requires": { - "caw": "^1.0.1", - "concat-stream": "^1.4.7", - "each-async": "^1.0.0", - "filenamify": "^1.0.1", - "got": "^5.0.0", - "gulp-decompress": "^1.2.0", - "gulp-rename": "^1.2.0", - "is-url": "^1.2.0", - "object-assign": "^4.0.1", - "read-all-stream": "^3.0.0", - "readable-stream": "^2.0.2", - "stream-combiner2": "^1.1.1", - "vinyl": "^1.0.0", - "vinyl-fs": "^2.2.0", - "ware": "^1.2.0" - }, - "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "glob-stream": { - "version": "5.3.5", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-5.3.5.tgz", - "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "extend": "^3.0.0", - "glob": "^5.0.3", - "glob-parent": "^3.0.0", - "micromatch": "^2.3.7", - "ordered-read-streams": "^0.3.0", - "through2": "^0.6.0", - "to-absolute-glob": "^0.1.1", - "unique-stream": "^2.0.2" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - } + "is-descriptor": "^0.1.0" } }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "gulp-sourcemaps": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.6.0.tgz", - "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "convert-source-map": "^1.1.1", - "graceful-fs": "^4.1.2", - "strip-bom": "^2.0.0", - "through2": "^2.0.0", - "vinyl": "^1.0.0" + "is-extendable": "^0.1.0" } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + } + } + }, + "expand-tilde": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", + "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", + "dev": true, + "requires": { + "homedir-polyfill": "^1.0.1" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, "requires": { - "is-extglob": "^2.1.0" + "is-plain-object": "^2.0.4" } - }, - "isarray": { + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "ordered-read-streams": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.3.0.tgz", - "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", - "dev": true, - "requires": { - "is-stream": "^1.0.1", - "readable-stream": "^2.0.1" - } - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "is-descriptor": "^1.0.0" } }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-utf8": "^0.2.0" + "is-extendable": "^0.1.0" } }, - "unique-stream": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.2.1.tgz", - "integrity": "sha1-WqADz76Uxf+GbE59ZouxxNuts2k=", + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "json-stable-stringify": "^1.0.0", - "through2-filter": "^2.0.0" + "kind-of": "^6.0.0" } }, - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" + "kind-of": "^6.0.0" } }, - "vinyl-fs": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-2.4.4.tgz", - "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "duplexify": "^3.2.0", - "glob-stream": "^5.3.2", - "graceful-fs": "^4.0.0", - "gulp-sourcemaps": "1.6.0", - "is-valid-glob": "^0.3.0", - "lazystream": "^1.0.0", - "lodash.isequal": "^4.0.0", - "merge-stream": "^1.0.0", - "mkdirp": "^0.5.0", - "object-assign": "^4.0.0", - "readable-stream": "^2.0.4", - "strip-bom": "^2.0.0", - "strip-bom-stream": "^1.0.0", - "through2": "^2.0.0", - "through2-filter": "^2.0.0", - "vali-date": "^1.0.0", - "vinyl": "^1.0.0" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } }, - "duplexer": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", - "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", "dev": true }, - "duplexer2": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", - "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", + "fancy-log": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", + "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", "dev": true, "requires": { - "readable-stream": "~1.1.9" + "ansi-gray": "^0.1.1", + "color-support": "^1.1.3", + "parse-node-version": "^1.0.0", + "time-stamp": "^1.0.0" } }, - "duplexify": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.1.tgz", - "integrity": "sha512-j5goxHTwVED1Fpe5hh3q9R93Kip0Bg2KVAt4f8CEYM3UEwYcPSvWbXaUQOzdX/HtiNomipv+gU7ASQPDbV7pGQ==", + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", "dev": true, "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" }, "dependencies": { - "end-of-stream": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.0.tgz", - "integrity": "sha1-epDYM+/abPpurA9JSduw+tOmMgY=", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "is-extendable": "^0.1.0" } } } }, - "each-async": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/each-async/-/each-async-1.1.1.tgz", - "integrity": "sha1-3uUim98KtrogEqOV4bhpq/iBNHM=", + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { - "onetime": "^1.0.0", - "set-immediate-shim": "^1.0.0" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "findup-sync": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-3.0.0.tgz", + "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==", "dev": true, "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" + "detect-file": "^1.0.0", + "is-glob": "^4.0.0", + "micromatch": "^3.0.4", + "resolve-dir": "^1.0.1" } }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", - "dev": true - }, - "electron-to-chromium": { - "version": "1.3.116", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.116.tgz", - "integrity": "sha512-NKwKAXzur5vFCZYBHpdWjTMO8QptNLNP80nItkSIgUOapPAo9Uia+RvkCaZJtO7fhQaVElSvBPWEc2ku6cKsPA==", - "dev": true + "fined": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fined/-/fined-1.2.0.tgz", + "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==", + "dev": true, + "requires": { + "expand-tilde": "^2.0.2", + "is-plain-object": "^2.0.3", + "object.defaults": "^1.1.0", + "object.pick": "^1.2.0", + "parse-filepath": "^1.0.1" + } }, - "emits": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emits/-/emits-3.0.0.tgz", - "integrity": "sha1-MnUrupXhcHshlWI4Srm7ix/WL3A=", + "flagged-respawn": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-1.0.1.tgz", + "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==", "dev": true }, - "enabled": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/enabled/-/enabled-1.0.2.tgz", - "integrity": "sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M=", + "flush-write-stream": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", + "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", "dev": true, "requires": { - "env-variable": "0.0.x" + "inherits": "^2.0.3", + "readable-stream": "^2.3.6" } }, - "encodeurl": { + "for-in": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, - "end-of-stream": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz", - "integrity": "sha1-jhdyBsPICDfYVjLouTWd/osvbq8=", + "for-own": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", + "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", "dev": true, "requires": { - "once": "~1.3.0" + "for-in": "^1.0.1" } }, - "entities": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", - "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=", + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", "dev": true }, - "env-variable": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/env-variable/-/env-variable-0.0.3.tgz", - "integrity": "sha1-uGwWQb5WECZ9UG8YBx6nbXBwl8s=", + "fork-stream": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz", + "integrity": "sha1-24Sfznf2cIpfjzhq5TOgkHtUrnA=", "dev": true }, - "error": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/error/-/error-7.0.2.tgz", - "integrity": "sha1-pfdf/02ZJhJt2sDqXcOOaJFTywI=", + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "dev": true, "requires": { - "string-template": "~0.2.1", - "xtend": "~4.0.0" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" } }, - "error-ex": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", - "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", "dev": true, "requires": { - "is-arrayish": "^0.2.1" + "map-cache": "^0.2.2" } }, - "es5-ext": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.31.tgz", - "integrity": "sha1-e7k4yVp/G59ygJLcCcQe3MOY7v4=", + "fs-mkdirp-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz", + "integrity": "sha1-C3gV/DIBxqaeFNuYzgmMFpNSWes=", "dev": true, "requires": { - "es6-iterator": "~2.0.1", - "es6-symbol": "~3.1.1" + "graceful-fs": "^4.1.11", + "through2": "^2.0.3" } }, - "es6-iterator": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.1.tgz", - "integrity": "sha1-jjGcnwRTv1ddN0lAplWSDlnKVRI=", + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz", + "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==", "dev": true, + "optional": true, "requires": { - "d": "1", - "es5-ext": "^0.10.14", - "es6-symbol": "^3.1" + "nan": "^2.12.1", + "node-pre-gyp": "^0.12.0" }, "dependencies": { - "d": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", - "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "abbrev": { + "version": "1.1.1", + "bundled": true, "dev": true, - "requires": { - "es5-ext": "^0.10.9" - } - } - } - }, - "es6-symbol": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", - "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - }, - "dependencies": { - "d": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", - "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "optional": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, "dev": true, - "requires": { - "es5-ext": "^0.10.9" - } - } - } - }, - "es6-weak-map": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-0.1.4.tgz", - "integrity": "sha1-cGzvnpmqI2undmwjnIueKG6n0ig=", - "dev": true, - "requires": { - "d": "~0.1.1", - "es5-ext": "~0.10.6", - "es6-iterator": "~0.1.3", - "es6-symbol": "~2.0.1" - }, - "dependencies": { - "es6-iterator": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-0.1.3.tgz", - "integrity": "sha1-1vWLjE/EE8JJtLqhl2j45NfIlE4=", + "optional": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true, "dev": true, - "requires": { - "d": "~0.1.1", - "es5-ext": "~0.10.5", - "es6-symbol": "~2.0.1" - } + "optional": true }, - "es6-symbol": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-2.0.1.tgz", - "integrity": "sha1-dhtcZ8/U8dGK+yNPaR1nhoLLO/M=", + "are-we-there-yet": { + "version": "1.1.5", + "bundled": true, "dev": true, + "optional": true, "requires": { - "d": "~0.1.1", - "es5-ext": "~0.10.5" + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" } - } - } - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", - "dev": true, - "optional": true - }, - "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", - "dev": true - }, - "event-emitter": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", - "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - }, - "dependencies": { - "d": { + }, + "balanced-match": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", - "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "bundled": true, + "dev": true, + "optional": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, "dev": true, + "optional": true, "requires": { - "es5-ext": "^0.10.9" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } - } - } - }, - "event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", - "dev": true, - "requires": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - } - }, - "exec-buffer": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/exec-buffer/-/exec-buffer-3.2.0.tgz", - "integrity": "sha512-wsiD+2Tp6BWHoVv3B+5Dcx6E7u5zky+hUwOHjuH2hKSLR3dvRmX8fk8UD8uqQixHs4Wk6eDmiegVrMPjKj7wpA==", - "dev": true, - "requires": { - "execa": "^0.7.0", - "p-finally": "^1.0.0", - "pify": "^3.0.0", - "rimraf": "^2.5.4", - "tempfile": "^2.0.0" - } - }, - "exec-series": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/exec-series/-/exec-series-1.0.3.tgz", - "integrity": "sha1-bSV6m+rEgqhyx3g7yGFYOfx3FDo=", - "dev": true, - "requires": { - "async-each-series": "^1.1.0", - "object-assign": "^4.1.0" - }, - "dependencies": { - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - } - } - }, - "execa": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "executable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/executable/-/executable-1.1.0.tgz", - "integrity": "sha1-h3mA6REvM5EGbaNyZd562ENKtNk=", - "dev": true, - "requires": { - "meow": "^3.1.0" - } - }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", - "dev": true - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, - "requires": { - "fill-range": "^2.1.0" - } - }, - "expand-tilde": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-1.2.2.tgz", - "integrity": "sha1-C4HrqJflo9MdHD0QL48BRB5VlEk=", - "dev": true, - "requires": { - "os-homedir": "^1.0.1" - } - }, - "extend": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", - "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", - "dev": true - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true - }, - "fancy-log": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.0.tgz", - "integrity": "sha1-Rb4X0Cu5kX1gzP/UmVyZnmyMmUg=", - "dev": true, - "requires": { - "chalk": "^1.1.1", - "time-stamp": "^1.0.0" - } - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true - }, - "faye-websocket": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", - "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", - "dev": true, - "requires": { - "websocket-driver": ">=0.5.1" - } - }, - "fd-slicer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", - "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", - "dev": true, - "requires": { - "pend": "~1.2.0" - } - }, - "figures": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", - "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5", - "object-assign": "^4.1.0" - }, - "dependencies": { - "object-assign": { + }, + "chownr": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "debug": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - } - } - }, - "file-type": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-4.4.0.tgz", - "integrity": "sha1-G2AOX8ofvcboDApwxxyNul95BsU=", - "dev": true - }, - "filename-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", - "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", - "dev": true - }, - "filename-reserved-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-1.0.0.tgz", - "integrity": "sha1-5hz4BfDeHJhFZ9A4bcXfUO5a9+Q=", - "dev": true - }, - "filenamify": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-1.2.1.tgz", - "integrity": "sha1-qfL/0RxQO+0wABUCknI3jx8TZaU=", - "dev": true, - "requires": { - "filename-reserved-regex": "^1.0.0", - "strip-outer": "^1.0.0", - "trim-repeated": "^1.0.0" - } - }, - "fill-range": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", - "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", - "dev": true, - "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^1.1.3", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - } - }, - "finalhandler": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz", - "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", - "dev": true, - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.1", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.2", - "statuses": "~1.3.1", - "unpipe": "~1.0.0" - } - }, - "find-index": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", - "integrity": "sha1-Z101iyyjiS15Whq0cjL4tuLg3eQ=", - "dev": true - }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "find-versions": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-1.2.1.tgz", - "integrity": "sha1-y96fEuOFdaCvG+G5osXV/Y8Ya2I=", - "dev": true, - "requires": { - "array-uniq": "^1.0.0", - "get-stdin": "^4.0.1", - "meow": "^3.5.0", - "semver-regex": "^1.0.0" - } - }, - "findup-sync": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.4.3.tgz", - "integrity": "sha1-QAQ5Kee8YK3wt/SCfExudaDeyhI=", - "dev": true, - "requires": { - "detect-file": "^0.1.0", - "is-glob": "^2.0.1", - "micromatch": "^2.3.7", - "resolve-dir": "^0.1.0" - } - }, - "fined": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fined/-/fined-1.1.0.tgz", - "integrity": "sha1-s33IRLdqL15wgeiE98CuNE8VNHY=", - "dev": true, - "requires": { - "expand-tilde": "^2.0.2", - "is-plain-object": "^2.0.3", - "object.defaults": "^1.1.0", - "object.pick": "^1.2.0", - "parse-filepath": "^1.0.1" - }, - "dependencies": { - "expand-tilde": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", - "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", + "bundled": true, "dev": true, + "optional": true, "requires": { - "homedir-polyfill": "^1.0.1" + "ms": "^2.1.1" } - } - } - }, - "first-chunk-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz", - "integrity": "sha1-Wb+1DNkF9g18OUzT2ayqtOatk04=", - "dev": true - }, - "flagged-respawn": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-0.3.2.tgz", - "integrity": "sha1-/xke3c1wiKZ1smEP/8l2vpuAdLU=", - "dev": true - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true - }, - "for-own": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", - "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true - }, - "fork-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz", - "integrity": "sha1-24Sfznf2cIpfjzhq5TOgkHtUrnA=", - "dev": true - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", - "dev": true - }, - "from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", - "dev": true - }, - "fs-exists-sync": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz", - "integrity": "sha1-mC1ok6+RjnLQjeyehnP/K1qNat0=", - "dev": true - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fstream": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", - "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "inherits": "~2.0.0", - "mkdirp": ">=0.5 0", - "rimraf": "2" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - } - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - }, - "dependencies": { - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - } - } - }, - "gaze": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", - "integrity": "sha1-QLcJU30k0dRXZ9takIaJ3+aaxE8=", - "dev": true, - "requires": { - "globule": "~0.1.0" - } - }, - "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true - }, - "get-proxy": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/get-proxy/-/get-proxy-1.1.0.tgz", - "integrity": "sha1-iUhUSRvFkbDxR9euVw9cZ4tyVus=", - "dev": true, - "requires": { - "rc": "^1.1.2" - } - }, - "get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true - }, - "get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "gifsicle": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/gifsicle/-/gifsicle-3.0.4.tgz", - "integrity": "sha1-9Fy17RAWW2ZdySng6TKLbIId+js=", - "dev": true, - "optional": true, - "requires": { - "bin-build": "^2.0.0", - "bin-wrapper": "^3.0.0", - "logalot": "^2.0.0" - } - }, - "glob": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-4.5.3.tgz", - "integrity": "sha1-xstz0yJsHv7wTePFbQEvAzd+4V8=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^2.0.1", - "once": "^1.3.0" - } - }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "dev": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - } - }, - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "glob-stream": { - "version": "3.1.18", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-3.1.18.tgz", - "integrity": "sha1-kXCl8St5Awb9/lmPMT+PeVT9FDs=", - "dev": true, - "requires": { - "glob": "^4.3.1", - "glob2base": "^0.0.12", - "minimatch": "^2.0.1", - "ordered-read-streams": "^0.1.0", - "through2": "^0.6.1", - "unique-stream": "^1.0.0" - }, - "dependencies": { - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + }, + "deep-extend": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "fs-minipass": { + "version": "1.2.5", + "bundled": true, "dev": true, + "optional": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" + "minipass": "^2.2.1" } }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "gauge": { + "version": "2.7.4", + "bundled": true, "dev": true, + "optional": true, "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" } - } - } - }, - "glob-watcher": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-0.0.6.tgz", - "integrity": "sha1-uVtKjfdLOcgymLDAXJeLTZo7cQs=", - "dev": true, - "requires": { - "gaze": "^0.5.1" - } - }, - "glob2base": { - "version": "0.0.12", - "resolved": "https://registry.npmjs.org/glob2base/-/glob2base-0.0.12.tgz", - "integrity": "sha1-nUGbPijxLoOjYhZKJ3BVkiycDVY=", - "dev": true, - "requires": { - "find-index": "^0.1.1" - } - }, - "global-modules": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz", - "integrity": "sha1-6lo77ULG1s6ZWk+KEmm12uIjgo0=", - "dev": true, - "requires": { - "global-prefix": "^0.1.4", - "is-windows": "^0.2.0" - } - }, - "global-prefix": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-0.1.5.tgz", - "integrity": "sha1-jTvGuNo8qBEqFg2NSW/wRiv+948=", - "dev": true, - "requires": { - "homedir-polyfill": "^1.0.0", - "ini": "^1.3.4", - "is-windows": "^0.2.0", - "which": "^1.2.12" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "dependencies": { + }, "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.3", + "bundled": true, "dev": true, + "optional": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -3293,534 +1991,653 @@ "path-is-absolute": "^1.0.0" } }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "iconv-lite": { + "version": "0.4.24", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimatch": "^3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "ini": { + "version": "1.3.5", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, "minimatch": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true, + "optional": true + }, + "minipass": { + "version": "2.3.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "minizlib": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "^2.2.1" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "needle": { + "version": "2.3.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "^4.1.0", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + } + }, + "node-pre-gyp": { + "version": "0.12.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.1", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.2.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "npm-bundled": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "optional": true + }, + "npm-packlist": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, "object-assign": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true + "bundled": true, + "dev": true, + "optional": true }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } - } - }, - "globule": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/globule/-/globule-0.1.0.tgz", - "integrity": "sha1-2cjt3h2nnRJaFRt5UzuXhnY0auU=", - "dev": true, - "requires": { - "glob": "~3.1.21", - "lodash": "~1.0.1", - "minimatch": "~0.2.11" - }, - "dependencies": { - "glob": { - "version": "3.1.21", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", - "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", + "once": { + "version": "1.4.0", + "bundled": true, "dev": true, + "optional": true, "requires": { - "graceful-fs": "~1.2.0", - "inherits": "1", - "minimatch": "~0.2.11" + "wrappy": "1" } }, - "graceful-fs": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", - "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", - "dev": true + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true }, - "inherits": { + "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", - "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", - "dev": true + "bundled": true, + "dev": true, + "optional": true }, - "minimatch": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", - "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", + "osenv": { + "version": "0.1.5", + "bundled": true, "dev": true, + "optional": true, "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } - } - } - }, - "glogg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.0.tgz", - "integrity": "sha1-f+DxmfV6yQbPUS/urY+Q7kooT8U=", - "dev": true, - "requires": { - "sparkles": "^1.0.0" - } - }, - "got": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/got/-/got-5.7.1.tgz", - "integrity": "sha1-X4FjWmHkplifGAVp6k44FoClHzU=", - "dev": true, - "requires": { - "create-error-class": "^3.0.1", - "duplexer2": "^0.1.4", - "is-redirect": "^1.0.0", - "is-retry-allowed": "^1.0.0", - "is-stream": "^1.0.0", - "lowercase-keys": "^1.0.0", - "node-status-codes": "^1.0.0", - "object-assign": "^4.0.1", - "parse-json": "^2.1.0", - "pinkie-promise": "^2.0.0", - "read-all-stream": "^3.0.0", - "readable-stream": "^2.0.5", - "timed-out": "^3.0.0", - "unzip-response": "^1.0.2", - "url-parse-lax": "^1.0.0" - }, - "dependencies": { - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "rimraf": { + "version": "2.6.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "glob": "^7.1.3" + } + }, + "safe-buffer": { + "version": "5.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sax": { + "version": "1.2.4", + "bundled": true, + "dev": true, + "optional": true + }, + "semver": { + "version": "5.7.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, "dev": true, + "optional": true, "requires": { - "readable-stream": "^2.0.2" + "ansi-regex": "^2.0.0" } }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "tar": { + "version": "4.4.8", + "bundled": true, "dev": true, + "optional": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.3.4", + "minizlib": "^1.1.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.2" } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "wide-align": { + "version": "1.1.3", + "bundled": true, "dev": true, + "optional": true, "requires": { - "safe-buffer": "~5.1.0" + "string-width": "^1.0.2 || 2" } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "yallist": { + "version": "3.0.3", + "bundled": true, + "dev": true, + "optional": true } } }, - "graceful-fs": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.11.tgz", - "integrity": "sha1-dhPHeKGv6mLyXGMKCG1/Osu92Bg=", + "fstream": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", + "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", "dev": true, "requires": { - "natives": "^1.1.0" + "graceful-fs": "^4.1.2", + "inherits": "~2.0.0", + "mkdirp": ">=0.5 0", + "rimraf": "2" } }, - "graceful-readlink": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", - "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "growly": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", - "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dev": true, + "requires": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "gaze": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", + "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", + "dev": true, + "requires": { + "globule": "^1.0.0" + } + }, + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", "dev": true }, - "gulp": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/gulp/-/gulp-3.9.1.tgz", - "integrity": "sha1-VxzkWSjdQK9lFPxAEYZgFsE4RbQ=", - "dev": true, - "requires": { - "archy": "^1.0.0", - "chalk": "^1.0.0", - "deprecated": "^0.0.1", - "gulp-util": "^3.0.0", - "interpret": "^1.0.0", - "liftoff": "^2.1.0", - "minimist": "^1.1.0", - "orchestrator": "^0.3.0", - "pretty-hrtime": "^1.0.0", - "semver": "^4.1.0", - "tildify": "^1.0.0", - "v8flags": "^2.0.2", - "vinyl-fs": "^0.3.0" - } - }, - "gulp-autoprefixer": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/gulp-autoprefixer/-/gulp-autoprefixer-4.1.0.tgz", - "integrity": "sha1-Bkr3PMAsrayP800L+T/9+5TqEqo=", + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, "requires": { - "autoprefixer": "^7.0.0", - "fancy-log": "^1.3.2", - "plugin-error": "^0.1.2", - "postcss": "^6.0.1", - "through2": "^2.0.0", - "vinyl-sourcemaps-apply": "^0.2.0" - }, - "dependencies": { - "fancy-log": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", - "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", - "dev": true, - "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" - } - } + "assert-plus": "^1.0.0" } }, - "gulp-babel": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/gulp-babel/-/gulp-babel-6.1.3.tgz", - "integrity": "sha512-tm15R3rt4gO59WXCuqrwf4QXJM9VIJC+0J2NPYSC6xZn+cZRD5y5RPGAiHaDxCJq7Rz5BDljlrk3cEjWADF+wQ==", + "glob": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.5.tgz", + "integrity": "sha512-J9dlskqUXK1OeTOYBEn5s8aMukWMwWfs+rPTn/jn50Ux4MNXVhubL1wu/j2t+H4NVI+cXEcCaYellqaPVGXNqQ==", "dev": true, "requires": { - "babel-core": "^6.23.1", - "object-assign": "^4.0.1", - "plugin-error": "^1.0.1", - "replace-ext": "0.0.1", - "through2": "^2.0.0", - "vinyl-sourcemaps-apply": "^0.2.0" - }, - "dependencies": { - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - } - }, - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - } - } + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, - "gulp-clean-css": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-3.10.0.tgz", - "integrity": "sha512-7Isf9Y690o/Q5MVjEylH1H7L8WeZ89woW7DnhD5unTintOdZb67KdOayRgp9trUFo+f9UyJtuatV42e/+kghPg==", + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { - "clean-css": "4.2.1", - "plugin-error": "1.0.1", - "through2": "2.0.3", - "vinyl-sourcemaps-apply": "0.2.1" + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" }, "dependencies": { - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-union": { + "is-glob": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - } - }, - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" + "is-extglob": "^2.1.0" } } } }, - "gulp-concat": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/gulp-concat/-/gulp-concat-2.6.1.tgz", - "integrity": "sha1-Yz0WyV2IUEYorQJmVmPO5aR5M1M=", + "glob-stream": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-6.1.0.tgz", + "integrity": "sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ=", "dev": true, "requires": { - "concat-with-sourcemaps": "^1.0.0", - "through2": "^2.0.0", - "vinyl": "^2.0.0" - }, - "dependencies": { - "clone": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.1.tgz", - "integrity": "sha1-0hfR6WERjjrJpLi7oyhVU79kfNs=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - }, - "vinyl": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.1.0.tgz", - "integrity": "sha1-Ah+cLPlR1rk5lDyJ617lrdT9kkw=", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - } + "extend": "^3.0.0", + "glob": "^7.1.1", + "glob-parent": "^3.1.0", + "is-negated-glob": "^1.0.0", + "ordered-read-streams": "^1.0.0", + "pumpify": "^1.3.5", + "readable-stream": "^2.1.5", + "remove-trailing-separator": "^1.0.1", + "to-absolute-glob": "^2.0.0", + "unique-stream": "^2.0.2" } }, - "gulp-connect": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/gulp-connect/-/gulp-connect-5.7.0.tgz", - "integrity": "sha512-8tRcC6wgXMLakpPw9M7GRJIhxkYdgZsXwn7n56BA2bQYGLR9NOPhMzx7js+qYDy6vhNkbApGKURjAw1FjY4pNA==", + "glob-watcher": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-5.0.3.tgz", + "integrity": "sha512-8tWsULNEPHKQ2MR4zXuzSmqbdyV5PtwwCaWSGQ1WwHsJ07ilNeN1JB8ntxhckbnpSHaf9dXFUHzIWvm1I13dsg==", "dev": true, "requires": { - "ansi-colors": "^2.0.5", - "connect": "^3.6.6", - "connect-livereload": "^0.6.0", - "fancy-log": "^1.3.2", - "map-stream": "^0.0.7", - "send": "^0.16.2", - "serve-index": "^1.9.1", - "serve-static": "^1.13.2", - "tiny-lr": "^1.1.1" - }, - "dependencies": { - "ansi-colors": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-2.0.5.tgz", - "integrity": "sha512-yAdfUZ+c2wetVNIFsNRn44THW+Lty6S5TwMpUfLA/UaGhiXbBv/F8E60/1hMLd0cnF/CDoWH8vzVaI5bAcHCjw==", - "dev": true - }, - "fancy-log": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", - "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", - "dev": true, - "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" - } - }, - "map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", - "dev": true - } + "anymatch": "^2.0.0", + "async-done": "^1.2.0", + "chokidar": "^2.0.0", + "is-negated-glob": "^1.0.0", + "just-debounce": "^1.0.0", + "object.defaults": "^1.1.0" + } + }, + "global-modules": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", + "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", + "dev": true, + "requires": { + "global-prefix": "^1.0.1", + "is-windows": "^1.0.1", + "resolve-dir": "^1.0.0" + } + }, + "global-prefix": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", + "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", + "dev": true, + "requires": { + "expand-tilde": "^2.0.2", + "homedir-polyfill": "^1.0.1", + "ini": "^1.3.4", + "is-windows": "^1.0.1", + "which": "^1.2.14" + } + }, + "globule": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.1.tgz", + "integrity": "sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ==", + "dev": true, + "requires": { + "glob": "~7.1.1", + "lodash": "~4.17.10", + "minimatch": "~3.0.2" + } + }, + "glogg": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", + "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", + "dev": true, + "requires": { + "sparkles": "^1.0.0" } }, - "gulp-decompress": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gulp-decompress/-/gulp-decompress-1.2.0.tgz", - "integrity": "sha1-jutlpeAV+O2FMsr+KEVJYGJvDcc=", + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "gulp": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz", + "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==", "dev": true, "requires": { - "archive-type": "^3.0.0", - "decompress": "^3.0.0", - "gulp-util": "^3.0.1", - "readable-stream": "^2.0.2" + "glob-watcher": "^5.0.3", + "gulp-cli": "^2.2.0", + "undertaker": "^1.2.1", + "vinyl-fs": "^3.0.0" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "gulp-cli": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.2.0.tgz", + "integrity": "sha512-rGs3bVYHdyJpLqR0TUBnlcZ1O5O++Zs4bA0ajm+zr3WFCfiSLjGwoCBqFs18wzN+ZxahT9DkOK5nDf26iDsWjA==", "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "ansi-colors": "^1.0.1", + "archy": "^1.0.0", + "array-sort": "^1.0.0", + "color-support": "^1.1.3", + "concat-stream": "^1.6.0", + "copy-props": "^2.0.1", + "fancy-log": "^1.3.2", + "gulplog": "^1.0.0", + "interpret": "^1.1.0", + "isobject": "^3.0.1", + "liftoff": "^3.1.0", + "matchdep": "^2.0.0", + "mute-stdout": "^1.0.0", + "pretty-hrtime": "^1.0.0", + "replace-homedir": "^1.0.0", + "semver-greatest-satisfied-range": "^1.1.0", + "v8flags": "^3.0.1", + "yargs": "^7.1.0" } } } }, - "gulp-if": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/gulp-if/-/gulp-if-2.0.2.tgz", - "integrity": "sha1-pJe351cwBQQcqivIt92jyARE1ik=", + "gulp-concat": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/gulp-concat/-/gulp-concat-2.6.1.tgz", + "integrity": "sha1-Yz0WyV2IUEYorQJmVmPO5aR5M1M=", "dev": true, "requires": { - "gulp-match": "^1.0.3", - "ternary-stream": "^2.0.1", - "through2": "^2.0.1" + "concat-with-sourcemaps": "^1.0.0", + "through2": "^2.0.0", + "vinyl": "^2.0.0" } }, - "gulp-imagemin": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/gulp-imagemin/-/gulp-imagemin-3.4.0.tgz", - "integrity": "sha1-I6jUxRM/UKKnCKyofKSy1ut8RAM=", + "gulp-if": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/gulp-if/-/gulp-if-3.0.0.tgz", + "integrity": "sha512-fCUEngzNiEZEK2YuPm+sdMpO6ukb8+/qzbGfJBXyNOXz85bCG7yBI+pPSl+N90d7gnLvMsarthsAImx0qy7BAw==", "dev": true, "requires": { - "chalk": "^2.1.0", - "gulp-util": "^3.0.8", - "imagemin": "^5.3.1", - "imagemin-gifsicle": "^5.2.0", - "imagemin-jpegtran": "^5.0.2", - "imagemin-optipng": "^5.2.1", - "imagemin-svgo": "^5.2.2", - "plur": "^2.1.2", - "pretty-bytes": "^4.0.2", - "through2-concurrent": "^1.1.1" + "gulp-match": "^1.1.0", + "ternary-stream": "^3.0.0", + "through2": "^3.0.1" }, "dependencies": { - "ansi-styles": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", - "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz", - "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.1.0", - "escape-string-regexp": "^1.0.5", - "supports-color": "^4.0.0" - } - }, - "supports-color": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", - "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "through2": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", + "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", "dev": true, "requires": { - "has-flag": "^2.0.0" + "readable-stream": "2 || 3" } } } @@ -3836,274 +2653,89 @@ "plugin-error": "^0.1.2", "rcloader": "^0.2.2", "through2": "^2.0.0" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "gulp-jsonminify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/gulp-jsonminify/-/gulp-jsonminify-1.1.0.tgz", - "integrity": "sha512-nkqH5aRajfCGD8HB2yN+QSEQG0SMEpS7UyOp3HS966Og4DqUX0y8sPF5SU8uSsGLLLXbnHwyHbDkxauYO/pSpQ==", - "dev": true, - "requires": { - "jsonminify": "~0.2.3", - "plugin-error": "^0.1.2", - "through2": "~0.6.5" - }, - "dependencies": { - "jsonminify": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/jsonminify/-/jsonminify-0.2.3.tgz", - "integrity": "sha1-S4Qsij/l1qpIsvj5Whz5qAwBnY4=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - } - } - }, - "gulp-livereload": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/gulp-livereload/-/gulp-livereload-3.8.1.tgz", - "integrity": "sha1-APdEstdJ0+njdGWJyKRKysd5tQ8=", - "dev": true, - "requires": { - "chalk": "^0.5.1", - "debug": "^2.1.0", - "event-stream": "^3.1.7", - "gulp-util": "^3.0.2", - "lodash.assign": "^3.0.0", - "mini-lr": "^0.1.8" - }, - "dependencies": { - "ansi-regex": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz", - "integrity": "sha1-DY6UaWej2BQ/k+JOKYUl/BsiNfk=", - "dev": true - }, - "ansi-styles": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz", - "integrity": "sha1-6uy/Zs1waIJ2Cy9GkVgrj1XXp94=", - "dev": true - }, - "chalk": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz", - "integrity": "sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ=", - "dev": true, - "requires": { - "ansi-styles": "^1.1.0", - "escape-string-regexp": "^1.0.0", - "has-ansi": "^0.1.0", - "strip-ansi": "^0.3.0", - "supports-color": "^0.2.0" - } - }, - "has-ansi": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz", - "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=", - "dev": true, - "requires": { - "ansi-regex": "^0.2.0" - } - }, - "lodash.assign": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-3.2.0.tgz", - "integrity": "sha1-POnwI0tLIiPilrj6CsH+6OvKZPo=", - "dev": true, - "requires": { - "lodash._baseassign": "^3.0.0", - "lodash._createassigner": "^3.0.0", - "lodash.keys": "^3.0.0" - } - }, - "strip-ansi": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz", - "integrity": "sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA=", - "dev": true, - "requires": { - "ansi-regex": "^0.2.1" - } - }, - "supports-color": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz", - "integrity": "sha1-2S3iaU6z9nMjlz1649i1W0wiGQo=", - "dev": true - } } }, "gulp-match": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/gulp-match/-/gulp-match-1.0.3.tgz", - "integrity": "sha1-kcfA1/Kb7NZgbVfYCn+Hdqh6uo4=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/gulp-match/-/gulp-match-1.1.0.tgz", + "integrity": "sha512-DlyVxa1Gj24DitY2OjEsS+X6tDpretuxD6wTfhXE/Rw2hweqc1f6D/XtsJmoiCwLWfXgR87W9ozEityPCVzGtQ==", "dev": true, "requires": { "minimatch": "^3.0.3" - }, - "dependencies": { - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } } }, - "gulp-minify-html": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/gulp-minify-html/-/gulp-minify-html-1.0.6.tgz", - "integrity": "sha1-+Ufz8TlHW74bCP/+cUxHKfH/Bwo=", + "gulp-postcss": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/gulp-postcss/-/gulp-postcss-8.0.0.tgz", + "integrity": "sha512-Wtl6vH7a+8IS/fU5W9IbOpcaLqKxd5L1DUOzaPmlnCbX1CrG0aWdwVnC3Spn8th0m8D59YbysV5zPUe1n/GJYg==", "dev": true, "requires": { - "gulp-util": "^3.0.3", - "minimize": "^1.5.0", - "through2": "^0.6.1" + "fancy-log": "^1.3.2", + "plugin-error": "^1.0.1", + "postcss": "^7.0.2", + "postcss-load-config": "^2.0.0", + "vinyl-sourcemaps-apply": "^0.2.1" }, "dependencies": { - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "plugin-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", + "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", "dev": true, "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" + "ansi-colors": "^1.0.1", + "arr-diff": "^4.0.0", + "arr-union": "^3.1.0", + "extend-shallow": "^3.0.2" } } } }, - "gulp-notify": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/gulp-notify/-/gulp-notify-3.2.0.tgz", - "integrity": "sha512-qEocs1UVoDKKUjfsxJNMNwkRla0PbsyJwsqNNXpzYWsLQ29LhxRMY3wnTGZcc4hMHtalnvah/Dwlwb4NijH/0A==", + "gulp-sass": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/gulp-sass/-/gulp-sass-4.0.2.tgz", + "integrity": "sha512-q8psj4+aDrblJMMtRxihNBdovfzGrXJp1l4JU0Sz4b/Mhsi2DPrKFYCGDwjIWRENs04ELVHxdOJQ7Vs98OFohg==", "dev": true, "requires": { - "ansi-colors": "^1.0.1", - "fancy-log": "^1.3.2", - "lodash.template": "^4.4.0", - "node-notifier": "^5.2.1", - "node.extend": "^2.0.0", - "plugin-error": "^0.1.2", - "through2": "^2.0.3" + "chalk": "^2.3.0", + "lodash.clonedeep": "^4.3.2", + "node-sass": "^4.8.3", + "plugin-error": "^1.0.1", + "replace-ext": "^1.0.0", + "strip-ansi": "^4.0.0", + "through2": "^2.0.0", + "vinyl-sourcemaps-apply": "^0.2.0" }, "dependencies": { - "fancy-log": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", - "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", - "dev": true, - "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" - } + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true }, - "lodash.template": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.4.0.tgz", - "integrity": "sha1-5zoDhcg1VZF0bgILmWecaQ5o+6A=", + "plugin-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", + "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", "dev": true, "requires": { - "lodash._reinterpolate": "~3.0.0", - "lodash.templatesettings": "^4.0.0" + "ansi-colors": "^1.0.1", + "arr-diff": "^4.0.0", + "arr-union": "^3.1.0", + "extend-shallow": "^3.0.2" } }, - "lodash.templatesettings": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz", - "integrity": "sha1-K01OlbpEDZFf8IvImeRVNmZxMxY=", + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "lodash._reinterpolate": "~3.0.0" + "ansi-regex": "^3.0.0" } } } }, - "gulp-rename": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-1.2.2.tgz", - "integrity": "sha1-OtRCh2PwXidk3sHGfYaNsnVoeBc=", - "dev": true - }, - "gulp-sass": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/gulp-sass/-/gulp-sass-3.2.1.tgz", - "integrity": "sha512-UATbRpSDsyXCnpYSPBUEvdvtSEzksJs7/oQ0CujIpzKqKrO6vlnYwhX2UTsGrf4rNLwqlSSaM271It0uHYvJ3Q==", - "dev": true, - "requires": { - "gulp-util": "^3.0", - "lodash.clonedeep": "^4.3.2", - "node-sass": "^4.8.3", - "through2": "^2.0.0", - "vinyl-sourcemaps-apply": "^0.2.0" - } - }, - "gulp-sass-unicode": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/gulp-sass-unicode/-/gulp-sass-unicode-1.0.2.tgz", - "integrity": "sha512-0VYKzvCP1tPuEStQJEuWx0kLITs4nkc30KCJzGTJoqjZ6K4ofiAq/6Kxbm2DNu+x45eVXbJvz/aDu3lXW7DPxw==", - "dev": true, - "requires": { - "gulp-util": "^3.0.7", - "through2": "^2.0.1" - } - }, "gulp-sourcemaps": { "version": "2.6.5", "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-2.6.5.tgz", @@ -4111,101 +2743,34 @@ "dev": true, "requires": { "@gulp-sourcemaps/identity-map": "1.X", - "@gulp-sourcemaps/map-sources": "1.X", - "acorn": "5.X", - "convert-source-map": "1.X", - "css": "2.X", - "debug-fabulous": "1.X", - "detect-newline": "2.X", - "graceful-fs": "4.X", - "source-map": "~0.6.0", - "strip-bom-string": "1.X", - "through2": "2.X" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - } - } - }, - "gulp-uglify": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/gulp-uglify/-/gulp-uglify-3.0.2.tgz", - "integrity": "sha512-gk1dhB74AkV2kzqPMQBLA3jPoIAPd/nlNzP2XMDSG8XZrqnlCiDGAqC+rZOumzFvB5zOphlFh6yr3lgcAb/OOg==", - "dev": true, - "requires": { - "array-each": "^1.0.1", - "extend-shallow": "^3.0.2", - "gulplog": "^1.0.0", - "has-gulplog": "^0.1.0", - "isobject": "^3.0.1", - "make-error-cause": "^1.1.1", - "safe-buffer": "^5.1.2", - "through2": "^2.0.0", - "uglify-js": "^3.0.5", - "vinyl-sourcemaps-apply": "^0.2.0" - }, - "dependencies": { - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - } - }, - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - } + "@gulp-sourcemaps/map-sources": "1.X", + "acorn": "5.X", + "convert-source-map": "1.X", + "css": "2.X", + "debug-fabulous": "1.X", + "detect-newline": "2.X", + "graceful-fs": "4.X", + "source-map": "~0.6.0", + "strip-bom-string": "1.X", + "through2": "2.X" } }, - "gulp-util": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", - "integrity": "sha1-AFTh50RQLifATBh8PsxQXdVLu08=", + "gulp-uglify": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gulp-uglify/-/gulp-uglify-3.0.2.tgz", + "integrity": "sha512-gk1dhB74AkV2kzqPMQBLA3jPoIAPd/nlNzP2XMDSG8XZrqnlCiDGAqC+rZOumzFvB5zOphlFh6yr3lgcAb/OOg==", "dev": true, "requires": { - "array-differ": "^1.0.0", - "array-uniq": "^1.0.2", - "beeper": "^1.0.0", - "chalk": "^1.0.0", - "dateformat": "^2.0.0", - "fancy-log": "^1.1.0", + "array-each": "^1.0.1", + "extend-shallow": "^3.0.2", "gulplog": "^1.0.0", "has-gulplog": "^0.1.0", - "lodash._reescape": "^3.0.0", - "lodash._reevaluate": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.template": "^3.0.0", - "minimist": "^1.1.0", - "multipipe": "^0.1.2", - "object-assign": "^3.0.0", - "replace-ext": "0.0.1", + "isobject": "^3.0.1", + "make-error-cause": "^1.1.1", + "safe-buffer": "^5.1.2", "through2": "^2.0.0", - "vinyl": "^0.5.0" + "uglify-js": "^3.0.5", + "vinyl-sourcemaps-apply": "^0.2.0" } }, "gulplog": { @@ -4252,9 +2817,9 @@ } }, "has-flag": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", - "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, "has-gulplog": { @@ -4266,106 +2831,144 @@ "sparkles": "^1.0.0" } }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "dev": true + }, "has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true }, - "home-or-tmp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", - "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", "dev": true, "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.1" + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } } }, + "hex-color-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz", + "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==", + "dev": true + }, "homedir-polyfill": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz", - "integrity": "sha1-TCu8inWJmP7r9e1oWA921GdotLw=", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", + "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", "dev": true, "requires": { "parse-passwd": "^1.0.0" } }, "hosted-git-info": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", - "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.5.tgz", + "integrity": "sha512-kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg==", + "dev": true + }, + "hsl-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hsl-regex/-/hsl-regex-1.0.0.tgz", + "integrity": "sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4=", + "dev": true + }, + "hsla-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hsla-regex/-/hsla-regex-1.0.0.tgz", + "integrity": "sha1-wc56MWjIxmFAM6S194d/OyJfnDg=", "dev": true }, "html-comment-regex": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.1.tgz", - "integrity": "sha1-ZouTd26q5V696POtRkswekljYl4=", - "dev": true, - "optional": true + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.2.tgz", + "integrity": "sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ==", + "dev": true }, "htmlparser2": { - "version": "3.9.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz", - "integrity": "sha1-G9+HrMoPP55T+k/M6w9LTLsAszg=", + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", + "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", "dev": true, "requires": { - "domelementtype": "^1.3.0", - "domhandler": "^2.3.0", - "domutils": "^1.5.1", - "entities": "^1.1.1", - "inherits": "^2.0.1", - "readable-stream": "^2.0.2" + "domelementtype": "1", + "domhandler": "2.3", + "domutils": "1.5", + "entities": "1.0", + "readable-stream": "1.1" }, "dependencies": { - "isarray": { + "domutils": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", + "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", + "dev": true, + "requires": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "entities": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", + "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", + "dev": true + }, + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", "dev": true }, "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "dev": true, "requires": { "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" } }, "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true } } }, - "http-errors": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz", - "integrity": "sha1-GX4izevUGYWF6GlO9nhhl7ke2UI=", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "statuses": "1" - } - }, - "http-parser-js": { - "version": "0.4.9", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.9.tgz", - "integrity": "sha1-6hoE+2St/wJC6ZdPKX3Uw8rSceE=", - "dev": true - }, "http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", @@ -4377,90 +2980,32 @@ "sshpk": "^1.7.0" } }, - "imagemin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/imagemin/-/imagemin-5.3.1.tgz", - "integrity": "sha1-8Zwu7h5xumxlWMUV+fyWaAGJptQ=", - "dev": true, - "requires": { - "file-type": "^4.1.0", - "globby": "^6.1.0", - "make-dir": "^1.0.0", - "p-pipe": "^1.1.0", - "pify": "^2.3.0", - "replace-ext": "^1.0.0" - }, - "dependencies": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - } - } - }, - "imagemin-gifsicle": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/imagemin-gifsicle/-/imagemin-gifsicle-5.2.0.tgz", - "integrity": "sha512-K01m5QuPK+0en8oVhiOOAicF7KjrHlCZxS++mfLI2mV/Ksfq/Y9nCXCWDz6jRv13wwlqe5T7hXT+ji2DnLc2yQ==", - "dev": true, - "optional": true, - "requires": { - "exec-buffer": "^3.0.0", - "gifsicle": "^3.0.0", - "is-gif": "^1.0.0" - } - }, - "imagemin-jpegtran": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/imagemin-jpegtran/-/imagemin-jpegtran-5.0.2.tgz", - "integrity": "sha1-5ogiY7j3kW/duABkDPddLpcNKtY=", - "dev": true, - "optional": true, - "requires": { - "exec-buffer": "^3.0.0", - "is-jpg": "^1.0.0", - "jpegtran-bin": "^3.0.0" - } - }, - "imagemin-optipng": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/imagemin-optipng/-/imagemin-optipng-5.2.1.tgz", - "integrity": "sha1-0i2kEsCfX/AKQzmWC5ioix2+hpU=", + "import-cwd": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz", + "integrity": "sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk=", "dev": true, - "optional": true, "requires": { - "exec-buffer": "^3.0.0", - "is-png": "^1.0.0", - "optipng-bin": "^3.0.0" + "import-from": "^2.1.0" } }, - "imagemin-pngcrush": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/imagemin-pngcrush/-/imagemin-pngcrush-5.1.0.tgz", - "integrity": "sha1-gbTP5JSuvY4d0162MMsy9d8reM8=", + "import-fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", + "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", "dev": true, "requires": { - "exec-buffer": "^3.0.0", - "is-png": "^1.0.0", - "pngcrush-bin": "^3.0.0" + "caller-path": "^2.0.0", + "resolve-from": "^3.0.0" } }, - "imagemin-svgo": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/imagemin-svgo/-/imagemin-svgo-5.2.2.tgz", - "integrity": "sha1-UBaZ9XiXMKV5IrhzbqFcU/e1WDg=", + "import-from": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-2.1.0.tgz", + "integrity": "sha1-M1238qev/VOqpHHUuAId7ja387E=", "dev": true, - "optional": true, "requires": { - "is-svg": "^2.0.0", - "svgo": "^0.7.0" + "resolve-from": "^3.0.0" } }, "in-publish": { @@ -4478,6 +3023,12 @@ "repeating": "^2.0.0" } }, + "indexes-of": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", + "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", + "dev": true + }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -4489,64 +3040,63 @@ } }, "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, "ini": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz", - "integrity": "sha1-BTfLedr1m1mhpRff9wbIbsA5Fi4=", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true }, "interpret": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.4.tgz", - "integrity": "sha1-ggzdWIuGj/sZGoCVBtbJyPISsbA=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", + "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", "dev": true }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, "invert-kv": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, - "ip-regex": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-1.0.3.tgz", - "integrity": "sha1-3FiQdvZZ9BnCIgOaMzFvHHOH7/0=", - "dev": true - }, - "irregular-plurals": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.3.0.tgz", - "integrity": "sha512-njf5A+Mxb3kojuHd1DzISjjIl+XhyzovXEOyPPSzdQozq/Lf2tN27mOrAAsxEPZxpn6I4MGzs1oo9TxXxPFpaA==", - "dev": true + "is-absolute": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", + "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", + "dev": true, + "requires": { + "is-relative": "^1.0.0", + "is-windows": "^1.0.1" + } }, - "is": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/is/-/is-3.3.0.tgz", - "integrity": "sha512-nW24QBoPcFGGHJGUwnfpI7Yc5CdqWNdsyHQszVE/z2pKHXzh7FZ5GWhJqSyaQ9wMkQnsTx+kAI8bHlCX4tKdbg==", + "is-absolute-url": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz", + "integrity": "sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=", "dev": true }, - "is-absolute": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", - "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { - "is-relative": "^0.2.1", - "is-windows": "^0.2.0" + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } } }, "is-arrayish": { @@ -4555,42 +3105,92 @@ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, "is-buffer": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.5.tgz", - "integrity": "sha1-Hzsm72E7IUuIy8ojzGwB2Hlh7sw=", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, - "is-builtin-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "is-callable": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", + "dev": true + }, + "is-color-stop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-color-stop/-/is-color-stop-1.1.0.tgz", + "integrity": "sha1-z/9HGu5N1cnhWFmPvhKWe1za00U=", "dev": true, "requires": { - "builtin-modules": "^1.0.0" + "css-color-names": "^0.0.4", + "hex-color-regex": "^1.1.0", + "hsl-regex": "^1.0.0", + "hsla-regex": "^1.0.0", + "rgb-regex": "^1.0.1", + "rgba-regex": "^1.0.0" } }, - "is-bzip2": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-bzip2/-/is-bzip2-1.0.0.tgz", - "integrity": "sha1-XuWOqlounIDiFAe+3yOuWsCRs/w=", - "dev": true + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } }, - "is-dotfile": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", "dev": true }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", "dev": true, "requires": { - "is-primitive": "^2.0.0" + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } } }, + "is-directory": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", + "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", + "dev": true + }, "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", @@ -4598,9 +3198,9 @@ "dev": true }, "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, "is-finite": { @@ -4621,48 +3221,39 @@ "number-is-nan": "^1.0.0" } }, - "is-gif": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-gif/-/is-gif-1.0.0.tgz", - "integrity": "sha1-ptKumIkwB7/6l6HYwB1jIFgyCX4=", - "dev": true, - "optional": true - }, "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, "requires": { - "is-extglob": "^1.0.0" + "is-extglob": "^2.1.1" } }, - "is-gzip": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-gzip/-/is-gzip-1.0.0.tgz", - "integrity": "sha1-bKiwe5nHeZgCWQDlVc7Y7YCHmoM=", - "dev": true - }, - "is-jpg": { + "is-negated-glob": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-jpg/-/is-jpg-1.0.0.tgz", - "integrity": "sha1-KVnBfnNDDbOCZNp1uQ3VTy2G2hw=", - "dev": true, - "optional": true - }, - "is-natural-number": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-2.1.1.tgz", - "integrity": "sha1-fUxXKDd+84bD4ZSpkRv1fG3DNec=", + "resolved": "https://registry.npmjs.org/is-negated-glob/-/is-negated-glob-1.0.0.tgz", + "integrity": "sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI=", "dev": true }, "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } } }, "is-obj": { @@ -4671,64 +3262,14 @@ "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", "dev": true }, - "is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true - }, - "is-path-in-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", - "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", - "dev": true, - "requires": { - "is-path-inside": "^1.0.0" - } - }, - "is-path-inside": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz", - "integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=", - "dev": true, - "requires": { - "path-is-inside": "^1.0.1" - } - }, "is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, - "requires": { - "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "is-png": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-png/-/is-png-1.1.0.tgz", - "integrity": "sha1-1XSxK/J1wDUEVVcLDltXqwYgd84=", - "dev": true - }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "dev": true + "requires": { + "isobject": "^3.0.1" + } }, "is-promise": { "version": "2.1.0", @@ -4736,48 +3277,47 @@ "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", "dev": true }, - "is-redirect": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", - "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", - "dev": true + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "dev": true, + "requires": { + "has": "^1.0.1" + } }, "is-relative": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", - "integrity": "sha1-0n9MfVFtF1+2ENuEu+7yPDvJeqU=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", + "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", "dev": true, "requires": { - "is-unc-path": "^0.1.1" + "is-unc-path": "^1.0.0" } }, - "is-retry-allowed": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", - "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=", - "dev": true - }, - "is-stream": { + "is-resolvable": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", "dev": true }, "is-svg": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-2.1.0.tgz", - "integrity": "sha1-z2EJDaDZ77yrhyLeum8DIgjbsOk=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-3.0.0.tgz", + "integrity": "sha512-gi4iHK53LR2ujhLVVj+37Ykh9GLqYHX6JOVXbLAucaG/Cqw9xwdFOjDM2qeifLs1sF1npXXFvDu0r5HNgCMrzQ==", "dev": true, - "optional": true, "requires": { "html-comment-regex": "^1.1.0" } }, - "is-tar": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-tar/-/is-tar-1.0.0.tgz", - "integrity": "sha1-L2suF5LB9bs2UZrKqdZcDSb+hT0=", - "dev": true + "is-symbol": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", + "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.0" + } }, "is-typedarray": { "version": "1.0.0", @@ -4786,20 +3326,14 @@ "dev": true }, "is-unc-path": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-0.1.2.tgz", - "integrity": "sha1-arBTpyVzwQJQ/0FqOBTDUXivObk=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", + "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", "dev": true, "requires": { - "unc-path-regex": "^0.1.0" + "unc-path-regex": "^0.1.2" } }, - "is-url": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.2.tgz", - "integrity": "sha1-SYkFpZO/R8wtnn9zg3K792lsfyY=", - "dev": true - }, "is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", @@ -4807,33 +3341,21 @@ "dev": true }, "is-valid-glob": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-0.3.0.tgz", - "integrity": "sha1-1LVcafUYhvm2XHDWwmItN+KfSP4=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-1.0.0.tgz", + "integrity": "sha1-Kb8+/3Ab4tTTFdusw5vDn+j2Aao=", "dev": true }, "is-windows": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz", - "integrity": "sha1-3hqm1j6indJIc3tp8f+LgALSEIw=", - "dev": true - }, - "is-wsl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", - "dev": true - }, - "is-zip": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-zip/-/is-zip-1.0.0.tgz", - "integrity": "sha1-R7Co/004p2QxzP2ZqOFaTIa6IyU=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "dev": true }, "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, "isexe": { @@ -4843,21 +3365,10 @@ "dev": true }, "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - } - } + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true }, "isstream": { "version": "0.1.2", @@ -4865,39 +3376,20 @@ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", "dev": true }, - "jpegtran-bin": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jpegtran-bin/-/jpegtran-bin-3.2.0.tgz", - "integrity": "sha1-9g7PSumZwL2tLp+83ytvCYHnops=", - "dev": true, - "optional": true, - "requires": { - "bin-build": "^2.0.0", - "bin-wrapper": "^3.0.0", - "logalot": "^2.0.0" - } - }, "js-base64": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz", "integrity": "sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw==", "dev": true }, - "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true - }, "js-yaml": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz", - "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, - "optional": true, "requires": { "argparse": "^1.0.7", - "esprima": "^2.6.0" + "esprima": "^4.0.0" } }, "jsbn": { @@ -4906,12 +3398,6 @@ "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", "dev": true }, - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true - }, "jshint": { "version": "2.10.2", "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.10.2.tgz", @@ -4926,69 +3412,14 @@ "minimatch": "~3.0.2", "shelljs": "0.3.x", "strip-json-comments": "1.0.x" - }, - "dependencies": { - "domhandler": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", - "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "domutils": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", - "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", - "dev": true, - "requires": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "entities": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", - "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", - "dev": true - }, - "htmlparser2": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", - "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", - "dev": true, - "requires": { - "domelementtype": "1", - "domhandler": "2.3", - "domutils": "1.5", - "entities": "1.0", - "readable-stream": "1.1" - } - }, - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "strip-json-comments": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", - "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", - "dev": true - } } }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", @@ -5001,14 +3432,11 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "json-stable-stringify": { + "json-stable-stringify-without-jsonify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", - "dev": true, - "requires": { - "jsonify": "~0.0.0" - } + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true }, "json-stringify-safe": { "version": "5.0.1", @@ -5016,24 +3444,6 @@ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", - "dev": true - }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, - "jsonminify": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/jsonminify/-/jsonminify-0.4.1.tgz", - "integrity": "sha1-gF2vuzk5UYjO6atYLIHvlZ1+cQw=", - "dev": true - }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -5046,30 +3456,28 @@ "verror": "1.10.0" } }, + "just-debounce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.0.0.tgz", + "integrity": "sha1-h/zPrv/AtozRnVX2cilD+SnqNeo=", + "dev": true + }, "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true }, - "kuler": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/kuler/-/kuler-0.0.0.tgz", - "integrity": "sha1-tmu0a5NOVQ9Z2BiEjgq7pPf1VTw=", + "last-run": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/last-run/-/last-run-1.1.1.tgz", + "integrity": "sha1-RblpQsF7HHnHchmCWbqUO+v4yls=", "dev": true, "requires": { - "colornames": "0.0.2" + "default-resolution": "^2.0.0", + "es6-weak-map": "^2.0.1" } }, - "lazy-req": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/lazy-req/-/lazy-req-1.1.0.tgz", - "integrity": "sha1-va6+rTD42CQDnODOFJ1Nqge6H6w=", - "dev": true - }, "lazystream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", @@ -5077,38 +3485,6 @@ "dev": true, "requires": { "readable-stream": "^2.0.5" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } } }, "lcid": { @@ -5120,29 +3496,31 @@ "invert-kv": "^1.0.0" } }, + "lead": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lead/-/lead-1.0.0.tgz", + "integrity": "sha1-bxT5mje+Op3XhPVJVpDlkDRm7kI=", + "dev": true, + "requires": { + "flush-write-stream": "^1.0.2" + } + }, "liftoff": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz", - "integrity": "sha1-qY8v9nGD2Lp8+soQVIvX/wVQs4U=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-3.1.0.tgz", + "integrity": "sha512-DlIPlJUkCV0Ips2zf2pJP0unEoT1kwYhiiPUGF3s/jtxTCjziNLoiVVh+jqWOWeFi6mmwQ5fNxvAUyPad4Dfog==", "dev": true, "requires": { "extend": "^3.0.0", - "findup-sync": "^0.4.2", + "findup-sync": "^3.0.0", "fined": "^1.0.1", - "flagged-respawn": "^0.3.2", - "lodash.isplainobject": "^4.0.4", - "lodash.isstring": "^4.0.1", - "lodash.mapvalues": "^4.4.0", + "flagged-respawn": "^1.0.0", + "is-plain-object": "^2.0.4", + "object.map": "^1.0.0", "rechoir": "^0.6.2", "resolve": "^1.1.7" } }, - "livereload-js": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-2.2.2.tgz", - "integrity": "sha1-bIclfmSKtHW8JOoldFftzB+NC8I=", - "dev": true - }, "load-json-file": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", @@ -5156,114 +3534,21 @@ "strip-bom": "^2.0.0" }, "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { - "is-utf8": "^0.2.0" + "error-ex": "^1.2.0" } } } }, "lodash": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz", - "integrity": "sha1-j1dWDIO1n8JwvT1WG2kAQ0MOJVE=", - "dev": true - }, - "lodash._baseassign": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", - "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", - "dev": true, - "requires": { - "lodash._basecopy": "^3.0.0", - "lodash.keys": "^3.0.0" - } - }, - "lodash._basecopy": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", - "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", - "dev": true - }, - "lodash._basetostring": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", - "integrity": "sha1-0YYdh3+CSlL2aYMtyvPuFVZqB9U=", - "dev": true - }, - "lodash._basevalues": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", - "integrity": "sha1-W3dXYoAr3j0yl1A+JjAIIP32Ybc=", - "dev": true - }, - "lodash._bindcallback": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz", - "integrity": "sha1-5THCdkTPi1epnhftlbNcdIeJOS4=", - "dev": true - }, - "lodash._createassigner": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz", - "integrity": "sha1-g4pbri/aymOsIt7o4Z+k5taXCxE=", - "dev": true, - "requires": { - "lodash._bindcallback": "^3.0.0", - "lodash._isiterateecall": "^3.0.0", - "lodash.restparam": "^3.0.0" - } - }, - "lodash._getnative": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", - "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", - "dev": true - }, - "lodash._isiterateecall": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", - "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", - "dev": true - }, - "lodash._reescape": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", - "integrity": "sha1-Kx1vXf4HyKNVdT5fJ/rH8c3hYWo=", - "dev": true - }, - "lodash._reevaluate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", - "integrity": "sha1-WLx0xAZklTrgsSTYBpltrKQx4u0=", - "dev": true - }, - "lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", - "dev": true - }, - "lodash._root": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", - "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", "dev": true }, "lodash.assign": { @@ -5278,138 +3563,30 @@ "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", "dev": true }, - "lodash.escape": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", - "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", - "dev": true, - "requires": { - "lodash._root": "^3.0.0" - } - }, - "lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", - "dev": true - }, - "lodash.isarray": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", - "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", - "dev": true - }, - "lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", - "dev": true - }, "lodash.isobject": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-3.0.2.tgz", "integrity": "sha1-PI+41bW/S/kK4G4U8qUwpO2TXh0=", "dev": true }, - "lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", - "dev": true - }, - "lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", - "dev": true - }, - "lodash.keys": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", - "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", - "dev": true, - "requires": { - "lodash._getnative": "^3.0.0", - "lodash.isarguments": "^3.0.0", - "lodash.isarray": "^3.0.0" - } - }, - "lodash.mapvalues": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz", - "integrity": "sha1-G6+lAF3p3W9PJmaMMMo3IwzJaJw=", + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", "dev": true }, "lodash.merge": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.1.tgz", - "integrity": "sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ==", - "dev": true - }, - "lodash.mergewith": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", - "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", - "dev": true - }, - "lodash.restparam": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", - "integrity": "sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=", + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "lodash.template": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", - "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", - "dev": true, - "requires": { - "lodash._basecopy": "^3.0.0", - "lodash._basetostring": "^3.0.0", - "lodash._basevalues": "^3.0.0", - "lodash._isiterateecall": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.escape": "^3.0.0", - "lodash.keys": "^3.0.0", - "lodash.restparam": "^3.0.0", - "lodash.templatesettings": "^3.0.0" - } - }, - "lodash.templatesettings": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", - "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0", - "lodash.escape": "^3.0.0" - } - }, - "logalot": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/logalot/-/logalot-2.1.0.tgz", - "integrity": "sha1-X46MkNME7fElMJUaVVSruMXj9VI=", - "dev": true, - "requires": { - "figures": "^1.3.5", - "squeak": "^1.0.0" - } - }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", "dev": true }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, "loud-rejection": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", @@ -5420,30 +3597,16 @@ "signal-exit": "^3.0.0" } }, - "lowercase-keys": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", - "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", - "dev": true - }, - "lpad-align": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/lpad-align/-/lpad-align-1.1.2.tgz", - "integrity": "sha1-IfYArBwwlcPG5JfuZyce4ISB/p4=", + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", "dev": true, "requires": { - "get-stdin": "^4.0.1", - "indent-string": "^2.1.0", - "longest": "^1.0.0", - "meow": "^3.3.0" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, - "lru-cache": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", - "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", - "dev": true - }, "lru-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", @@ -5453,23 +3616,6 @@ "es5-ext": "~0.10.2" } }, - "make-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.0.0.tgz", - "integrity": "sha1-l6ARdR6R3YfPre9Ygy67BJNt6Xg=", - "dev": true, - "requires": { - "pify": "^2.3.0" - }, - "dependencies": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } - } - }, "make-error": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", @@ -5485,6 +3631,15 @@ "make-error": "^1.2.0" } }, + "make-iterator": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", + "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + } + }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", @@ -5497,31 +3652,70 @@ "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "dev": true }, - "map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", - "dev": true + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "matchdep": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/matchdep/-/matchdep-2.0.0.tgz", + "integrity": "sha1-xvNINKDY28OzfCfui7yyfHd1WC4=", + "dev": true, + "requires": { + "findup-sync": "^2.0.0", + "micromatch": "^3.0.4", + "resolve": "^1.4.0", + "stack-trace": "0.0.10" + }, + "dependencies": { + "findup-sync": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-2.0.0.tgz", + "integrity": "sha1-kyaxSIwi0aYIhlCoaQGy2akKLLw=", + "dev": true, + "requires": { + "detect-file": "^1.0.0", + "is-glob": "^3.1.0", + "micromatch": "^3.0.4", + "resolve-dir": "^1.0.1" + } + }, + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "mdn-data": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", + "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==", "dev": true }, "memoizee": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.3.10.tgz", - "integrity": "sha1-TsoNiu057J0Bf0xcLy9kMvQuXI8=", + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.14.tgz", + "integrity": "sha512-/SWFvWegAIYAO4NQMpcX+gcra0yEZu4OntmUdrBaWrJncxOqAziGFlHxc7yjKVK2uu3lpPW27P27wkR82wA8mg==", "dev": true, "requires": { - "d": "~0.1.1", - "es5-ext": "~0.10.11", - "es6-weak-map": "~0.1.4", - "event-emitter": "~0.3.4", + "d": "1", + "es5-ext": "^0.10.45", + "es6-weak-map": "^2.0.2", + "event-emitter": "^0.3.5", + "is-promise": "^2.1", "lru-queue": "0.1", - "next-tick": "~0.2.2", - "timers-ext": "0.1" + "next-tick": "1", + "timers-ext": "^0.1.5" } }, "meow": { @@ -5542,222 +3736,95 @@ "trim-newlines": "^1.0.0" }, "dependencies": { - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true } } }, "merge-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", - "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - } - }, - "mime": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", - "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true }, - "mime-db": { - "version": "1.30.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", - "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=", + "merge2": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.3.0.tgz", + "integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==", "dev": true }, - "mime-types": { - "version": "2.1.17", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", - "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "dev": true, "requires": { - "mime-db": "~1.30.0" + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" } }, - "mini-lr": { - "version": "0.1.9", - "resolved": "https://registry.npmjs.org/mini-lr/-/mini-lr-0.1.9.tgz", - "integrity": "sha1-AhmdJzR5U9H9HW297UJh8Yey0PY=", + "mime-db": { + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", + "dev": true + }, + "mime-types": { + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", + "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", "dev": true, "requires": { - "body-parser": "~1.14.0", - "debug": "^2.2.0", - "faye-websocket": "~0.7.2", - "livereload-js": "^2.2.0", - "parseurl": "~1.3.0", - "qs": "~2.2.3" - }, - "dependencies": { - "body-parser": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.14.2.tgz", - "integrity": "sha1-EBXLH+LEQ4WCWVgdtTMy+NDPUPk=", - "dev": true, - "requires": { - "bytes": "2.2.0", - "content-type": "~1.0.1", - "debug": "~2.2.0", - "depd": "~1.1.0", - "http-errors": "~1.3.1", - "iconv-lite": "0.4.13", - "on-finished": "~2.3.0", - "qs": "5.2.0", - "raw-body": "~2.1.5", - "type-is": "~1.6.10" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "qs": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-5.2.0.tgz", - "integrity": "sha1-qfMRQq9GjLcrJbMBNrokVoNJFr4=", - "dev": true - } - } - }, - "bytes": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz", - "integrity": "sha1-/TVGSkA/b5EXwt42Cez/nK4ABYg=", - "dev": true - }, - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", - "dev": true - }, - "faye-websocket": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.7.3.tgz", - "integrity": "sha1-zEB0x/Sk39A69U3WXDVLE1EyzhE=", - "dev": true, - "requires": { - "websocket-driver": ">=0.3.6" - } - }, - "iconv-lite": { - "version": "0.4.13", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", - "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", - "dev": true - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - }, - "qs": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/qs/-/qs-2.2.5.tgz", - "integrity": "sha1-EIirr53MCuWuRbcJ5sa1iIsjkjw=", - "dev": true - } + "mime-db": "1.40.0" } }, "minimatch": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz", - "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "^1.0.0" + "brace-expansion": "^1.1.7" } }, "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, - "minimize": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/minimize/-/minimize-1.8.1.tgz", - "integrity": "sha1-o2dK3pPyinX/ojuODzZc3CPWnYs=", + "mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, "requires": { - "argh": "~0.1.4", - "async": "~1.5.2", - "cli-color": "~1.1.0", - "diagnostics": "~1.0.1", - "emits": "~3.0.0", - "htmlparser2": "~3.9.0", - "node-uuid": "~1.4.7" + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" }, "dependencies": { - "node-uuid": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", - "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=", - "dev": true + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } } } }, @@ -5768,14 +3835,6 @@ "dev": true, "requires": { "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - } } }, "ms": { @@ -5784,37 +3843,41 @@ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, - "multipipe": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", - "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", - "dev": true, - "requires": { - "duplexer2": "0.0.2" - } - }, - "nan": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.1.tgz", - "integrity": "sha512-I6YB/YEuDeUZMmhscXKxGgZlFnhsn5y0hgOZBadkzfTRrZBtJDZeg6eQf7PYMIEclwmorTKK8GztsyOUSVBREA==", + "mute-stdout": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mute-stdout/-/mute-stdout-1.0.1.tgz", + "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==", "dev": true }, - "natives": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz", - "integrity": "sha1-6f+EFBimsux6SV6TmYT3jxY+bjE=", + "nan": { + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", + "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", "dev": true }, - "negotiator": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", - "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", - "dev": true + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } }, "next-tick": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-0.2.2.tgz", - "integrity": "sha1-ddpKkn7liH45BliABltzNkE7MQ0=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", "dev": true }, "node-gyp": { @@ -5837,35 +3900,6 @@ "which": "1" }, "dependencies": { - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, "semver": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", @@ -5874,31 +3908,19 @@ } } }, - "node-notifier": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.4.0.tgz", - "integrity": "sha512-SUDEb+o71XR5lXSTyivXd9J7fCloE3SyP4lSgt3lU2oSANiox+SxlNRGPjDKrwU1YN3ix2KN/VGGCg0t01rttQ==", + "node-releases": { + "version": "1.1.38", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.38.tgz", + "integrity": "sha512-/5NZAaOyTj134Oy5Cp/J8mso8OD/D9CSuL+6TOXXsTKO8yjc5e4up75SRPCganCjwFKMj2jbp5tR0dViVdox7g==", "dev": true, "requires": { - "growly": "^1.3.0", - "is-wsl": "^1.1.0", - "semver": "^5.5.0", - "shellwords": "^0.1.1", - "which": "^1.3.0" - }, - "dependencies": { - "semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true - } + "semver": "^6.3.0" } }, "node-sass": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.11.0.tgz", - "integrity": "sha512-bHUdHTphgQJZaF1LASx0kAviPH7sGlcyNhWade4eVIpFp6tsn7SV8xNMTbsQFpEV9VXpnwTTnNYlfsZXgGgmkA==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.12.0.tgz", + "integrity": "sha512-A1Iv4oN+Iel6EPv77/HddXErL2a+gZ4uBeZUy+a8O35CFYTXhgA8MgLCWBtwpGZdCvTvQ9d+bQxX/QC36GDPpQ==", "dev": true, "requires": { "async-foreach": "^0.1.3", @@ -5908,12 +3930,10 @@ "get-stdin": "^4.0.1", "glob": "^7.0.3", "in-publish": "^2.0.0", - "lodash.assign": "^4.2.0", - "lodash.clonedeep": "^4.3.2", - "lodash.mergewith": "^4.6.0", + "lodash": "^4.17.11", "meow": "^3.7.0", "mkdirp": "^0.5.1", - "nan": "^2.10.0", + "nan": "^2.13.2", "node-gyp": "^3.8.0", "npmlog": "^4.0.0", "request": "^2.88.0", @@ -5922,93 +3942,33 @@ "true-case-path": "^1.0.2" }, "dependencies": { - "cross-spawn": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", - "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "which": "^1.2.9" - } + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true }, - "gaze": { + "chalk": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", - "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", - "dev": true, - "requires": { - "globule": "^1.0.0" - } - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "globule": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.1.tgz", - "integrity": "sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ==", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { - "glob": "~7.1.1", - "lodash": "~4.17.10", - "minimatch": "~3.0.2" + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" } }, - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true - }, - "lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } } } }, - "node-status-codes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-status-codes/-/node-status-codes-1.0.0.tgz", - "integrity": "sha1-WuVUHQJGRdMqWPzdyc7s6nrjrC8=", - "dev": true - }, - "node.extend": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node.extend/-/node.extend-2.0.2.tgz", - "integrity": "sha512-pDT4Dchl94/+kkgdwyS2PauDFjZG0Hk0IcHIB+LkW27HLDtdoeMxHTxZh39DYbPP8UflWXWj9JcdDozF+YDOpQ==", - "dev": true, - "requires": { - "has": "^1.0.3", - "is": "^3.2.1" - } - }, "nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", @@ -6019,15 +3979,23 @@ } }, "normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", "dev": true, "requires": { "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", + "resolve": "^1.10.0", "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } } }, "normalize-path": { @@ -6039,19 +4007,19 @@ "remove-trailing-separator": "^1.0.1" } }, - "normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "normalize-url": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz", + "integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==", "dev": true }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "now-and-later": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/now-and-later/-/now-and-later-2.0.1.tgz", + "integrity": "sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ==", "dev": true, "requires": { - "path-key": "^2.0.0" + "once": "^1.3.2" } }, "npmlog": { @@ -6066,11 +4034,14 @@ "set-blocking": "~2.0.0" } }, - "num2fraction": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", - "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", - "dev": true + "nth-check": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", + "dev": true, + "requires": { + "boolbase": "~1.0.0" + } }, "number-is-nan": { "version": "1.0.1", @@ -6085,11 +4056,75 @@ "dev": true }, "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-inspect": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", + "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==", "dev": true }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, "object.defaults": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", @@ -6100,33 +4135,26 @@ "array-slice": "^1.0.0", "for-own": "^1.0.0", "isobject": "^3.0.0" - }, - "dependencies": { - "for-own": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", - "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } } }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "object.getownpropertydescriptors": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", + "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" + } + }, + "object.map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", + "integrity": "sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=", "dev": true, "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" } }, "object.pick": { @@ -6136,75 +4164,48 @@ "dev": true, "requires": { "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } } }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "object.reduce": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.reduce/-/object.reduce-1.0.1.tgz", + "integrity": "sha1-b+NI8qx/oPlcpiEiZZkJaCW7A60=", "dev": true, "requires": { - "ee-first": "1.1.1" + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" } }, - "once": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", - "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA=", + "object.values": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.0.tgz", + "integrity": "sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg==", "dev": true, "requires": { - "wrappy": "1" + "define-properties": "^1.1.3", + "es-abstract": "^1.12.0", + "function-bind": "^1.1.1", + "has": "^1.0.3" } }, - "onetime": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", - "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", - "dev": true - }, - "optipng-bin": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/optipng-bin/-/optipng-bin-3.1.4.tgz", - "integrity": "sha1-ldNPLEiHBPb9cGBr/qDGWfHZXYQ=", + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, - "optional": true, "requires": { - "bin-build": "^2.0.0", - "bin-wrapper": "^3.0.0", - "logalot": "^2.0.0" + "wrappy": "1" } }, - "orchestrator": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz", - "integrity": "sha1-FOfp4nZPcxX7rBhOUGx6pt+UrX4=", + "ordered-read-streams": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz", + "integrity": "sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4=", "dev": true, "requires": { - "end-of-stream": "~0.1.5", - "sequencify": "~0.0.7", - "stream-consume": "~0.1.0" + "readable-stream": "^2.0.1" } }, - "ordered-read-streams": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz", - "integrity": "sha1-/VZamvjrRHO6abbtijQ1LLVS8SY=", - "dev": true - }, - "os-filter-obj": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/os-filter-obj/-/os-filter-obj-1.0.3.tgz", - "integrity": "sha1-WRUzDZDs7VV9LZOKMcbdIU2cY60=", - "dev": true - }, "os-homedir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", @@ -6236,54 +4237,25 @@ "os-tmpdir": "^1.0.0" } }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-map": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", - "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==", - "dev": true - }, - "p-pipe": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-pipe/-/p-pipe-1.2.0.tgz", - "integrity": "sha1-SxoROZoRUgpneQ7loMHViB1r7+k=", - "dev": true - }, "parse-filepath": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.1.tgz", - "integrity": "sha1-FZ1hVdQ5BNFsEO9piRHaHpGWm3M=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", + "integrity": "sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=", "dev": true, "requires": { - "is-absolute": "^0.2.3", + "is-absolute": "^1.0.0", "map-cache": "^0.2.0", "path-root": "^0.1.1" } }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "dev": true, - "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - } - }, "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, "requires": { - "error-ex": "^1.2.0" + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" } }, "parse-node-version": { @@ -6298,10 +4270,10 @@ "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", "dev": true }, - "parseurl": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", - "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=", + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", "dev": true }, "path-dirname": { @@ -6325,22 +4297,10 @@ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, "path-parse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, "path-root": { @@ -6367,37 +4327,8 @@ "graceful-fs": "^4.1.2", "pify": "^2.0.0", "pinkie-promise": "^2.0.0" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } } }, - "pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", - "dev": true, - "requires": { - "through": "~2.3" - } - }, - "pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", - "dev": true - }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -6405,9 +4336,9 @@ "dev": true }, "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true }, "pinkie": { @@ -6448,6 +4379,12 @@ "array-slice": "^0.2.3" } }, + "arr-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", + "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", + "dev": true + }, "array-slice": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", @@ -6471,96 +4408,376 @@ } } }, - "plur": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", - "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true + }, + "postcss": { + "version": "7.0.18", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.18.tgz", + "integrity": "sha512-/7g1QXXgegpF+9GJj4iN7ChGF40sYuGYJ8WZu8DZWnmhQ/G36hfdk3q9LBJmoK+lZ+yzZ5KYpOoxq7LF1BxE8g==", + "dev": true, + "requires": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + } + }, + "postcss-calc": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-7.0.1.tgz", + "integrity": "sha512-oXqx0m6tb4N3JGdmeMSc/i91KppbYsFZKdH0xMOqK8V1rJlzrKlTdokz8ozUXLVejydRN6u2IddxpcijRj2FqQ==", + "dev": true, + "requires": { + "css-unit-converter": "^1.1.1", + "postcss": "^7.0.5", + "postcss-selector-parser": "^5.0.0-rc.4", + "postcss-value-parser": "^3.3.1" + } + }, + "postcss-colormin": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-4.0.3.tgz", + "integrity": "sha512-WyQFAdDZpExQh32j0U0feWisZ0dmOtPl44qYmJKkq9xFWY3p+4qnRzCHeNrkeRhwPHz9bQ3mo0/yVkaply0MNw==", + "dev": true, + "requires": { + "browserslist": "^4.0.0", + "color": "^3.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-convert-values": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-4.0.1.tgz", + "integrity": "sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ==", + "dev": true, + "requires": { + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-discard-comments": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-4.0.2.tgz", + "integrity": "sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg==", + "dev": true, + "requires": { + "postcss": "^7.0.0" + } + }, + "postcss-discard-duplicates": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-4.0.2.tgz", + "integrity": "sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ==", + "dev": true, + "requires": { + "postcss": "^7.0.0" + } + }, + "postcss-discard-empty": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-4.0.1.tgz", + "integrity": "sha512-B9miTzbznhDjTfjvipfHoqbWKwd0Mj+/fL5s1QOz06wufguil+Xheo4XpOnc4NqKYBCNqqEzgPv2aPBIJLox0w==", + "dev": true, + "requires": { + "postcss": "^7.0.0" + } + }, + "postcss-discard-overridden": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-4.0.1.tgz", + "integrity": "sha512-IYY2bEDD7g1XM1IDEsUT4//iEYCxAmP5oDSFMVU/JVvT7gh+l4fmjciLqGgwjdWpQIdb0Che2VX00QObS5+cTg==", + "dev": true, + "requires": { + "postcss": "^7.0.0" + } + }, + "postcss-load-config": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.0.tgz", + "integrity": "sha512-4pV3JJVPLd5+RueiVVB+gFOAa7GWc25XQcMp86Zexzke69mKf6Nx9LRcQywdz7yZI9n1udOxmLuAwTBypypF8Q==", + "dev": true, + "requires": { + "cosmiconfig": "^5.0.0", + "import-cwd": "^2.0.0" + } + }, + "postcss-merge-longhand": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-4.0.11.tgz", + "integrity": "sha512-alx/zmoeXvJjp7L4mxEMjh8lxVlDFX1gqWHzaaQewwMZiVhLo42TEClKaeHbRf6J7j82ZOdTJ808RtN0ZOZwvw==", + "dev": true, + "requires": { + "css-color-names": "0.0.4", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0", + "stylehacks": "^4.0.0" + } + }, + "postcss-merge-rules": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-4.0.3.tgz", + "integrity": "sha512-U7e3r1SbvYzO0Jr3UT/zKBVgYYyhAz0aitvGIYOYK5CPmkNih+WDSsS5tvPrJ8YMQYlEMvsZIiqmn7HdFUaeEQ==", + "dev": true, + "requires": { + "browserslist": "^4.0.0", + "caniuse-api": "^3.0.0", + "cssnano-util-same-parent": "^4.0.0", + "postcss": "^7.0.0", + "postcss-selector-parser": "^3.0.0", + "vendors": "^1.0.0" + }, + "dependencies": { + "postcss-selector-parser": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz", + "integrity": "sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU=", + "dev": true, + "requires": { + "dot-prop": "^4.1.1", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + } + } + }, + "postcss-minify-font-values": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-4.0.2.tgz", + "integrity": "sha512-j85oO6OnRU9zPf04+PZv1LYIYOprWm6IA6zkXkrJXyRveDEuQggG6tvoy8ir8ZwjLxLuGfNkCZEQG7zan+Hbtg==", + "dev": true, + "requires": { + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-minify-gradients": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-4.0.2.tgz", + "integrity": "sha512-qKPfwlONdcf/AndP1U8SJ/uzIJtowHlMaSioKzebAXSG4iJthlWC9iSWznQcX4f66gIWX44RSA841HTHj3wK+Q==", + "dev": true, + "requires": { + "cssnano-util-get-arguments": "^4.0.0", + "is-color-stop": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-minify-params": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-4.0.2.tgz", + "integrity": "sha512-G7eWyzEx0xL4/wiBBJxJOz48zAKV2WG3iZOqVhPet/9geefm/Px5uo1fzlHu+DOjT+m0Mmiz3jkQzVHe6wxAWg==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.0", + "browserslist": "^4.0.0", + "cssnano-util-get-arguments": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0", + "uniqs": "^2.0.0" + } + }, + "postcss-minify-selectors": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-4.0.2.tgz", + "integrity": "sha512-D5S1iViljXBj9kflQo4YutWnJmwm8VvIsU1GeXJGiG9j8CIg9zs4voPMdQDUmIxetUOh60VilsNzCiAFTOqu3g==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-selector-parser": "^3.0.0" + }, + "dependencies": { + "postcss-selector-parser": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz", + "integrity": "sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU=", + "dev": true, + "requires": { + "dot-prop": "^4.1.1", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + } + } + }, + "postcss-normalize-charset": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz", + "integrity": "sha512-gMXCrrlWh6G27U0hF3vNvR3w8I1s2wOBILvA87iNXaPvSNo5uZAMYsZG7XjCUf1eVxuPfyL4TJ7++SGZLc9A3g==", + "dev": true, + "requires": { + "postcss": "^7.0.0" + } + }, + "postcss-normalize-display-values": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-4.0.2.tgz", + "integrity": "sha512-3F2jcsaMW7+VtRMAqf/3m4cPFhPD3EFRgNs18u+k3lTJJlVe7d0YPO+bnwqo2xg8YiRpDXJI2u8A0wqJxMsQuQ==", + "dev": true, + "requires": { + "cssnano-util-get-match": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-normalize-positions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-4.0.2.tgz", + "integrity": "sha512-Dlf3/9AxpxE+NF1fJxYDeggi5WwV35MXGFnnoccP/9qDtFrTArZ0D0R+iKcg5WsUd8nUYMIl8yXDCtcrT8JrdA==", + "dev": true, + "requires": { + "cssnano-util-get-arguments": "^4.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-normalize-repeat-style": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-4.0.2.tgz", + "integrity": "sha512-qvigdYYMpSuoFs3Is/f5nHdRLJN/ITA7huIoCyqqENJe9PvPmLhNLMu7QTjPdtnVf6OcYYO5SHonx4+fbJE1+Q==", + "dev": true, + "requires": { + "cssnano-util-get-arguments": "^4.0.0", + "cssnano-util-get-match": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-normalize-string": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-4.0.2.tgz", + "integrity": "sha512-RrERod97Dnwqq49WNz8qo66ps0swYZDSb6rM57kN2J+aoyEAJfZ6bMx0sx/F9TIEX0xthPGCmeyiam/jXif0eA==", + "dev": true, + "requires": { + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-normalize-timing-functions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-4.0.2.tgz", + "integrity": "sha512-acwJY95edP762e++00Ehq9L4sZCEcOPyaHwoaFOhIwWCDfik6YvqsYNxckee65JHLKzuNSSmAdxwD2Cud1Z54A==", + "dev": true, + "requires": { + "cssnano-util-get-match": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-normalize-unicode": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-4.0.1.tgz", + "integrity": "sha512-od18Uq2wCYn+vZ/qCOeutvHjB5jm57ToxRaMeNuf0nWVHaP9Hua56QyMF6fs/4FSUnVIw0CBPsU0K4LnBPwYwg==", "dev": true, "requires": { - "irregular-plurals": "^1.0.0" + "browserslist": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" } }, - "pngcrush-bin": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/pngcrush-bin/-/pngcrush-bin-3.1.1.tgz", - "integrity": "sha512-Sb60BVQpIKYRaVVCQ7ZIMAuA4kOFJKj4AeC8KSyVcgSCRNszh+pc87sCTi30WyvxVKsKtSXJNQP4K9sONGxr7Q==", + "postcss-normalize-url": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-4.0.1.tgz", + "integrity": "sha512-p5oVaF4+IHwu7VpMan/SSpmpYxcJMtkGppYf0VbdH5B6hN8YNmVyJLuY9FmLQTzY3fag5ESUUHDqM+heid0UVA==", "dev": true, "requires": { - "bin-build": "^2.2.0", - "bin-wrapper": "^3.0.0", - "logalot": "^2.0.0" + "is-absolute-url": "^2.0.0", + "normalize-url": "^3.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" } }, - "postcss": { - "version": "6.0.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", - "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "postcss-normalize-whitespace": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-4.0.2.tgz", + "integrity": "sha512-tO8QIgrsI3p95r8fyqKV+ufKlSHh9hMJqACqbv2XknufqEDhDvbguXGBBqxw9nsQoXWf0qOqppziKJKHMD4GtA==", "dev": true, "requires": { - "chalk": "^2.4.1", - "source-map": "^0.6.1", - "supports-color": "^5.4.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" } }, - "postcss-value-parser": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", - "dev": true + "postcss-ordered-values": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-4.1.2.tgz", + "integrity": "sha512-2fCObh5UanxvSxeXrtLtlwVThBvHn6MQcu4ksNT2tsaV2Fg76R2CV98W7wNSlX+5/pFwEyaDwKLLoEV7uRybAw==", + "dev": true, + "requires": { + "cssnano-util-get-arguments": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } }, - "prepend-http": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", - "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", - "dev": true + "postcss-reduce-initial": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-4.0.3.tgz", + "integrity": "sha512-gKWmR5aUulSjbzOfD9AlJiHCGH6AEVLaM0AV+aSioxUDd16qXP1PCh8d1/BGVvpdWn8k/HiK7n6TjeoXN1F7DA==", + "dev": true, + "requires": { + "browserslist": "^4.0.0", + "caniuse-api": "^3.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0" + } }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true + "postcss-reduce-transforms": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-4.0.2.tgz", + "integrity": "sha512-EEVig1Q2QJ4ELpJXMZR8Vt5DQx8/mo+dGWSR7vWXqcob2gQLyQGsionYcGKATXvQzMPn6DSN1vTN7yFximdIAg==", + "dev": true, + "requires": { + "cssnano-util-get-match": "^4.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + } + }, + "postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "requires": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } }, - "pretty-bytes": { + "postcss-svgo": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-4.0.2.tgz", - "integrity": "sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk=", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-4.0.2.tgz", + "integrity": "sha512-C6wyjo3VwFm0QgBy+Fu7gCYOkCmgmClghO+pjcxvrcBKtiKt0uCF+hvbMO1fyv5BMImRK90SMb+dwUnfbGd+jw==", + "dev": true, + "requires": { + "is-svg": "^3.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0", + "svgo": "^1.0.0" + } + }, + "postcss-unique-selectors": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-4.0.1.tgz", + "integrity": "sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.0", + "postcss": "^7.0.0", + "uniqs": "^2.0.0" + } + }, + "postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", "dev": true }, "pretty-hrtime": { @@ -6569,16 +4786,10 @@ "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", "dev": true }, - "private": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", - "dev": true - }, "process-nextick-args": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", - "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, "pseudomap": { @@ -6588,11 +4799,32 @@ "dev": true }, "psl": { - "version": "1.1.31", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz", - "integrity": "sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", + "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", "dev": true }, + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "pumpify": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", + "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dev": true, + "requires": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + } + }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", @@ -6600,102 +4832,17 @@ "dev": true }, "q": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.0.tgz", - "integrity": "sha1-3QG6ydBtMObyGa7LglPunr3DCPE=", - "dev": true, - "optional": true - }, - "qs": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.6.0.tgz", - "integrity": "sha512-KIJqT9jQJDQx5h5uAVPimw6yVg2SekOKu959OCtktD3FjzbpvaPr8i4zzg07DOMz+igA4W/aNM7OV8H37pFYfA==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", "dev": true }, - "randomatic": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", - "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "range-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", - "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=", + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", "dev": true }, - "raw-body": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.1.7.tgz", - "integrity": "sha1-rf6s4uT7MJgFgBTQjActzFl1h3Q=", - "dev": true, - "requires": { - "bytes": "2.4.0", - "iconv-lite": "0.4.13", - "unpipe": "1.0.0" - }, - "dependencies": { - "bytes": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.4.0.tgz", - "integrity": "sha1-fZcZb51br39pNeJZhVSe3SpsIzk=", - "dev": true - }, - "iconv-lite": { - "version": "0.4.13", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", - "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", - "dev": true - } - } - }, - "rc": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.1.tgz", - "integrity": "sha1-LgPo5C7kULjLPc5lvhv4l04d/ZU=", - "dev": true, - "requires": { - "deep-extend": "~0.4.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - } - }, "rcfinder": { "version": "0.1.9", "resolved": "https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.9.tgz", @@ -6717,48 +4864,6 @@ "rcfinder": "^0.1.6" } }, - "read-all-stream": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/read-all-stream/-/read-all-stream-3.1.0.tgz", - "integrity": "sha1-NcPhd/IHjveJ7kv6+kNzB06u9Po=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0", - "readable-stream": "^2.0.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, "read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", @@ -6781,15 +4886,29 @@ } }, "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" } }, "rechoir": { @@ -6811,19 +4930,35 @@ "strip-indent": "^1.0.1" } }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "remove-bom-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz", + "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5", + "is-utf8": "^0.2.1" + } }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "remove-bom-stream": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz", + "integrity": "sha1-BfGlk/FuQuH7kOv1nejlaVJflSM=", "dev": true, "requires": { - "is-equal-shallow": "^0.1.3" + "remove-bom-buffer": "^3.0.0", + "safe-buffer": "^5.1.0", + "through2": "^2.0.3" } }, "remove-trailing-separator": { @@ -6833,9 +4968,9 @@ "dev": true }, "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", "dev": true }, "repeat-string": { @@ -6854,11 +4989,22 @@ } }, "replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", "dev": true }, + "replace-homedir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-homedir/-/replace-homedir-1.0.0.tgz", + "integrity": "sha1-6H9tUTuSjd6AgmDBK+f+xv9ueYw=", + "dev": true, + "requires": { + "homedir-polyfill": "^1.0.1", + "is-absolute": "^1.0.0", + "remove-trailing-separator": "^1.1.0" + } + }, "request": { "version": "2.88.0", "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", @@ -6885,56 +5031,6 @@ "tough-cookie": "~2.4.3", "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" - }, - "dependencies": { - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "mime-db": { - "version": "1.38.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", - "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==", - "dev": true - }, - "mime-types": { - "version": "2.1.22", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", - "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", - "dev": true, - "requires": { - "mime-db": "~1.38.0" - } - }, - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "uuid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", - "dev": true - } } }, "require-directory": { @@ -6950,22 +5046,37 @@ "dev": true }, "resolve": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz", - "integrity": "sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", "dev": true, "requires": { - "path-parse": "^1.0.5" + "path-parse": "^1.0.6" } }, "resolve-dir": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz", - "integrity": "sha1-shklmlYC+sXFxJatiUpujMQwJh4=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", + "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", + "dev": true, + "requires": { + "expand-tilde": "^2.0.0", + "global-modules": "^1.0.0" + } + }, + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true + }, + "resolve-options": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.1.0.tgz", + "integrity": "sha1-MrueOcBtZzONyTeMDW1gdFZq0TE=", "dev": true, "requires": { - "expand-tilde": "^1.2.2", - "global-modules": "^0.2.3" + "value-or-function": "^3.0.0" } }, "resolve-url": { @@ -6974,51 +5085,47 @@ "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", "dev": true }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "dev": true, - "requires": { - "glob": "^7.0.5" - }, - "dependencies": { - "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, + "rgb-regex": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/rgb-regex/-/rgb-regex-1.0.1.tgz", + "integrity": "sha1-wODWiC3w4jviVKR16O3UGRX+rrE=", + "dev": true + }, + "rgba-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/rgba-regex/-/rgba-regex-1.0.0.tgz", + "integrity": "sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=", + "dev": true + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" } }, "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, - "safe-json-parse": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-1.0.1.tgz", - "integrity": "sha1-PnZyPjjf3aE8mx0poeB//uSzC1c=", - "dev": true + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "requires": { + "ret": "~0.1.10" + } }, "safer-buffer": { "version": "2.1.2", @@ -7036,45 +5143,13 @@ "lodash": "^4.0.0", "scss-tokenizer": "^0.2.3", "yargs": "^7.0.0" - }, - "dependencies": { - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } } }, "sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true, - "optional": true + "dev": true }, "scss-tokenizer": { "version": "0.2.3", @@ -7097,205 +5172,196 @@ } } }, - "seek-bzip": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz", - "integrity": "sha1-z+kXyz0nS8/6x5J1ivUxc+sfq9w=", + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + }, + "semver-greatest-satisfied-range": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz", + "integrity": "sha1-E+jCZYq5aRywzXEJMkAoDTb3els=", "dev": true, "requires": { - "commander": "~2.8.1" + "sver-compat": "^1.5.0" } }, - "semver": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", - "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, - "semver-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-1.0.0.tgz", - "integrity": "sha1-kqSWkGX5xwxpR1PVUkj8aPj2Usk=", + "set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "shelljs": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", + "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=", "dev": true }, - "semver-truncate": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-1.1.2.tgz", - "integrity": "sha1-V/Qd5pcHpicJp+AQS6IRcQnqR+g=", + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=", "dev": true, "requires": { - "semver": "^5.3.0" + "is-arrayish": "^0.3.1" }, "dependencies": { - "semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", "dev": true } } }, - "send": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", - "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", - "dev": true, - "requires": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.6.2", - "mime": "1.4.1", - "ms": "2.0.0", - "on-finished": "~2.3.0", - "range-parser": "~1.2.0", - "statuses": "~1.4.0" + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" }, "dependencies": { - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" + "is-descriptor": "^0.1.0" } }, - "statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true } } }, - "sequencify": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz", - "integrity": "sha1-kM/xnQLgcCf9dn9erT57ldHnOAw=", - "dev": true - }, - "serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", "dev": true, "requires": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" }, "dependencies": { - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" + "is-descriptor": "^1.0.0" } }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", - "dev": true + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } } } }, - "serve-static": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", - "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", - "dev": true, - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.2", - "send": "0.16.2" - } - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "dev": true - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", "dev": true, "requires": { - "shebang-regex": "^1.0.0" + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } } }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "shelljs": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", - "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=", - "dev": true - }, - "shellwords": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha1-1rkYHBpI05cyTISHHvvPxz/AZUs=", - "dev": true - }, - "sigmund": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", - "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", - "dev": true - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true }, "source-map-resolve": { @@ -7311,23 +5377,6 @@ "urix": "^0.1.0" } }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "^0.5.6" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, "source-map-url": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", @@ -7335,199 +5384,121 @@ "dev": true }, "sparkles": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.0.tgz", - "integrity": "sha1-Gsu/tZJDbRC76PeFt8xvgoFQEsM=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.1.tgz", + "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", "dev": true }, "spdx-correct": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", - "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", "dev": true, "requires": { - "spdx-license-ids": "^1.0.2" + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" } }, - "spdx-expression-parse": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", - "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", - "dev": true - }, - "spdx-license-ids": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", - "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", + "spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", "dev": true }, - "split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", - "dev": true, - "requires": { - "through": "2" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true, - "optional": true - }, - "squeak": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/squeak/-/squeak-1.3.0.tgz", - "integrity": "sha1-MwRQN7ZDiLVnZ0uEMiplIQc5FsM=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "console-stream": "^0.1.1", - "lpad-align": "^1.0.1" - } - }, - "sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, - "stat-mode": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-0.2.2.tgz", - "integrity": "sha1-5sgLYjEj19gM8TLOU480YokHJQI=", - "dev": true - }, - "statuses": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", - "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", - "dev": true - }, - "stdout-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", - "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "spdx-license-ids": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", + "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "dev": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.0" } }, - "stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", "dev": true, "requires": { - "duplexer": "~0.1.1" + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" } }, - "stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", + "stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "dev": true + }, + "stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=", + "dev": true + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", "dev": true, "requires": { - "duplexer2": "~0.1.0", - "readable-stream": "^2.0.2" + "define-property": "^0.2.5", + "object-copy": "^0.1.0" }, "dependencies": { - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "is-descriptor": "^0.1.0" } } } }, - "stream-consume": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz", - "integrity": "sha1-pB6tGm1ggc63n2WwYZAbbY89HQ8=", + "stdout-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", + "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", + "dev": true, + "requires": { + "readable-stream": "^2.0.1" + } + }, + "stream-exhaust": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stream-exhaust/-/stream-exhaust-1.0.2.tgz", + "integrity": "sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==", "dev": true }, "stream-shift": { @@ -7536,12 +5507,6 @@ "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", "dev": true }, - "string-template": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/string-template/-/string-template-0.2.1.tgz", - "integrity": "sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=", - "dev": true - }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", @@ -7553,11 +5518,34 @@ "strip-ansi": "^3.0.0" } }, + "string.prototype.trimleft": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz", + "integrity": "sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + } + }, + "string.prototype.trimright": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz", + "integrity": "sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + } + }, "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } }, "strip-ansi": { "version": "3.0.1", @@ -7569,79 +5557,20 @@ } }, "strip-bom": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-1.0.0.tgz", - "integrity": "sha1-hbiGLzhEtabV7IRnqTWYFzo295Q=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { - "first-chunk-stream": "^1.0.0", "is-utf8": "^0.2.0" } }, - "strip-bom-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz", - "integrity": "sha1-5xRDmFd9Uaa+0PoZlPoF9D/ZiO4=", - "dev": true, - "requires": { - "first-chunk-stream": "^1.0.0", - "strip-bom": "^2.0.0" - }, - "dependencies": { - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - } - } - }, "strip-bom-string": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", "integrity": "sha1-5SEekiQ2n7uB1jOi8ABE3IztrZI=", "dev": true }, - "strip-dirs": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-1.1.1.tgz", - "integrity": "sha1-lgu9EoeETzl1pFWKoQOoJV4kVqA=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "get-stdin": "^4.0.1", - "is-absolute": "^0.1.5", - "is-natural-number": "^2.0.0", - "minimist": "^1.1.0", - "sum-up": "^1.0.1" - }, - "dependencies": { - "is-absolute": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz", - "integrity": "sha1-hHSREZ/MtftDYhfMc39/qtUPYD8=", - "dev": true, - "requires": { - "is-relative": "^0.1.0" - } - }, - "is-relative": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.1.3.tgz", - "integrity": "sha1-kF/uiuhvRbPsYUvDwVyGnfCHboI=", - "dev": true - } - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, "strip-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", @@ -7652,321 +5581,234 @@ } }, "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", + "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", "dev": true }, - "strip-outer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.0.tgz", - "integrity": "sha1-qsC6YNLpDF1PJ1/Yhp/ZotMQ/7g=", + "stylehacks": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-4.0.3.tgz", + "integrity": "sha512-7GlLk9JwlElY4Y6a/rmbH2MhVlTyVmiJd1PfTCqFaIBEGMYNsrO/v3SeGTdhBThLg4Z+NbOk/qFMwCa+J+3p/g==", "dev": true, "requires": { - "escape-string-regexp": "^1.0.2" + "browserslist": "^4.0.0", + "postcss": "^7.0.0", + "postcss-selector-parser": "^3.0.0" + }, + "dependencies": { + "postcss-selector-parser": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz", + "integrity": "sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU=", + "dev": true, + "requires": { + "dot-prop": "^4.1.1", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + } } }, - "sum-up": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sum-up/-/sum-up-1.0.3.tgz", - "integrity": "sha1-HGYfZnBX9jvLeHWqFDi8FiUlFW4=", + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", "dev": true, "requires": { - "chalk": "^1.0.0" + "has-flag": "^3.0.0" } }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true + "sver-compat": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/sver-compat/-/sver-compat-1.5.0.tgz", + "integrity": "sha1-PPh9/rTQe0o/FIJ7wYaz/QxkXNg=", + "dev": true, + "requires": { + "es6-iterator": "^2.0.1", + "es6-symbol": "^3.1.1" + } }, "svgo": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-0.7.2.tgz", - "integrity": "sha1-n1dyQTlSE1xv779Ar+ak+qiLS7U=", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.0.tgz", + "integrity": "sha512-MLfUA6O+qauLDbym+mMZgtXCGRfIxyQoeH6IKVcFslyODEe/ElJNwr0FohQ3xG4C6HK6bk3KYPPXwHVJk3V5NQ==", "dev": true, - "optional": true, "requires": { - "coa": "~1.0.1", - "colors": "~1.1.2", - "csso": "~2.3.1", - "js-yaml": "~3.7.0", + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.33", + "csso": "^3.5.1", + "js-yaml": "^3.13.1", "mkdirp": "~0.5.1", - "sax": "~1.2.1", - "whet.extend": "~0.9.9" + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" } }, "tar": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", - "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz", + "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==", "dev": true, "requires": { "block-stream": "*", - "fstream": "^1.0.2", + "fstream": "^1.0.12", "inherits": "2" } }, - "tar-stream": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.5.4.tgz", - "integrity": "sha1-NlSc8E7RrumyowwBQyUiONr5QBY=", + "ternary-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ternary-stream/-/ternary-stream-3.0.0.tgz", + "integrity": "sha512-oIzdi+UL/JdktkT+7KU5tSIQjj8pbShj3OASuvDEhm0NT5lppsm7aXWAmAq4/QMaBIyfuEcNLbAQA+HpaISobQ==", "dev": true, "requires": { - "bl": "^1.0.0", - "end-of-stream": "^1.0.0", - "readable-stream": "^2.0.0", - "xtend": "^4.0.0" + "duplexify": "^4.1.1", + "fork-stream": "^0.0.4", + "merge-stream": "^2.0.0", + "through2": "^3.0.1" }, "dependencies": { - "end-of-stream": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.0.tgz", - "integrity": "sha1-epDYM+/abPpurA9JSduw+tOmMgY=", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "duplexify": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.1.tgz", + "integrity": "sha512-DY3xVEmVHTv1wSzKNbwoU6nVjzI369Y6sPoqfYr0/xlx3IdX2n94xIszTcjPO8W8ZIv0Wb0PXNcjuZyT4wiICA==", "dev": true, "requires": { - "wrappy": "1" + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.0" } }, "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", + "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", "dev": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "through2": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", + "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "readable-stream": "2 || 3" } } } }, - "temp-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-1.0.0.tgz", - "integrity": "sha1-CnwOom06Oa+n4OvqnB/AvE2qAR0=", - "dev": true - }, - "tempfile": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-2.0.0.tgz", - "integrity": "sha1-awRGhWqbERTRhW/8vlCczLCXcmU=", - "dev": true, - "requires": { - "temp-dir": "^1.0.0", - "uuid": "^3.0.1" - } - }, - "ternary-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ternary-stream/-/ternary-stream-2.0.1.tgz", - "integrity": "sha1-Bk5Im0tb9gumpre8fy9cJ07Pgmk=", - "dev": true, - "requires": { - "duplexify": "^3.5.0", - "fork-stream": "^0.0.4", - "merge-stream": "^1.0.0", - "through2": "^2.0.1" - } - }, - "text-hex": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-0.0.0.tgz", - "integrity": "sha1-V4+8haapJjbkLdF7QdAhjM6esrM=", - "dev": true - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, "through2": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", - "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, "requires": { - "readable-stream": "^2.1.5", + "readable-stream": "~2.3.6", "xtend": "~4.0.1" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "through2-concurrent": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/through2-concurrent/-/through2-concurrent-1.1.1.tgz", - "integrity": "sha1-EctOpMnjG8puTB5tukjRxyjDUks=", - "dev": true, - "requires": { - "through2": "^2.0.0" } }, "through2-filter": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-2.0.0.tgz", - "integrity": "sha1-YLxVoNrLdghdsfna6Zq0P4PWIuw=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-3.0.0.tgz", + "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", "dev": true, "requires": { "through2": "~2.0.0", "xtend": "~4.0.0" } }, - "tildify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz", - "integrity": "sha1-3OwD9V3Km3qj5bBPIYF+tW5jWIo=", - "dev": true, - "requires": { - "os-homedir": "^1.0.0" - } - }, "time-stamp": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", "dev": true }, - "timed-out": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-3.1.3.tgz", - "integrity": "sha1-lYYL/MXHbCd/j4Mm/Q9bLiDrohc=", - "dev": true - }, "timers-ext": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.2.tgz", - "integrity": "sha1-YcxHp2wavTGV8UUn+XjViulMUgQ=", + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", + "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", "dev": true, "requires": { - "es5-ext": "~0.10.14", + "es5-ext": "~0.10.46", "next-tick": "1" - }, - "dependencies": { - "next-tick": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", - "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", - "dev": true - } } }, - "tiny-lr": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-1.1.1.tgz", - "integrity": "sha512-44yhA3tsaRoMOjQQ+5v5mVdqef+kH6Qze9jTpqtVufgYjYt08zyZAwNwwVBj3i1rJMnR52IxOW0LK0vBzgAkuA==", + "timsort": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", + "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=", + "dev": true + }, + "to-absolute-glob": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", + "integrity": "sha1-GGX0PZ50sIItufFFt4z/fQ98hJs=", "dev": true, "requires": { - "body": "^5.1.0", - "debug": "^3.1.0", - "faye-websocket": "~0.10.0", - "livereload-js": "^2.3.0", - "object-assign": "^4.1.0", - "qs": "^6.4.0" - }, - "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "is-absolute": "^1.0.0", + "is-negated-glob": "^1.0.0" + } + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "ms": "^2.1.1" + "is-buffer": "^1.1.5" } - }, - "livereload-js": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-2.4.0.tgz", - "integrity": "sha512-XPQH8Z2GDP/Hwz2PCDrh2mth4yFejwA1OZ/81Ti3LgKyhDcEjsSsqFWZojHG0va/duGd+WyosY7eXLDoOyqcPw==", - "dev": true - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true } } }, - "to-absolute-glob": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-0.1.1.tgz", - "integrity": "sha1-HN+kcqnvUMI57maZm2YsoOs5k38=", + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", "dev": true, "requires": { - "extend-shallow": "^2.0.1" + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" } }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "to-through": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-through/-/to-through-2.0.0.tgz", + "integrity": "sha1-/JKtq6ByZHvAtn1rA2ZKoZUJOvY=", + "dev": true, + "requires": { + "through2": "^2.0.3" + } }, "tough-cookie": { "version": "2.4.3", @@ -7992,21 +5834,6 @@ "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", "dev": true }, - "trim-repeated": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", - "integrity": "sha1-42RqLqTokTEr9+rObPsFOAvAHCE=", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.2" - } - }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true - }, "true-case-path": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", @@ -8014,38 +5841,16 @@ "dev": true, "requires": { "glob": "^7.1.2" - }, - "dependencies": { - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } } }, "tunnel-agent": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", - "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", - "dev": true + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } }, "tweetnacl": { "version": "0.14.5", @@ -8053,15 +5858,11 @@ "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", "dev": true }, - "type-is": { - "version": "1.6.15", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", - "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", - "dev": true, - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.15" - } + "type": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", + "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", + "dev": true }, "typedarray": { "version": "0.0.6", @@ -8070,21 +5871,13 @@ "dev": true }, "uglify-js": { - "version": "3.4.10", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz", - "integrity": "sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==", + "version": "3.6.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.4.tgz", + "integrity": "sha512-9Yc2i881pF4BPGhjteCXQNaXx1DCwm3dtOyBaG2hitHjLWOczw/ki8vD1bqyT3u6K0Ms/FpCShkmfg+FtlOfYA==", "dev": true, "requires": { - "commander": "~2.19.0", + "commander": "~2.20.3", "source-map": "~0.6.1" - }, - "dependencies": { - "commander": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", - "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==", - "dev": true - } } }, "unc-path-regex": { @@ -8093,22 +5886,113 @@ "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=", "dev": true }, + "undertaker": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/undertaker/-/undertaker-1.2.1.tgz", + "integrity": "sha512-71WxIzDkgYk9ZS+spIB8iZXchFhAdEo2YU8xYqBYJ39DIUIqziK78ftm26eecoIY49X0J2MLhG4hr18Yp6/CMA==", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "bach": "^1.0.0", + "collection-map": "^1.0.0", + "es6-weak-map": "^2.0.1", + "last-run": "^1.1.0", + "object.defaults": "^1.0.0", + "object.reduce": "^1.0.0", + "undertaker-registry": "^1.0.0" + } + }, + "undertaker-registry": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/undertaker-registry/-/undertaker-registry-1.0.1.tgz", + "integrity": "sha1-XkvaMI5KiirlhPm5pDWaSZglzFA=", + "dev": true + }, + "union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + } + }, + "uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", + "dev": true + }, + "uniqs": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", + "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", + "dev": true + }, "unique-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-1.0.0.tgz", - "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.3.1.tgz", + "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", + "dev": true, + "requires": { + "json-stable-stringify-without-jsonify": "^1.0.1", + "through2-filter": "^3.0.0" + } + }, + "unquote": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", + "integrity": "sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ=", "dev": true }, - "unpipe": { + "unset-value": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", - "dev": true + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true + } + } }, - "unzip-response": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-1.0.2.tgz", - "integrity": "sha1-uYTwh3/AqJwsdzzB73tbIytbBv4=", + "upath": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", "dev": true }, "uri-js": { @@ -8126,28 +6010,10 @@ "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", "dev": true }, - "url-parse-lax": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", - "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", - "dev": true, - "requires": { - "prepend-http": "^1.0.1" - } - }, - "url-regex": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/url-regex/-/url-regex-3.2.0.tgz", - "integrity": "sha1-260eDJ4p4QXdCx8J9oYvf9tIJyQ=", - "dev": true, - "requires": { - "ip-regex": "^1.0.1" - } - }, - "user-home": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", - "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=", + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", "dev": true }, "util-deprecate": { @@ -8156,43 +6022,53 @@ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", - "dev": true + "util.promisify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz", + "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "object.getownpropertydescriptors": "^2.0.3" + } }, "uuid": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", - "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", + "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", "dev": true }, "v8flags": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", - "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.1.3.tgz", + "integrity": "sha512-amh9CCg3ZxkzQ48Mhcb8iX7xpAfYJgePHxWMQCBWECpOSqJUXgY26ncA61UTV0BkPqfhcy6mzwCIoP4ygxpW8w==", "dev": true, "requires": { - "user-home": "^1.1.1" + "homedir-polyfill": "^1.0.1" } }, - "vali-date": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/vali-date/-/vali-date-1.0.0.tgz", - "integrity": "sha1-G5BKWWCfsyjvB4E4Qgk09rhnCaY=", - "dev": true - }, "validate-npm-package-license": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", - "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, "requires": { - "spdx-correct": "~1.0.0", - "spdx-expression-parse": "~1.0.0" + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" } }, + "value-or-function": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/value-or-function/-/value-or-function-3.0.0.tgz", + "integrity": "sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM=", + "dev": true + }, + "vendors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.3.tgz", + "integrity": "sha512-fOi47nsJP5Wqefa43kyWSg80qF+Q3XA6MUkgi7Hp1HQaKDQW4cQrK2D0P7mmbFtsV1N89am55Yru/nyEwRubcw==", + "dev": true + }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", @@ -8205,118 +6081,57 @@ } }, "vinyl": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", - "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", + "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", "dev": true, "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" + "clone": "^2.1.1", + "clone-buffer": "^1.0.0", + "clone-stats": "^1.0.0", + "cloneable-readable": "^1.0.0", + "remove-trailing-separator": "^1.0.1", + "replace-ext": "^1.0.0" } }, - "vinyl-assign": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/vinyl-assign/-/vinyl-assign-1.2.1.tgz", - "integrity": "sha1-TRmIkbVRWRHXcajNnFSApGoHSkU=", - "dev": true, - "requires": { - "object-assign": "^4.0.1", - "readable-stream": "^2.0.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.0.3", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "vinyl-fs": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-3.0.3.tgz", + "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==", + "dev": true, + "requires": { + "fs-mkdirp-stream": "^1.0.0", + "glob-stream": "^6.1.0", + "graceful-fs": "^4.0.0", + "is-valid-glob": "^1.0.0", + "lazystream": "^1.0.0", + "lead": "^1.0.0", + "object.assign": "^4.0.4", + "pumpify": "^1.3.5", + "readable-stream": "^2.3.3", + "remove-bom-buffer": "^3.0.0", + "remove-bom-stream": "^1.2.0", + "resolve-options": "^1.1.0", + "through2": "^2.0.0", + "to-through": "^2.0.0", + "value-or-function": "^3.0.0", + "vinyl": "^2.0.0", + "vinyl-sourcemap": "^1.1.0" } }, - "vinyl-fs": { - "version": "0.3.14", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-0.3.14.tgz", - "integrity": "sha1-mmhRzhysHBzqX+hsCTHWIMLPqeY=", + "vinyl-sourcemap": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz", + "integrity": "sha1-kqgAWTo4cDqM2xHYswCtS+Y7PhY=", "dev": true, "requires": { - "defaults": "^1.0.0", - "glob-stream": "^3.1.5", - "glob-watcher": "^0.0.6", - "graceful-fs": "^3.0.0", - "mkdirp": "^0.5.0", - "strip-bom": "^1.0.0", - "through2": "^0.6.1", - "vinyl": "^0.4.0" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } - } + "append-buffer": "^1.0.2", + "convert-source-map": "^1.5.0", + "graceful-fs": "^4.1.6", + "normalize-path": "^2.1.1", + "now-and-later": "^2.0.0", + "remove-bom-buffer": "^3.0.0", + "vinyl": "^2.0.0" } }, "vinyl-sourcemaps-apply": { @@ -8336,42 +6151,10 @@ } } }, - "ware": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/ware/-/ware-1.3.0.tgz", - "integrity": "sha1-0bFPOdLiy0q4xAmPdW/ksWTkc9Q=", - "dev": true, - "requires": { - "wrap-fn": "^0.1.0" - } - }, - "websocket-driver": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz", - "integrity": "sha1-DK+dLXVdk67gSdS90NP+LMoqJOs=", - "dev": true, - "requires": { - "http-parser-js": ">=0.4.0", - "websocket-extensions": ">=0.1.1" - } - }, - "websocket-extensions": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.2.tgz", - "integrity": "sha1-Dhh4HeYpoYMIzhSBZQ9n/6JpOl0=", - "dev": true - }, - "whet.extend": { - "version": "0.9.9", - "resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz", - "integrity": "sha1-+HfVv2SMl+WqVC+twW1qJZucEaE=", - "dev": true, - "optional": true - }, "which": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", - "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -8402,15 +6185,6 @@ "strip-ansi": "^3.0.1" } }, - "wrap-fn": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/wrap-fn/-/wrap-fn-0.1.5.tgz", - "integrity": "sha1-8htuQQFv9KfjFyDbxjoJAWvfmEU=", - "dev": true, - "requires": { - "co": "3.1.0" - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -8418,9 +6192,9 @@ "dev": true }, "xtend": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", - "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true }, "y18n": { @@ -8454,14 +6228,6 @@ "which-module": "^1.0.0", "y18n": "^3.2.1", "yargs-parser": "^5.0.0" - }, - "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - } } }, "yargs-parser": { @@ -8471,24 +6237,6 @@ "dev": true, "requires": { "camelcase": "^3.0.0" - }, - "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - } - } - }, - "yauzl": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.8.0.tgz", - "integrity": "sha1-eUUK/yKyqcWkHvVOAtuQfM+/nuI=", - "dev": true, - "requires": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.0.1" } } } diff --git a/Ignia.Topics.Editor.Mvc/package.json b/Ignia.Topics.Editor.Mvc/package.json index b12513e8..06e43285 100644 --- a/Ignia.Topics.Editor.Mvc/package.json +++ b/Ignia.Topics.Editor.Mvc/package.json @@ -1,53 +1,22 @@ { - "name": "gulp-workflow", - "version": "0.0.1", - "description": "Ignia's default front-end workflow using Gulp, Bower, and Sass", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, + "name": "Ignia.Topics.Editor.Mvc", + "description": "Loads client-side dependencies for the Topic Editor.", "repository": { "type": "git", - "url": "https://github.com/Ignia/gulp-workflow.git" + "url": "https://github.com/Ignia/topic-editor-mvc.git" }, - "keywords": [ - "Gulp", - "Bower", - "Sass", - "workflow", - "build", - "process", - "boilerplate", - "Ignia" - ], - "author": "Ignia, LLC", "license": "MIT", - "bugs": { - "url": "https://github.com/Ignia/gulp-workflow/issues" - }, - "homepage": "https://github.com/Ignia/gulp-workflow", "devDependencies": { - "del": "^3.0.0", - "gulp": "^3.9.1", - "gulp-autoprefixer": "^4.1.0", - "gulp-babel": "^6.1.3", - "gulp-clean-css": "^3.10.0", + "cssnano": "^4.1.10", + "gulp": "^4.0.2", "gulp-concat": "^2.6.1", - "gulp-connect": "^5.7.0", - "gulp-if": "^2.0.2", - "gulp-imagemin": "^3.1.1", + "gulp-if": "^3.0.0", "gulp-jshint": "^2.1.0", - "gulp-jsonminify": "^1.1.0", - "gulp-livereload": "^3.8.1", - "gulp-minify-html": "^1.0.6", - "gulp-notify": "^3.2.0", - "gulp-sass": "^3.2.1", - "gulp-sass-unicode": "^1.0.2", + "gulp-postcss": "^8.0.0", + "gulp-sass": "^4.0.2", "gulp-sourcemaps": "^2.6.5", "gulp-uglify": "^3.0.2", - "gulp-util": "^3.0.8", - "imagemin-pngcrush": "^5.0.0", "jshint": "^2.10.2", - "jsonminify": "^0.4.1" + "merge2": "^1.3.0" } } From 05c7cc3c741eaa5669599dabef31fd3928201893 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 14:56:32 -0700 Subject: [PATCH 383/637] Added minimal distribution of *Ext JS 3.2.1* Unfortunately, there isn't a (reliable) **npm** package source for legacy versions of **Ext JS**. We _may_ update to the current version at some point. For now, however, we continue to use the legacy `3.2.1` version for use of the `TreeView` control. At some point, we need to reevaluate if we want to continue to use **Ext JS** for this (in which case we should upgrade, and use their secure **npm** source) or migrate to an alternate component, since we're no longer using **Ext JS** for any other aspects of the application. --- .gitignore | 1 - .../Scripts/ExtJS/Resources/css/ext-all.css | 6789 ++ .../ExtJS/Resources/css/xtheme-gray.css | 1654 + .../Scripts/ExtJS/ext-ExtendTextField.js | 23 + .../Shared/Scripts/ExtJS/ext-all-debug.js | 52624 ++++++++++++++++ .../Shared/Scripts/ExtJS/ext-all.js | 501 + .../Shared/Scripts/ExtJS/ext-base.js | 7 + 7 files changed, 61598 insertions(+), 1 deletion(-) create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/css/ext-all.css create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/css/xtheme-gray.css create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-ExtendTextField.js create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-all-debug.js create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-all.js create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-base.js diff --git a/.gitignore b/.gitignore index 8fb26216..8d0c7f07 100644 --- a/.gitignore +++ b/.gitignore @@ -301,7 +301,6 @@ config.yml /_site compilerconfig.json compilerconfig.json.defaults -**/ExtJS/* **/Vendor/* *.js.map *.css.map diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/css/ext-all.css b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/css/ext-all.css new file mode 100644 index 00000000..305728bb --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/css/ext-all.css @@ -0,0 +1,6789 @@ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}img,body,html{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul {list-style:none;}caption,th {text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;}q:before,q:after{content:'';}.ext-el-mask { + z-index: 100; + position: absolute; + top:0; + left:0; + -moz-opacity: 0.5; + opacity: .50; + filter: alpha(opacity=50); + width: 100%; + height: 100%; + zoom: 1; +} + +.ext-el-mask-msg { + z-index: 20001; + position: absolute; + top: 0; + left: 0; + border:1px solid; + background:repeat-x 0 -16px; + padding:2px; +} + +.ext-el-mask-msg div { + padding:5px 10px 5px 10px; + border:1px solid; + cursor:wait; +} + +.ext-shim { + position:absolute; + visibility:hidden; + left:0; + top:0; + overflow:hidden; +} + +.ext-ie .ext-shim { + filter: alpha(opacity=0); +} + +.ext-ie6 .ext-shim { + margin-left: 5px; + margin-top: 3px; +} + +.x-mask-loading div { + padding:5px 10px 5px 25px; + background:no-repeat 5px 5px; + line-height:16px; +} + +/* class for hiding elements without using display:none */ +.x-hidden, .x-hide-offsets { + position:absolute !important; + left:-10000px; + top:-10000px; + visibility:hidden; +} + +.x-hide-display { + display:none !important; +} + +.x-hide-visibility { + visibility:hidden !important; +} + +.x-masked { + overflow: hidden !important; +} +.x-masked-relative { + position: relative !important; +} + +.x-masked select, .x-masked object, .x-masked embed { + visibility: hidden; +} + +.x-layer { + visibility: hidden; +} + +.x-unselectable, .x-unselectable * { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select:ignore; +} + +.x-repaint { + zoom: 1; + background-color: transparent; + -moz-outline: none; + outline: none; +} + +.x-item-disabled { + cursor: default; + opacity: .6; + -moz-opacity: .6; + filter: alpha(opacity=60); +} + +.x-item-disabled * { + cursor: default !important; +} + +.x-form-radio-group .x-item-disabled { + filter: none; +} + +.x-splitbar-proxy { + position: absolute; + visibility: hidden; + z-index: 20001; + zoom: 1; + line-height: 1px; + font-size: 1px; + overflow: hidden; +} + +.x-splitbar-h, .x-splitbar-proxy-h { + cursor: e-resize; + cursor: col-resize; +} + +.x-splitbar-v, .x-splitbar-proxy-v { + cursor: s-resize; + cursor: row-resize; +} + +.x-color-palette { + width: 150px; + height: 92px; + cursor: pointer; +} + +.x-color-palette a { + border: 1px solid; + float: left; + padding: 2px; + text-decoration: none; + -moz-outline: 0 none; + outline: 0 none; + cursor: pointer; +} + +.x-color-palette a:hover, .x-color-palette a.x-color-palette-sel { + border: 1px solid; +} + +.x-color-palette em { + display: block; + border: 1px solid; +} + +.x-color-palette em span { + cursor: pointer; + display: block; + height: 10px; + line-height: 10px; + width: 10px; +} + +.x-ie-shadow { + display: none; + position: absolute; + overflow: hidden; + left:0; + top:0; + zoom:1; +} + +.x-shadow { + display: none; + position: absolute; + overflow: hidden; + left:0; + top:0; +} + +.x-shadow * { + overflow: hidden; +} + +.x-shadow * { + padding: 0; + border: 0; + margin: 0; + clear: none; + zoom: 1; +} + +/* top bottom */ +.x-shadow .xstc, .x-shadow .xsbc { + height: 6px; + float: left; +} + +/* corners */ +.x-shadow .xstl, .x-shadow .xstr, .x-shadow .xsbl, .x-shadow .xsbr { + width: 6px; + height: 6px; + float: left; +} + +/* sides */ +.x-shadow .xsc { + width: 100%; +} + +.x-shadow .xsml, .x-shadow .xsmr { + width: 6px; + float: left; + height: 100%; +} + +.x-shadow .xsmc { + float: left; + height: 100%; + background: transparent; +} + +.x-shadow .xst, .x-shadow .xsb { + height: 6px; + overflow: hidden; + width: 100%; +} + +.x-shadow .xsml { + background: transparent repeat-y 0 0; +} + +.x-shadow .xsmr { + background: transparent repeat-y -6px 0; +} + +.x-shadow .xstl { + background: transparent no-repeat 0 0; +} + +.x-shadow .xstc { + background: transparent repeat-x 0 -30px; +} + +.x-shadow .xstr { + background: transparent repeat-x 0 -18px; +} + +.x-shadow .xsbl { + background: transparent no-repeat 0 -12px; +} + +.x-shadow .xsbc { + background: transparent repeat-x 0 -36px; +} + +.x-shadow .xsbr { + background: transparent repeat-x 0 -6px; +} + +.loading-indicator { + background: no-repeat left; + padding-left: 20px; + line-height: 16px; + margin: 3px; +} + +.x-text-resize { + position: absolute; + left: -1000px; + top: -1000px; + visibility: hidden; + zoom: 1; +} + +.x-drag-overlay { + width: 100%; + height: 100%; + display: none; + position: absolute; + left: 0; + top: 0; + background-image:url(../images/default/s.gif); + z-index: 20000; +} + +.x-clear { + clear:both; + height:0; + overflow:hidden; + line-height:0; + font-size:0; +} + +.x-spotlight { + z-index: 8999; + position: absolute; + top:0; + left:0; + -moz-opacity: 0.5; + opacity: .50; + filter: alpha(opacity=50); + width:0; + height:0; + zoom: 1; +} + +#x-history-frame { + position:absolute; + top:-1px; + left:0; + width:1px; + height:1px; + visibility:hidden; +} + +#x-history-field { + position:absolute; + top:0; + left:-1px; + width:1px; + height:1px; + visibility:hidden; +} +.x-resizable-handle { + position:absolute; + z-index:100; + /* ie needs these */ + font-size:1px; + line-height:6px; + overflow:hidden; + filter:alpha(opacity=0); + opacity:0; + zoom:1; +} + +.x-resizable-handle-east{ + width:6px; + cursor:e-resize; + right:0; + top:0; + height:100%; +} + +.ext-ie .x-resizable-handle-east { + margin-right:-1px; /*IE rounding error*/ +} + +.x-resizable-handle-south{ + width:100%; + cursor:s-resize; + left:0; + bottom:0; + height:6px; +} + +.ext-ie .x-resizable-handle-south { + margin-bottom:-1px; /*IE rounding error*/ +} + +.x-resizable-handle-west{ + width:6px; + cursor:w-resize; + left:0; + top:0; + height:100%; +} + +.x-resizable-handle-north{ + width:100%; + cursor:n-resize; + left:0; + top:0; + height:6px; +} + +.x-resizable-handle-southeast{ + width:6px; + cursor:se-resize; + right:0; + bottom:0; + height:6px; + z-index:101; +} + +.x-resizable-handle-northwest{ + width:6px; + cursor:nw-resize; + left:0; + top:0; + height:6px; + z-index:101; +} + +.x-resizable-handle-northeast{ + width:6px; + cursor:ne-resize; + right:0; + top:0; + height:6px; + z-index:101; +} + +.x-resizable-handle-southwest{ + width:6px; + cursor:sw-resize; + left:0; + bottom:0; + height:6px; + z-index:101; +} + +.x-resizable-over .x-resizable-handle, .x-resizable-pinned .x-resizable-handle{ + filter:alpha(opacity=100); + opacity:1; +} + +.x-resizable-over .x-resizable-handle-east, .x-resizable-pinned .x-resizable-handle-east, +.x-resizable-over .x-resizable-handle-west, .x-resizable-pinned .x-resizable-handle-west +{ + background-position: left; +} + +.x-resizable-over .x-resizable-handle-south, .x-resizable-pinned .x-resizable-handle-south, +.x-resizable-over .x-resizable-handle-north, .x-resizable-pinned .x-resizable-handle-north +{ + background-position: top; +} + +.x-resizable-over .x-resizable-handle-southeast, .x-resizable-pinned .x-resizable-handle-southeast{ + background-position: top left; +} + +.x-resizable-over .x-resizable-handle-northwest, .x-resizable-pinned .x-resizable-handle-northwest{ + background-position:bottom right; +} + +.x-resizable-over .x-resizable-handle-northeast, .x-resizable-pinned .x-resizable-handle-northeast{ + background-position: bottom left; +} + +.x-resizable-over .x-resizable-handle-southwest, .x-resizable-pinned .x-resizable-handle-southwest{ + background-position: top right; +} + +.x-resizable-proxy{ + border: 1px dashed; + position:absolute; + overflow:hidden; + display:none; + left:0; + top:0; + z-index:50000; +} + +.x-resizable-overlay{ + width:100%; + height:100%; + display:none; + position:absolute; + left:0; + top:0; + z-index:200000; + -moz-opacity: 0; + opacity:0; + filter: alpha(opacity=0); +} +.x-tab-panel { + overflow:hidden; +} + +.x-tab-panel-header, .x-tab-panel-footer { + border: 1px solid; + overflow:hidden; + zoom:1; +} + +.x-tab-panel-header { + border: 1px solid; + padding-bottom: 2px; +} + +.x-tab-panel-footer { + border: 1px solid; + padding-top: 2px; +} + +.x-tab-strip-wrap { + width:100%; + overflow:hidden; + position:relative; + zoom:1; +} + +ul.x-tab-strip { + display:block; + width:5000px; + zoom:1; +} + +ul.x-tab-strip-top{ + padding-top: 1px; + background: repeat-x bottom; + border-bottom: 1px solid; +} + +ul.x-tab-strip-bottom{ + padding-bottom: 1px; + background: repeat-x top; + border-top: 1px solid; + border-bottom: 0 none; +} + +.x-tab-panel-header-plain .x-tab-strip-top { + background:transparent !important; + padding-top:0 !important; +} + +.x-tab-panel-header-plain { + background:transparent !important; + border-width:0 !important; + padding-bottom:0 !important; +} + +.x-tab-panel-header-plain .x-tab-strip-spacer, +.x-tab-panel-footer-plain .x-tab-strip-spacer { + border:1px solid; + height:2px; + font-size:1px; + line-height:1px; +} + +.x-tab-panel-header-plain .x-tab-strip-spacer { + border-top: 0 none; +} + +.x-tab-panel-footer-plain .x-tab-strip-spacer { + border-bottom: 0 none; +} + +.x-tab-panel-footer-plain .x-tab-strip-bottom { + background:transparent !important; + padding-bottom:0 !important; +} + +.x-tab-panel-footer-plain { + background:transparent !important; + border-width:0 !important; + padding-top:0 !important; +} + +.ext-border-box .x-tab-panel-header-plain .x-tab-strip-spacer, +.ext-border-box .x-tab-panel-footer-plain .x-tab-strip-spacer { + height:3px; +} + +ul.x-tab-strip li { + float:left; + margin-left:2px; +} + +ul.x-tab-strip li.x-tab-edge { + float:left; + margin:0 !important; + padding:0 !important; + border:0 none !important; + font-size:1px !important; + line-height:1px !important; + overflow:hidden; + zoom:1; + background:transparent !important; + width:1px; +} + +.x-tab-strip a, .x-tab-strip span, .x-tab-strip em { + display:block; +} + +.x-tab-strip a { + text-decoration:none !important; + -moz-outline: none; + outline: none; + cursor:pointer; +} + +.x-tab-strip-inner { + overflow:hidden; + text-overflow: ellipsis; +} + +.x-tab-strip span.x-tab-strip-text { + white-space: nowrap; + cursor:pointer; + padding:4px 0; +} + +.x-tab-strip-top .x-tab-with-icon .x-tab-right { + padding-left:6px; +} + +.x-tab-strip .x-tab-with-icon span.x-tab-strip-text { + padding-left:20px; + background-position: 0 3px; + background-repeat: no-repeat; +} + +.x-tab-strip-active, .x-tab-strip-active a.x-tab-right { + cursor:default; +} + +.x-tab-strip-active span.x-tab-strip-text { + cursor:default; +} + +.x-tab-strip-disabled .x-tabs-text { + cursor:default; +} + +.x-tab-panel-body { + overflow:hidden; +} + +.x-tab-panel-bwrap { + overflow:hidden; +} + +.ext-ie .x-tab-strip .x-tab-right { + position:relative; +} + +.x-tab-strip-top .x-tab-strip-active .x-tab-right { + margin-bottom:-1px; +} + +/* + * Horrible hack for IE8 in quirks mode + */ +.ext-ie8 ul.x-tab-strip li { + position: relative; +} +.ext-ie8 .x-tab-strip .x-tab-right{ + margin-bottom: 0 !important; + top: 1px; +} +.ext-ie8 ul.x-tab-strip-top { + padding-top: 0; +} +.ext-ie8 .x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { + top:4px; +} +.ext-ie8 .x-tab-strip-bottom .x-tab-right{ + top:0; +} + + +.x-tab-strip-top .x-tab-strip-active .x-tab-right span.x-tab-strip-text { + padding-bottom:5px; +} + +.x-tab-strip-bottom .x-tab-strip-active .x-tab-right { + margin-top:-1px; +} + +.x-tab-strip-bottom .x-tab-strip-active .x-tab-right span.x-tab-strip-text { + padding-top:5px; +} + +.x-tab-strip-top .x-tab-right { + background: transparent no-repeat 0 -51px; + padding-left:10px; +} + +.x-tab-strip-top .x-tab-left { + background: transparent no-repeat right -351px; + padding-right:10px; +} + +.x-tab-strip-top .x-tab-strip-inner { + background: transparent repeat-x 0 -201px; +} + +.x-tab-strip-top .x-tab-strip-over .x-tab-right { + background-position:0 -101px; +} + +.x-tab-strip-top .x-tab-strip-over .x-tab-left { + background-position:right -401px; +} + +.x-tab-strip-top .x-tab-strip-over .x-tab-strip-inner { + background-position:0 -251px; +} + +.x-tab-strip-top .x-tab-strip-active .x-tab-right { + background-position: 0 0; +} + +.x-tab-strip-top .x-tab-strip-active .x-tab-left { + background-position: right -301px; +} + +.x-tab-strip-top .x-tab-strip-active .x-tab-strip-inner { + background-position: 0 -151px; +} + +.x-tab-strip-bottom .x-tab-right { + background: no-repeat bottom right; +} + +.x-tab-strip-bottom .x-tab-left { + background: no-repeat bottom left; +} + +.x-tab-strip-bottom .x-tab-strip-active .x-tab-right { + background: no-repeat bottom right; +} + +.x-tab-strip-bottom .x-tab-strip-active .x-tab-left { + background: no-repeat bottom left; +} + +.x-tab-strip-bottom .x-tab-left { + margin-right: 3px; + padding:0 10px; +} + +.x-tab-strip-bottom .x-tab-right { + padding:0; +} + +.x-tab-strip .x-tab-strip-close { + display:none; +} + +.x-tab-strip-closable { + position:relative; +} + +.x-tab-strip-closable .x-tab-left { + padding-right:19px; +} + +.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { + opacity:.6; + -moz-opacity:.6; + background-repeat:no-repeat; + display:block; + width:11px; + height:11px; + position:absolute; + top:3px; + right:3px; + cursor:pointer; + z-index:2; +} + +.x-tab-strip .x-tab-strip-active a.x-tab-strip-close { + opacity:.8; + -moz-opacity:.8; +} +.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{ + opacity:1; + -moz-opacity:1; +} + +.x-tab-panel-body { + border: 1px solid; +} + +.x-tab-panel-body-top { + border-top: 0 none; +} + +.x-tab-panel-body-bottom { + border-bottom: 0 none; +} + +.x-tab-scroller-left { + background: transparent no-repeat -18px 0; + border-bottom: 1px solid; + width:18px; + position:absolute; + left:0; + top:0; + z-index:10; + cursor:pointer; +} +.x-tab-scroller-left-over { + background-position: 0 0; +} + +.x-tab-scroller-left-disabled { + background-position: -18px 0; + opacity:.5; + -moz-opacity:.5; + filter:alpha(opacity=50); + cursor:default; +} + +.x-tab-scroller-right { + background: transparent no-repeat 0 0; + border-bottom: 1px solid; + width:18px; + position:absolute; + right:0; + top:0; + z-index:10; + cursor:pointer; +} + +.x-tab-scroller-right-over { + background-position: -18px 0; +} + +.x-tab-scroller-right-disabled { + background-position: 0 0; + opacity:.5; + -moz-opacity:.5; + filter:alpha(opacity=50); + cursor:default; +} + +.x-tab-scrolling-bottom .x-tab-scroller-left, .x-tab-scrolling-bottom .x-tab-scroller-right{ + margin-top: 1px; +} + +.x-tab-scrolling .x-tab-strip-wrap { + margin-left:18px; + margin-right:18px; +} + +.x-tab-scrolling { + position:relative; +} + +.x-tab-panel-bbar .x-toolbar { + border:1px solid; + border-top:0 none; + overflow:hidden; + padding:2px; +} + +.x-tab-panel-tbar .x-toolbar { + border:1px solid; + border-top:0 none; + overflow:hidden; + padding:2px; +}/* all fields */ +.x-form-field{ + margin: 0 0 0 0; +} + +.ext-webkit *:focus{ + outline: none !important; +} + +/* ---- text fields ---- */ +.x-form-text, textarea.x-form-field{ + padding:1px 3px; + background:repeat-x 0 0; + border:1px solid; +} + +textarea.x-form-field { + padding:2px 3px; +} + +.x-form-text, .ext-ie .x-form-file { + height:22px; + line-height:18px; + vertical-align:middle; +} + +.ext-ie6 .x-form-text, .ext-ie7 .x-form-text { + margin:-1px 0; /* ie bogus margin bug */ + height:22px; /* ie quirks */ + line-height:18px; +} + +.ext-ie6 textarea.x-form-field, .ext-ie7 textarea.x-form-field { + margin:-1px 0; /* ie bogus margin bug */ +} + +.ext-strict .x-form-text { + height:18px; +} + +.ext-safari.ext-mac textarea.x-form-field { + margin-bottom:-2px; /* another bogus margin bug, safari/mac only */ +} + +.ext-strict .ext-ie8 .x-form-text, .ext-strict .ext-ie8 textarea.x-form-field { + margin-bottom: 1px; +} + +.ext-gecko .x-form-text , .ext-ie8 .x-form-text { + padding-top:2px; /* FF won't center the text vertically */ + padding-bottom:0; +} + +.ext-ie6 .x-form-composite .x-form-text.x-box-item, .ext-ie7 .x-form-composite .x-form-text.x-box-item { + margin: 0 !important; /* clear ie bogus margin bug fix */ +} + +textarea { + resize: none; /* Disable browser resizable textarea */ +} + +/* select boxes */ +.x-form-select-one { + height:20px; + line-height:18px; + vertical-align:middle; + border: 1px solid; +} + +/* multi select boxes */ + +/* --- TODO --- */ + +/* 2.0.2 style */ +.x-form-check-wrap { + line-height:18px; + height: auto; +} + +.ext-ie .x-form-check-wrap input { + width:15px; + height:15px; +} + +.x-form-check-wrap input{ + vertical-align: bottom; +} + +.x-editor .x-form-check-wrap { + padding:3px; +} + +.x-editor .x-form-checkbox { + height:13px; +} + +.x-form-check-group-label { + border-bottom: 1px solid; + margin-bottom: 5px; + padding-left: 3px !important; + float: none !important; +} + +/* wrapped fields and triggers */ +.x-form-field-wrap .x-form-trigger{ + width:17px; + height:21px; + border:0; + background:transparent no-repeat 0 0; + cursor:pointer; + border-bottom: 1px solid; + position:absolute; + top:0; +} + +.x-form-field-wrap .x-form-date-trigger, .x-form-field-wrap .x-form-clear-trigger, .x-form-field-wrap .x-form-search-trigger{ + cursor:pointer; +} + +.x-form-field-wrap .x-form-twin-triggers .x-form-trigger{ + position:static; + top:auto; + vertical-align:top; +} + +.x-form-field-wrap { + position:relative; + left:0;top:0; + text-align: left; + zoom:1; + white-space: nowrap; +} + +.ext-strict .ext-ie8 .x-toolbar-cell .x-form-field-trigger-wrap .x-form-trigger { + right: 0; /* IE8 Strict mode trigger bug */ +} + +.x-form-field-wrap .x-form-trigger-over{ + background-position:-17px 0; +} + +.x-form-field-wrap .x-form-trigger-click{ + background-position:-34px 0; +} + +.x-trigger-wrap-focus .x-form-trigger{ + background-position:-51px 0; +} + +.x-trigger-wrap-focus .x-form-trigger-over{ + background-position:-68px 0; +} + +.x-trigger-wrap-focus .x-form-trigger-click{ + background-position:-85px 0; +} + +.x-trigger-wrap-focus .x-form-trigger{ + border-bottom: 1px solid; +} + +.x-item-disabled .x-form-trigger-over{ + background-position:0 0 !important; + border-bottom: 1px solid; +} + +.x-item-disabled .x-form-trigger-click{ + background-position:0 0 !important; + border-bottom: 1px solid; +} + +.x-trigger-noedit{ + cursor:pointer; +} + +/* field focus style */ +.x-form-focus, textarea.x-form-focus{ + border: 1px solid; +} + +/* invalid fields */ +.x-form-invalid, textarea.x-form-invalid{ + background:repeat-x bottom; + border: 1px solid; +} + +.x-form-inner-invalid, textarea.x-form-inner-invalid{ + background:repeat-x bottom; +} + +/* editors */ +.x-editor { + visibility:hidden; + padding:0; + margin:0; +} + +.x-form-grow-sizer { + left: -10000px; + padding: 8px 3px; + position: absolute; + visibility:hidden; + top: -10000px; + white-space: pre-wrap; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + word-wrap: break-word; + zoom:1; +} + +.x-form-grow-sizer p { + margin:0 !important; + border:0 none !important; + padding:0 !important; +} + +/* Form Items CSS */ + +.x-form-item { + display:block; + margin-bottom:4px; + zoom:1; +} + +.x-form-item label.x-form-item-label { + display:block; + float:left; + width:100px; + padding:3px; + padding-left:0; + clear:left; + z-index:2; + position:relative; +} + +.x-form-element { + padding-left:105px; + position:relative; +} + +.x-form-invalid-msg { + padding:2px; + padding-left:18px; + background: transparent no-repeat 0 2px; + line-height:16px; + width:200px; +} + +.x-form-label-left label.x-form-item-label { + text-align:left; +} + +.x-form-label-right label.x-form-item-label { + text-align:right; +} + +.x-form-label-top .x-form-item label.x-form-item-label { + width:auto; + float:none; + clear:none; + display:inline; + margin-bottom:4px; + position:static; +} + +.x-form-label-top .x-form-element { + padding-left:0; + padding-top:4px; +} + +.x-form-label-top .x-form-item { + padding-bottom:4px; +} + +/* Editor small font for grid, toolbar and tree */ +.x-small-editor .x-form-text { + height:20px; + line-height:16px; + vertical-align:middle; +} + +.ext-ie6 .x-small-editor .x-form-text, .ext-ie7 .x-small-editor .x-form-text { + margin-top:-1px !important; /* ie bogus margin bug */ + margin-bottom:-1px !important; + height:20px !important; /* ie quirks */ + line-height:16px !important; +} + +.ext-strict .x-small-editor .x-form-text { + height:16px !important; +} + +.ext-ie6 .x-small-editor .x-form-text, .ext-ie7 .x-small-editor .x-form-text { + height:20px; + line-height:16px; +} + +.ext-border-box .x-small-editor .x-form-text { + height:20px; +} + +.x-small-editor .x-form-select-one { + height:20px; + line-height:16px; + vertical-align:middle; +} + +.x-small-editor .x-form-num-field { + text-align:right; +} + +.x-small-editor .x-form-field-wrap .x-form-trigger{ + height:19px; +} + +.ext-webkit .x-small-editor .x-form-text{padding-top:3px;font-size:100%;} + +.x-form-clear { + clear:both; + height:0; + overflow:hidden; + line-height:0; + font-size:0; +} +.x-form-clear-left { + clear:left; + height:0; + overflow:hidden; + line-height:0; + font-size:0; +} + +.ext-ie6 .x-form-check-wrap input, .ext-border-box .x-form-check-wrap input{ + margin-top: 3px; +} + +.x-form-cb-label { + position: relative; + margin-left:4px; + top: 2px; +} + +.ext-ie .x-form-cb-label{ + top: 1px; +} + +.ext-ie6 .x-form-cb-label, .ext-border-box .x-form-cb-label{ + top: 3px; +} + +.x-form-display-field{ + padding-top: 2px; +} + +.ext-gecko .x-form-display-field, .ext-strict .ext-ie7 .x-form-display-field{ + padding-top: 1px; +} + +.ext-ie .x-form-display-field{ + padding-top: 3px; +} + +.ext-strict .ext-ie8 .x-form-display-field{ + padding-top: 0; +} + +.x-form-column { + float:left; + padding:0; + margin:0; + width:48%; + overflow:hidden; + zoom:1; +} + +/* buttons */ +.x-form .x-form-btns-ct .x-btn{ + float:right; + clear:none; +} + +.x-form .x-form-btns-ct .x-form-btns td { + border:0; + padding:0; +} + +.x-form .x-form-btns-ct .x-form-btns-right table{ + float:right; + clear:none; +} + +.x-form .x-form-btns-ct .x-form-btns-left table{ + float:left; + clear:none; +} + +.x-form .x-form-btns-ct .x-form-btns-center{ + text-align:center; /*ie*/ +} + +.x-form .x-form-btns-ct .x-form-btns-center table{ + margin:0 auto; /*everyone else*/ +} + +.x-form .x-form-btns-ct table td.x-form-btn-td{ + padding:3px; +} + +.x-form .x-form-btns-ct .x-btn-focus .x-btn-left{ + background-position:0 -147px; +} + +.x-form .x-form-btns-ct .x-btn-focus .x-btn-right{ + background-position:0 -168px; +} + +.x-form .x-form-btns-ct .x-btn-focus .x-btn-center{ + background-position:0 -189px; +} + +.x-form .x-form-btns-ct .x-btn-click .x-btn-center{ + background-position:0 -126px; +} + +.x-form .x-form-btns-ct .x-btn-click .x-btn-right{ + background-position:0 -84px; +} + +.x-form .x-form-btns-ct .x-btn-click .x-btn-left{ + background-position:0 -63px; +} + +.x-form-invalid-icon { + width:16px; + height:18px; + visibility:hidden; + position:absolute; + left:0; + top:0; + display:block; + background:transparent no-repeat 0 2px; +} + +/* fieldsets */ +.x-fieldset { + border:1px solid; + padding:10px; + margin-bottom:10px; + display:block; /* preserve margins in IE */ +} + +/* make top of checkbox/tools visible in webkit */ +.ext-webkit .x-fieldset-header { + padding-top: 1px; +} + +.ext-ie .x-fieldset legend { + margin-bottom:10px; +} + +.ext-ie .x-fieldset { + padding-top: 0; + padding-bottom:10px; +} + +.x-fieldset legend .x-tool-toggle { + margin-right:3px; + margin-left:0; + float:left !important; +} + +.x-fieldset legend input { + margin-right:3px; + float:left !important; + height:13px; + width:13px; +} + +fieldset.x-panel-collapsed { + padding-bottom:0 !important; + border-width: 1px 1px 0 1px !important; + border-left-color: transparent; + border-right-color: transparent; +} + +.ext-ie6 fieldset.x-panel-collapsed{ + padding-bottom:0 !important; + border-width: 1px 0 0 0 !important; + margin-left: 1px; + margin-right: 1px; +} + +fieldset.x-panel-collapsed .x-fieldset-bwrap { + visibility:hidden; + position:absolute; + left:-1000px; + top:-1000px; +} + +.ext-ie .x-fieldset-bwrap { + zoom:1; +} + +.x-fieldset-noborder { + border:0px none transparent; +} + +.x-fieldset-noborder legend { + margin-left:-3px; +} + +/* IE legend positioning bug */ +.ext-ie .x-fieldset-noborder legend { + position: relative; + margin-bottom:23px; +} +.ext-ie .x-fieldset-noborder legend span { + position: absolute; + left:16px; +} + +.ext-gecko .x-window-body .x-form-item { + -moz-outline: none; + outline: none; + overflow: auto; +} + +.ext-gecko .x-form-item { + -moz-outline: none; + outline: none; +} + +.x-hide-label label.x-form-item-label { + display:none; +} + +.x-hide-label .x-form-element { + padding-left: 0 !important; +} + +.x-form-label-top .x-hide-label label.x-form-item-label{ + display: none; +} + +.x-fieldset { + overflow:hidden; +} + +.x-fieldset-bwrap { + overflow:hidden; + zoom:1; +} + +.x-fieldset-body { + overflow:hidden; +} +.x-btn{ + cursor:pointer; + white-space: nowrap; +} + +.x-btn button{ + border:0 none; + background:transparent; + padding-left:3px; + padding-right:3px; + cursor:pointer; + margin:0; + overflow:visible; + width:auto; + -moz-outline:0 none; + outline:0 none; +} + +* html .ext-ie .x-btn button { + width:1px; +} + +.ext-gecko .x-btn button, .ext-webkit .x-btn button { + padding-left:0; + padding-right:0; +} + +.ext-gecko .x-btn button::-moz-focus-inner { + padding:0; +} + +.ext-ie .x-btn button { + padding-top:2px; +} + +.x-btn td { + padding:0 !important; +} + +.x-btn-text { + cursor:pointer; + white-space: nowrap; + padding:0; +} + +/* icon placement and sizing styles */ + +/* Only text */ +.x-btn-noicon .x-btn-small .x-btn-text{ + height: 16px; +} + +.x-btn-noicon .x-btn-medium .x-btn-text{ + height: 24px; +} + +.x-btn-noicon .x-btn-large .x-btn-text{ + height: 32px; +} + +/* Only icons */ +.x-btn-icon .x-btn-text{ + background-position: center; + background-repeat: no-repeat; +} + +.x-btn-icon .x-btn-small .x-btn-text{ + height: 16px; + width: 16px; +} + +.x-btn-icon .x-btn-medium .x-btn-text{ + height: 24px; + width: 24px; +} + +.x-btn-icon .x-btn-large .x-btn-text{ + height: 32px; + width: 32px; +} + +/* Icons and text */ +/* left */ +.x-btn-text-icon .x-btn-icon-small-left .x-btn-text{ + background-position: 0 center; + background-repeat: no-repeat; + padding-left:18px; + height:16px; +} + +.x-btn-text-icon .x-btn-icon-medium-left .x-btn-text{ + background-position: 0 center; + background-repeat: no-repeat; + padding-left:26px; + height:24px; +} + +.x-btn-text-icon .x-btn-icon-large-left .x-btn-text{ + background-position: 0 center; + background-repeat: no-repeat; + padding-left:34px; + height:32px; +} + +/* top */ +.x-btn-text-icon .x-btn-icon-small-top .x-btn-text{ + background-position: center 0; + background-repeat: no-repeat; + padding-top:18px; +} + +.x-btn-text-icon .x-btn-icon-medium-top .x-btn-text{ + background-position: center 0; + background-repeat: no-repeat; + padding-top:26px; +} + +.x-btn-text-icon .x-btn-icon-large-top .x-btn-text{ + background-position: center 0; + background-repeat: no-repeat; + padding-top:34px; +} + +/* right */ +.x-btn-text-icon .x-btn-icon-small-right .x-btn-text{ + background-position: right center; + background-repeat: no-repeat; + padding-right:18px; + height:16px; +} + +.x-btn-text-icon .x-btn-icon-medium-right .x-btn-text{ + background-position: right center; + background-repeat: no-repeat; + padding-right:26px; + height:24px; +} + +.x-btn-text-icon .x-btn-icon-large-right .x-btn-text{ + background-position: right center; + background-repeat: no-repeat; + padding-right:34px; + height:32px; +} + +/* bottom */ +.x-btn-text-icon .x-btn-icon-small-bottom .x-btn-text{ + background-position: center bottom; + background-repeat: no-repeat; + padding-bottom:18px; +} + +.x-btn-text-icon .x-btn-icon-medium-bottom .x-btn-text{ + background-position: center bottom; + background-repeat: no-repeat; + padding-bottom:26px; +} + +.x-btn-text-icon .x-btn-icon-large-bottom .x-btn-text{ + background-position: center bottom; + background-repeat: no-repeat; + padding-bottom:34px; +} + +/* background positioning */ +.x-btn-tr i, .x-btn-tl i, .x-btn-mr i, .x-btn-ml i, .x-btn-br i, .x-btn-bl i{ + font-size:1px; + line-height:1px; + width:3px; + display:block; + overflow:hidden; +} + +.x-btn-tr i, .x-btn-tl i, .x-btn-br i, .x-btn-bl i{ + height:3px; +} + +.x-btn-tl{ + width:3px; + height:3px; + background:no-repeat 0 0; +} +.x-btn-tr{ + width:3px; + height:3px; + background:no-repeat -3px 0; +} +.x-btn-tc{ + height:3px; + background:repeat-x 0 -6px; +} + +.x-btn-ml{ + width:3px; + background:no-repeat 0 -24px; +} +.x-btn-mr{ + width:3px; + background:no-repeat -3px -24px; +} + +.x-btn-mc{ + background:repeat-x 0 -1096px; + vertical-align: middle; + text-align:center; + padding:0 5px; + cursor:pointer; + white-space:nowrap; +} + +/* Fixes an issue with the button height */ +.ext-strict .ext-ie6 .x-btn-mc, .ext-strict .ext-ie7 .x-btn-mc { + height: 100%; +} + +.x-btn-bl{ + width:3px; + height:3px; + background:no-repeat 0 -3px; +} + +.x-btn-br{ + width:3px; + height:3px; + background:no-repeat -3px -3px; +} + +.x-btn-bc{ + height:3px; + background:repeat-x 0 -15px; +} + +.x-btn-over .x-btn-tl{ + background-position: -6px 0; +} + +.x-btn-over .x-btn-tr{ + background-position: -9px 0; +} + +.x-btn-over .x-btn-tc{ + background-position: 0 -9px; +} + +.x-btn-over .x-btn-ml{ + background-position: -6px -24px; +} + +.x-btn-over .x-btn-mr{ + background-position: -9px -24px; +} + +.x-btn-over .x-btn-mc{ + background-position: 0 -2168px; +} + +.x-btn-over .x-btn-bl{ + background-position: -6px -3px; +} + +.x-btn-over .x-btn-br{ + background-position: -9px -3px; +} + +.x-btn-over .x-btn-bc{ + background-position: 0 -18px; +} + +.x-btn-click .x-btn-tl, .x-btn-menu-active .x-btn-tl, .x-btn-pressed .x-btn-tl{ + background-position: -12px 0; +} + +.x-btn-click .x-btn-tr, .x-btn-menu-active .x-btn-tr, .x-btn-pressed .x-btn-tr{ + background-position: -15px 0; +} + +.x-btn-click .x-btn-tc, .x-btn-menu-active .x-btn-tc, .x-btn-pressed .x-btn-tc{ + background-position: 0 -12px; +} + +.x-btn-click .x-btn-ml, .x-btn-menu-active .x-btn-ml, .x-btn-pressed .x-btn-ml{ + background-position: -12px -24px; +} + +.x-btn-click .x-btn-mr, .x-btn-menu-active .x-btn-mr, .x-btn-pressed .x-btn-mr{ + background-position: -15px -24px; +} + +.x-btn-click .x-btn-mc, .x-btn-menu-active .x-btn-mc, .x-btn-pressed .x-btn-mc{ + background-position: 0 -3240px; +} + +.x-btn-click .x-btn-bl, .x-btn-menu-active .x-btn-bl, .x-btn-pressed .x-btn-bl{ + background-position: -12px -3px; +} + +.x-btn-click .x-btn-br, .x-btn-menu-active .x-btn-br, .x-btn-pressed .x-btn-br{ + background-position: -15px -3px; +} + +.x-btn-click .x-btn-bc, .x-btn-menu-active .x-btn-bc, .x-btn-pressed .x-btn-bc{ + background-position: 0 -21px; +} + +.x-btn-disabled *{ + cursor:default !important; +} + + +/* With a menu arrow */ +/* right */ +.x-btn-mc em.x-btn-arrow { + display:block; + background:transparent no-repeat right center; + padding-right:10px; +} + +.x-btn-mc em.x-btn-split { + display:block; + background:transparent no-repeat right center; + padding-right:14px; +} + +/* bottom */ +.x-btn-mc em.x-btn-arrow-bottom { + display:block; + background:transparent no-repeat center bottom; + padding-bottom:14px; +} + +.x-btn-mc em.x-btn-split-bottom { + display:block; + background:transparent no-repeat center bottom; + padding-bottom:14px; +} + +/* height adjustment class */ +.x-btn-as-arrow .x-btn-mc em { + display:block; + background:transparent; + padding-bottom:14px; +} + +/* groups */ +.x-btn-group { + padding:1px; +} + +.x-btn-group-header { + padding:2px; + text-align:center; +} + +.x-btn-group-tc { + background: transparent repeat-x 0 0; + overflow:hidden; +} + +.x-btn-group-tl { + background: transparent no-repeat 0 0; + padding-left:3px; + zoom:1; +} + +.x-btn-group-tr { + background: transparent no-repeat right 0; + zoom:1; + padding-right:3px; +} + +.x-btn-group-bc { + background: transparent repeat-x 0 bottom; + zoom:1; +} + +.x-btn-group-bc .x-panel-footer { + zoom:1; +} + +.x-btn-group-bl { + background: transparent no-repeat 0 bottom; + padding-left:3px; + zoom:1; +} + +.x-btn-group-br { + background: transparent no-repeat right bottom; + padding-right:3px; + zoom:1; +} + +.x-btn-group-mc { + border:0 none; + padding:1px 0 0 0; + margin:0; +} + +.x-btn-group-mc .x-btn-group-body { + background:transparent; + border: 0 none; +} + +.x-btn-group-ml { + background: transparent repeat-y 0 0; + padding-left:3px; + zoom:1; +} + +.x-btn-group-mr { + background: transparent repeat-y right 0; + padding-right:3px; + zoom:1; +} + +.x-btn-group-bc .x-btn-group-footer { + padding-bottom:6px; +} + +.x-panel-nofooter .x-btn-group-bc { + height:3px; + font-size:0; + line-height:0; +} + +.x-btn-group-bwrap { + overflow:hidden; + zoom:1; +} + +.x-btn-group-body { + overflow:hidden; + zoom:1; +} + +.x-btn-group-notitle .x-btn-group-tc { + background: transparent repeat-x 0 0; + overflow:hidden; + height:2px; +}.x-toolbar{ + border-style:solid; + border-width:0 0 1px 0; + display: block; + padding:2px; + background:repeat-x top left; + position:relative; + left:0; + top:0; + zoom:1; + overflow:hidden; +} + +.x-toolbar-left { + width: 100%; +} + +.x-toolbar .x-item-disabled .x-btn-icon { + opacity: .35; + -moz-opacity: .35; + filter: alpha(opacity=35); +} + +.x-toolbar td { + vertical-align:middle; +} + +.x-toolbar td,.x-toolbar span,.x-toolbar input,.x-toolbar div,.x-toolbar select,.x-toolbar label{ + white-space: nowrap; +} + +.x-toolbar .x-item-disabled { + cursor:default; + opacity:.6; + -moz-opacity:.6; + filter:alpha(opacity=60); +} + +.x-toolbar .x-item-disabled * { + cursor:default; +} + +.x-toolbar .x-toolbar-cell { + vertical-align:middle; +} + +.x-toolbar .x-btn-tl, .x-toolbar .x-btn-tr, .x-toolbar .x-btn-tc, .x-toolbar .x-btn-ml, .x-toolbar .x-btn-mr, +.x-toolbar .x-btn-mc, .x-toolbar .x-btn-bl, .x-toolbar .x-btn-br, .x-toolbar .x-btn-bc +{ + background-position: 500px 500px; +} + +/* These rules are duplicated from button.css to give priority of x-toolbar rules above */ +.x-toolbar .x-btn-over .x-btn-tl{ + background-position: -6px 0; +} + +.x-toolbar .x-btn-over .x-btn-tr{ + background-position: -9px 0; +} + +.x-toolbar .x-btn-over .x-btn-tc{ + background-position: 0 -9px; +} + +.x-toolbar .x-btn-over .x-btn-ml{ + background-position: -6px -24px; +} + +.x-toolbar .x-btn-over .x-btn-mr{ + background-position: -9px -24px; +} + +.x-toolbar .x-btn-over .x-btn-mc{ + background-position: 0 -2168px; +} + +.x-toolbar .x-btn-over .x-btn-bl{ + background-position: -6px -3px; +} + +.x-toolbar .x-btn-over .x-btn-br{ + background-position: -9px -3px; +} + +.x-toolbar .x-btn-over .x-btn-bc{ + background-position: 0 -18px; +} + +.x-toolbar .x-btn-click .x-btn-tl, .x-toolbar .x-btn-menu-active .x-btn-tl, .x-toolbar .x-btn-pressed .x-btn-tl{ + background-position: -12px 0; +} + +.x-toolbar .x-btn-click .x-btn-tr, .x-toolbar .x-btn-menu-active .x-btn-tr, .x-toolbar .x-btn-pressed .x-btn-tr{ + background-position: -15px 0; +} + +.x-toolbar .x-btn-click .x-btn-tc, .x-toolbar .x-btn-menu-active .x-btn-tc, .x-toolbar .x-btn-pressed .x-btn-tc{ + background-position: 0 -12px; +} + +.x-toolbar .x-btn-click .x-btn-ml, .x-toolbar .x-btn-menu-active .x-btn-ml, .x-toolbar .x-btn-pressed .x-btn-ml{ + background-position: -12px -24px; +} + +.x-toolbar .x-btn-click .x-btn-mr, .x-toolbar .x-btn-menu-active .x-btn-mr, .x-toolbar .x-btn-pressed .x-btn-mr{ + background-position: -15px -24px; +} + +.x-toolbar .x-btn-click .x-btn-mc, .x-toolbar .x-btn-menu-active .x-btn-mc, .x-toolbar .x-btn-pressed .x-btn-mc{ + background-position: 0 -3240px; +} + +.x-toolbar .x-btn-click .x-btn-bl, .x-toolbar .x-btn-menu-active .x-btn-bl, .x-toolbar .x-btn-pressed .x-btn-bl{ + background-position: -12px -3px; +} + +.x-toolbar .x-btn-click .x-btn-br, .x-toolbar .x-btn-menu-active .x-btn-br, .x-toolbar .x-btn-pressed .x-btn-br{ + background-position: -15px -3px; +} + +.x-toolbar .x-btn-click .x-btn-bc, .x-toolbar .x-btn-menu-active .x-btn-bc, .x-toolbar .x-btn-pressed .x-btn-bc{ + background-position: 0 -21px; +} + +.x-toolbar div.xtb-text{ + padding:2px 2px 0; + line-height:16px; + display:block; +} + +.x-toolbar .xtb-sep { + background-position: center; + background-repeat: no-repeat; + display: block; + font-size: 1px; + height: 16px; + width:4px; + overflow: hidden; + cursor:default; + margin: 0 2px 0; + border:0; +} + +.x-toolbar .xtb-spacer { + width:2px; +} + +/* Paging Toolbar */ +.x-tbar-page-number{ + width:30px; + height:14px; +} + +.ext-ie .x-tbar-page-number{ + margin-top: 2px; +} + +.x-paging-info { + position:absolute; + top:5px; + right: 8px; +} + +/* floating */ +.x-toolbar-ct { + width:100%; +} + +.x-toolbar-right td { + text-align: center; +} + +.x-panel-tbar, .x-panel-bbar, .x-window-tbar, .x-window-bbar, .x-tab-panel-tbar, .x-tab-panel-bbar, .x-plain-tbar, .x-plain-bbar { + overflow:hidden; + zoom:1; +} + +.x-toolbar-more .x-btn-small .x-btn-text{ + height: 16px; + width: 12px; +} + +.x-toolbar-more em.x-btn-arrow { + display:inline; + background:transparent; + padding-right:0; +} + +.x-toolbar-more .x-btn-mc em.x-btn-arrow { + background-image: none; +} + +div.x-toolbar-no-items { + color:gray !important; + padding:5px 10px !important; +} + +/* fix ie toolbar form items */ +.ext-border-box .x-toolbar-cell .x-form-text { + margin-bottom:-1px !important; +} + +.ext-border-box .x-toolbar-cell .x-form-field-wrap .x-form-text { + margin:0 !important; +} + +.ext-ie .x-toolbar-cell .x-form-field-wrap { + height:21px; +} + +.ext-ie .x-toolbar-cell .x-form-text { + position:relative; + top:-1px; +} + +.ext-strict .ext-ie8 .x-toolbar-cell .x-form-field-trigger-wrap .x-form-text, .ext-strict .ext-ie .x-toolbar-cell .x-form-text { + top: 0px; +} + +.x-toolbar-right td .x-form-field-trigger-wrap{ + text-align: left; +} + +.x-toolbar-cell .x-form-checkbox, .x-toolbar-cell .x-form-radio{ + margin-top: 5px; +} + +.x-toolbar-cell .x-form-cb-label{ + vertical-align: bottom; + top: 1px; +} + +.ext-ie .x-toolbar-cell .x-form-checkbox, .ext-ie .x-toolbar-cell .x-form-radio{ + margin-top: 4px; +} + +.ext-ie .x-toolbar-cell .x-form-cb-label{ + top: 0; +} +/* Grid3 styles */ +.x-grid3 { + position:relative; + overflow:hidden; +} + +.x-grid-panel .x-panel-body { + overflow:hidden !important; +} + +.x-grid-panel .x-panel-mc .x-panel-body { + border:1px solid; +} + +.x-grid3 table { + table-layout:fixed; +} + +.x-grid3-viewport{ + overflow:hidden; +} + +.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td{ + -moz-outline: none; + outline: none; + -moz-user-focus: normal; +} + +.x-grid3-row td, .x-grid3-summary-row td { + line-height:13px; + vertical-align: top; + padding-left:1px; + padding-right:1px; + -moz-user-select: none; + -khtml-user-select:none; + -webkit-user-select:ignore; +} + +.x-grid3-cell{ + -moz-user-select: none; + -khtml-user-select:none; + -webkit-user-select:ignore; +} + +.x-grid3-hd-row td { + line-height:15px; + vertical-align:middle; + border-left:1px solid; + border-right:1px solid; +} + +.x-grid3-hd-row .x-grid3-marker-hd { + padding:3px; +} + +.x-grid3-row .x-grid3-marker { + padding:3px; +} + +.x-grid3-cell-inner, .x-grid3-hd-inner{ + overflow:hidden; + -o-text-overflow: ellipsis; + text-overflow: ellipsis; + padding:3px 3px 3px 5px; + white-space: nowrap; +} + +.x-grid3-hd-inner { + position:relative; + cursor:inherit; + padding:4px 3px 4px 5px; +} + +.x-grid3-row-body { + white-space:normal; +} + +.x-grid3-body-cell { + -moz-outline:0 none; + outline:0 none; +} + +/* IE Quirks to clip */ +.ext-ie .x-grid3-cell-inner, .ext-ie .x-grid3-hd-inner{ + width:100%; +} + +/* reverse above in strict mode */ +.ext-strict .x-grid3-cell-inner, .ext-strict .x-grid3-hd-inner{ + width:auto; +} + +.x-grid-row-loading { + background: no-repeat center center; +} + +.x-grid-page { + overflow:hidden; +} + +.x-grid3-row { + cursor: default; + border: 1px solid; + width:100%; +} + +.x-grid3-row-over { + border:1px solid; + background: repeat-x left top; +} + +.x-grid3-resize-proxy { + width:1px; + left:0; + cursor: e-resize; + cursor: col-resize; + position:absolute; + top:0; + height:100px; + overflow:hidden; + visibility:hidden; + border:0 none; + z-index:7; +} + +.x-grid3-resize-marker { + width:1px; + left:0; + position:absolute; + top:0; + height:100px; + overflow:hidden; + visibility:hidden; + border:0 none; + z-index:7; +} + +.x-grid3-focus { + position:absolute; + left:0; + top:0; + width:1px; + height:1px; + line-height:1px; + font-size:1px; + -moz-outline:0 none; + outline:0 none; + -moz-user-select: text; + -khtml-user-select: text; + -webkit-user-select:ignore; +} + +/* header styles */ +.x-grid3-header{ + background: repeat-x 0 bottom; + cursor:default; + zoom:1; + padding:1px 0 0 0; +} + +.x-grid3-header-pop { + border-left:1px solid; + float:right; + clear:none; +} + +.x-grid3-header-pop-inner { + border-left:1px solid; + width:14px; + height:19px; + background: transparent no-repeat center center; +} + +.ext-ie .x-grid3-header-pop-inner { + width:15px; +} + +.ext-strict .x-grid3-header-pop-inner { + width:14px; +} + +.x-grid3-header-inner { + overflow:hidden; + zoom:1; + float:left; +} + +.x-grid3-header-offset { + padding-left:1px; + text-align: left; +} + +td.x-grid3-hd-over, td.sort-desc, td.sort-asc, td.x-grid3-hd-menu-open { + border-left:1px solid; + border-right:1px solid; +} + +td.x-grid3-hd-over .x-grid3-hd-inner, td.sort-desc .x-grid3-hd-inner, td.sort-asc .x-grid3-hd-inner, td.x-grid3-hd-menu-open .x-grid3-hd-inner { + background: repeat-x left bottom; + +} + +.x-grid3-sort-icon{ + background-repeat: no-repeat; + display: none; + height: 4px; + width: 13px; + margin-left:3px; + vertical-align: middle; +} + +.sort-asc .x-grid3-sort-icon, .sort-desc .x-grid3-sort-icon { + display: inline; +} + +/* Header position fixes for IE strict mode */ +.ext-strict .ext-ie .x-grid3-header-inner, .ext-strict .ext-ie6 .x-grid3-hd { + position:relative; +} + +.ext-strict .ext-ie6 .x-grid3-hd-inner{ + position:static; +} + +/* Body Styles */ +.x-grid3-body { + zoom:1; +} + +.x-grid3-scroller { + overflow:auto; + zoom:1; + position:relative; +} + +.x-grid3-cell-text, .x-grid3-hd-text { + display: block; + padding: 3px 5px 3px 5px; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select:ignore; +} + +.x-grid3-split { + background-position: center; + background-repeat: no-repeat; + cursor: e-resize; + cursor: col-resize; + display: block; + font-size: 1px; + height: 16px; + overflow: hidden; + position: absolute; + top: 2px; + width: 6px; + z-index: 3; +} + +/* Column Reorder DD */ +.x-dd-drag-proxy .x-grid3-hd-inner{ + background: repeat-x left bottom; + width:120px; + padding:3px; + border:1px solid; + overflow:hidden; +} + +.col-move-top, .col-move-bottom{ + width:9px; + height:9px; + position:absolute; + top:0; + line-height:1px; + font-size:1px; + overflow:hidden; + visibility:hidden; + z-index:20000; + background:transparent no-repeat left top; +} + +/* Selection Styles */ +.x-grid3-row-selected { + border:1px dotted; +} + +.x-grid3-locked td.x-grid3-row-marker, .x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker{ + background: repeat-x 0 bottom !important; + vertical-align:middle !important; + padding:0; + border-top:1px solid; + border-bottom:none !important; + border-right:1px solid !important; + text-align:center; +} + +.x-grid3-locked td.x-grid3-row-marker div, .x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker div{ + padding:0 4px; + text-align:center; +} + +/* dirty cells */ +.x-grid3-dirty-cell { + background: transparent no-repeat 0 0; +} + +/* Grid Toolbars */ +.x-grid3-topbar, .x-grid3-bottombar{ + overflow:hidden; + display:none; + zoom:1; + position:relative; +} + +.x-grid3-topbar .x-toolbar{ + border-right:0 none; +} + +.x-grid3-bottombar .x-toolbar{ + border-right:0 none; + border-bottom:0 none; + border-top:1px solid; +} + +/* Props Grid Styles */ +.x-props-grid .x-grid3-cell{ + padding:1px; +} + +.x-props-grid .x-grid3-td-name .x-grid3-cell-inner{ + background:transparent repeat-y -16px !important; + padding-left:12px; +} + +.x-props-grid .x-grid3-body .x-grid3-td-name{ + padding:1px; + padding-right:0; + border:0 none; + border-right:1px solid; +} + +/* dd */ +.x-grid3-col-dd { + border:0 none; + padding:0; + background:transparent; +} + +.x-dd-drag-ghost .x-grid3-dd-wrap { + padding:1px 3px 3px 1px; +} + +.x-grid3-hd { + -moz-user-select:none; + -khtml-user-select:none; + -webkit-user-select:ignore; +} + +.x-grid3-hd-btn { + display:none; + position:absolute; + width:14px; + background:no-repeat left center; + right:0; + top:0; + z-index:2; + cursor:pointer; +} + +.x-grid3-hd-over .x-grid3-hd-btn, .x-grid3-hd-menu-open .x-grid3-hd-btn { + display:block; +} + +a.x-grid3-hd-btn:hover { + background-position:-14px center; +} + +/* Expanders */ +.x-grid3-body .x-grid3-td-expander { + background:transparent repeat-y right; +} + +.x-grid3-body .x-grid3-td-expander .x-grid3-cell-inner { + padding:0 !important; + height:100%; +} + +.x-grid3-row-expander { + width:100%; + height:18px; + background-position:4px 2px; + background-repeat:no-repeat; + background-color:transparent; +} + +.x-grid3-row-collapsed .x-grid3-row-expander { + background-position:4px 2px; +} + +.x-grid3-row-expanded .x-grid3-row-expander { + background-position:-21px 2px; +} + +.x-grid3-row-collapsed .x-grid3-row-body { + display:none !important; +} + +.x-grid3-row-expanded .x-grid3-row-body { + display:block !important; +} + +/* Checkers */ +.x-grid3-body .x-grid3-td-checker { + background:transparent repeat-y right; +} + +.x-grid3-body .x-grid3-td-checker .x-grid3-cell-inner, .x-grid3-header .x-grid3-td-checker .x-grid3-hd-inner { + padding:0 !important; + height:100%; +} + +.x-grid3-row-checker, .x-grid3-hd-checker { + width:100%; + height:18px; + background-position:2px 2px; + background-repeat:no-repeat; + background-color:transparent; +} + +.x-grid3-row .x-grid3-row-checker { + background-position:2px 2px; +} + +.x-grid3-row-selected .x-grid3-row-checker, .x-grid3-hd-checker-on .x-grid3-hd-checker,.x-grid3-row-checked .x-grid3-row-checker { + background-position:-23px 2px; +} + +.x-grid3-hd-checker { + background-position:2px 1px; +} + +.ext-border-box .x-grid3-hd-checker { + background-position:2px 3px; +} + +.x-grid3-hd-checker-on .x-grid3-hd-checker { + background-position:-23px 1px; +} + +.ext-border-box .x-grid3-hd-checker-on .x-grid3-hd-checker { + background-position:-23px 3px; +} + +/* Numberer */ +.x-grid3-body .x-grid3-td-numberer { + background:transparent repeat-y right; +} + +.x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner { + padding:3px 5px 0 0 !important; + text-align:right; +} + +/* Row Icon */ + +.x-grid3-body .x-grid3-td-row-icon { + background:transparent repeat-y right; + vertical-align:top; + text-align:center; +} + +.x-grid3-body .x-grid3-td-row-icon .x-grid3-cell-inner { + padding:0 !important; + background-position:center center; + background-repeat:no-repeat; + width:16px; + height:16px; + margin-left:2px; + margin-top:3px; +} + +/* All specials */ +.x-grid3-body .x-grid3-row-selected .x-grid3-td-numberer, +.x-grid3-body .x-grid3-row-selected .x-grid3-td-checker, +.x-grid3-body .x-grid3-row-selected .x-grid3-td-expander { + background:transparent repeat-y right; +} + +.x-grid3-body .x-grid3-check-col-td .x-grid3-cell-inner { + padding: 1px 0 0 0 !important; +} + +.x-grid3-check-col { + width:100%; + height:16px; + background-position:center center; + background-repeat:no-repeat; + background-color:transparent; +} + +.x-grid3-check-col-on { + width:100%; + height:16px; + background-position:center center; + background-repeat:no-repeat; + background-color:transparent; +} + +/* Grouping classes */ +.x-grid-group, .x-grid-group-body, .x-grid-group-hd { + zoom:1; +} + +.x-grid-group-hd { + border-bottom: 2px solid; + cursor:pointer; + padding-top:6px; +} + +.x-grid-group-hd div.x-grid-group-title { + background:transparent no-repeat 3px 3px; + padding:4px 4px 4px 17px; +} + +.x-grid-group-collapsed .x-grid-group-body { + display:none; +} + +.ext-ie6 .x-grid3 .x-editor .x-form-text, .ext-ie7 .x-grid3 .x-editor .x-form-text { + position:relative; + top:-1px; +} + +.ext-ie .x-props-grid .x-editor .x-form-text { + position:static; + top:0; +} + +.x-grid-empty { + padding:10px; +} + +/* fix floating toolbar issue */ +.ext-ie7 .x-grid-panel .x-panel-bbar { + position:relative; +} + + +/* Reset position to static when Grid Panel has been framed */ +/* to resolve 'snapping' from top to bottom behavior. */ +/* @forumThread 86656 */ +.ext-ie7 .x-grid-panel .x-panel-mc .x-panel-bbar { + position: static; +} + +.ext-ie6 .x-grid3-header { + position: relative; +} + +/* Fix WebKit bug in Grids */ +.ext-webkit .x-grid-panel .x-panel-bwrap{ + -webkit-user-select:none; +} +.ext-webkit .x-tbar-page-number{ + -webkit-user-select:ignore; +} +/* end*/ + +/* column lines */ +.x-grid-with-col-lines .x-grid3-row td.x-grid3-cell { + padding-right:0; + border-right:1px solid; +} +.x-dd-drag-proxy{ + position:absolute; + left:0; + top:0; + visibility:hidden; + z-index:15000; +} + +.x-dd-drag-ghost{ + -moz-opacity: 0.85; + opacity:.85; + filter: alpha(opacity=85); + border: 1px solid; + padding:3px; + padding-left:20px; + white-space:nowrap; +} + +.x-dd-drag-repair .x-dd-drag-ghost{ + -moz-opacity: 0.4; + opacity:.4; + filter: alpha(opacity=40); + border:0 none; + padding:0; + background-color:transparent; +} + +.x-dd-drag-repair .x-dd-drop-icon{ + visibility:hidden; +} + +.x-dd-drop-icon{ + position:absolute; + top:3px; + left:3px; + display:block; + width:16px; + height:16px; + background-color:transparent; + background-position: center; + background-repeat: no-repeat; + z-index:1; +} + +.x-view-selector { + position:absolute; + left:0; + top:0; + width:0; + border:1px dotted; + opacity: .5; + -moz-opacity: .5; + filter:alpha(opacity=50); + zoom:1; +}.ext-strict .ext-ie .x-tree .x-panel-bwrap{ + position:relative; + overflow:hidden; +} + +.x-tree-icon, .x-tree-ec-icon, .x-tree-elbow-line, .x-tree-elbow, .x-tree-elbow-end, .x-tree-elbow-plus, .x-tree-elbow-minus, .x-tree-elbow-end-plus, .x-tree-elbow-end-minus{ + border: 0 none; + height: 18px; + margin: 0; + padding: 0; + vertical-align: top; + width: 16px; + background-repeat: no-repeat; +} + +.x-tree-node-collapsed .x-tree-node-icon, .x-tree-node-expanded .x-tree-node-icon, .x-tree-node-leaf .x-tree-node-icon{ + border: 0 none; + height: 18px; + margin: 0; + padding: 0; + vertical-align: top; + width: 16px; + background-position:center; + background-repeat: no-repeat; +} + +.ext-ie .x-tree-node-indent img, .ext-ie .x-tree-node-icon, .ext-ie .x-tree-ec-icon { + vertical-align: middle !important; +} + +.ext-strict .ext-ie8 .x-tree-node-indent img, .ext-strict .ext-ie8 .x-tree-node-icon, .ext-strict .ext-ie8 .x-tree-ec-icon { + vertical-align: top !important; +} + +/* checkboxes */ + +input.x-tree-node-cb { + margin-left:1px; + height: 19px; + vertical-align: bottom; +} + +.ext-ie input.x-tree-node-cb { + margin-left:0; + margin-top: 1px; + width: 16px; + height: 16px; + vertical-align: middle; +} + +.ext-strict .ext-ie8 input.x-tree-node-cb{ + margin: 1px 1px; + height: 14px; + vertical-align: bottom; +} + +.ext-strict .ext-ie8 input.x-tree-node-cb + a{ + vertical-align: bottom; +} + +.ext-opera input.x-tree-node-cb { + height: 14px; + vertical-align: middle; +} + +.x-tree-noicon .x-tree-node-icon{ + width:0; height:0; +} + +/* No line styles */ +.x-tree-no-lines .x-tree-elbow{ + background:transparent; +} + +.x-tree-no-lines .x-tree-elbow-end{ + background:transparent; +} + +.x-tree-no-lines .x-tree-elbow-line{ + background:transparent; +} + +/* Arrows */ +.x-tree-arrows .x-tree-elbow{ + background:transparent; +} + +.x-tree-arrows .x-tree-elbow-plus{ + background:transparent no-repeat 0 0; +} + +.x-tree-arrows .x-tree-elbow-minus{ + background:transparent no-repeat -16px 0; +} + +.x-tree-arrows .x-tree-elbow-end{ + background:transparent; +} + +.x-tree-arrows .x-tree-elbow-end-plus{ + background:transparent no-repeat 0 0; +} + +.x-tree-arrows .x-tree-elbow-end-minus{ + background:transparent no-repeat -16px 0; +} + +.x-tree-arrows .x-tree-elbow-line{ + background:transparent; +} + +.x-tree-arrows .x-tree-ec-over .x-tree-elbow-plus{ + background-position:-32px 0; +} + +.x-tree-arrows .x-tree-ec-over .x-tree-elbow-minus{ + background-position:-48px 0; +} + +.x-tree-arrows .x-tree-ec-over .x-tree-elbow-end-plus{ + background-position:-32px 0; +} + +.x-tree-arrows .x-tree-ec-over .x-tree-elbow-end-minus{ + background-position:-48px 0; +} + +.x-tree-elbow-plus, .x-tree-elbow-minus, .x-tree-elbow-end-plus, .x-tree-elbow-end-minus{ + cursor:pointer; +} + +.ext-ie ul.x-tree-node-ct{ + font-size:0; + line-height:0; + zoom:1; +} + +.x-tree-node{ + white-space: nowrap; +} + +.x-tree-node-el { + line-height:18px; + cursor:pointer; +} + +.x-tree-node a, .x-dd-drag-ghost a{ + text-decoration:none; + -khtml-user-select:none; + -moz-user-select:none; + -webkit-user-select:ignore; + -kthml-user-focus:normal; + -moz-user-focus:normal; + -moz-outline: 0 none; + outline:0 none; +} + +.x-tree-node a span, .x-dd-drag-ghost a span{ + text-decoration:none; + padding:1px 3px 1px 2px; +} + +.x-tree-node .x-tree-node-disabled .x-tree-node-icon{ + -moz-opacity: 0.5; + opacity:.5; + filter: alpha(opacity=50); +} + +.x-tree-node .x-tree-node-inline-icon{ + background:transparent; +} + +.x-tree-node a:hover, .x-dd-drag-ghost a:hover{ + text-decoration:none; +} + +.x-tree-node div.x-tree-drag-insert-below{ + border-bottom:1px dotted; +} + +.x-tree-node div.x-tree-drag-insert-above{ + border-top:1px dotted; +} + +.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below{ + border-bottom:0 none; +} + +.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above{ + border-top:0 none; +} + +.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below a{ + border-bottom:2px solid; +} + +.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above a{ + border-top:2px solid; +} + +.x-tree-node .x-tree-drag-append a span{ + border:1px dotted; +} + +.x-dd-drag-ghost .x-tree-node-indent, .x-dd-drag-ghost .x-tree-ec-icon{ + display:none !important; +} + +/* Fix for ie rootVisible:false issue */ +.x-tree-root-ct { + zoom:1; +} +.x-date-picker { + border: 1px solid; + border-top:0 none; + position:relative; +} + +.x-date-picker a { + -moz-outline:0 none; + outline:0 none; +} + +.x-date-inner, .x-date-inner td, .x-date-inner th{ + border-collapse:separate; +} + +.x-date-middle,.x-date-left,.x-date-right { + background: repeat-x 0 -83px; + overflow:hidden; +} + +.x-date-middle .x-btn-tc,.x-date-middle .x-btn-tl,.x-date-middle .x-btn-tr, +.x-date-middle .x-btn-mc,.x-date-middle .x-btn-ml,.x-date-middle .x-btn-mr, +.x-date-middle .x-btn-bc,.x-date-middle .x-btn-bl,.x-date-middle .x-btn-br{ + background:transparent !important; + vertical-align:middle; +} + +.x-date-middle .x-btn-mc em.x-btn-arrow { + background:transparent no-repeat right 0; +} + +.x-date-right, .x-date-left { + width:18px; +} + +.x-date-right{ + text-align:right; +} + +.x-date-middle { + padding-top:2px; + padding-bottom:2px; + width:130px; /* FF3 */ +} + +.x-date-right a, .x-date-left a{ + display:block; + width:16px; + height:16px; + background-position: center; + background-repeat: no-repeat; + cursor:pointer; + -moz-opacity: 0.6; + opacity:.6; + filter: alpha(opacity=60); +} + +.x-date-right a:hover, .x-date-left a:hover{ + -moz-opacity: 1; + opacity:1; + filter: alpha(opacity=100); +} + +.x-item-disabled .x-date-right a:hover, .x-item-disabled .x-date-left a:hover{ + -moz-opacity: 0.6; + opacity:.6; + filter: alpha(opacity=60); +} + +.x-date-right a { + margin-right:2px; + text-decoration:none !important; +} + +.x-date-left a{ + margin-left:2px; + text-decoration:none !important; +} + +table.x-date-inner { + width: 100%; + table-layout:fixed; +} + +.ext-webkit table.x-date-inner{ + /* Fix for webkit browsers */ + width: 175px; +} + + +.x-date-inner th { + width:25px; +} + +.x-date-inner th { + background: repeat-x left top; + text-align:right !important; + border-bottom: 1px solid; + cursor:default; + padding:0; + border-collapse:separate; +} + +.x-date-inner th span { + display:block; + padding:2px; + padding-right:7px; +} + +.x-date-inner td { + border: 1px solid; + text-align:right; + padding:0; +} + +.x-date-inner a { + padding:2px 5px; + display:block; + text-decoration:none; + text-align:right; + zoom:1; +} + +.x-date-inner .x-date-active{ + cursor:pointer; + color:black; +} + +.x-date-inner .x-date-selected a{ + background: repeat-x left top; + border:1px solid; + padding:1px 4px; +} + +.x-date-inner .x-date-today a{ + border: 1px solid; + padding:1px 4px; +} + +.x-date-inner .x-date-prevday a,.x-date-inner .x-date-nextday a { + text-decoration:none !important; +} + +.x-date-bottom { + padding:4px; + border-top: 1px solid; + background: repeat-x left top; +} + +.x-date-inner a:hover, .x-date-inner .x-date-disabled a:hover{ + text-decoration:none !important; +} + +.x-item-disabled .x-date-inner a:hover{ + background: none; +} + +.x-date-inner .x-date-disabled a { + cursor:default; +} + +.x-date-menu .x-menu-item { + padding:1px 24px 1px 4px; + white-space: nowrap; +} + +.x-date-menu .x-menu-item .x-menu-item-icon { + width:10px; + height:10px; + margin-right:5px; + background-position:center -4px !important; +} + +.x-date-mp { + position:absolute; + left:0; + top:0; + display:none; +} + +.x-date-mp td { + padding:2px; + font:normal 11px arial, helvetica,tahoma,sans-serif; +} + +td.x-date-mp-month,td.x-date-mp-year,td.x-date-mp-ybtn { + border: 0 none; + text-align:center; + vertical-align: middle; + width:25%; +} + +.x-date-mp-ok { + margin-right:3px; +} + +.x-date-mp-btns button { + text-decoration:none; + text-align:center; + text-decoration:none !important; + border:1px solid; + padding:1px 3px 1px; + cursor:pointer; +} + +.x-date-mp-btns { + background: repeat-x left top; +} + +.x-date-mp-btns td { + border-top: 1px solid; + text-align:center; +} + +td.x-date-mp-month a,td.x-date-mp-year a { + display:block; + padding:2px 4px; + text-decoration:none; + text-align:center; +} + +td.x-date-mp-month a:hover,td.x-date-mp-year a:hover { + text-decoration:none; + cursor:pointer; +} + +td.x-date-mp-sel a { + padding:1px 3px; + background: repeat-x left top; + border:1px solid; +} + +.x-date-mp-ybtn a { + overflow:hidden; + width:15px; + height:15px; + cursor:pointer; + background:transparent no-repeat; + display:block; + margin:0 auto; +} + +.x-date-mp-ybtn a.x-date-mp-next { + background-position:0 -120px; +} + +.x-date-mp-ybtn a.x-date-mp-next:hover { + background-position:-15px -120px; +} + +.x-date-mp-ybtn a.x-date-mp-prev { + background-position:0 -105px; +} + +.x-date-mp-ybtn a.x-date-mp-prev:hover { + background-position:-15px -105px; +} + +.x-date-mp-ybtn { + text-align:center; +} + +td.x-date-mp-sep { + border-right:1px solid; +}.x-tip{ + position: absolute; + top: 0; + left:0; + visibility: hidden; + z-index: 20002; + border:0 none; +} + +.x-tip .x-tip-close{ + height: 15px; + float:right; + width: 15px; + margin:0 0 2px 2px; + cursor:pointer; + display:none; +} + +.x-tip .x-tip-tc { + background: transparent no-repeat 0 -62px; + padding-top:3px; + overflow:hidden; + zoom:1; +} + +.x-tip .x-tip-tl { + background: transparent no-repeat 0 0; + padding-left:6px; + overflow:hidden; + zoom:1; +} + +.x-tip .x-tip-tr { + background: transparent no-repeat right 0; + padding-right:6px; + overflow:hidden; + zoom:1; +} + +.x-tip .x-tip-bc { + background: transparent no-repeat 0 -121px; + height:3px; + overflow:hidden; +} + +.x-tip .x-tip-bl { + background: transparent no-repeat 0 -59px; + padding-left:6px; + zoom:1; +} + +.x-tip .x-tip-br { + background: transparent no-repeat right -59px; + padding-right:6px; + zoom:1; +} + +.x-tip .x-tip-mc { + border:0 none; +} + +.x-tip .x-tip-ml { + background: no-repeat 0 -124px; + padding-left:6px; + zoom:1; +} + +.x-tip .x-tip-mr { + background: transparent no-repeat right -124px; + padding-right:6px; + zoom:1; +} + +.ext-ie .x-tip .x-tip-header,.ext-ie .x-tip .x-tip-tc { + font-size:0; + line-height:0; +} + +.ext-border-box .x-tip .x-tip-header, .ext-border-box .x-tip .x-tip-tc{ + line-height: 1px; +} + +.x-tip .x-tip-header-text { + padding:0; + margin:0 0 2px 0; +} + +.x-tip .x-tip-body { + margin:0 !important; + line-height:14px; + padding:0; +} + +.x-tip .x-tip-body .loading-indicator { + margin:0; +} + +.x-tip-draggable .x-tip-header,.x-tip-draggable .x-tip-header-text { + cursor:move; +} + +.x-form-invalid-tip .x-tip-tc { + background: repeat-x 0 -12px; + padding-top:6px; +} + +.x-form-invalid-tip .x-tip-bc { + background: repeat-x 0 -18px; + height:6px; +} + +.x-form-invalid-tip .x-tip-bl { + background: no-repeat 0 -6px; +} + +.x-form-invalid-tip .x-tip-br { + background: no-repeat right -6px; +} + +.x-form-invalid-tip .x-tip-body { + padding:2px; +} + +.x-form-invalid-tip .x-tip-body { + padding-left:24px; + background:transparent no-repeat 2px 2px; +} + +.x-tip-anchor { + position: absolute; + width: 9px; + height: 10px; + overflow:hidden; + background: transparent no-repeat 0 0; + zoom:1; +} +.x-tip-anchor-bottom { + background-position: -9px 0; +} +.x-tip-anchor-right { + background-position: -18px 0; + width: 10px; +} +.x-tip-anchor-left { + background-position: -28px 0; + width: 10px; +}.x-menu { + z-index: 15000; + zoom: 1; + background: repeat-y; +} + +.x-menu-floating{ + border: 1px solid; +} + +.x-menu a { + text-decoration: none !important; +} + +.ext-ie .x-menu { + zoom:1; + overflow:hidden; +} + +.x-menu-list{ + padding: 2px; + background:transparent; + border:0 none; + overflow:hidden; + overflow-y: hidden; +} + +.ext-strict .ext-ie .x-menu-list{ + position: relative; +} + +.x-menu li{ + line-height:100%; +} + +.x-menu li.x-menu-sep-li{ + font-size:1px; + line-height:1px; +} + +.x-menu-list-item{ + white-space: nowrap; + display:block; + padding:1px; +} + +.x-menu-item{ + -moz-user-select: none; + -khtml-user-select:none; + -webkit-user-select:ignore; +} + +.x-menu-item-arrow{ + background:transparent no-repeat right; +} + +.x-menu-sep { + display:block; + font-size:1px; + line-height:1px; + margin: 2px 3px; + border-bottom:1px solid; + overflow:hidden; +} + +.x-menu-focus { + position:absolute; + left:-1px; + top:-1px; + width:1px; + height:1px; + line-height:1px; + font-size:1px; + -moz-outline:0 none; + outline:0 none; + -moz-user-select: none; + -khtml-user-select:none; + -webkit-user-select:ignore; + overflow:hidden; + display:block; +} + +a.x-menu-item { + cursor: pointer; + display: block; + line-height: 16px; + outline-color: -moz-use-text-color; + outline-style: none; + outline-width: 0; + padding: 3px 21px 3px 27px; + position: relative; + text-decoration: none; + white-space: nowrap; +} + +.x-menu-item-active { + background-repeat: repeat-x; + background-position: left bottom; + border-style:solid; + border-width: 1px 0; + margin:0 1px; + padding: 0; +} + +.x-menu-item-active a.x-menu-item { + border-style:solid; + border-width:0 1px; + margin:0 -1px; +} + +.x-menu-item-icon { + border: 0 none; + height: 16px; + padding: 0; + vertical-align: top; + width: 16px; + position: absolute; + left: 3px; + top: 3px; + margin: 0; + background-position:center; +} + +.ext-ie .x-menu-item-icon { + left: -24px; +} +.ext-strict .x-menu-item-icon { + left: 3px; +} + +.ext-ie6 .x-menu-item-icon { + left: -24px; +} + +.ext-ie .x-menu-item-icon { + vertical-align: middle; +} + +.x-menu-check-item .x-menu-item-icon{ + background: transparent no-repeat center; +} + +.x-menu-group-item .x-menu-item-icon{ + background: transparent; +} + +.x-menu-item-checked .x-menu-group-item .x-menu-item-icon{ + background: transparent no-repeat center; +} + +.x-date-menu .x-menu-list{ + padding: 0; +} + +.x-menu-date-item{ + padding:0; +} + +.x-menu .x-color-palette, .x-menu .x-date-picker{ + margin-left: 26px; + margin-right:4px; +} + +.x-menu .x-date-picker{ + border:1px solid; + margin-top:2px; + margin-bottom:2px; +} + +.x-menu-plain .x-color-palette, .x-menu-plain .x-date-picker{ + margin: 0; + border: 0 none; +} + +.x-date-menu { + padding:0 !important; +} + +/* + * fixes separator visibility problem in IE 6 + */ +.ext-strict .ext-ie6 .x-menu-sep-li { + padding: 3px 4px; +} +.ext-strict .ext-ie6 .x-menu-sep { + margin: 0; + height: 1px; +} + +/* + * Ugly mess to remove the white border under the picker + */ +.ext-ie .x-date-menu{ + height: 199px; +} + +.ext-strict .ext-ie .x-date-menu, .ext-border-box .ext-ie8 .x-date-menu{ + height: 197px; +} + +.ext-strict .ext-ie7 .x-date-menu{ + height: 195px; +} + +.ext-strict .ext-ie8 .x-date-menu{ + height: auto; +} + +.x-cycle-menu .x-menu-item-checked { + border:1px dotted !important; + padding:0; +} + +.x-menu .x-menu-scroller { + width: 100%; + background-repeat:no-repeat; + background-position:center; + height:8px; + line-height: 8px; + cursor:pointer; + margin: 0; + padding: 0; +} + +.x-menu .x-menu-scroller-active{ + height: 6px; + line-height: 6px; +} + +.x-menu-list-item-indent{ + padding-left: 27px; +}/* + Creates rounded, raised boxes like on the Ext website - the markup isn't pretty: +
    +
    +
    +

    YOUR TITLE HERE (optional)

    +
    YOUR CONTENT HERE
    +
    +
    +
    + */ + +.x-box-tl { + background: transparent no-repeat 0 0; + zoom:1; +} + +.x-box-tc { + height: 8px; + background: transparent repeat-x 0 0; + overflow: hidden; +} + +.x-box-tr { + background: transparent no-repeat right -8px; +} + +.x-box-ml { + background: transparent repeat-y 0; + padding-left: 4px; + overflow: hidden; + zoom:1; +} + +.x-box-mc { + background: repeat-x 0 -16px; + padding: 4px 10px; +} + +.x-box-mc h3 { + margin: 0 0 4px 0; + zoom:1; +} + +.x-box-mr { + background: transparent repeat-y right; + padding-right: 4px; + overflow: hidden; +} + +.x-box-bl { + background: transparent no-repeat 0 -16px; + zoom:1; +} + +.x-box-bc { + background: transparent repeat-x 0 -8px; + height: 8px; + overflow: hidden; +} + +.x-box-br { + background: transparent no-repeat right -24px; +} + +.x-box-tl, .x-box-bl { + padding-left: 8px; + overflow: hidden; +} + +.x-box-tr, .x-box-br { + padding-right: 8px; + overflow: hidden; +}.x-combo-list { + border:1px solid; + zoom:1; + overflow:hidden; +} + +.x-combo-list-inner { + overflow:auto; + position:relative; /* for calculating scroll offsets */ + zoom:1; + overflow-x:hidden; +} + +.x-combo-list-hd { + border-bottom:1px solid; + padding:3px; +} + +.x-resizable-pinned .x-combo-list-inner { + border-bottom:1px solid; +} + +.x-combo-list-item { + padding:2px; + border:1px solid; + white-space: nowrap; + overflow:hidden; + text-overflow: ellipsis; +} + +.x-combo-list .x-combo-selected{ + border:1px dotted !important; + cursor:pointer; +} + +.x-combo-list .x-toolbar { + border-top:1px solid; + border-bottom:0 none; +}.x-panel { + border-style: solid; + border-width:0; +} + +.x-panel-header { + overflow:hidden; + zoom:1; + padding:5px 3px 4px 5px; + border:1px solid; + line-height: 15px; + background: transparent repeat-x 0 -1px; +} + +.x-panel-body { + border:1px solid; + border-top:0 none; + overflow:hidden; + position: relative; /* added for item scroll positioning */ +} + +.x-panel-bbar .x-toolbar, .x-panel-tbar .x-toolbar { + border:1px solid; + border-top:0 none; + overflow:hidden; + padding:2px; +} + +.x-panel-tbar-noheader .x-toolbar, .x-panel-mc .x-panel-tbar .x-toolbar { + border-top:1px solid; + border-bottom: 0 none; +} + +.x-panel-body-noheader, .x-panel-mc .x-panel-body { + border-top:1px solid; +} + +.x-panel-header { + overflow:hidden; + zoom:1; +} + +.x-panel-tl .x-panel-header { + padding:5px 0 4px 0; + border:0 none; + background:transparent; +} + +.x-panel-tl .x-panel-icon, .x-window-tl .x-panel-icon { + padding-left:20px !important; + background-repeat:no-repeat; + background-position:0 4px; + zoom:1; +} + +.x-panel-inline-icon { + width:16px; + height:16px; + background-repeat:no-repeat; + background-position:0 0; + vertical-align:middle; + margin-right:4px; + margin-top:-1px; + margin-bottom:-1px; +} + +.x-panel-tc { + background: transparent repeat-x 0 0; + overflow:hidden; +} + +/* fix ie7 strict mode bug */ +.ext-strict .ext-ie7 .x-panel-tc { + overflow: visible; +} + +.x-panel-tl { + background: transparent no-repeat 0 0; + padding-left:6px; + zoom:1; + border-bottom:1px solid; +} + +.x-panel-tr { + background: transparent no-repeat right 0; + zoom:1; + padding-right:6px; +} + +.x-panel-bc { + background: transparent repeat-x 0 bottom; + zoom:1; +} + +.x-panel-bc .x-panel-footer { + zoom:1; +} + +.x-panel-bl { + background: transparent no-repeat 0 bottom; + padding-left:6px; + zoom:1; +} + +.x-panel-br { + background: transparent no-repeat right bottom; + padding-right:6px; + zoom:1; +} + +.x-panel-mc { + border:0 none; + padding:0; + margin:0; + padding-top:6px; +} + +.x-panel-mc .x-panel-body { + background:transparent; + border: 0 none; +} + +.x-panel-ml { + background: repeat-y 0 0; + padding-left:6px; + zoom:1; +} + +.x-panel-mr { + background: transparent repeat-y right 0; + padding-right:6px; + zoom:1; +} + +.x-panel-bc .x-panel-footer { + padding-bottom:6px; +} + +.x-panel-nofooter .x-panel-bc, .x-panel-nofooter .x-window-bc { + height:6px; + font-size:0; + line-height:0; +} + +.x-panel-bwrap { + overflow:hidden; + zoom:1; + left:0; + top:0; +} +.x-panel-body { + overflow:hidden; + zoom:1; +} + +.x-panel-collapsed .x-resizable-handle{ + display:none; +} + +.ext-gecko .x-panel-animated div { + overflow:hidden !important; +} + +/* Plain */ +.x-plain-body { + overflow:hidden; +} + +.x-plain-bbar .x-toolbar { + overflow:hidden; + padding:2px; +} + +.x-plain-tbar .x-toolbar { + overflow:hidden; + padding:2px; +} + +.x-plain-bwrap { + overflow:hidden; + zoom:1; +} + +.x-plain { + overflow:hidden; +} + +/* Tools */ +.x-tool { + overflow:hidden; + width:15px; + height:15px; + float:right; + cursor:pointer; + background:transparent no-repeat; + margin-left:2px; +} + +/* expand / collapse tools */ +.x-tool-toggle { + background-position:0 -60px; +} + +.x-tool-toggle-over { + background-position:-15px -60px; +} + +.x-panel-collapsed .x-tool-toggle { + background-position:0 -75px; +} + +.x-panel-collapsed .x-tool-toggle-over { + background-position:-15px -75px; +} + + +.x-tool-close { + background-position:0 -0; +} + +.x-tool-close-over { + background-position:-15px 0; +} + +.x-tool-minimize { + background-position:0 -15px; +} + +.x-tool-minimize-over { + background-position:-15px -15px; +} + +.x-tool-maximize { + background-position:0 -30px; +} + +.x-tool-maximize-over { + background-position:-15px -30px; +} + +.x-tool-restore { + background-position:0 -45px; +} + +.x-tool-restore-over { + background-position:-15px -45px; +} + +.x-tool-gear { + background-position:0 -90px; +} + +.x-tool-gear-over { + background-position:-15px -90px; +} + +.x-tool-pin { + background-position:0 -135px; +} + +.x-tool-pin-over { + background-position:-15px -135px; +} + +.x-tool-unpin { + background-position:0 -150px; +} + +.x-tool-unpin-over { + background-position:-15px -150px; +} + +.x-tool-right { + background-position:0 -165px; +} + +.x-tool-right-over { + background-position:-15px -165px; +} + +.x-tool-left { + background-position:0 -180px; +} + +.x-tool-left-over { + background-position:-15px -180px; +} + +.x-tool-up { + background-position:0 -210px; +} + +.x-tool-up-over { + background-position:-15px -210px; +} + +.x-tool-down { + background-position:0 -195px; +} + +.x-tool-down-over { + background-position:-15px -195px; +} + +.x-tool-refresh { + background-position:0 -225px; +} + +.x-tool-refresh-over { + background-position:-15px -225px; +} + +.x-tool-minus { + background-position:0 -255px; +} + +.x-tool-minus-over { + background-position:-15px -255px; +} + +.x-tool-plus { + background-position:0 -240px; +} + +.x-tool-plus-over { + background-position:-15px -240px; +} + +.x-tool-search { + background-position:0 -270px; +} + +.x-tool-search-over { + background-position:-15px -270px; +} + +.x-tool-save { + background-position:0 -285px; +} + +.x-tool-save-over { + background-position:-15px -285px; +} + +.x-tool-help { + background-position:0 -300px; +} + +.x-tool-help-over { + background-position:-15px -300px; +} + +.x-tool-print { + background-position:0 -315px; +} + +.x-tool-print-over { + background-position:-15px -315px; +} + +/* Ghosting */ +.x-panel-ghost { + z-index:12000; + overflow:hidden; + position:absolute; + left:0;top:0; + opacity:.65; + -moz-opacity:.65; + filter:alpha(opacity=65); +} + +.x-panel-ghost ul { + margin:0; + padding:0; + overflow:hidden; + font-size:0; + line-height:0; + border:1px solid; + border-top:0 none; + display:block; +} + +.x-panel-ghost * { + cursor:move !important; +} + +.x-panel-dd-spacer { + border:2px dashed; +} + +/* Buttons */ +.x-panel-btns { + padding:5px; + overflow:hidden; +} + +.x-panel-btns td.x-toolbar-cell{ + padding:3px; +} + +.x-panel-btns .x-btn-focus .x-btn-left{ + background-position:0 -147px; +} + +.x-panel-btns .x-btn-focus .x-btn-right{ + background-position:0 -168px; +} + +.x-panel-btns .x-btn-focus .x-btn-center{ + background-position:0 -189px; +} + +.x-panel-btns .x-btn-over .x-btn-left{ + background-position:0 -63px; +} + +.x-panel-btns .x-btn-over .x-btn-right{ + background-position:0 -84px; +} + +.x-panel-btns .x-btn-over .x-btn-center{ + background-position:0 -105px; +} + +.x-panel-btns .x-btn-click .x-btn-center{ + background-position:0 -126px; +} + +.x-panel-btns .x-btn-click .x-btn-right{ + background-position:0 -84px; +} + +.x-panel-btns .x-btn-click .x-btn-left{ + background-position:0 -63px; +} + +.x-panel-fbar td,.x-panel-fbar span,.x-panel-fbar input,.x-panel-fbar div,.x-panel-fbar select,.x-panel-fbar label{ + white-space: nowrap; +} +/** + * W3C Suggested Default style sheet for HTML 4 + * http://www.w3.org/TR/CSS21/sample.html + * + * Resets for Ext.Panel @cfg normal: true + */ +.x-panel-reset .x-panel-body html, +.x-panel-reset .x-panel-body address, +.x-panel-reset .x-panel-body blockquote, +.x-panel-reset .x-panel-body body, +.x-panel-reset .x-panel-body dd, +.x-panel-reset .x-panel-body div, +.x-panel-reset .x-panel-body dl, +.x-panel-reset .x-panel-body dt, +.x-panel-reset .x-panel-body fieldset, +.x-panel-reset .x-panel-body form, +.x-panel-reset .x-panel-body frame, frameset, +.x-panel-reset .x-panel-body h1, +.x-panel-reset .x-panel-body h2, +.x-panel-reset .x-panel-body h3, +.x-panel-reset .x-panel-body h4, +.x-panel-reset .x-panel-body h5, +.x-panel-reset .x-panel-body h6, +.x-panel-reset .x-panel-body noframes, +.x-panel-reset .x-panel-body ol, +.x-panel-reset .x-panel-body p, +.x-panel-reset .x-panel-body ul, +.x-panel-reset .x-panel-body center, +.x-panel-reset .x-panel-body dir, +.x-panel-reset .x-panel-body hr, +.x-panel-reset .x-panel-body menu, +.x-panel-reset .x-panel-body pre { display: block } +.x-panel-reset .x-panel-body li { display: list-item } +.x-panel-reset .x-panel-body head { display: none } +.x-panel-reset .x-panel-body table { display: table } +.x-panel-reset .x-panel-body tr { display: table-row } +.x-panel-reset .x-panel-body thead { display: table-header-group } +.x-panel-reset .x-panel-body tbody { display: table-row-group } +.x-panel-reset .x-panel-body tfoot { display: table-footer-group } +.x-panel-reset .x-panel-body col { display: table-column } +.x-panel-reset .x-panel-body colgroup { display: table-column-group } +.x-panel-reset .x-panel-body td, +.x-panel-reset .x-panel-body th { display: table-cell } +.x-panel-reset .x-panel-body caption { display: table-caption } +.x-panel-reset .x-panel-body th { font-weight: bolder; text-align: center } +.x-panel-reset .x-panel-body caption { text-align: center } +.x-panel-reset .x-panel-body body { margin: 8px } +.x-panel-reset .x-panel-body h1 { font-size: 2em; margin: .67em 0 } +.x-panel-reset .x-panel-body h2 { font-size: 1.5em; margin: .75em 0 } +.x-panel-reset .x-panel-body h3 { font-size: 1.17em; margin: .83em 0 } +.x-panel-reset .x-panel-body h4, +.x-panel-reset .x-panel-body p, +.x-panel-reset .x-panel-body blockquote, +.x-panel-reset .x-panel-body ul, +.x-panel-reset .x-panel-body fieldset, +.x-panel-reset .x-panel-body form, +.x-panel-reset .x-panel-body ol, +.x-panel-reset .x-panel-body dl, +.x-panel-reset .x-panel-body dir, +.x-panel-reset .x-panel-body menu { margin: 1.12em 0 } +.x-panel-reset .x-panel-body h5 { font-size: .83em; margin: 1.5em 0 } +.x-panel-reset .x-panel-body h6 { font-size: .75em; margin: 1.67em 0 } +.x-panel-reset .x-panel-body h1, +.x-panel-reset .x-panel-body h2, +.x-panel-reset .x-panel-body h3, +.x-panel-reset .x-panel-body h4, +.x-panel-reset .x-panel-body h5, +.x-panel-reset .x-panel-body h6, +.x-panel-reset .x-panel-body b, +.x-panel-reset .x-panel-body strong { font-weight: bolder } +.x-panel-reset .x-panel-body blockquote { margin-left: 40px; margin-right: 40px } +.x-panel-reset .x-panel-body i, +.x-panel-reset .x-panel-body cite, +.x-panel-reset .x-panel-body em, +.x-panel-reset .x-panel-body var, +.x-panel-reset .x-panel-body address { font-style: italic } +.x-panel-reset .x-panel-body pre, +.x-panel-reset .x-panel-body tt, +.x-panel-reset .x-panel-body code, +.x-panel-reset .x-panel-body kbd, +.x-panel-reset .x-panel-body samp { font-family: monospace } +.x-panel-reset .x-panel-body pre { white-space: pre } +.x-panel-reset .x-panel-body button, +.x-panel-reset .x-panel-body textarea, +.x-panel-reset .x-panel-body input, +.x-panel-reset .x-panel-body select { display: inline-block } +.x-panel-reset .x-panel-body big { font-size: 1.17em } +.x-panel-reset .x-panel-body small, +.x-panel-reset .x-panel-body sub, +.x-panel-reset .x-panel-body sup { font-size: .83em } +.x-panel-reset .x-panel-body sub { vertical-align: sub } +.x-panel-reset .x-panel-body sup { vertical-align: super } +.x-panel-reset .x-panel-body table { border-spacing: 2px; } +.x-panel-reset .x-panel-body thead, +.x-panel-reset .x-panel-body tbody, +.x-panel-reset .x-panel-body tfoot { vertical-align: middle } +.x-panel-reset .x-panel-body td, +.x-panel-reset .x-panel-body th { vertical-align: inherit } +.x-panel-reset .x-panel-body s, +.x-panel-reset .x-panel-body strike, +.x-panel-reset .x-panel-body del { text-decoration: line-through } +.x-panel-reset .x-panel-body hr { border: 1px inset } +.x-panel-reset .x-panel-body ol, +.x-panel-reset .x-panel-body ul, +.x-panel-reset .x-panel-body dir, +.x-panel-reset .x-panel-body menu, +.x-panel-reset .x-panel-body dd { margin-left: 40px } +.x-panel-reset .x-panel-body ul, .x-panel-reset .x-panel-body menu, .x-panel-reset .x-panel-body dir { list-style-type: disc;} +.x-panel-reset .x-panel-body ol { list-style-type: decimal } +.x-panel-reset .x-panel-body ol ul, +.x-panel-reset .x-panel-body ul ol, +.x-panel-reset .x-panel-body ul ul, +.x-panel-reset .x-panel-body ol ol { margin-top: 0; margin-bottom: 0 } +.x-panel-reset .x-panel-body u, +.x-panel-reset .x-panel-body ins { text-decoration: underline } +.x-panel-reset .x-panel-body br:before { content: "\A" } +.x-panel-reset .x-panel-body :before, .x-panel-reset .x-panel-body :after { white-space: pre-line } +.x-panel-reset .x-panel-body center { text-align: center } +.x-panel-reset .x-panel-body :link, .x-panel-reset .x-panel-body :visited { text-decoration: underline } +.x-panel-reset .x-panel-body :focus { outline: invert dotted thin } + +/* Begin bidirectionality settings (do not change) */ +.x-panel-reset .x-panel-body BDO[DIR="ltr"] { direction: ltr; unicode-bidi: bidi-override } +.x-panel-reset .x-panel-body BDO[DIR="rtl"] { direction: rtl; unicode-bidi: bidi-override } +.x-window { + zoom:1; +} + +.x-window .x-window-handle { + opacity:0; + -moz-opacity:0; + filter:alpha(opacity=0); +} + +.x-window-proxy { + border:1px solid; + z-index:12000; + overflow:hidden; + position:absolute; + left:0;top:0; + display:none; + opacity:.5; + -moz-opacity:.5; + filter:alpha(opacity=50); +} + +.x-window-header { + overflow:hidden; + zoom:1; +} + +.x-window-bwrap { + z-index:1; + position:relative; + zoom:1; + left:0;top:0; +} + +.x-window-tl .x-window-header { + padding:5px 0 4px 0; +} + +.x-window-header-text { + cursor:pointer; +} + +.x-window-tc { + background: transparent repeat-x 0 0; + overflow:hidden; + zoom:1; +} + +.x-window-tl { + background: transparent no-repeat 0 0; + padding-left:6px; + zoom:1; + z-index:1; + position:relative; +} + +.x-window-tr { + background: transparent no-repeat right 0; + padding-right:6px; +} + +.x-window-bc { + background: transparent repeat-x 0 bottom; + zoom:1; +} + +.x-window-bc .x-window-footer { + padding-bottom:6px; + zoom:1; + font-size:0; + line-height:0; +} + +.x-window-bl { + background: transparent no-repeat 0 bottom; + padding-left:6px; + zoom:1; +} + +.x-window-br { + background: transparent no-repeat right bottom; + padding-right:6px; + zoom:1; +} + +.x-window-mc { + border:1px solid; + padding:0; + margin:0; +} + +.x-window-ml { + background: transparent repeat-y 0 0; + padding-left:6px; + zoom:1; +} + +.x-window-mr { + background: transparent repeat-y right 0; + padding-right:6px; + zoom:1; +} + +.x-window-body { + overflow:hidden; +} + +.x-window-bwrap { + overflow:hidden; +} + +.x-window-maximized .x-window-bl, .x-window-maximized .x-window-br, + .x-window-maximized .x-window-ml, .x-window-maximized .x-window-mr, + .x-window-maximized .x-window-tl, .x-window-maximized .x-window-tr { + padding:0; +} + +.x-window-maximized .x-window-footer { + padding-bottom:0; +} + +.x-window-maximized .x-window-tc { + padding-left:3px; + padding-right:3px; +} + +.x-window-maximized .x-window-mc { + border-left:0 none; + border-right:0 none; +} + +.x-window-tbar .x-toolbar, .x-window-bbar .x-toolbar { + border-left:0 none; + border-right: 0 none; +} + +.x-window-bbar .x-toolbar { + border-top:1px solid; + border-bottom:0 none; +} + +.x-window-draggable, .x-window-draggable .x-window-header-text { + cursor:move; +} + +.x-window-maximized .x-window-draggable, .x-window-maximized .x-window-draggable .x-window-header-text { + cursor:default; +} + +.x-window-body { + background:transparent; +} + +.x-panel-ghost .x-window-tl { + border-bottom:1px solid; +} + +.x-panel-collapsed .x-window-tl { + border-bottom:1px solid; +} + +.x-window-maximized-ct { + overflow:hidden; +} + +.x-window-maximized .x-window-handle { + display:none; +} + +.x-window-sizing-ghost ul { + border:0 none !important; +} + +.x-dlg-focus{ + -moz-outline:0 none; + outline:0 none; + width:0; + height:0; + overflow:hidden; + position:absolute; + top:0; + left:0; +} + +.ext-webkit .x-dlg-focus{ + width: 1px; + height: 1px; +} + +.x-dlg-mask{ + z-index:10000; + display:none; + position:absolute; + top:0; + left:0; + -moz-opacity: 0.5; + opacity:.50; + filter: alpha(opacity=50); +} + +body.ext-ie6.x-body-masked select { + visibility:hidden; +} + +body.ext-ie6.x-body-masked .x-window select { + visibility:visible; +} + +.x-window-plain .x-window-mc { + border: 1px solid; +} + +.x-window-plain .x-window-body { + border: 1px solid; + background:transparent !important; +}.x-html-editor-wrap { + border:1px solid; +} + +.x-html-editor-tb .x-btn-text { + background:transparent no-repeat; +} + +.x-html-editor-tb .x-edit-bold, .x-menu-item img.x-edit-bold { + background-position:0 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-italic, .x-menu-item img.x-edit-italic { + background-position:-16px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-underline, .x-menu-item img.x-edit-underline { + background-position:-32px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-forecolor, .x-menu-item img.x-edit-forecolor { + background-position:-160px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-backcolor, .x-menu-item img.x-edit-backcolor { + background-position:-176px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-justifyleft, .x-menu-item img.x-edit-justifyleft { + background-position:-112px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-justifycenter, .x-menu-item img.x-edit-justifycenter { + background-position:-128px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-justifyright, .x-menu-item img.x-edit-justifyright { + background-position:-144px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-insertorderedlist, .x-menu-item img.x-edit-insertorderedlist { + background-position:-80px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-insertunorderedlist, .x-menu-item img.x-edit-insertunorderedlist { + background-position:-96px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-increasefontsize, .x-menu-item img.x-edit-increasefontsize { + background-position:-48px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-decreasefontsize, .x-menu-item img.x-edit-decreasefontsize { + background-position:-64px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-sourceedit, .x-menu-item img.x-edit-sourceedit { + background-position:-192px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tb .x-edit-createlink, .x-menu-item img.x-edit-createlink { + background-position:-208px 0; + background-image:url(../images/default/editor/tb-sprite.gif); +} + +.x-html-editor-tip .x-tip-bd .x-tip-bd-inner { + padding:5px; + padding-bottom:1px; +} + +.x-html-editor-tb .x-toolbar { + position:static !important; +}.x-panel-noborder .x-panel-body-noborder { + border-width:0; +} + +.x-panel-noborder .x-panel-header-noborder { + border-width:0 0 1px; + border-style:solid; +} + +.x-panel-noborder .x-panel-tbar-noborder .x-toolbar { + border-width:0 0 1px; + border-style:solid; +} + +.x-panel-noborder .x-panel-bbar-noborder .x-toolbar { + border-width:1px 0 0 0; + border-style:solid; +} + +.x-window-noborder .x-window-mc { + border-width:0; +} + +.x-window-plain .x-window-body-noborder { + border-width:0; +} + +.x-tab-panel-noborder .x-tab-panel-body-noborder { + border-width:0; +} + +.x-tab-panel-noborder .x-tab-panel-header-noborder { + border-width: 0 0 1px 0; +} + +.x-tab-panel-noborder .x-tab-panel-footer-noborder { + border-width: 1px 0 0 0; +} + +.x-tab-panel-bbar-noborder .x-toolbar { + border-width: 1px 0 0 0; + border-style:solid; +} + +.x-tab-panel-tbar-noborder .x-toolbar { + border-width:0 0 1px; + border-style:solid; +}.x-border-layout-ct { + position: relative; +} + +.x-border-panel { + position:absolute; + left:0; + top:0; +} + +.x-tool-collapse-south { + background-position:0 -195px; +} + +.x-tool-collapse-south-over { + background-position:-15px -195px; +} + +.x-tool-collapse-north { + background-position:0 -210px; +} + +.x-tool-collapse-north-over { + background-position:-15px -210px; +} + +.x-tool-collapse-west { + background-position:0 -180px; +} + +.x-tool-collapse-west-over { + background-position:-15px -180px; +} + +.x-tool-collapse-east { + background-position:0 -165px; +} + +.x-tool-collapse-east-over { + background-position:-15px -165px; +} + +.x-tool-expand-south { + background-position:0 -210px; +} + +.x-tool-expand-south-over { + background-position:-15px -210px; +} + +.x-tool-expand-north { + background-position:0 -195px; +} +.x-tool-expand-north-over { + background-position:-15px -195px; +} + +.x-tool-expand-west { + background-position:0 -165px; +} + +.x-tool-expand-west-over { + background-position:-15px -165px; +} + +.x-tool-expand-east { + background-position:0 -180px; +} + +.x-tool-expand-east-over { + background-position:-15px -180px; +} + +.x-tool-expand-north, .x-tool-expand-south { + float:right; + margin:3px; +} + +.x-tool-expand-east, .x-tool-expand-west { + float:none; + margin:3px auto; +} + +.x-accordion-hd .x-tool-toggle { + background-position:0 -255px; +} + +.x-accordion-hd .x-tool-toggle-over { + background-position:-15px -255px; +} + +.x-panel-collapsed .x-accordion-hd .x-tool-toggle { + background-position:0 -240px; +} + +.x-panel-collapsed .x-accordion-hd .x-tool-toggle-over { + background-position:-15px -240px; +} + +.x-accordion-hd { + padding-top:4px; + padding-bottom:3px; + border-top:0 none; + background: transparent repeat-x 0 -9px; +} + +.x-layout-collapsed{ + position:absolute; + left:-10000px; + top:-10000px; + visibility:hidden; + width:20px; + height:20px; + overflow:hidden; + border:1px solid; + z-index:20; +} + +.ext-border-box .x-layout-collapsed{ + width:22px; + height:22px; +} + +.x-layout-collapsed-over{ + cursor:pointer; +} + +.x-layout-collapsed-west .x-layout-collapsed-tools, .x-layout-collapsed-east .x-layout-collapsed-tools{ + position:absolute; + top:0; + left:0; + width:20px; + height:20px; +} + + +.x-layout-split{ + position:absolute; + height:5px; + width:5px; + line-height:1px; + font-size:1px; + z-index:3; + background-color:transparent; +} + +/* IE6 strict won't drag w/out a color */ +.ext-strict .ext-ie6 .x-layout-split{ + background-color: #fff !important; + filter: alpha(opacity=1); +} + +.x-layout-split-h{ + background-image:url(../images/default/s.gif); + background-position: left; +} + +.x-layout-split-v{ + background-image:url(../images/default/s.gif); + background-position: top; +} + +.x-column-layout-ct { + overflow:hidden; + zoom:1; +} + +.x-column { + float:left; + padding:0; + margin:0; + overflow:hidden; + zoom:1; +} + +.x-column-inner { + overflow:hidden; + zoom:1; +} + +/* mini mode */ +.x-layout-mini { + position:absolute; + top:0; + left:0; + display:block; + width:5px; + height:35px; + cursor:pointer; + opacity:.5; + -moz-opacity:.5; + filter:alpha(opacity=50); +} + +.x-layout-mini-over, .x-layout-collapsed-over .x-layout-mini{ + opacity:1; + -moz-opacity:1; + filter:none; +} + +.x-layout-split-west .x-layout-mini { + top:48%; +} + +.x-layout-split-east .x-layout-mini { + top:48%; +} + +.x-layout-split-north .x-layout-mini { + left:48%; + height:5px; + width:35px; +} + +.x-layout-split-south .x-layout-mini { + left:48%; + height:5px; + width:35px; +} + +.x-layout-cmini-west .x-layout-mini { + top:48%; +} + +.x-layout-cmini-east .x-layout-mini { + top:48%; +} + +.x-layout-cmini-north .x-layout-mini { + left:48%; + height:5px; + width:35px; +} + +.x-layout-cmini-south .x-layout-mini { + left:48%; + height:5px; + width:35px; +} + +.x-layout-cmini-west, .x-layout-cmini-east { + border:0 none; + width:5px !important; + padding:0; + background:transparent; +} + +.x-layout-cmini-north, .x-layout-cmini-south { + border:0 none; + height:5px !important; + padding:0; + background:transparent; +} + +.x-viewport, .x-viewport body { + margin: 0; + padding: 0; + border: 0 none; + overflow: hidden; + height: 100%; +} + +.x-abs-layout-item { + position:absolute; + left:0; + top:0; +} + +.ext-ie input.x-abs-layout-item, .ext-ie textarea.x-abs-layout-item { + margin:0; +} + +.x-box-layout-ct { + overflow:hidden; + zoom:1; +} + +.x-box-inner { + overflow:hidden; + zoom:1; + position:relative; + left:0; + top:0; +} + +.x-box-item { + position:absolute; + left:0; + top:0; +}.x-progress-wrap { + border:1px solid; + overflow:hidden; +} + +.x-progress-inner { + height:18px; + background:repeat-x; + position:relative; +} + +.x-progress-bar { + height:18px; + float:left; + width:0; + background: repeat-x left center; + border-top:1px solid; + border-bottom:1px solid; + border-right:1px solid; +} + +.x-progress-text { + padding:1px 5px; + overflow:hidden; + position:absolute; + left:0; + text-align:center; +} + +.x-progress-text-back { + line-height:16px; +} + +.ext-ie .x-progress-text-back { + line-height:15px; +} + +.ext-strict .ext-ie7 .x-progress-text-back{ + width: 100%; +} +.x-list-header{ + background: repeat-x 0 bottom; + cursor:default; + zoom:1; + height:22px; +} + +.x-list-header-inner div { + display:block; + float:left; + overflow:hidden; + -o-text-overflow: ellipsis; + text-overflow: ellipsis; + white-space: nowrap; +} + +.x-list-header-inner div em { + display:block; + border-left:1px solid; + padding:4px 4px; + overflow:hidden; + -moz-user-select: none; + -khtml-user-select: none; + line-height:14px; +} + +.x-list-body { + overflow:auto; + overflow-x:hidden; + overflow-y:auto; + zoom:1; + float: left; + width: 100%; +} + +.x-list-body dl { + zoom:1; +} + +.x-list-body dt { + display:block; + float:left; + overflow:hidden; + -o-text-overflow: ellipsis; + text-overflow: ellipsis; + white-space: nowrap; + cursor:pointer; + zoom:1; +} + +.x-list-body dt em { + display:block; + padding:3px 4px; + overflow:hidden; + -moz-user-select: none; + -khtml-user-select: none; +} + +.x-list-resizer { + border-left:1px solid; + border-right:1px solid; + position:absolute; + left:0; + top:0; +} + +.x-list-header-inner em.sort-asc { + background: transparent no-repeat center 0; + border-style:solid; + border-width: 0 1px 1px; + padding-bottom:3px; +} + +.x-list-header-inner em.sort-desc { + background: transparent no-repeat center -23px; + border-style:solid; + border-width: 0 1px 1px; + padding-bottom:3px; +} + +/* Shared styles */ +.x-slider { + zoom:1; +} + +.x-slider-inner { + position:relative; + left:0; + top:0; + overflow:visible; + zoom:1; +} + +.x-slider-focus { + position:absolute; + left:0; + top:0; + width:1px; + height:1px; + line-height:1px; + font-size:1px; + -moz-outline:0 none; + outline:0 none; + -moz-user-select: none; + -khtml-user-select:none; + -webkit-user-select:ignore; + display:block; + overflow:hidden; +} + +/* Horizontal styles */ +.x-slider-horz { + padding-left:7px; + background:transparent no-repeat 0 -22px; +} + +.x-slider-horz .x-slider-end { + padding-right:7px; + zoom:1; + background:transparent no-repeat right -44px; +} + +.x-slider-horz .x-slider-inner { + background:transparent repeat-x 0 0; + height:22px; +} + +.x-slider-horz .x-slider-thumb { + width:14px; + height:15px; + position:absolute; + left:0; + top:3px; + background:transparent no-repeat 0 0; +} + +.x-slider-horz .x-slider-thumb-over { + background-position: -14px -15px; +} + +.x-slider-horz .x-slider-thumb-drag { + background-position: -28px -30px; +} + +/* Vertical styles */ +.x-slider-vert { + padding-top:7px; + background:transparent no-repeat -44px 0; + width:22px; +} + +.x-slider-vert .x-slider-end { + padding-bottom:7px; + zoom:1; + background:transparent no-repeat -22px bottom; +} + +.x-slider-vert .x-slider-inner { + background:transparent repeat-y 0 0; +} + +.x-slider-vert .x-slider-thumb { + width:15px; + height:14px; + position:absolute; + left:3px; + bottom:0; + background:transparent no-repeat 0 0; +} + +.x-slider-vert .x-slider-thumb-over { + background-position: -15px -14px; +} + +.x-slider-vert .x-slider-thumb-drag { + background-position: -30px -28px; +}.x-window-dlg .x-window-body { + border:0 none !important; + padding:5px 10px; + overflow:hidden !important; +} + +.x-window-dlg .x-window-mc { + border:0 none !important; +} + +.x-window-dlg .ext-mb-input { + margin-top:4px; + width:95%; +} + +.x-window-dlg .ext-mb-textarea { + margin-top:4px; +} + +.x-window-dlg .x-progress-wrap { + margin-top:4px; +} + +.ext-ie .x-window-dlg .x-progress-wrap { + margin-top:6px; +} + +.x-window-dlg .x-msg-box-wait { + background:transparent no-repeat left; + display:block; + width:300px; + padding-left:18px; + line-height:18px; +} + +.x-window-dlg .ext-mb-icon { + float:left; + width:47px; + height:32px; +} + +.ext-ie .x-window-dlg .ext-mb-icon { + width:44px; /* 3px IE margin issue */ +} + +.x-window-dlg .x-dlg-icon .ext-mb-content{ + zoom: 1; margin-left: 47px; +} + +.x-window-dlg .ext-mb-info, .x-window-dlg .ext-mb-warning, .x-window-dlg .ext-mb-question, .x-window-dlg .ext-mb-error { + background:transparent no-repeat top left; +} + +.ext-gecko2 .ext-mb-fix-cursor { + overflow:auto; +}.ext-el-mask { + background-color: #ccc; +} + +.ext-el-mask-msg { + border-color:#6593cf; + background-color:#c3daf9; + background-image:url(../images/default/box/tb-blue.gif); +} +.ext-el-mask-msg div { + background-color: #eee; + border-color:#a3bad9; + color:#222; + font:normal 11px tahoma, arial, helvetica, sans-serif; +} + +.x-mask-loading div { + background-color:#fbfbfb; + background-image:url(../images/default/grid/loading.gif); +} + +.x-item-disabled { + color: gray; +} + +.x-item-disabled * { + color: gray !important; +} + +.x-splitbar-proxy { + background-color: #aaa; +} + +.x-color-palette a { + border-color:#fff; +} + +.x-color-palette a:hover, .x-color-palette a.x-color-palette-sel { + border-color:#8bb8f3; + background-color: #deecfd; +} + +.x-color-palette em:hover, .x-color-palette span:hover{ + background-color: #deecfd; +} + +.x-color-palette em { + border-color:#aca899; +} + +.x-ie-shadow { + background-color:#777; +} + +.x-shadow .xsmc { + background-image: url(../images/default/shadow-c.png); +} + +.x-shadow .xsml, .x-shadow .xsmr { + background-image: url(../images/default/shadow-lr.png); +} + +.x-shadow .xstl, .x-shadow .xstc, .x-shadow .xstr, .x-shadow .xsbl, .x-shadow .xsbc, .x-shadow .xsbr{ + background-image: url(../images/default/shadow.png); +} + +.loading-indicator { + font-size: 11px; + background-image: url(../images/default/grid/loading.gif); +} + +.x-spotlight { + background-color: #ccc; +} +.x-tab-panel-header, .x-tab-panel-footer { + background-color: #deecfd; + border-color:#8db2e3; + overflow:hidden; + zoom:1; +} + +.x-tab-panel-header, .x-tab-panel-footer { + border-color:#8db2e3; +} + +ul.x-tab-strip-top{ + background-color:#cedff5; + background-image: url(../images/default/tabs/tab-strip-bg.gif); + border-bottom-color:#8db2e3; +} + +ul.x-tab-strip-bottom{ + background-color:#cedff5; + background-image: url(../images/default/tabs/tab-strip-btm-bg.gif); + border-top-color:#8db2e3; +} + +.x-tab-panel-header-plain .x-tab-strip-spacer, +.x-tab-panel-footer-plain .x-tab-strip-spacer { + border-color:#8db2e3; + background-color: #deecfd; +} + +.x-tab-strip span.x-tab-strip-text { + font:normal 11px tahoma,arial,helvetica; + color:#416aa3; +} + +.x-tab-strip-over span.x-tab-strip-text { + color:#15428b; +} + +.x-tab-strip-active span.x-tab-strip-text { + color:#15428b; + font-weight:bold; +} + +.x-tab-strip-disabled .x-tabs-text { + color:#aaaaaa; +} + +.x-tab-strip-top .x-tab-right, .x-tab-strip-top .x-tab-left, .x-tab-strip-top .x-tab-strip-inner{ + background-image: url(../images/default/tabs/tabs-sprite.gif); +} + +.x-tab-strip-bottom .x-tab-right { + background-image: url(../images/default/tabs/tab-btm-inactive-right-bg.gif); +} + +.x-tab-strip-bottom .x-tab-left { + background-image: url(../images/default/tabs/tab-btm-inactive-left-bg.gif); +} + +.x-tab-strip-bottom .x-tab-strip-over .x-tab-right { + background-image: url(../images/default/tabs/tab-btm-over-right-bg.gif); +} + +.x-tab-strip-bottom .x-tab-strip-over .x-tab-left { + background-image: url(../images/default/tabs/tab-btm-over-left-bg.gif); +} + +.x-tab-strip-bottom .x-tab-strip-active .x-tab-right { + background-image: url(../images/default/tabs/tab-btm-right-bg.gif); +} + +.x-tab-strip-bottom .x-tab-strip-active .x-tab-left { + background-image: url(../images/default/tabs/tab-btm-left-bg.gif); +} + +.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { + background-image:url(../images/default/tabs/tab-close.gif); +} + +.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{ + background-image:url(../images/default/tabs/tab-close.gif); +} + +.x-tab-panel-body { + border-color:#8db2e3; + background-color:#fff; +} + +.x-tab-panel-body-top { + border-top: 0 none; +} + +.x-tab-panel-body-bottom { + border-bottom: 0 none; +} + +.x-tab-scroller-left { + background-image:url(../images/default/tabs/scroll-left.gif); + border-bottom-color:#8db2e3; +} + +.x-tab-scroller-left-over { + background-position: 0 0; +} + +.x-tab-scroller-left-disabled { + background-position: -18px 0; + opacity:.5; + -moz-opacity:.5; + filter:alpha(opacity=50); + cursor:default; +} + +.x-tab-scroller-right { + background-image:url(../images/default/tabs/scroll-right.gif); + border-bottom-color:#8db2e3; +} + +.x-tab-panel-bbar .x-toolbar, .x-tab-panel-tbar .x-toolbar { + border-color:#99bbe8; +}.x-form-field { + font:normal 12px tahoma, arial, helvetica, sans-serif; +} + +.x-form-text, textarea.x-form-field { + background-color:#fff; + background-image:url(../images/default/form/text-bg.gif); + border-color:#b5b8c8; +} + +.x-form-select-one { + background-color:#fff; + border-color:#b5b8c8; +} + +.x-form-check-group-label { + border-bottom: 1px solid #99bbe8; + color: #15428b; +} + +.x-editor .x-form-check-wrap { + background-color:#fff; +} + +.x-form-field-wrap .x-form-trigger { + background-image:url(../images/default/form/trigger.gif); + border-bottom-color:#b5b8c8; +} + +.x-form-field-wrap .x-form-date-trigger { + background-image: url(../images/default/form/date-trigger.gif); +} + +.x-form-field-wrap .x-form-clear-trigger { + background-image: url(../images/default/form/clear-trigger.gif); +} + +.x-form-field-wrap .x-form-search-trigger { + background-image: url(../images/default/form/search-trigger.gif); +} + +.x-trigger-wrap-focus .x-form-trigger { + border-bottom-color:#7eadd9; +} + +.x-item-disabled .x-form-trigger-over { + border-bottom-color:#b5b8c8; +} + +.x-item-disabled .x-form-trigger-click { + border-bottom-color:#b5b8c8; +} + +.x-form-focus, textarea.x-form-focus { + border-color:#7eadd9; +} + +.x-form-invalid, textarea.x-form-invalid { + background-color:#fff; + background-image:url(../images/default/grid/invalid_line.gif); + border-color:#c30; +} + +.x-form-invalid.x-form-composite { + border: none; + background-image: none; +} + +.x-form-invalid.x-form-composite .x-form-invalid { + background-color:#fff; + background-image:url(../images/default/grid/invalid_line.gif); + border-color:#c30; +} + +.x-form-inner-invalid, textarea.x-form-inner-invalid { + background-color:#fff; + background-image:url(../images/default/grid/invalid_line.gif); +} + +.x-form-grow-sizer { + font:normal 12px tahoma, arial, helvetica, sans-serif; +} + +.x-form-item { + font:normal 12px tahoma, arial, helvetica, sans-serif; +} + +.x-form-invalid-msg { + color:#c0272b; + font:normal 11px tahoma, arial, helvetica, sans-serif; + background-image:url(../images/default/shared/warning.gif); +} + +.x-form-empty-field { + color:gray; +} + +.x-small-editor .x-form-field { + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.ext-webkit .x-small-editor .x-form-field { + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-form-invalid-icon { + background-image:url(../images/default/form/exclamation.gif); +} + +.x-fieldset { + border-color:#b5b8c8; +} + +.x-fieldset legend { + font:bold 11px tahoma, arial, helvetica, sans-serif; + color:#15428b; +} +.x-btn{ + font:normal 11px tahoma, verdana, helvetica; +} + +.x-btn button{ + font:normal 11px arial,tahoma,verdana,helvetica; + color:#333; +} + +.x-btn em { + font-style:normal; + font-weight:normal; +} + +.x-btn-tl, .x-btn-tr, .x-btn-tc, .x-btn-ml, .x-btn-mr, .x-btn-mc, .x-btn-bl, .x-btn-br, .x-btn-bc{ + background-image:url(../images/default/button/btn.gif); +} + +.x-btn-click .x-btn-text, .x-btn-menu-active .x-btn-text, .x-btn-pressed .x-btn-text{ + color:#000; +} + +.x-btn-disabled *{ + color:gray !important; +} + +.x-btn-mc em.x-btn-arrow { + background-image:url(../images/default/button/arrow.gif); +} + +.x-btn-mc em.x-btn-split { + background-image:url(../images/default/button/s-arrow.gif); +} + +.x-btn-over .x-btn-mc em.x-btn-split, .x-btn-click .x-btn-mc em.x-btn-split, .x-btn-menu-active .x-btn-mc em.x-btn-split, .x-btn-pressed .x-btn-mc em.x-btn-split { + background-image:url(../images/default/button/s-arrow-o.gif); +} + +.x-btn-mc em.x-btn-arrow-bottom { + background-image:url(../images/default/button/s-arrow-b-noline.gif); +} + +.x-btn-mc em.x-btn-split-bottom { + background-image:url(../images/default/button/s-arrow-b.gif); +} + +.x-btn-over .x-btn-mc em.x-btn-split-bottom, .x-btn-click .x-btn-mc em.x-btn-split-bottom, .x-btn-menu-active .x-btn-mc em.x-btn-split-bottom, .x-btn-pressed .x-btn-mc em.x-btn-split-bottom { + background-image:url(../images/default/button/s-arrow-bo.gif); +} + +.x-btn-group-header { + color: #3e6aaa; +} + +.x-btn-group-tc { + background-image: url(../images/default/button/group-tb.gif); +} + +.x-btn-group-tl { + background-image: url(../images/default/button/group-cs.gif); +} + +.x-btn-group-tr { + background-image: url(../images/default/button/group-cs.gif); +} + +.x-btn-group-bc { + background-image: url(../images/default/button/group-tb.gif); +} + +.x-btn-group-bl { + background-image: url(../images/default/button/group-cs.gif); +} + +.x-btn-group-br { + background-image: url(../images/default/button/group-cs.gif); +} + +.x-btn-group-ml { + background-image: url(../images/default/button/group-lr.gif); +} +.x-btn-group-mr { + background-image: url(../images/default/button/group-lr.gif); +} + +.x-btn-group-notitle .x-btn-group-tc { + background-image: url(../images/default/button/group-tb.gif); +}.x-toolbar{ + border-color:#a9bfd3; + background-color:#d0def0; + background-image:url(../images/default/toolbar/bg.gif); +} + +.x-toolbar td,.x-toolbar span,.x-toolbar input,.x-toolbar div,.x-toolbar select,.x-toolbar label{ + font:normal 11px arial,tahoma, helvetica, sans-serif; +} + +.x-toolbar .x-item-disabled { + color:gray; +} + +.x-toolbar .x-item-disabled * { + color:gray; +} + +.x-toolbar .x-btn-mc em.x-btn-split { + background-image:url(../images/default/button/s-arrow-noline.gif); +} + +.x-toolbar .x-btn-over .x-btn-mc em.x-btn-split, .x-toolbar .x-btn-click .x-btn-mc em.x-btn-split, +.x-toolbar .x-btn-menu-active .x-btn-mc em.x-btn-split, .x-toolbar .x-btn-pressed .x-btn-mc em.x-btn-split +{ + background-image:url(../images/default/button/s-arrow-o.gif); +} + +.x-toolbar .x-btn-mc em.x-btn-split-bottom { + background-image:url(../images/default/button/s-arrow-b-noline.gif); +} + +.x-toolbar .x-btn-over .x-btn-mc em.x-btn-split-bottom, .x-toolbar .x-btn-click .x-btn-mc em.x-btn-split-bottom, +.x-toolbar .x-btn-menu-active .x-btn-mc em.x-btn-split-bottom, .x-toolbar .x-btn-pressed .x-btn-mc em.x-btn-split-bottom +{ + background-image:url(../images/default/button/s-arrow-bo.gif); +} + +.x-toolbar .xtb-sep { + background-image: url(../images/default/grid/grid-blue-split.gif); +} + +.x-tbar-page-first{ + background-image: url(../images/default/grid/page-first.gif) !important; +} + +.x-tbar-loading{ + background-image: url(../images/default/grid/refresh.gif) !important; +} + +.x-tbar-page-last{ + background-image: url(../images/default/grid/page-last.gif) !important; +} + +.x-tbar-page-next{ + background-image: url(../images/default/grid/page-next.gif) !important; +} + +.x-tbar-page-prev{ + background-image: url(../images/default/grid/page-prev.gif) !important; +} + +.x-item-disabled .x-tbar-loading{ + background-image: url(../images/default/grid/loading.gif) !important; +} + +.x-item-disabled .x-tbar-page-first{ + background-image: url(../images/default/grid/page-first-disabled.gif) !important; +} + +.x-item-disabled .x-tbar-page-last{ + background-image: url(../images/default/grid/page-last-disabled.gif) !important; +} + +.x-item-disabled .x-tbar-page-next{ + background-image: url(../images/default/grid/page-next-disabled.gif) !important; +} + +.x-item-disabled .x-tbar-page-prev{ + background-image: url(../images/default/grid/page-prev-disabled.gif) !important; +} + +.x-paging-info { + color:#444; +} + +.x-toolbar-more-icon { + background-image: url(../images/default/toolbar/more.gif) !important; +}.x-resizable-handle { + background-color:#fff; +} + +.x-resizable-over .x-resizable-handle-east, .x-resizable-pinned .x-resizable-handle-east, +.x-resizable-over .x-resizable-handle-west, .x-resizable-pinned .x-resizable-handle-west +{ + background-image:url(../images/default/sizer/e-handle.gif); +} + +.x-resizable-over .x-resizable-handle-south, .x-resizable-pinned .x-resizable-handle-south, +.x-resizable-over .x-resizable-handle-north, .x-resizable-pinned .x-resizable-handle-north +{ + background-image:url(../images/default/sizer/s-handle.gif); +} + +.x-resizable-over .x-resizable-handle-north, .x-resizable-pinned .x-resizable-handle-north{ + background-image:url(../images/default/sizer/s-handle.gif); +} +.x-resizable-over .x-resizable-handle-southeast, .x-resizable-pinned .x-resizable-handle-southeast{ + background-image:url(../images/default/sizer/se-handle.gif); +} +.x-resizable-over .x-resizable-handle-northwest, .x-resizable-pinned .x-resizable-handle-northwest{ + background-image:url(../images/default/sizer/nw-handle.gif); +} +.x-resizable-over .x-resizable-handle-northeast, .x-resizable-pinned .x-resizable-handle-northeast{ + background-image:url(../images/default/sizer/ne-handle.gif); +} +.x-resizable-over .x-resizable-handle-southwest, .x-resizable-pinned .x-resizable-handle-southwest{ + background-image:url(../images/default/sizer/sw-handle.gif); +} +.x-resizable-proxy{ + border-color:#3b5a82; +} +.x-resizable-overlay{ + background-color:#fff; +} +.x-grid3 { + background-color:#fff; +} + +.x-grid-panel .x-panel-mc .x-panel-body { + border-color:#99bbe8; +} + +.x-grid3-row td, .x-grid3-summary-row td{ + font:normal 11px/13px arial, tahoma, helvetica, sans-serif; +} + +.x-grid3-hd-row td { + font:normal 11px/15px arial, tahoma, helvetica, sans-serif; +} + + +.x-grid3-hd-row td { + border-left-color:#eee; + border-right-color:#d0d0d0; +} + +.x-grid-row-loading { + background-color: #fff; + background-image:url(../images/default/shared/loading-balls.gif); +} + +.x-grid3-row { + border-color:#ededed; + border-top-color:#fff; +} + +.x-grid3-row-alt{ + background-color:#fafafa; +} + +.x-grid3-row-over { + border-color:#ddd; + background-color:#efefef; + background-image:url(../images/default/grid/row-over.gif); +} + +.x-grid3-resize-proxy { + background-color:#777; +} + +.x-grid3-resize-marker { + background-color:#777; +} + +.x-grid3-header{ + background-color:#f9f9f9; + background-image:url(../images/default/grid/grid3-hrow.gif); +} + +.x-grid3-header-pop { + border-left-color:#d0d0d0; +} + +.x-grid3-header-pop-inner { + border-left-color:#eee; + background-image:url(../images/default/grid/hd-pop.gif); +} + +td.x-grid3-hd-over, td.sort-desc, td.sort-asc, td.x-grid3-hd-menu-open { + border-left-color:#aaccf6; + border-right-color:#aaccf6; +} + +td.x-grid3-hd-over .x-grid3-hd-inner, td.sort-desc .x-grid3-hd-inner, td.sort-asc .x-grid3-hd-inner, td.x-grid3-hd-menu-open .x-grid3-hd-inner { + background-color:#ebf3fd; + background-image:url(../images/default/grid/grid3-hrow-over.gif); + +} + +.sort-asc .x-grid3-sort-icon { + background-image: url(../images/default/grid/sort_asc.gif); +} + +.sort-desc .x-grid3-sort-icon { + background-image: url(../images/default/grid/sort_desc.gif); +} + +.x-grid3-cell-text, .x-grid3-hd-text { + color:#000; +} + +.x-grid3-split { + background-image: url(../images/default/grid/grid-split.gif); +} + +.x-grid3-hd-text { + color:#15428b; +} + +.x-dd-drag-proxy .x-grid3-hd-inner{ + background-color:#ebf3fd; + background-image:url(../images/default/grid/grid3-hrow-over.gif); + border-color:#aaccf6; +} + +.col-move-top{ + background-image:url(../images/default/grid/col-move-top.gif); +} + +.col-move-bottom{ + background-image:url(../images/default/grid/col-move-bottom.gif); +} + +.x-grid3-row-selected { + background-color: #dfe8f6 !important; + background-image: none; + border-color:#a3bae9; +} + +.x-grid3-cell-selected{ + background-color: #b8cfee !important; + color:#000; +} + +.x-grid3-cell-selected span{ + color:#000 !important; +} + +.x-grid3-cell-selected .x-grid3-cell-text{ + color:#000; +} + +.x-grid3-locked td.x-grid3-row-marker, .x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker{ + background-color:#ebeadb !important; + background-image:url(../images/default/grid/grid-hrow.gif) !important; + color:#000; + border-top-color:#fff; + border-right-color:#6fa0df !important; +} + +.x-grid3-locked td.x-grid3-row-marker div, .x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker div{ + color:#15428b !important; +} + +.x-grid3-dirty-cell { + background-image:url(../images/default/grid/dirty.gif); +} + +.x-grid3-topbar, .x-grid3-bottombar{ + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-grid3-bottombar .x-toolbar{ + border-top-color:#a9bfd3; +} + +.x-props-grid .x-grid3-td-name .x-grid3-cell-inner{ + background-image:url(../images/default/grid/grid3-special-col-bg.gif) !important; + color:#000 !important; +} + +.x-props-grid .x-grid3-body .x-grid3-td-name{ + background-color:#fff !important; + border-right-color:#eee; +} + +.xg-hmenu-sort-asc .x-menu-item-icon{ + background-image: url(../images/default/grid/hmenu-asc.gif); +} + +.xg-hmenu-sort-desc .x-menu-item-icon{ + background-image: url(../images/default/grid/hmenu-desc.gif); +} + +.xg-hmenu-lock .x-menu-item-icon{ + background-image: url(../images/default/grid/hmenu-lock.gif); +} + +.xg-hmenu-unlock .x-menu-item-icon{ + background-image: url(../images/default/grid/hmenu-unlock.gif); +} + +.x-grid3-hd-btn { + background-color:#c3daf9; + background-image:url(../images/default/grid/grid3-hd-btn.gif); +} + +.x-grid3-body .x-grid3-td-expander { + background-image:url(../images/default/grid/grid3-special-col-bg.gif); +} + +.x-grid3-row-expander { + background-image:url(../images/default/grid/row-expand-sprite.gif); +} + +.x-grid3-body .x-grid3-td-checker { + background-image: url(../images/default/grid/grid3-special-col-bg.gif); +} + +.x-grid3-row-checker, .x-grid3-hd-checker { + background-image:url(../images/default/grid/row-check-sprite.gif); +} + +.x-grid3-body .x-grid3-td-numberer { + background-image:url(../images/default/grid/grid3-special-col-bg.gif); +} + +.x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner { + color:#444; +} + +.x-grid3-body .x-grid3-td-row-icon { + background-image:url(../images/default/grid/grid3-special-col-bg.gif); +} + +.x-grid3-body .x-grid3-row-selected .x-grid3-td-numberer, +.x-grid3-body .x-grid3-row-selected .x-grid3-td-checker, +.x-grid3-body .x-grid3-row-selected .x-grid3-td-expander { + background-image:url(../images/default/grid/grid3-special-col-sel-bg.gif); +} + +.x-grid3-check-col { + background-image:url(../images/default/menu/unchecked.gif); +} + +.x-grid3-check-col-on { + background-image:url(../images/default/menu/checked.gif); +} + +.x-grid-group, .x-grid-group-body, .x-grid-group-hd { + zoom:1; +} + +.x-grid-group-hd { + border-bottom-color:#99bbe8; +} + +.x-grid-group-hd div.x-grid-group-title { + background-image:url(../images/default/grid/group-collapse.gif); + color:#3764a0; + font:bold 11px tahoma, arial, helvetica, sans-serif; +} + +.x-grid-group-collapsed .x-grid-group-hd div.x-grid-group-title { + background-image:url(../images/default/grid/group-expand.gif); +} + +.x-group-by-icon { + background-image:url(../images/default/grid/group-by.gif); +} + +.x-cols-icon { + background-image:url(../images/default/grid/columns.gif); +} + +.x-show-groups-icon { + background-image:url(../images/default/grid/group-by.gif); +} + +.x-grid-empty { + color:gray; + font:normal 11px tahoma, arial, helvetica, sans-serif; +} + +.x-grid-with-col-lines .x-grid3-row td.x-grid3-cell { + border-right-color:#ededed; +} + +.x-grid-with-col-lines .x-grid3-row-selected { + border-top-color:#a3bae9; +}.x-dd-drag-ghost{ + color:#000; + font: normal 11px arial, helvetica, sans-serif; + border-color: #ddd #bbb #bbb #ddd; + background-color:#fff; +} + +.x-dd-drop-nodrop .x-dd-drop-icon{ + background-image: url(../images/default/dd/drop-no.gif); +} + +.x-dd-drop-ok .x-dd-drop-icon{ + background-image: url(../images/default/dd/drop-yes.gif); +} + +.x-dd-drop-ok-add .x-dd-drop-icon{ + background-image: url(../images/default/dd/drop-add.gif); +} + +.x-view-selector { + background-color:#c3daf9; + border-color:#3399bb; +}.x-tree-node-expanded .x-tree-node-icon{ + background-image:url(../images/default/tree/folder-open.gif); +} + +.x-tree-node-leaf .x-tree-node-icon{ + background-image:url(../images/default/tree/leaf.gif); +} + +.x-tree-node-collapsed .x-tree-node-icon{ + background-image:url(../images/default/tree/folder.gif); +} + +.x-tree-node-loading .x-tree-node-icon{ + background-image:url(../images/default/tree/loading.gif) !important; +} + +.x-tree-node .x-tree-node-inline-icon { + background-image: none; +} + +.x-tree-node-loading a span{ + font-style: italic; + color:#444444; +} + +.x-tree-lines .x-tree-elbow{ + background-image:url(../images/default/tree/elbow.gif); +} + +.x-tree-lines .x-tree-elbow-plus{ + background-image:url(../images/default/tree/elbow-plus.gif); +} + +.x-tree-lines .x-tree-elbow-minus{ + background-image:url(../images/default/tree/elbow-minus.gif); +} + +.x-tree-lines .x-tree-elbow-end{ + background-image:url(../images/default/tree/elbow-end.gif); +} + +.x-tree-lines .x-tree-elbow-end-plus{ + background-image:url(../images/default/tree/elbow-end-plus.gif); +} + +.x-tree-lines .x-tree-elbow-end-minus{ + background-image:url(../images/default/tree/elbow-end-minus.gif); +} + +.x-tree-lines .x-tree-elbow-line{ + background-image:url(../images/default/tree/elbow-line.gif); +} + +.x-tree-no-lines .x-tree-elbow-plus{ + background-image:url(../images/default/tree/elbow-plus-nl.gif); +} + +.x-tree-no-lines .x-tree-elbow-minus{ + background-image:url(../images/default/tree/elbow-minus-nl.gif); +} + +.x-tree-no-lines .x-tree-elbow-end-plus{ + background-image:url(../images/default/tree/elbow-end-plus-nl.gif); +} + +.x-tree-no-lines .x-tree-elbow-end-minus{ + background-image:url(../images/default/tree/elbow-end-minus-nl.gif); +} + +.x-tree-arrows .x-tree-elbow-plus{ + background-image:url(../images/default/tree/arrows.gif); +} + +.x-tree-arrows .x-tree-elbow-minus{ + background-image:url(../images/default/tree/arrows.gif); +} + +.x-tree-arrows .x-tree-elbow-end-plus{ + background-image:url(../images/default/tree/arrows.gif); +} + +.x-tree-arrows .x-tree-elbow-end-minus{ + background-image:url(../images/default/tree/arrows.gif); +} + +.x-tree-node{ + color:#000; + font: normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-tree-node a, .x-dd-drag-ghost a{ + color:#000; +} + +.x-tree-node a span, .x-dd-drag-ghost a span{ + color:#000; +} + +.x-tree-node .x-tree-node-disabled a span{ + color:gray !important; +} + +.x-tree-node div.x-tree-drag-insert-below{ + border-bottom-color:#36c; +} + +.x-tree-node div.x-tree-drag-insert-above{ + border-top-color:#36c; +} + +.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below a{ + border-bottom-color:#36c; +} + +.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above a{ + border-top-color:#36c; +} + +.x-tree-node .x-tree-drag-append a span{ + background-color:#ddd; + border-color:gray; +} + +.x-tree-node .x-tree-node-over { + background-color: #eee; +} + +.x-tree-node .x-tree-selected { + background-color: #d9e8fb; +} + +.x-tree-drop-ok-append .x-dd-drop-icon{ + background-image: url(../images/default/tree/drop-add.gif); +} + +.x-tree-drop-ok-above .x-dd-drop-icon{ + background-image: url(../images/default/tree/drop-over.gif); +} + +.x-tree-drop-ok-below .x-dd-drop-icon{ + background-image: url(../images/default/tree/drop-under.gif); +} + +.x-tree-drop-ok-between .x-dd-drop-icon{ + background-image: url(../images/default/tree/drop-between.gif); +}.x-date-picker { + border-color: #1b376c; + background-color:#fff; +} + +.x-date-middle,.x-date-left,.x-date-right { + background-image: url(../images/default/shared/hd-sprite.gif); + color:#fff; + font:bold 11px "sans serif", tahoma, verdana, helvetica; +} + +.x-date-middle .x-btn .x-btn-text { + color:#fff; +} + +.x-date-middle .x-btn-mc em.x-btn-arrow { + background-image:url(../images/default/toolbar/btn-arrow-light.gif); +} + +.x-date-right a { + background-image: url(../images/default/shared/right-btn.gif); +} + +.x-date-left a{ + background-image: url(../images/default/shared/left-btn.gif); +} + +.x-date-inner th { + background-color:#dfecfb; + background-image:url(../images/default/shared/glass-bg.gif); + border-bottom-color:#a3bad9; + font:normal 10px arial, helvetica,tahoma,sans-serif; + color:#233d6d; +} + +.x-date-inner td { + border-color:#fff; +} + +.x-date-inner a { + font:normal 11px arial, helvetica,tahoma,sans-serif; + color:#000; +} + +.x-date-inner .x-date-active{ + color:#000; +} + +.x-date-inner .x-date-selected a{ + background-color:#dfecfb; + background-image:url(../images/default/shared/glass-bg.gif); + border-color:#8db2e3; +} + +.x-date-inner .x-date-today a{ + border-color:darkred; +} + +.x-date-inner .x-date-selected span{ + font-weight:bold; +} + +.x-date-inner .x-date-prevday a,.x-date-inner .x-date-nextday a { + color:#aaa; +} + +.x-date-bottom { + border-top-color:#a3bad9; + background-color:#dfecfb; + background-image:url(../images/default/shared/glass-bg.gif); +} + +.x-date-inner a:hover, .x-date-inner .x-date-disabled a:hover{ + color:#000; + background-color:#ddecfe; +} + +.x-date-inner .x-date-disabled a { + background-color:#eee; + color:#bbb; +} + +.x-date-mmenu{ + background-color:#eee !important; +} + +.x-date-mmenu .x-menu-item { + font-size:10px; + color:#000; +} + +.x-date-mp { + background-color:#fff; +} + +.x-date-mp td { + font:normal 11px arial, helvetica,tahoma,sans-serif; +} + +.x-date-mp-btns button { + background-color:#083772; + color:#fff; + border-color: #3366cc #000055 #000055 #3366cc; + font:normal 11px arial, helvetica,tahoma,sans-serif; +} + +.x-date-mp-btns { + background-color: #dfecfb; + background-image: url(../images/default/shared/glass-bg.gif); +} + +.x-date-mp-btns td { + border-top-color: #c5d2df; +} + +td.x-date-mp-month a,td.x-date-mp-year a { + color:#15428b; +} + +td.x-date-mp-month a:hover,td.x-date-mp-year a:hover { + color:#15428b; + background-color: #ddecfe; +} + +td.x-date-mp-sel a { + background-color: #dfecfb; + background-image: url(../images/default/shared/glass-bg.gif); + border-color:#8db2e3; +} + +.x-date-mp-ybtn a { + background-image:url(../images/default/panel/tool-sprites.gif); +} + +td.x-date-mp-sep { + border-right-color:#c5d2df; +}.x-tip .x-tip-close{ + background-image: url(../images/default/qtip/close.gif); +} + +.x-tip .x-tip-tc, .x-tip .x-tip-tl, .x-tip .x-tip-tr, .x-tip .x-tip-bc, .x-tip .x-tip-bl, .x-tip .x-tip-br, .x-tip .x-tip-ml, .x-tip .x-tip-mr { + background-image: url(../images/default/qtip/tip-sprite.gif); +} + +.x-tip .x-tip-mc { + font: normal 11px tahoma,arial,helvetica,sans-serif; +} +.x-tip .x-tip-ml { + background-color: #fff; +} + +.x-tip .x-tip-header-text { + font: bold 11px tahoma,arial,helvetica,sans-serif; + color:#444; +} + +.x-tip .x-tip-body { + font: normal 11px tahoma,arial,helvetica,sans-serif; + color:#444; +} + +.x-form-invalid-tip .x-tip-tc, .x-form-invalid-tip .x-tip-tl, .x-form-invalid-tip .x-tip-tr, .x-form-invalid-tip .x-tip-bc, +.x-form-invalid-tip .x-tip-bl, .x-form-invalid-tip .x-tip-br, .x-form-invalid-tip .x-tip-ml, .x-form-invalid-tip .x-tip-mr +{ + background-image: url(../images/default/form/error-tip-corners.gif); +} + +.x-form-invalid-tip .x-tip-body { + background-image:url(../images/default/form/exclamation.gif); +} + +.x-tip-anchor { + background-image:url(../images/default/qtip/tip-anchor-sprite.gif); +}.x-menu { + background-color:#f0f0f0; + background-image:url(../images/default/menu/menu.gif); +} + +.x-menu-floating{ + border-color:#718bb7; +} + +.x-menu-nosep { + background-image:none; +} + +.x-menu-list-item{ + font:normal 11px arial,tahoma,sans-serif; +} + +.x-menu-item-arrow{ + background-image:url(../images/default/menu/menu-parent.gif); +} + +.x-menu-sep { + background-color:#e0e0e0; + border-bottom-color:#fff; +} + +a.x-menu-item { + color:#222; +} + +.x-menu-item-active { + background-image: url(../images/default/menu/item-over.gif); + background-color: #dbecf4; + border-color:#aaccf6; +} + +.x-menu-item-active a.x-menu-item { + border-color:#aaccf6; +} + +.x-menu-check-item .x-menu-item-icon{ + background-image:url(../images/default/menu/unchecked.gif); +} + +.x-menu-item-checked .x-menu-item-icon{ + background-image:url(../images/default/menu/checked.gif); +} + +.x-menu-item-checked .x-menu-group-item .x-menu-item-icon{ + background-image:url(../images/default/menu/group-checked.gif); +} + +.x-menu-group-item .x-menu-item-icon{ + background-image:none; +} + +.x-menu-plain { + background-color:#f0f0f0 !important; + background-image: none; +} + +.x-date-menu, .x-color-menu{ + background-color: #fff !important; +} + +.x-menu .x-date-picker{ + border-color:#a3bad9; +} + +.x-cycle-menu .x-menu-item-checked { + border-color:#a3bae9 !important; + background-color:#def8f6; +} + +.x-menu-scroller-top { + background-image:url(../images/default/layout/mini-top.gif); +} + +.x-menu-scroller-bottom { + background-image:url(../images/default/layout/mini-bottom.gif); +} +.x-box-tl { + background-image: url(../images/default/box/corners.gif); +} + +.x-box-tc { + background-image: url(../images/default/box/tb.gif); +} + +.x-box-tr { + background-image: url(../images/default/box/corners.gif); +} + +.x-box-ml { + background-image: url(../images/default/box/l.gif); +} + +.x-box-mc { + background-color: #eee; + background-image: url(../images/default/box/tb.gif); + font-family: "Myriad Pro","Myriad Web","Tahoma","Helvetica","Arial",sans-serif; + color: #393939; + font-size: 12px; +} + +.x-box-mc h3 { + font-size: 14px; + font-weight: bold; +} + +.x-box-mr { + background-image: url(../images/default/box/r.gif); +} + +.x-box-bl { + background-image: url(../images/default/box/corners.gif); +} + +.x-box-bc { + background-image: url(../images/default/box/tb.gif); +} + +.x-box-br { + background-image: url(../images/default/box/corners.gif); +} + +.x-box-blue .x-box-bl, .x-box-blue .x-box-br, .x-box-blue .x-box-tl, .x-box-blue .x-box-tr { + background-image: url(../images/default/box/corners-blue.gif); +} + +.x-box-blue .x-box-bc, .x-box-blue .x-box-mc, .x-box-blue .x-box-tc { + background-image: url(../images/default/box/tb-blue.gif); +} + +.x-box-blue .x-box-mc { + background-color: #c3daf9; +} + +.x-box-blue .x-box-mc h3 { + color: #17385b; +} + +.x-box-blue .x-box-ml { + background-image: url(../images/default/box/l-blue.gif); +} + +.x-box-blue .x-box-mr { + background-image: url(../images/default/box/r-blue.gif); +}.x-combo-list { + border-color:#98c0f4; + background-color:#ddecfe; + font:normal 12px tahoma, arial, helvetica, sans-serif; +} + +.x-combo-list-inner { + background-color:#fff; +} + +.x-combo-list-hd { + font:bold 11px tahoma, arial, helvetica, sans-serif; + color:#15428b; + background-image: url(../images/default/layout/panel-title-light-bg.gif); + border-bottom-color:#98c0f4; +} + +.x-resizable-pinned .x-combo-list-inner { + border-bottom-color:#98c0f4; +} + +.x-combo-list-item { + border-color:#fff; +} + +.x-combo-list .x-combo-selected{ + border-color:#a3bae9 !important; + background-color:#dfe8f6; +} + +.x-combo-list .x-toolbar { + border-top-color:#98c0f4; +} + +.x-combo-list-small { + font:normal 11px tahoma, arial, helvetica, sans-serif; +}.x-panel { + border-color: #99bbe8; +} + +.x-panel-header { + color:#15428b; + font-weight:bold; + font-size: 11px; + font-family: tahoma,arial,verdana,sans-serif; + border-color:#99bbe8; + background-image: url(../images/default/panel/white-top-bottom.gif); +} + +.x-panel-body { + border-color:#99bbe8; + background-color:#fff; +} + +.x-panel-bbar .x-toolbar, .x-panel-tbar .x-toolbar { + border-color:#99bbe8; +} + +.x-panel-tbar-noheader .x-toolbar, .x-panel-mc .x-panel-tbar .x-toolbar { + border-top-color:#99bbe8; +} + +.x-panel-body-noheader, .x-panel-mc .x-panel-body { + border-top-color:#99bbe8; +} + +.x-panel-tl .x-panel-header { + color:#15428b; + font:bold 11px tahoma,arial,verdana,sans-serif; +} + +.x-panel-tc { + background-image: url(../images/default/panel/top-bottom.gif); +} + +.x-panel-tl, .x-panel-tr, .x-panel-bl, .x-panel-br{ + background-image: url(../images/default/panel/corners-sprite.gif); + border-bottom-color:#99bbe8; +} + +.x-panel-bc { + background-image: url(../images/default/panel/top-bottom.gif); +} + +.x-panel-mc { + font: normal 11px tahoma,arial,helvetica,sans-serif; + background-color:#dfe8f6; +} + +.x-panel-ml { + background-color: #fff; + background-image:url(../images/default/panel/left-right.gif); +} + +.x-panel-mr { + background-image: url(../images/default/panel/left-right.gif); +} + +.x-tool { + background-image:url(../images/default/panel/tool-sprites.gif); +} + +.x-panel-ghost { + background-color:#cbddf3; +} + +.x-panel-ghost ul { + border-color:#99bbe8; +} + +.x-panel-dd-spacer { + border-color:#99bbe8; +} + +.x-panel-fbar td,.x-panel-fbar span,.x-panel-fbar input,.x-panel-fbar div,.x-panel-fbar select,.x-panel-fbar label{ + font:normal 11px arial,tahoma, helvetica, sans-serif; +} +.x-window-proxy { + background-color:#c7dffc; + border-color:#99bbe8; +} + +.x-window-tl .x-window-header { + color:#15428b; + font:bold 11px tahoma,arial,verdana,sans-serif; +} + +.x-window-tc { + background-image: url(../images/default/window/top-bottom.png); +} + +.x-window-tl { + background-image: url(../images/default/window/left-corners.png); +} + +.x-window-tr { + background-image: url(../images/default/window/right-corners.png); +} + +.x-window-bc { + background-image: url(../images/default/window/top-bottom.png); +} + +.x-window-bl { + background-image: url(../images/default/window/left-corners.png); +} + +.x-window-br { + background-image: url(../images/default/window/right-corners.png); +} + +.x-window-mc { + border-color:#99bbe8; + font: normal 11px tahoma,arial,helvetica,sans-serif; + background-color:#dfe8f6; +} + +.x-window-ml { + background-image: url(../images/default/window/left-right.png); +} + +.x-window-mr { + background-image: url(../images/default/window/left-right.png); +} + +.x-window-maximized .x-window-tc { + background-color:#fff; +} + +.x-window-bbar .x-toolbar { + border-top-color:#99bbe8; +} + +.x-panel-ghost .x-window-tl { + border-bottom-color:#99bbe8; +} + +.x-panel-collapsed .x-window-tl { + border-bottom-color:#84a0c4; +} + +.x-dlg-mask{ + background-color:#ccc; +} + +.x-window-plain .x-window-mc { + background-color: #ccd9e8; + border-color: #a3bae9 #dfe8f6 #dfe8f6 #a3bae9; +} + +.x-window-plain .x-window-body { + border-color: #dfe8f6 #a3bae9 #a3bae9 #dfe8f6; +} + +body.x-body-masked .x-window-plain .x-window-mc { + background-color: #ccd9e8; +}.x-html-editor-wrap { + border-color:#a9bfd3; + background-color:#fff; +} +.x-html-editor-tb .x-btn-text { + background-image:url(../images/default/editor/tb-sprite.gif); +}.x-panel-noborder .x-panel-header-noborder { + border-bottom-color:#99bbe8; +} + +.x-panel-noborder .x-panel-tbar-noborder .x-toolbar { + border-bottom-color:#99bbe8; +} + +.x-panel-noborder .x-panel-bbar-noborder .x-toolbar { + border-top-color:#99bbe8; +} + +.x-tab-panel-bbar-noborder .x-toolbar { + border-top-color:#99bbe8; +} + +.x-tab-panel-tbar-noborder .x-toolbar { + border-bottom-color:#99bbe8; +}.x-border-layout-ct { + background-color:#dfe8f6; +} + +.x-accordion-hd { + color:#222; + font-weight:normal; + background-image: url(../images/default/panel/light-hd.gif); +} + +.x-layout-collapsed{ + background-color:#d2e0f2; + border-color:#98c0f4; +} + +.x-layout-collapsed-over{ + background-color:#d9e8fb; +} + +.x-layout-split-west .x-layout-mini { + background-image:url(../images/default/layout/mini-left.gif); +} +.x-layout-split-east .x-layout-mini { + background-image:url(../images/default/layout/mini-right.gif); +} +.x-layout-split-north .x-layout-mini { + background-image:url(../images/default/layout/mini-top.gif); +} +.x-layout-split-south .x-layout-mini { + background-image:url(../images/default/layout/mini-bottom.gif); +} + +.x-layout-cmini-west .x-layout-mini { + background-image:url(../images/default/layout/mini-right.gif); +} + +.x-layout-cmini-east .x-layout-mini { + background-image:url(../images/default/layout/mini-left.gif); +} + +.x-layout-cmini-north .x-layout-mini { + background-image:url(../images/default/layout/mini-bottom.gif); +} + +.x-layout-cmini-south .x-layout-mini { + background-image:url(../images/default/layout/mini-top.gif); +}.x-progress-wrap { + border-color:#6593cf; +} + +.x-progress-inner { + background-color:#e0e8f3; + background-image:url(../images/default/qtip/bg.gif); +} + +.x-progress-bar { + background-color:#9cbfee; + background-image:url(../images/default/progress/progress-bg.gif); + border-top-color:#d1e4fd; + border-bottom-color:#7fa9e4; + border-right-color:#7fa9e4; +} + +.x-progress-text { + font-size:11px; + font-weight:bold; + color:#fff; +} + +.x-progress-text-back { + color:#396095; +}.x-list-header{ + background-color:#f9f9f9; + background-image:url(../images/default/grid/grid3-hrow.gif); +} + +.x-list-header-inner div em { + border-left-color:#ddd; + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-list-body dt em { + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-list-over { + background-color:#eee; +} + +.x-list-selected { + background-color:#dfe8f6; +} + +.x-list-resizer { + border-left-color:#555; + border-right-color:#555; +} + +.x-list-header-inner em.sort-asc, .x-list-header-inner em.sort-desc { + background-image:url(../images/default/grid/sort-hd.gif); + border-color: #99bbe8; +}.x-slider-horz, .x-slider-horz .x-slider-end, .x-slider-horz .x-slider-inner { + background-image:url(../images/default/slider/slider-bg.png); +} + +.x-slider-horz .x-slider-thumb { + background-image:url(../images/default/slider/slider-thumb.png); +} + +.x-slider-vert, .x-slider-vert .x-slider-end, .x-slider-vert .x-slider-inner { + background-image:url(../images/default/slider/slider-v-bg.png); +} + +.x-slider-vert .x-slider-thumb { + background-image:url(../images/default/slider/slider-v-thumb.png); +}.x-window-dlg .ext-mb-text, +.x-window-dlg .x-window-header-text { + font-size:12px; +} + +.x-window-dlg .ext-mb-textarea { + font:normal 12px tahoma,arial,helvetica,sans-serif; +} + +.x-window-dlg .x-msg-box-wait { + background-image:url(../images/default/grid/loading.gif); +} + +.x-window-dlg .ext-mb-info { + background-image:url(../images/default/window/icon-info.gif); +} + +.x-window-dlg .ext-mb-warning { + background-image:url(../images/default/window/icon-warning.gif); +} + +.x-window-dlg .ext-mb-question { + background-image:url(../images/default/window/icon-question.gif); +} + +.x-window-dlg .ext-mb-error { + background-image:url(../images/default/window/icon-error.gif); +} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/css/xtheme-gray.css b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/css/xtheme-gray.css new file mode 100644 index 00000000..5801f454 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/css/xtheme-gray.css @@ -0,0 +1,1654 @@ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +.ext-el-mask { + background-color: #ccc; +} + +.ext-el-mask-msg { + border-color:#999; + background-color:#ddd; + background-image:url(../images/gray/panel/white-top-bottom.gif); + background-position: 0 -1px; +} +.ext-el-mask-msg div { + background-color: #eee; + border-color:#d0d0d0; + color:#222; + font:normal 11px tahoma, arial, helvetica, sans-serif; +} + +.x-mask-loading div { + background-color:#fbfbfb; + background-image:url(../images/default/grid/loading.gif); +} + +.x-item-disabled { + color: gray; +} + +.x-item-disabled * { + color: gray !important; +} + +.x-splitbar-proxy { + background-color: #aaa; +} + +.x-color-palette a { + border-color:#fff; +} + +.x-color-palette a:hover, .x-color-palette a.x-color-palette-sel { + border-color:#CFCFCF; + background-color: #eaeaea; +} + +.x-color-palette em:hover, .x-color-palette span:hover{ + background-color: #eaeaea; +} + +.x-color-palette em { + border-color:#aca899; +} + +.x-ie-shadow { + background-color:#777; +} + +.x-shadow .xsmc { + background-image: url(../images/default/shadow-c.png); +} + +.x-shadow .xsml, .x-shadow .xsmr { + background-image: url(../images/default/shadow-lr.png); +} + +.x-shadow .xstl, .x-shadow .xstc, .x-shadow .xstr, .x-shadow .xsbl, .x-shadow .xsbc, .x-shadow .xsbr{ + background-image: url(../images/default/shadow.png); +} + +.loading-indicator { + font-size: 11px; + background-image: url(../images/default/grid/loading.gif); +} + +.x-spotlight { + background-color: #ccc; +}.x-tab-panel-header, .x-tab-panel-footer { + background-color: #eaeaea; + border-color:#d0d0d0; + overflow:hidden; + zoom:1; +} + +.x-tab-panel-header, .x-tab-panel-footer { + border-color:#d0d0d0; +} + +ul.x-tab-strip-top{ + background-color:#dbdbdb; + background-image: url(../images/gray/tabs/tab-strip-bg.gif); + border-bottom-color:#d0d0d0; +} + +ul.x-tab-strip-bottom{ + background-color:#dbdbdb; + background-image: url(../images/gray/tabs/tab-strip-btm-bg.gif); + border-top-color:#d0d0d0; +} + +.x-tab-panel-header-plain .x-tab-strip-spacer, +.x-tab-panel-footer-plain .x-tab-strip-spacer { + border-color:#d0d0d0; + background-color: #eaeaea; +} + +.x-tab-strip span.x-tab-strip-text { + font:normal 11px tahoma,arial,helvetica; + color:#333; +} + +.x-tab-strip-over span.x-tab-strip-text { + color:#111; +} + +.x-tab-strip-active span.x-tab-strip-text { + color:#333; + font-weight:bold; +} + +.x-tab-strip-disabled .x-tabs-text { + color:#aaaaaa; +} + +.x-tab-strip-top .x-tab-right, .x-tab-strip-top .x-tab-left, .x-tab-strip-top .x-tab-strip-inner{ + background-image: url(../images/gray/tabs/tabs-sprite.gif); +} + +.x-tab-strip-bottom .x-tab-right { + background-image: url(../images/gray/tabs/tab-btm-inactive-right-bg.gif); +} + +.x-tab-strip-bottom .x-tab-left { + background-image: url(../images/gray/tabs/tab-btm-inactive-left-bg.gif); +} + +.x-tab-strip-bottom .x-tab-strip-over .x-tab-left { + background-image: url(../images/gray/tabs/tab-btm-over-left-bg.gif); +} + +.x-tab-strip-bottom .x-tab-strip-over .x-tab-right { + background-image: url(../images/gray/tabs/tab-btm-over-right-bg.gif); +} + +.x-tab-strip-bottom .x-tab-strip-active .x-tab-right { + background-image: url(../images/gray/tabs/tab-btm-right-bg.gif); +} + +.x-tab-strip-bottom .x-tab-strip-active .x-tab-left { + background-image: url(../images/gray/tabs/tab-btm-left-bg.gif); +} + +.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { + background-image:url(../images/gray/tabs/tab-close.gif); +} + +.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{ + background-image:url(../images/gray/tabs/tab-close.gif); +} + +.x-tab-panel-body { + border-color:#d0d0d0; + background-color:#fff; +} + +.x-tab-panel-body-top { + border-top: 0 none; +} + +.x-tab-panel-body-bottom { + border-bottom: 0 none; +} + +.x-tab-scroller-left { + background-image:url(../images/gray/tabs/scroll-left.gif); + border-bottom-color:#d0d0d0; +} + +.x-tab-scroller-left-over { + background-position: 0 0; +} + +.x-tab-scroller-left-disabled { + background-position: -18px 0; + opacity:.5; + -moz-opacity:.5; + filter:alpha(opacity=50); + cursor:default; +} + +.x-tab-scroller-right { + background-image:url(../images/gray/tabs/scroll-right.gif); + border-bottom-color:#d0d0d0; +} + +.x-tab-panel-bbar .x-toolbar, .x-tab-panel-tbar .x-toolbar { + border-color:#d0d0d0; +} +.x-form-field{ + font:normal 12px tahoma, arial, helvetica, sans-serif; +} + +.x-form-text, textarea.x-form-field{ + background-color:#fff; + background-image:url(../images/default/form/text-bg.gif); + border-color:#C1C1C1; +} + +.x-form-select-one { + background-color:#fff; + border-color:#C1C1C1; +} + +.x-form-check-group-label { + border-bottom: 1px solid #d0d0d0; + color: #333; +} + +.x-editor .x-form-check-wrap { + background-color:#fff; +} + +.x-form-field-wrap .x-form-trigger{ + background-image:url(../images/gray/form/trigger.gif); + border-bottom-color:#b5b8c8; +} + +.x-form-field-wrap .x-form-date-trigger{ + background-image: url(../images/gray/form/date-trigger.gif); +} + +.x-form-field-wrap .x-form-clear-trigger{ + background-image: url(../images/gray/form/clear-trigger.gif); +} + +.x-form-field-wrap .x-form-search-trigger{ + background-image: url(../images/gray/form/search-trigger.gif); +} + +.x-trigger-wrap-focus .x-form-trigger{ + border-bottom-color: #777777; +} + +.x-item-disabled .x-form-trigger-over{ + border-bottom-color:#b5b8c8; +} + +.x-item-disabled .x-form-trigger-click{ + border-bottom-color:#b5b8c8; +} + +.x-form-focus, textarea.x-form-focus{ + border-color:#777777; +} + +.x-form-invalid, textarea.x-form-invalid{ + background-color:#fff; + background-image:url(../images/default/grid/invalid_line.gif); + border-color:#c30; +} + +.ext-webkit .x-form-invalid{ + background-color:#fee; + border-color:#ff7870; +} + +.x-form-inner-invalid, textarea.x-form-inner-invalid{ + background-color:#fff; + background-image:url(../images/default/grid/invalid_line.gif); +} + +.x-form-grow-sizer { + font:normal 12px tahoma, arial, helvetica, sans-serif; +} + +.x-form-item { + font:normal 12px tahoma, arial, helvetica, sans-serif; +} + +.x-form-invalid-msg { + color:#c0272b; + font:normal 11px tahoma, arial, helvetica, sans-serif; + background-image:url(../images/default/shared/warning.gif); +} + +.x-form-empty-field { + color:gray; +} + +.x-small-editor .x-form-field { + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.ext-webkit .x-small-editor .x-form-field { + font:normal 12px arial, tahoma, helvetica, sans-serif; +} + +.x-form-invalid-icon { + background-image:url(../images/default/form/exclamation.gif); +} + +.x-fieldset { + border-color:#CCCCCC; +} + +.x-fieldset legend { + font:bold 11px tahoma, arial, helvetica, sans-serif; + color:#777777; +}.x-btn{ + font:normal 11px tahoma, verdana, helvetica; +} + +.x-btn button{ + font:normal 11px arial,tahoma,verdana,helvetica; + color:#333; +} + +.x-btn em { + font-style:normal; + font-weight:normal; +} + +.x-btn-tl, .x-btn-tr, .x-btn-tc, .x-btn-ml, .x-btn-mr, .x-btn-mc, .x-btn-bl, .x-btn-br, .x-btn-bc{ + background-image:url(../images/gray/button/btn.gif); +} + +.x-btn-click .x-btn-text, .x-btn-menu-active .x-btn-text, .x-btn-pressed .x-btn-text{ + color:#000; +} + +.x-btn-disabled *{ + color:gray !important; +} + +.x-btn-mc em.x-btn-arrow { + background-image:url(../images/default/button/arrow.gif); +} + +.x-btn-mc em.x-btn-split { + background-image:url(../images/default/button/s-arrow.gif); +} + +.x-btn-over .x-btn-mc em.x-btn-split, .x-btn-click .x-btn-mc em.x-btn-split, .x-btn-menu-active .x-btn-mc em.x-btn-split, .x-btn-pressed .x-btn-mc em.x-btn-split { + background-image:url(../images/gray/button/s-arrow-o.gif); +} + +.x-btn-mc em.x-btn-arrow-bottom { + background-image:url(../images/default/button/s-arrow-b-noline.gif); +} + +.x-btn-mc em.x-btn-split-bottom { + background-image:url(../images/default/button/s-arrow-b.gif); +} + +.x-btn-over .x-btn-mc em.x-btn-split-bottom, .x-btn-click .x-btn-mc em.x-btn-split-bottom, .x-btn-menu-active .x-btn-mc em.x-btn-split-bottom, .x-btn-pressed .x-btn-mc em.x-btn-split-bottom { + background-image:url(../images/gray/button/s-arrow-bo.gif); +} + +.x-btn-group-header { + color: #666; +} + +.x-btn-group-tc { + background-image: url(../images/gray/button/group-tb.gif); +} + +.x-btn-group-tl { + background-image: url(../images/gray/button/group-cs.gif); +} + +.x-btn-group-tr { + background-image: url(../images/gray/button/group-cs.gif); +} + +.x-btn-group-bc { + background-image: url(../images/gray/button/group-tb.gif); +} + +.x-btn-group-bl { + background-image: url(../images/gray/button/group-cs.gif); +} + +.x-btn-group-br { + background-image: url(../images/gray/button/group-cs.gif); +} + +.x-btn-group-ml { + background-image: url(../images/gray/button/group-lr.gif); +} +.x-btn-group-mr { + background-image: url(../images/gray/button/group-lr.gif); +} + +.x-btn-group-notitle .x-btn-group-tc { + background-image: url(../images/gray/button/group-tb.gif); +} +.x-toolbar{ + border-color:#d0d0d0; + background-color:#f0f0f0; + background-image:url(../images/gray/toolbar/bg.gif); +} + +.x-toolbar td,.x-toolbar span,.x-toolbar input,.x-toolbar div,.x-toolbar select,.x-toolbar label{ + font:normal 11px arial,tahoma, helvetica, sans-serif; +} + +.x-toolbar .x-item-disabled { + color:gray; +} + +.x-toolbar .x-item-disabled * { + color:gray; +} + +.x-toolbar .x-btn-mc em.x-btn-split { + background-image:url(../images/default/button/s-arrow-noline.gif); +} + +.x-toolbar .x-btn-over .x-btn-mc em.x-btn-split, .x-toolbar .x-btn-click .x-btn-mc em.x-btn-split, +.x-toolbar .x-btn-menu-active .x-btn-mc em.x-btn-split, .x-toolbar .x-btn-pressed .x-btn-mc em.x-btn-split +{ + background-image:url(../images/gray/button/s-arrow-o.gif); +} + +.x-toolbar .x-btn-mc em.x-btn-split-bottom { + background-image:url(../images/default/button/s-arrow-b-noline.gif); +} + +.x-toolbar .x-btn-over .x-btn-mc em.x-btn-split-bottom, .x-toolbar .x-btn-click .x-btn-mc em.x-btn-split-bottom, +.x-toolbar .x-btn-menu-active .x-btn-mc em.x-btn-split-bottom, .x-toolbar .x-btn-pressed .x-btn-mc em.x-btn-split-bottom +{ + background-image:url(../images/gray/button/s-arrow-bo.gif); +} + +.x-toolbar .xtb-sep { + background-image: url(../images/default/grid/grid-split.gif); +} + +.x-tbar-page-first{ + background-image: url(../images/gray/grid/page-first.gif) !important; +} + +.x-tbar-loading{ + background-image: url(../images/gray/grid/refresh.gif) !important; +} + +.x-tbar-page-last{ + background-image: url(../images/gray/grid/page-last.gif) !important; +} + +.x-tbar-page-next{ + background-image: url(../images/gray/grid/page-next.gif) !important; +} + +.x-tbar-page-prev{ + background-image: url(../images/gray/grid/page-prev.gif) !important; +} + +.x-item-disabled .x-tbar-loading{ + background-image: url(../images/default/grid/loading.gif) !important; +} + +.x-item-disabled .x-tbar-page-first{ + background-image: url(../images/default/grid/page-first-disabled.gif) !important; +} + +.x-item-disabled .x-tbar-page-last{ + background-image: url(../images/default/grid/page-last-disabled.gif) !important; +} + +.x-item-disabled .x-tbar-page-next{ + background-image: url(../images/default/grid/page-next-disabled.gif) !important; +} + +.x-item-disabled .x-tbar-page-prev{ + background-image: url(../images/default/grid/page-prev-disabled.gif) !important; +} + +.x-paging-info { + color:#444; +} + +.x-toolbar-more-icon { + background-image: url(../images/gray/toolbar/more.gif) !important; +} +.x-resizable-handle { + background-color:#fff; +} + +.x-resizable-over .x-resizable-handle-east, .x-resizable-pinned .x-resizable-handle-east, +.x-resizable-over .x-resizable-handle-west, .x-resizable-pinned .x-resizable-handle-west +{ + background-image:url(../images/gray/sizer/e-handle.gif); +} + +.x-resizable-over .x-resizable-handle-south, .x-resizable-pinned .x-resizable-handle-south, +.x-resizable-over .x-resizable-handle-north, .x-resizable-pinned .x-resizable-handle-north +{ + background-image:url(../images/gray/sizer/s-handle.gif); +} + +.x-resizable-over .x-resizable-handle-north, .x-resizable-pinned .x-resizable-handle-north{ + background-image:url(../images/gray/sizer/s-handle.gif); +} +.x-resizable-over .x-resizable-handle-southeast, .x-resizable-pinned .x-resizable-handle-southeast{ + background-image:url(../images/gray/sizer/se-handle.gif); +} +.x-resizable-over .x-resizable-handle-northwest, .x-resizable-pinned .x-resizable-handle-northwest{ + background-image:url(../images/gray/sizer/nw-handle.gif); +} +.x-resizable-over .x-resizable-handle-northeast, .x-resizable-pinned .x-resizable-handle-northeast{ + background-image:url(../images/gray/sizer/ne-handle.gif); +} +.x-resizable-over .x-resizable-handle-southwest, .x-resizable-pinned .x-resizable-handle-southwest{ + background-image:url(../images/gray/sizer/sw-handle.gif); +} +.x-resizable-proxy{ + border-color:#565656; +} +.x-resizable-overlay{ + background-color:#fff; +} +.x-grid3 { + background-color:#fff; +} + +.x-grid-panel .x-panel-mc .x-panel-body { + border-color:#d0d0d0; +} + +.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td{ + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-grid3-hd-row td { + border-left-color:#eee; + border-right-color:#d0d0d0; +} + +.x-grid-row-loading { + background-color: #fff; + background-image:url(../images/default/shared/loading-balls.gif); +} + +.x-grid3-row { + border-color:#ededed; + border-top-color:#fff; +} + +.x-grid3-row-alt{ + background-color:#fafafa; +} + +.x-grid3-row-over { + border-color:#ddd; + background-color:#efefef; + background-image:url(../images/default/grid/row-over.gif); +} + +.x-grid3-resize-proxy { + background-color:#777; +} + +.x-grid3-resize-marker { + background-color:#777; +} + +.x-grid3-header{ + background-color:#f9f9f9; + background-image:url(../images/gray/grid/grid3-hrow2.gif); +} + +.x-grid3-header-pop { + border-left-color:#d0d0d0; +} + +.x-grid3-header-pop-inner { + border-left-color:#eee; + background-image:url(../images/default/grid/hd-pop.gif); +} + +td.x-grid3-hd-over, td.sort-desc, td.sort-asc, td.x-grid3-hd-menu-open { + border-left-color:#ACACAC; + border-right-color:#ACACAC; +} + +td.x-grid3-hd-over .x-grid3-hd-inner, td.sort-desc .x-grid3-hd-inner, td.sort-asc .x-grid3-hd-inner, td.x-grid3-hd-menu-open .x-grid3-hd-inner { + background-color:#f9f9f9; + background-image:url(../images/gray/grid/grid3-hrow-over2.gif); + +} + +.sort-asc .x-grid3-sort-icon { + background-image: url(../images/gray/grid/sort_asc.gif); +} + +.sort-desc .x-grid3-sort-icon { + background-image: url(../images/gray/grid/sort_desc.gif); +} + +.x-grid3-cell-text, .x-grid3-hd-text { + color:#000; +} + +.x-grid3-split { + background-image: url(../images/default/grid/grid-split.gif); +} + +.x-grid3-hd-text { + color:#333; +} + +.x-dd-drag-proxy .x-grid3-hd-inner{ + background-color:#f9f9f9; + background-image:url(../images/gray/grid/grid3-hrow-over2.gif); + border-color:#ACACAC; +} + +.col-move-top{ + background-image:url(../images/gray/grid/col-move-top.gif); +} + +.col-move-bottom{ + background-image:url(../images/gray/grid/col-move-bottom.gif); +} + +.x-grid3-row-selected { + background-color:#CCCCCC !important; + background-image: none; + border-color:#ACACAC; +} + +.x-grid3-cell-selected{ + background-color: #CBCBCB !important; + color:#000; +} + +.x-grid3-cell-selected span{ + color:#000 !important; +} + +.x-grid3-cell-selected .x-grid3-cell-text{ + color:#000; +} + +.x-grid3-locked td.x-grid3-row-marker, .x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker{ + background-color:#ebeadb !important; + background-image:url(../images/default/grid/grid-hrow.gif) !important; + color:#000; + border-top-color:#fff; + border-right-color:#6fa0df !important; +} + +.x-grid3-locked td.x-grid3-row-marker div, .x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker div{ + color:#333 !important; +} + +.x-grid3-dirty-cell { + background-image:url(../images/default/grid/dirty.gif); +} + +.x-grid3-topbar, .x-grid3-bottombar{ + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-grid3-bottombar .x-toolbar{ + border-top-color:#a9bfd3; +} + +.x-props-grid .x-grid3-td-name .x-grid3-cell-inner{ + background-image:url(../images/default/grid/grid3-special-col-bg.gif) !important; + color:#000 !important; +} + +.x-props-grid .x-grid3-body .x-grid3-td-name{ + background-color:#fff !important; + border-right-color:#eee; +} + +.xg-hmenu-sort-asc .x-menu-item-icon{ + background-image: url(../images/default/grid/hmenu-asc.gif); +} + +.xg-hmenu-sort-desc .x-menu-item-icon{ + background-image: url(../images/default/grid/hmenu-desc.gif); +} + +.xg-hmenu-lock .x-menu-item-icon{ + background-image: url(../images/default/grid/hmenu-lock.gif); +} + +.xg-hmenu-unlock .x-menu-item-icon{ + background-image: url(../images/default/grid/hmenu-unlock.gif); +} + +.x-grid3-hd-btn { + background-color:#f9f9f9; + background-image:url(../images/gray/grid/grid3-hd-btn.gif); +} + +.x-grid3-body .x-grid3-td-expander { + background-image:url(../images/default/grid/grid3-special-col-bg.gif); +} + +.x-grid3-row-expander { + background-image:url(../images/gray/grid/row-expand-sprite.gif); +} + +.x-grid3-body .x-grid3-td-checker { + background-image: url(../images/default/grid/grid3-special-col-bg.gif); +} + +.x-grid3-row-checker, .x-grid3-hd-checker { + background-image:url(../images/default/grid/row-check-sprite.gif); +} + +.x-grid3-body .x-grid3-td-numberer { + background-image:url(../images/default/grid/grid3-special-col-bg.gif); +} + +.x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner { + color:#444; +} + +.x-grid3-body .x-grid3-td-row-icon { + background-image:url(../images/default/grid/grid3-special-col-bg.gif); +} + +.x-grid3-body .x-grid3-row-selected .x-grid3-td-numberer, +.x-grid3-body .x-grid3-row-selected .x-grid3-td-checker, +.x-grid3-body .x-grid3-row-selected .x-grid3-td-expander { + background-image:url(../images/gray/grid/grid3-special-col-sel-bg.gif); +} + +.x-grid3-check-col { + background-image:url(../images/default/menu/unchecked.gif); +} + +.x-grid3-check-col-on { + background-image:url(../images/default/menu/checked.gif); +} + +.x-grid-group, .x-grid-group-body, .x-grid-group-hd { + zoom:1; +} + +.x-grid-group-hd { + border-bottom-color:#d0d0d0; +} + +.x-grid-group-hd div.x-grid-group-title { + background-image:url(../images/gray/grid/group-collapse.gif); + color:#5F5F5F; + font:bold 11px tahoma, arial, helvetica, sans-serif; +} + +.x-grid-group-collapsed .x-grid-group-hd div.x-grid-group-title { + background-image:url(../images/gray/grid/group-expand.gif); +} + +.x-group-by-icon { + background-image:url(../images/default/grid/group-by.gif); +} + +.x-cols-icon { + background-image:url(../images/default/grid/columns.gif); +} + +.x-show-groups-icon { + background-image:url(../images/default/grid/group-by.gif); +} + +.x-grid-empty { + color:gray; + font:normal 11px tahoma, arial, helvetica, sans-serif; +} + +.x-grid-with-col-lines .x-grid3-row td.x-grid3-cell { + border-right-color:#ededed; +} + +.x-grid-with-col-lines .x-grid3-row{ + border-top-color:#ededed; +} + +.x-grid-with-col-lines .x-grid3-row-selected { + border-top-color:#B9B9B9; +} +.x-dd-drag-ghost{ + color:#000; + font: normal 11px arial, helvetica, sans-serif; + border-color: #ddd #bbb #bbb #ddd; + background-color:#fff; +} + +.x-dd-drop-nodrop .x-dd-drop-icon{ + background-image: url(../images/default/dd/drop-no.gif); +} + +.x-dd-drop-ok .x-dd-drop-icon{ + background-image: url(../images/default/dd/drop-yes.gif); +} + +.x-dd-drop-ok-add .x-dd-drop-icon{ + background-image: url(../images/default/dd/drop-add.gif); +} + +.x-view-selector { + background-color:#D6D6D6; + border-color:#888888; +}.x-tree-node-expanded .x-tree-node-icon{ + background-image:url(../images/default/tree/folder-open.gif); +} + +.x-tree-node-leaf .x-tree-node-icon{ + background-image:url(../images/default/tree/leaf.gif); +} + +.x-tree-node-collapsed .x-tree-node-icon{ + background-image:url(../images/default/tree/folder.gif); +} + +.x-tree-node-loading .x-tree-node-icon{ + background-image:url(../images/default/tree/loading.gif) !important; +} + +.x-tree-node .x-tree-node-inline-icon { + background-image: none; +} + +.x-tree-node-loading a span{ + font-style: italic; + color:#444444; +} + +.ext-ie .x-tree-node-el input { + width:15px; + height:15px; +} + +.x-tree-lines .x-tree-elbow{ + background-image:url(../images/default/tree/elbow.gif); +} + +.x-tree-lines .x-tree-elbow-plus{ + background-image:url(../images/default/tree/elbow-plus.gif); +} + +.x-tree-lines .x-tree-elbow-minus{ + background-image:url(../images/default/tree/elbow-minus.gif); +} + +.x-tree-lines .x-tree-elbow-end{ + background-image:url(../images/default/tree/elbow-end.gif); +} + +.x-tree-lines .x-tree-elbow-end-plus{ + background-image:url(../images/gray/tree/elbow-end-plus.gif); +} + +.x-tree-lines .x-tree-elbow-end-minus{ + background-image:url(../images/gray/tree/elbow-end-minus.gif); +} + +.x-tree-lines .x-tree-elbow-line{ + background-image:url(../images/default/tree/elbow-line.gif); +} + +.x-tree-no-lines .x-tree-elbow-plus{ + background-image:url(../images/default/tree/elbow-plus-nl.gif); +} + +.x-tree-no-lines .x-tree-elbow-minus{ + background-image:url(../images/default/tree/elbow-minus-nl.gif); +} + +.x-tree-no-lines .x-tree-elbow-end-plus{ + background-image:url(../images/gray/tree/elbow-end-plus-nl.gif); +} + +.x-tree-no-lines .x-tree-elbow-end-minus{ + background-image:url(../images/gray/tree/elbow-end-minus-nl.gif); +} + +.x-tree-arrows .x-tree-elbow-plus{ + background-image:url(../images/gray/tree/arrows.gif); +} + +.x-tree-arrows .x-tree-elbow-minus{ + background-image:url(../images/gray/tree/arrows.gif); +} + +.x-tree-arrows .x-tree-elbow-end-plus{ + background-image:url(../images/gray/tree/arrows.gif); +} + +.x-tree-arrows .x-tree-elbow-end-minus{ + background-image:url(../images/gray/tree/arrows.gif); +} + +.x-tree-node{ + color:#000; + font: normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-tree-node a, .x-dd-drag-ghost a{ + color:#000; +} + +.x-tree-node a span, .x-dd-drag-ghost a span{ + color:#000; +} + +.x-tree-node .x-tree-node-disabled a span{ + color:gray !important; +} + +.x-tree-node div.x-tree-drag-insert-below{ + border-bottom-color:#36c; +} + +.x-tree-node div.x-tree-drag-insert-above{ + border-top-color:#36c; +} + +.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below a{ + border-bottom-color:#36c; +} + +.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above a{ + border-top-color:#36c; +} + +.x-tree-node .x-tree-drag-append a span{ + background-color:#ddd; + border-color:gray; +} + +.x-tree-node .x-tree-node-over { + background-color: #eee; +} + +.x-tree-node .x-tree-selected { + background-color: #ddd; +} + +.x-tree-drop-ok-append .x-dd-drop-icon{ + background-image: url(../images/default/tree/drop-add.gif); +} + +.x-tree-drop-ok-above .x-dd-drop-icon{ + background-image: url(../images/default/tree/drop-over.gif); +} + +.x-tree-drop-ok-below .x-dd-drop-icon{ + background-image: url(../images/default/tree/drop-under.gif); +} + +.x-tree-drop-ok-between .x-dd-drop-icon{ + background-image: url(../images/default/tree/drop-between.gif); +} +.x-date-picker { + border-color:#585858; + background-color:#fff; +} + +.x-date-middle,.x-date-left,.x-date-right { + background-image: url(../images/gray/shared/hd-sprite.gif); + color:#fff; + font:bold 11px "sans serif", tahoma, verdana, helvetica; +} + +.x-date-middle .x-btn .x-btn-text { + color:#fff; +} + +.x-date-middle .x-btn-mc em.x-btn-arrow { + background-image:url(../images/gray/toolbar/btn-arrow-light.gif); +} + +.x-date-right a { + background-image: url(../images/gray/shared/right-btn.gif); +} + +.x-date-left a{ + background-image: url(../images/gray/shared/left-btn.gif); +} + +.x-date-inner th { + background-color:#D8D8D8; + background-image: url(../images/gray/panel/white-top-bottom.gif); + border-bottom-color:#AFAFAF; + font:normal 10px arial, helvetica,tahoma,sans-serif; + color:#595959; +} + +.x-date-inner td { + border-color:#fff; +} + +.x-date-inner a { + font:normal 11px arial, helvetica,tahoma,sans-serif; + color:#000; +} + +.x-date-inner .x-date-active{ + color:#000; +} + +.x-date-inner .x-date-selected a{ + background-image: none; + background-color:#D8D8D8; + border-color:#DCDCDC; +} + +.x-date-inner .x-date-today a{ + border-color:darkred; +} + +.x-date-inner .x-date-selected span{ + font-weight:bold; +} + +.x-date-inner .x-date-prevday a,.x-date-inner .x-date-nextday a { + color:#aaa; +} + +.x-date-bottom { + border-top-color:#AFAFAF; + background-color:#D8D8D8; + background:#D8D8D8 url(../images/gray/panel/white-top-bottom.gif) 0 -2px; +} + +.x-date-inner a:hover, .x-date-inner .x-date-disabled a:hover{ + color:#000; + background-color:#D8D8D8; +} + +.x-date-inner .x-date-disabled a { + background-color:#eee; + color:#bbb; +} + +.x-date-mmenu{ + background-color:#eee !important; +} + +.x-date-mmenu .x-menu-item { + font-size:10px; + color:#000; +} + +.x-date-mp { + background-color:#fff; +} + +.x-date-mp td { + font:normal 11px arial, helvetica,tahoma,sans-serif; +} + +.x-date-mp-btns button { + background-color:#4E565F; + color:#fff; + border-color:#C0C0C0 #434343 #434343 #C0C0C0; + font:normal 11px arial, helvetica,tahoma,sans-serif; +} + +.x-date-mp-btns { + background-color:#D8D8D8; + background:#D8D8D8 url(../images/gray/panel/white-top-bottom.gif) 0 -2px; +} + +.x-date-mp-btns td { + border-top-color:#AFAFAF; +} + +td.x-date-mp-month a,td.x-date-mp-year a { + color: #333; +} + +td.x-date-mp-month a:hover,td.x-date-mp-year a:hover { + color:#333; + background-color:#FDFDFD; +} + +td.x-date-mp-sel a { + background-color:#D8D8D8; + background:#D8D8D8 url(../images/gray/panel/white-top-bottom.gif) 0 -2px; + border-color:#DCDCDC; +} + +.x-date-mp-ybtn a { + background-image:url(../images/gray/panel/tool-sprites.gif); +} + +td.x-date-mp-sep { + border-right-color:#D7D7D7; +}.x-tip .x-tip-close{ + background-image: url(../images/gray/qtip/close.gif); +} + +.x-tip .x-tip-tc, .x-tip .x-tip-tl, .x-tip .x-tip-tr, .x-tip .x-tip-bc, .x-tip .x-tip-bl, .x-tip .x-tip-br, .x-tip .x-tip-ml, .x-tip .x-tip-mr { + background-image: url(../images/gray/qtip/tip-sprite.gif); +} + +.x-tip .x-tip-mc { + font: normal 11px tahoma,arial,helvetica,sans-serif; +} +.x-tip .x-tip-ml { + background-color: #fff; +} + +.x-tip .x-tip-header-text { + font: bold 11px tahoma,arial,helvetica,sans-serif; + color:#444; +} + +.x-tip .x-tip-body { + font: normal 11px tahoma,arial,helvetica,sans-serif; + color:#444; +} + +.x-form-invalid-tip .x-tip-tc, .x-form-invalid-tip .x-tip-tl, .x-form-invalid-tip .x-tip-tr, .x-form-invalid-tip .x-tip-bc, +.x-form-invalid-tip .x-tip-bl, .x-form-invalid-tip .x-tip-br, .x-form-invalid-tip .x-tip-ml, .x-form-invalid-tip .x-tip-mr +{ + background-image: url(../images/default/form/error-tip-corners.gif); +} + +.x-form-invalid-tip .x-tip-body { + background-image:url(../images/default/form/exclamation.gif); +} + +.x-tip-anchor { + background-image:url(../images/gray/qtip/tip-anchor-sprite.gif); +}.x-menu { + background-color:#f0f0f0; + background-image:url(../images/default/menu/menu.gif); +} + +.x-menu-floating{ + border-color:#7D7D7D; +} + +.x-menu-nosep { + background-image:none; +} + +.x-menu-list-item{ + font:normal 11px arial,tahoma,sans-serif; +} + +.x-menu-item-arrow{ + background-image:url(../images/gray/menu/menu-parent.gif); +} + +.x-menu-sep { + background-color:#e0e0e0; + border-bottom-color:#fff; +} + +a.x-menu-item { + color:#222; +} + +.x-menu-item-active { + background-image: url(../images/gray/menu/item-over.gif); + background-color: #f1f1f1; + border-color:#ACACAC; +} + +.x-menu-item-active a.x-menu-item { + border-color:#ACACAC; +} + +.x-menu-check-item .x-menu-item-icon{ + background-image:url(../images/default/menu/unchecked.gif); +} + +.x-menu-item-checked .x-menu-item-icon{ + background-image:url(../images/default/menu/checked.gif); +} + +.x-menu-item-checked .x-menu-group-item .x-menu-item-icon{ + background-image:url(../images/gray/menu/group-checked.gif); +} + +.x-menu-group-item .x-menu-item-icon{ + background-image:none; +} + +.x-menu-plain { + background-color:#fff !important; +} + +.x-menu .x-date-picker{ + border-color:#AFAFAF; +} + +.x-cycle-menu .x-menu-item-checked { + border-color:#B9B9B9 !important; + background-color:#F1F1F1; +} + +.x-menu-scroller-top { + background-image:url(../images/default/layout/mini-top.gif); +} + +.x-menu-scroller-bottom { + background-image:url(../images/default/layout/mini-bottom.gif); +}.x-box-tl { + background-image: url(../images/default/box/corners.gif); +} + +.x-box-tc { + background-image: url(../images/default/box/tb.gif); +} + +.x-box-tr { + background-image: url(../images/default/box/corners.gif); +} + +.x-box-ml { + background-image: url(../images/default/box/l.gif); +} + +.x-box-mc { + background-color: #eee; + background-image: url(../images/default/box/tb.gif); + font-family: "Myriad Pro","Myriad Web","Tahoma","Helvetica","Arial",sans-serif; + color: #393939; + font-size: 12px; +} + +.x-box-mc h3 { + font-size: 14px; + font-weight: bold; +} + +.x-box-mr { + background-image: url(../images/default/box/r.gif); +} + +.x-box-bl { + background-image: url(../images/default/box/corners.gif); +} + +.x-box-bc { + background-image: url(../images/default/box/tb.gif); +} + +.x-box-br { + background-image: url(../images/default/box/corners.gif); +} + +.x-box-blue .x-box-bl, .x-box-blue .x-box-br, .x-box-blue .x-box-tl, .x-box-blue .x-box-tr { + background-image: url(../images/default/box/corners-blue.gif); +} + +.x-box-blue .x-box-bc, .x-box-blue .x-box-mc, .x-box-blue .x-box-tc { + background-image: url(../images/default/box/tb-blue.gif); +} + +.x-box-blue .x-box-mc { + background-color: #c3daf9; +} + +.x-box-blue .x-box-mc h3 { + color: #17385b; +} + +.x-box-blue .x-box-ml { + background-image: url(../images/default/box/l-blue.gif); +} + +.x-box-blue .x-box-mr { + background-image: url(../images/default/box/r-blue.gif); +} +.x-combo-list { + border-color:#ccc; + background-color:#ddd; + font:normal 12px tahoma, arial, helvetica, sans-serif; +} + +.x-combo-list-inner { + background-color:#fff; +} + +.x-combo-list-hd { + font:bold 11px tahoma, arial, helvetica, sans-serif; + color:#333; + background-image: url(../images/default/layout/panel-title-light-bg.gif); + border-bottom-color:#BCBCBC; +} + +.x-resizable-pinned .x-combo-list-inner { + border-bottom-color:#BEBEBE; +} + +.x-combo-list-item { + border-color:#fff; +} + +.x-combo-list .x-combo-selected{ + border-color:#777 !important; + background-color:#f0f0f0; +} + +.x-combo-list .x-toolbar { + border-top-color:#BCBCBC; +} + +.x-combo-list-small { + font:normal 11px tahoma, arial, helvetica, sans-serif; +}.x-panel { + border-color: #d0d0d0; +} + +.x-panel-header { + color:#333; + font-weight:bold; + font-size: 11px; + font-family: tahoma,arial,verdana,sans-serif; + border-color:#d0d0d0; + background-image: url(../images/gray/panel/white-top-bottom.gif); +} + +.x-panel-body { + border-color:#d0d0d0; + background-color:#fff; +} + +.x-panel-bbar .x-toolbar, .x-panel-tbar .x-toolbar { + border-color:#d0d0d0; +} + +.x-panel-tbar-noheader .x-toolbar, .x-panel-mc .x-panel-tbar .x-toolbar { + border-top-color:#d0d0d0; +} + +.x-panel-body-noheader, .x-panel-mc .x-panel-body { + border-top-color:#d0d0d0; +} + +.x-panel-tl .x-panel-header { + color:#333; + font:bold 11px tahoma,arial,verdana,sans-serif; +} + +.x-panel-tc { + background-image: url(../images/gray/panel/top-bottom.gif); +} + +.x-panel-tl, .x-panel-tr, .x-panel-bl, .x-panel-br{ + background-image: url(../images/gray/panel/corners-sprite.gif); + border-bottom-color:#d0d0d0; +} + +.x-panel-bc { + background-image: url(../images/gray/panel/top-bottom.gif); +} + +.x-panel-mc { + font: normal 11px tahoma,arial,helvetica,sans-serif; + background-color:#f1f1f1; +} + +.x-panel-ml { + background-color: #fff; + background-image:url(../images/gray/panel/left-right.gif); +} + +.x-panel-mr { + background-image: url(../images/gray/panel/left-right.gif); +} + +.x-tool { + background-image:url(../images/gray/panel/tool-sprites.gif); +} + +.x-panel-ghost { + background-color:#f2f2f2; +} + +.x-panel-ghost ul { + border-color:#d0d0d0; +} + +.x-panel-dd-spacer { + border-color:#d0d0d0; +} + +.x-panel-fbar td,.x-panel-fbar span,.x-panel-fbar input,.x-panel-fbar div,.x-panel-fbar select,.x-panel-fbar label{ + font:normal 11px arial,tahoma, helvetica, sans-serif; +} +.x-window-proxy { + background-color:#fcfcfc; + border-color:#d0d0d0; +} + +.x-window-tl .x-window-header { + color:#555; + font:bold 11px tahoma,arial,verdana,sans-serif; +} + +.x-window-tc { + background-image: url(../images/gray/window/top-bottom.png); +} + +.x-window-tl { + background-image: url(../images/gray/window/left-corners.png); +} + +.x-window-tr { + background-image: url(../images/gray/window/right-corners.png); +} + +.x-window-bc { + background-image: url(../images/gray/window/top-bottom.png); +} + +.x-window-bl { + background-image: url(../images/gray/window/left-corners.png); +} + +.x-window-br { + background-image: url(../images/gray/window/right-corners.png); +} + +.x-window-mc { + border-color:#d0d0d0; + font: normal 11px tahoma,arial,helvetica,sans-serif; + background-color:#e8e8e8; +} + +.x-window-ml { + background-image: url(../images/gray/window/left-right.png); +} + +.x-window-mr { + background-image: url(../images/gray/window/left-right.png); +} + +.x-window-maximized .x-window-tc { + background-color:#fff; +} + +.x-window-bbar .x-toolbar { + border-top-color:#d0d0d0; +} + +.x-panel-ghost .x-window-tl { + border-bottom-color:#d0d0d0; +} + +.x-panel-collapsed .x-window-tl { + border-bottom-color:#d0d0d0; +} + +.x-dlg-mask{ + background-color:#ccc; +} + +.x-window-plain .x-window-mc { + background-color: #E8E8E8; + border-color: #D0D0D0 #EEEEEE #EEEEEE #D0D0D0; +} + +.x-window-plain .x-window-body { + border-color: #EEEEEE #D0D0D0 #D0D0D0 #EEEEEE; +} + +body.x-body-masked .x-window-plain .x-window-mc { + background-color: #E4E4E4; +} +.x-html-editor-wrap { + border-color:#BCBCBC; + background-color:#fff; +} +.x-html-editor-tb .x-btn-text { + background-image:url(../images/default/editor/tb-sprite.gif); +} +.x-panel-noborder .x-panel-header-noborder { + border-bottom-color:#d0d0d0; +} + +.x-panel-noborder .x-panel-tbar-noborder .x-toolbar { + border-bottom-color:#d0d0d0; +} + +.x-panel-noborder .x-panel-bbar-noborder .x-toolbar { + border-top-color:#d0d0d0; +} + +.x-tab-panel-bbar-noborder .x-toolbar { + border-top-color:#d0d0d0; +} + +.x-tab-panel-tbar-noborder .x-toolbar { + border-bottom-color:#d0d0d0; +} + +.x-border-layout-ct { + background-color:#f0f0f0; +} +.x-border-layout-ct { + background-color:#f0f0f0; +} + +.x-accordion-hd { + color:#222; + font-weight:normal; + background-image: url(../images/gray/panel/light-hd.gif); +} + +.x-layout-collapsed{ + background-color:#dfdfdf; + border-color:#d0d0d0; +} + +.x-layout-collapsed-over{ + background-color:#e7e7e7; +} + +.x-layout-split-west .x-layout-mini { + background-image:url(../images/default/layout/mini-left.gif); +} +.x-layout-split-east .x-layout-mini { + background-image:url(../images/default/layout/mini-right.gif); +} +.x-layout-split-north .x-layout-mini { + background-image:url(../images/default/layout/mini-top.gif); +} +.x-layout-split-south .x-layout-mini { + background-image:url(../images/default/layout/mini-bottom.gif); +} + +.x-layout-cmini-west .x-layout-mini { + background-image:url(../images/default/layout/mini-right.gif); +} + +.x-layout-cmini-east .x-layout-mini { + background-image:url(../images/default/layout/mini-left.gif); +} + +.x-layout-cmini-north .x-layout-mini { + background-image:url(../images/default/layout/mini-bottom.gif); +} + +.x-layout-cmini-south .x-layout-mini { + background-image:url(../images/default/layout/mini-top.gif); +} +.x-progress-wrap { + border-color:#8E8E8E; +} + +.x-progress-inner { + background-color:#E7E7E7; + background-image:url(../images/gray/qtip/bg.gif); +} + +.x-progress-bar { + background-color:#BCBCBC; + background-image:url(../images/gray/progress/progress-bg.gif); + border-top-color:#E2E2E2; + border-bottom-color:#A4A4A4; + border-right-color:#A4A4A4; +} + +.x-progress-text { + font-size:11px; + font-weight:bold; + color:#fff; +} + +.x-progress-text-back { + color:#5F5F5F; +} +.x-list-header{ + background-color:#f9f9f9; + background-image:url(../images/gray/grid/grid3-hrow2.gif); +} + +.x-list-header-inner div em { + border-left-color:#ddd; + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-list-body dt em { + font:normal 11px arial, tahoma, helvetica, sans-serif; +} + +.x-list-over { + background-color:#eee; +} + +.x-list-selected { + background-color:#f0f0f0; +} + +.x-list-resizer { + border-left-color:#555; + border-right-color:#555; +} + +.x-list-header-inner em.sort-asc, .x-list-header-inner em.sort-desc { + background-image:none; + border-color: #d0d0d0; +} +.x-slider-horz, .x-slider-horz .x-slider-end, .x-slider-horz .x-slider-inner { + background-image:url(../images/default/slider/slider-bg.png); +} + +.x-slider-horz .x-slider-thumb { + background-image:url(../images/gray/slider/slider-thumb.png); +} + +.x-slider-vert, .x-slider-vert .x-slider-end, .x-slider-vert .x-slider-inner { + background-image:url(../images/default/slider/slider-v-bg.png); +} + +.x-slider-vert .x-slider-thumb { + background-image:url(../images/gray/slider/slider-v-thumb.png); +} +.x-window-dlg .ext-mb-text, +.x-window-dlg .x-window-header-text { + font-size:12px; +} + +.x-window-dlg .ext-mb-textarea { + font:normal 12px tahoma,arial,helvetica,sans-serif; +} + +.x-window-dlg .x-msg-box-wait { + background-image:url(../images/default/grid/loading.gif); +} + +.x-window-dlg .ext-mb-info { + background-image:url(../images/gray/window/icon-info.gif); +} + +.x-window-dlg .ext-mb-warning { + background-image:url(../images/gray/window/icon-warning.gif); +} + +.x-window-dlg .ext-mb-question { + background-image:url(../images/gray/window/icon-question.gif); +} + +.x-window-dlg .ext-mb-error { + background-image:url(../images/gray/window/icon-error.gif); +} diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-ExtendTextField.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-ExtendTextField.js new file mode 100644 index 00000000..2a4af44c --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-ExtendTextField.js @@ -0,0 +1,23 @@ +Ext.form.XTextField = function(config) { + Ext.form.XTextField.superclass.constructor.call(this,config); + } + +Ext.extend(Ext.form.XTextField, Ext.form.TextField, { + // private + isEmpty: false, + applyEmptyText : function() { + this.isEmpty = true; + Ext.form.XTextField.superclass.applyEmptyText.call(this); + }, + reset: function() { + this.isEmpty = false; + Ext.form.XTextField.superclass.reset.call(this); + }, + applyTo : function(target) { + Ext.form.TextField.superclass.applyTo.call(this, target); + var f = this.el.dom.form; + if (f) { + Ext.EventManager.on(f, 'submit', function() { if (this.isEmpty) { this.el.dom.value = ''; } }, this); + } + } + }); \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-all-debug.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-all-debug.js new file mode 100644 index 00000000..a325e38b --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-all-debug.js @@ -0,0 +1,52624 @@ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.DomHelper + *

    The DomHelper class provides a layer of abstraction from DOM and transparently supports creating + * elements via DOM or using HTML fragments. It also has the ability to create HTML fragment templates + * from your DOM building code.

    + * + *

    DomHelper element specification object

    + *

    A specification object is used when creating elements. Attributes of this object + * are assumed to be element attributes, except for 4 special attributes: + *

      + *
    • tag :
      The tag name of the element
    • + *
    • children : or cn
      An array of the + * same kind of element definition objects to be created and appended. These can be nested + * as deep as you want.
    • + *
    • cls :
      The class attribute of the element. + * This will end up being either the "class" attribute on a HTML fragment or className + * for a DOM node, depending on whether DomHelper is using fragments or DOM.
    • + *
    • html :
      The innerHTML for the element
    • + *

    + * + *

    Insertion methods

    + *

    Commonly used insertion methods: + *

      + *
    • {@link #append} :
    • + *
    • {@link #insertBefore} :
    • + *
    • {@link #insertAfter} :
    • + *
    • {@link #overwrite} :
    • + *
    • {@link #createTemplate} :
    • + *
    • {@link #insertHtml} :
    • + *

    + * + *

    Example

    + *

    This is an example, where an unordered list with 3 children items is appended to an existing + * element with id 'my-div':
    +

    
    +var dh = Ext.DomHelper; // create shorthand alias
    +// specification object
    +var spec = {
    +    id: 'my-ul',
    +    tag: 'ul',
    +    cls: 'my-list',
    +    // append children after creating
    +    children: [     // may also specify 'cn' instead of 'children'
    +        {tag: 'li', id: 'item0', html: 'List Item 0'},
    +        {tag: 'li', id: 'item1', html: 'List Item 1'},
    +        {tag: 'li', id: 'item2', html: 'List Item 2'}
    +    ]
    +};
    +var list = dh.append(
    +    'my-div', // the context element 'my-div' can either be the id or the actual node
    +    spec      // the specification object
    +);
    + 

    + *

    Element creation specification parameters in this class may also be passed as an Array of + * specification objects. This can be used to insert multiple sibling nodes into an existing + * container very efficiently. For example, to add more list items to the example above:

    
    +dh.append('my-ul', [
    +    {tag: 'li', id: 'item3', html: 'List Item 3'},
    +    {tag: 'li', id: 'item4', html: 'List Item 4'}
    +]);
    + * 

    + * + *

    Templating

    + *

    The real power is in the built-in templating. Instead of creating or appending any elements, + * {@link #createTemplate} returns a Template object which can be used over and over to + * insert new elements. Revisiting the example above, we could utilize templating this time: + *

    
    +// create the node
    +var list = dh.append('my-div', {tag: 'ul', cls: 'my-list'});
    +// get template
    +var tpl = dh.createTemplate({tag: 'li', id: 'item{0}', html: 'List Item {0}'});
    +
    +for(var i = 0; i < 5, i++){
    +    tpl.append(list, [i]); // use template to append to the actual node
    +}
    + * 

    + *

    An example using a template:

    
    +var html = '{2}';
    +
    +var tpl = new Ext.DomHelper.createTemplate(html);
    +tpl.append('blog-roll', ['link1', 'http://www.jackslocum.com/', "Jack's Site"]);
    +tpl.append('blog-roll', ['link2', 'http://www.dustindiaz.com/', "Dustin's Site"]);
    + * 

    + * + *

    The same example using named parameters:

    
    +var html = '{text}';
    +
    +var tpl = new Ext.DomHelper.createTemplate(html);
    +tpl.append('blog-roll', {
    +    id: 'link1',
    +    url: 'http://www.jackslocum.com/',
    +    text: "Jack's Site"
    +});
    +tpl.append('blog-roll', {
    +    id: 'link2',
    +    url: 'http://www.dustindiaz.com/',
    +    text: "Dustin's Site"
    +});
    + * 

    + * + *

    Compiling Templates

    + *

    Templates are applied using regular expressions. The performance is great, but if + * you are adding a bunch of DOM elements using the same template, you can increase + * performance even further by {@link Ext.Template#compile "compiling"} the template. + * The way "{@link Ext.Template#compile compile()}" works is the template is parsed and + * broken up at the different variable points and a dynamic function is created and eval'ed. + * The generated function performs string concatenation of these parts and the passed + * variables instead of using regular expressions. + *

    
    +var html = '{text}';
    +
    +var tpl = new Ext.DomHelper.createTemplate(html);
    +tpl.compile();
    +
    +//... use template like normal
    + * 

    + * + *

    Performance Boost

    + *

    DomHelper will transparently create HTML fragments when it can. Using HTML fragments instead + * of DOM can significantly boost performance.

    + *

    Element creation specification parameters may also be strings. If {@link #useDom} is false, + * then the string is used as innerHTML. If {@link #useDom} is true, a string specification + * results in the creation of a text node. Usage:

    + *
    
    +Ext.DomHelper.useDom = true; // force it to use DOM; reduces performance
    + * 
    + * @singleton + */ +Ext.DomHelper = function(){ + var tempTableEl = null, + emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i, + tableRe = /^table|tbody|tr|td$/i, + confRe = /tag|children|cn|html$/i, + tableElRe = /td|tr|tbody/i, + cssRe = /([a-z0-9-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi, + endRe = /end/i, + pub, + // kill repeat to save bytes + afterbegin = 'afterbegin', + afterend = 'afterend', + beforebegin = 'beforebegin', + beforeend = 'beforeend', + ts = '', + te = '
    ', + tbs = ts+'', + tbe = ''+te, + trs = tbs + '', + tre = ''+tbe; + + // private + function doInsert(el, o, returnElement, pos, sibling, append){ + var newNode = pub.insertHtml(pos, Ext.getDom(el), createHtml(o)); + return returnElement ? Ext.get(newNode, true) : newNode; + } + + // build as innerHTML where available + function createHtml(o){ + var b = '', + attr, + val, + key, + keyVal, + cn; + + if(typeof o == "string"){ + b = o; + } else if (Ext.isArray(o)) { + for (var i=0; i < o.length; i++) { + if(o[i]) { + b += createHtml(o[i]); + } + }; + } else { + b += '<' + (o.tag = o.tag || 'div'); + for (attr in o) { + val = o[attr]; + if(!confRe.test(attr)){ + if (typeof val == "object") { + b += ' ' + attr + '="'; + for (key in val) { + b += key + ':' + val[key] + ';'; + }; + b += '"'; + }else{ + b += ' ' + ({cls : 'class', htmlFor : 'for'}[attr] || attr) + '="' + val + '"'; + } + } + }; + // Now either just close the tag or try to add children and close the tag. + if (emptyTags.test(o.tag)) { + b += '/>'; + } else { + b += '>'; + if ((cn = o.children || o.cn)) { + b += createHtml(cn); + } else if(o.html){ + b += o.html; + } + b += ''; + } + } + return b; + } + + function ieTable(depth, s, h, e){ + tempTableEl.innerHTML = [s, h, e].join(''); + var i = -1, + el = tempTableEl, + ns; + while(++i < depth){ + el = el.firstChild; + } +// If the result is multiple siblings, then encapsulate them into one fragment. + if(ns = el.nextSibling){ + var df = document.createDocumentFragment(); + while(el){ + ns = el.nextSibling; + df.appendChild(el); + el = ns; + } + el = df; + } + return el; + } + + /** + * @ignore + * Nasty code for IE's broken table implementation + */ + function insertIntoTable(tag, where, el, html) { + var node, + before; + + tempTableEl = tempTableEl || document.createElement('div'); + + if(tag == 'td' && (where == afterbegin || where == beforeend) || + !tableElRe.test(tag) && (where == beforebegin || where == afterend)) { + return; + } + before = where == beforebegin ? el : + where == afterend ? el.nextSibling : + where == afterbegin ? el.firstChild : null; + + if (where == beforebegin || where == afterend) { + el = el.parentNode; + } + + if (tag == 'td' || (tag == 'tr' && (where == beforeend || where == afterbegin))) { + node = ieTable(4, trs, html, tre); + } else if ((tag == 'tbody' && (where == beforeend || where == afterbegin)) || + (tag == 'tr' && (where == beforebegin || where == afterend))) { + node = ieTable(3, tbs, html, tbe); + } else { + node = ieTable(2, ts, html, te); + } + el.insertBefore(node, before); + return node; + } + + + pub = { + /** + * Returns the markup for the passed Element(s) config. + * @param {Object} o The DOM object spec (and children) + * @return {String} + */ + markup : function(o){ + return createHtml(o); + }, + + /** + * Applies a style specification to an element. + * @param {String/HTMLElement} el The element to apply styles to + * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or + * a function which returns such a specification. + */ + applyStyles : function(el, styles){ + if(styles){ + var i = 0, + len, + style, + matches; + + el = Ext.fly(el); + if(typeof styles == "function"){ + styles = styles.call(); + } + if(typeof styles == "string"){ + while((matches = cssRe.exec(styles))){ + el.setStyle(matches[1], matches[2]); + } + }else if (typeof styles == "object"){ + el.setStyle(styles); + } + } + }, + + /** + * Inserts an HTML fragment into the DOM. + * @param {String} where Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd. + * @param {HTMLElement} el The context element + * @param {String} html The HTML fragment + * @return {HTMLElement} The new node + */ + insertHtml : function(where, el, html){ + var hash = {}, + hashVal, + setStart, + range, + frag, + rangeEl, + rs; + + where = where.toLowerCase(); + // add these here because they are used in both branches of the condition. + hash[beforebegin] = ['BeforeBegin', 'previousSibling']; + hash[afterend] = ['AfterEnd', 'nextSibling']; + + if (el.insertAdjacentHTML) { + if(tableRe.test(el.tagName) && (rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html))){ + return rs; + } + // add these two to the hash. + hash[afterbegin] = ['AfterBegin', 'firstChild']; + hash[beforeend] = ['BeforeEnd', 'lastChild']; + if ((hashVal = hash[where])) { + el.insertAdjacentHTML(hashVal[0], html); + return el[hashVal[1]]; + } + } else { + range = el.ownerDocument.createRange(); + setStart = 'setStart' + (endRe.test(where) ? 'After' : 'Before'); + if (hash[where]) { + range[setStart](el); + frag = range.createContextualFragment(html); + el.parentNode.insertBefore(frag, where == beforebegin ? el : el.nextSibling); + return el[(where == beforebegin ? 'previous' : 'next') + 'Sibling']; + } else { + rangeEl = (where == afterbegin ? 'first' : 'last') + 'Child'; + if (el.firstChild) { + range[setStart](el[rangeEl]); + frag = range.createContextualFragment(html); + if(where == afterbegin){ + el.insertBefore(frag, el.firstChild); + }else{ + el.appendChild(frag); + } + } else { + el.innerHTML = html; + } + return el[rangeEl]; + } + } + throw 'Illegal insertion point -> "' + where + '"'; + }, + + /** + * Creates new DOM element(s) and inserts them before el. + * @param {Mixed} el The context element + * @param {Object/String} o The DOM object spec (and children) or raw HTML blob + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + */ + insertBefore : function(el, o, returnElement){ + return doInsert(el, o, returnElement, beforebegin); + }, + + /** + * Creates new DOM element(s) and inserts them after el. + * @param {Mixed} el The context element + * @param {Object} o The DOM object spec (and children) + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + */ + insertAfter : function(el, o, returnElement){ + return doInsert(el, o, returnElement, afterend, 'nextSibling'); + }, + + /** + * Creates new DOM element(s) and inserts them as the first child of el. + * @param {Mixed} el The context element + * @param {Object/String} o The DOM object spec (and children) or raw HTML blob + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + */ + insertFirst : function(el, o, returnElement){ + return doInsert(el, o, returnElement, afterbegin, 'firstChild'); + }, + + /** + * Creates new DOM element(s) and appends them to el. + * @param {Mixed} el The context element + * @param {Object/String} o The DOM object spec (and children) or raw HTML blob + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + */ + append : function(el, o, returnElement){ + return doInsert(el, o, returnElement, beforeend, '', true); + }, + + /** + * Creates new DOM element(s) and overwrites the contents of el with them. + * @param {Mixed} el The context element + * @param {Object/String} o The DOM object spec (and children) or raw HTML blob + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + */ + overwrite : function(el, o, returnElement){ + el = Ext.getDom(el); + el.innerHTML = createHtml(o); + return returnElement ? Ext.get(el.firstChild) : el.firstChild; + }, + + createHtml : createHtml + }; + return pub; +}(); +/** + * @class Ext.DomHelper + */ +Ext.apply(Ext.DomHelper, +function(){ + var pub, + afterbegin = 'afterbegin', + afterend = 'afterend', + beforebegin = 'beforebegin', + beforeend = 'beforeend', + confRe = /tag|children|cn|html$/i; + + // private + function doInsert(el, o, returnElement, pos, sibling, append){ + el = Ext.getDom(el); + var newNode; + if (pub.useDom) { + newNode = createDom(o, null); + if (append) { + el.appendChild(newNode); + } else { + (sibling == 'firstChild' ? el : el.parentNode).insertBefore(newNode, el[sibling] || el); + } + } else { + newNode = Ext.DomHelper.insertHtml(pos, el, Ext.DomHelper.createHtml(o)); + } + return returnElement ? Ext.get(newNode, true) : newNode; + } + + // build as dom + /** @ignore */ + function createDom(o, parentNode){ + var el, + doc = document, + useSet, + attr, + val, + cn; + + if (Ext.isArray(o)) { // Allow Arrays of siblings to be inserted + el = doc.createDocumentFragment(); // in one shot using a DocumentFragment + for (var i = 0, l = o.length; i < l; i++) { + createDom(o[i], el); + } + } else if (typeof o == 'string') { // Allow a string as a child spec. + el = doc.createTextNode(o); + } else { + el = doc.createElement( o.tag || 'div' ); + useSet = !!el.setAttribute; // In IE some elements don't have setAttribute + for (var attr in o) { + if(!confRe.test(attr)){ + val = o[attr]; + if(attr == 'cls'){ + el.className = val; + }else{ + if(useSet){ + el.setAttribute(attr, val); + }else{ + el[attr] = val; + } + } + } + } + Ext.DomHelper.applyStyles(el, o.style); + + if ((cn = o.children || o.cn)) { + createDom(cn, el); + } else if (o.html) { + el.innerHTML = o.html; + } + } + if(parentNode){ + parentNode.appendChild(el); + } + return el; + } + + pub = { + /** + * Creates a new Ext.Template from the DOM object spec. + * @param {Object} o The DOM object spec (and children) + * @return {Ext.Template} The new template + */ + createTemplate : function(o){ + var html = Ext.DomHelper.createHtml(o); + return new Ext.Template(html); + }, + + /** True to force the use of DOM instead of html fragments @type Boolean */ + useDom : false, + + /** + * Creates new DOM element(s) and inserts them before el. + * @param {Mixed} el The context element + * @param {Object/String} o The DOM object spec (and children) or raw HTML blob + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + * @hide (repeat) + */ + insertBefore : function(el, o, returnElement){ + return doInsert(el, o, returnElement, beforebegin); + }, + + /** + * Creates new DOM element(s) and inserts them after el. + * @param {Mixed} el The context element + * @param {Object} o The DOM object spec (and children) + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + * @hide (repeat) + */ + insertAfter : function(el, o, returnElement){ + return doInsert(el, o, returnElement, afterend, 'nextSibling'); + }, + + /** + * Creates new DOM element(s) and inserts them as the first child of el. + * @param {Mixed} el The context element + * @param {Object/String} o The DOM object spec (and children) or raw HTML blob + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + * @hide (repeat) + */ + insertFirst : function(el, o, returnElement){ + return doInsert(el, o, returnElement, afterbegin, 'firstChild'); + }, + + /** + * Creates new DOM element(s) and appends them to el. + * @param {Mixed} el The context element + * @param {Object/String} o The DOM object spec (and children) or raw HTML blob + * @param {Boolean} returnElement (optional) true to return a Ext.Element + * @return {HTMLElement/Ext.Element} The new node + * @hide (repeat) + */ + append: function(el, o, returnElement){ + return doInsert(el, o, returnElement, beforeend, '', true); + }, + + /** + * Creates new DOM element(s) without inserting them to the document. + * @param {Object/String} o The DOM object spec (and children) or raw HTML blob + * @return {HTMLElement} The new uninserted node + */ + createDom: createDom + }; + return pub; +}()); +/** + * @class Ext.Template + *

    Represents an HTML fragment template. Templates may be {@link #compile precompiled} + * for greater performance.

    + *

    For example usage {@link #Template see the constructor}.

    + * + * @constructor + * An instance of this class may be created by passing to the constructor either + * a single argument, or multiple arguments: + *
      + *
    • single argument : String/Array + *
      + * The single argument may be either a String or an Array:
        + *
      • String :
      • 
        +var t = new Ext.Template("<div>Hello {0}.</div>");
        +t.{@link #append}('some-element', ['foo']);
        + * 
        + *
      • Array :
      • + * An Array will be combined with join(''). +
        
        +var t = new Ext.Template([
        +    '<div name="{id}">',
        +        '<span class="{cls}">{name:trim} {value:ellipsis(10)}</span>',
        +    '</div>',
        +]);
        +t.{@link #compile}();
        +t.{@link #append}('some-element', {id: 'myid', cls: 'myclass', name: 'foo', value: 'bar'});
        +
        + *
    • + *
    • multiple arguments : String, Object, Array, ... + *
      + * Multiple arguments will be combined with join(''). + *
      
      +var t = new Ext.Template(
      +    '<div name="{id}">',
      +        '<span class="{cls}">{name} {value}</span>',
      +    '</div>',
      +    // a configuration object:
      +    {
      +        compiled: true,      // {@link #compile} immediately
      +        disableFormats: true // See Notes below.
      +    }
      +);
      + * 
      + *

      Notes:

      + *
        + *
      • Formatting and disableFormats are not applicable for Ext Core.
      • + *
      • For a list of available format functions, see {@link Ext.util.Format}.
      • + *
      • disableFormats reduces {@link #apply} time + * when no formatting is required.
      • + *
      + *
    • + *
    + * @param {Mixed} config + */ +Ext.Template = function(html){ + var me = this, + a = arguments, + buf = [], + v; + + if (Ext.isArray(html)) { + html = html.join(""); + } else if (a.length > 1) { + for(var i = 0, len = a.length; i < len; i++){ + v = a[i]; + if(typeof v == 'object'){ + Ext.apply(me, v); + } else { + buf.push(v); + } + }; + html = buf.join(''); + } + + /**@private*/ + me.html = html; + /** + * @cfg {Boolean} compiled Specify true to compile the template + * immediately (see {@link #compile}). + * Defaults to false. + */ + if (me.compiled) { + me.compile(); + } +}; +Ext.Template.prototype = { + /** + * @cfg {RegExp} re The regular expression used to match template variables. + * Defaults to:
    
    +     * re : /\{([\w-]+)\}/g                                     // for Ext Core
    +     * re : /\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g      // for Ext JS
    +     * 
    + */ + re : /\{([\w-]+)\}/g, + /** + * See {@link #re}. + * @type RegExp + * @property re + */ + + /** + * Returns an HTML fragment of this template with the specified values applied. + * @param {Object/Array} values + * The template values. Can be an array if the params are numeric (i.e. {0}) + * or an object (i.e. {foo: 'bar'}). + * @return {String} The HTML fragment + */ + applyTemplate : function(values){ + var me = this; + + return me.compiled ? + me.compiled(values) : + me.html.replace(me.re, function(m, name){ + return values[name] !== undefined ? values[name] : ""; + }); + }, + + /** + * Sets the HTML used as the template and optionally compiles it. + * @param {String} html + * @param {Boolean} compile (optional) True to compile the template (defaults to undefined) + * @return {Ext.Template} this + */ + set : function(html, compile){ + var me = this; + me.html = html; + me.compiled = null; + return compile ? me.compile() : me; + }, + + /** + * Compiles the template into an internal function, eliminating the RegEx overhead. + * @return {Ext.Template} this + */ + compile : function(){ + var me = this, + sep = Ext.isGecko ? "+" : ","; + + function fn(m, name){ + name = "values['" + name + "']"; + return "'"+ sep + '(' + name + " == undefined ? '' : " + name + ')' + sep + "'"; + } + + eval("this.compiled = function(values){ return " + (Ext.isGecko ? "'" : "['") + + me.html.replace(/\\/g, '\\\\').replace(/(\r\n|\n)/g, '\\n').replace(/'/g, "\\'").replace(this.re, fn) + + (Ext.isGecko ? "';};" : "'].join('');};")); + return me; + }, + + /** + * Applies the supplied values to the template and inserts the new node(s) as the first child of el. + * @param {Mixed} el The context element + * @param {Object/Array} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) + * @param {Boolean} returnElement (optional) true to return a Ext.Element (defaults to undefined) + * @return {HTMLElement/Ext.Element} The new node or Element + */ + insertFirst: function(el, values, returnElement){ + return this.doInsert('afterBegin', el, values, returnElement); + }, + + /** + * Applies the supplied values to the template and inserts the new node(s) before el. + * @param {Mixed} el The context element + * @param {Object/Array} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) + * @param {Boolean} returnElement (optional) true to return a Ext.Element (defaults to undefined) + * @return {HTMLElement/Ext.Element} The new node or Element + */ + insertBefore: function(el, values, returnElement){ + return this.doInsert('beforeBegin', el, values, returnElement); + }, + + /** + * Applies the supplied values to the template and inserts the new node(s) after el. + * @param {Mixed} el The context element + * @param {Object/Array} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) + * @param {Boolean} returnElement (optional) true to return a Ext.Element (defaults to undefined) + * @return {HTMLElement/Ext.Element} The new node or Element + */ + insertAfter : function(el, values, returnElement){ + return this.doInsert('afterEnd', el, values, returnElement); + }, + + /** + * Applies the supplied values to the template and appends + * the new node(s) to the specified el. + *

    For example usage {@link #Template see the constructor}.

    + * @param {Mixed} el The context element + * @param {Object/Array} values + * The template values. Can be an array if the params are numeric (i.e. {0}) + * or an object (i.e. {foo: 'bar'}). + * @param {Boolean} returnElement (optional) true to return an Ext.Element (defaults to undefined) + * @return {HTMLElement/Ext.Element} The new node or Element + */ + append : function(el, values, returnElement){ + return this.doInsert('beforeEnd', el, values, returnElement); + }, + + doInsert : function(where, el, values, returnEl){ + el = Ext.getDom(el); + var newNode = Ext.DomHelper.insertHtml(where, el, this.applyTemplate(values)); + return returnEl ? Ext.get(newNode, true) : newNode; + }, + + /** + * Applies the supplied values to the template and overwrites the content of el with the new node(s). + * @param {Mixed} el The context element + * @param {Object/Array} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) + * @param {Boolean} returnElement (optional) true to return a Ext.Element (defaults to undefined) + * @return {HTMLElement/Ext.Element} The new node or Element + */ + overwrite : function(el, values, returnElement){ + el = Ext.getDom(el); + el.innerHTML = this.applyTemplate(values); + return returnElement ? Ext.get(el.firstChild, true) : el.firstChild; + } +}; +/** + * Alias for {@link #applyTemplate} + * Returns an HTML fragment of this template with the specified values applied. + * @param {Object/Array} values + * The template values. Can be an array if the params are numeric (i.e. {0}) + * or an object (i.e. {foo: 'bar'}). + * @return {String} The HTML fragment + * @member Ext.Template + * @method apply + */ +Ext.Template.prototype.apply = Ext.Template.prototype.applyTemplate; + +/** + * Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. + * @param {String/HTMLElement} el A DOM element or its id + * @param {Object} config A configuration object + * @return {Ext.Template} The created template + * @static + */ +Ext.Template.from = function(el, config){ + el = Ext.getDom(el); + return new Ext.Template(el.value || el.innerHTML, config || ''); +}; +/** + * @class Ext.Template + */ +Ext.apply(Ext.Template.prototype, { + /** + * @cfg {Boolean} disableFormats Specify true to disable format + * functions in the template. If the template does not contain + * {@link Ext.util.Format format functions}, setting disableFormats + * to true will reduce {@link #apply} time. Defaults to false. + *
    
    +var t = new Ext.Template(
    +    '<div name="{id}">',
    +        '<span class="{cls}">{name} {value}</span>',
    +    '</div>',
    +    {
    +        compiled: true,      // {@link #compile} immediately
    +        disableFormats: true // reduce {@link #apply} time since no formatting
    +    }
    +);
    +     * 
    + * For a list of available format functions, see {@link Ext.util.Format}. + */ + disableFormats : false, + /** + * See {@link #disableFormats}. + * @type Boolean + * @property disableFormats + */ + + /** + * The regular expression used to match template variables + * @type RegExp + * @property + * @hide repeat doc + */ + re : /\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g, + argsRe : /^\s*['"](.*)["']\s*$/, + compileARe : /\\/g, + compileBRe : /(\r\n|\n)/g, + compileCRe : /'/g, + + /** + * Returns an HTML fragment of this template with the specified values applied. + * @param {Object/Array} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) + * @return {String} The HTML fragment + * @hide repeat doc + */ + applyTemplate : function(values){ + var me = this, + useF = me.disableFormats !== true, + fm = Ext.util.Format, + tpl = me; + + if(me.compiled){ + return me.compiled(values); + } + function fn(m, name, format, args){ + if (format && useF) { + if (format.substr(0, 5) == "this.") { + return tpl.call(format.substr(5), values[name], values); + } else { + if (args) { + // quoted values are required for strings in compiled templates, + // but for non compiled we need to strip them + // quoted reversed for jsmin + var re = me.argsRe; + args = args.split(','); + for(var i = 0, len = args.length; i < len; i++){ + args[i] = args[i].replace(re, "$1"); + } + args = [values[name]].concat(args); + } else { + args = [values[name]]; + } + return fm[format].apply(fm, args); + } + } else { + return values[name] !== undefined ? values[name] : ""; + } + } + return me.html.replace(me.re, fn); + }, + + /** + * Compiles the template into an internal function, eliminating the RegEx overhead. + * @return {Ext.Template} this + * @hide repeat doc + */ + compile : function(){ + var me = this, + fm = Ext.util.Format, + useF = me.disableFormats !== true, + sep = Ext.isGecko ? "+" : ",", + body; + + function fn(m, name, format, args){ + if(format && useF){ + args = args ? ',' + args : ""; + if(format.substr(0, 5) != "this."){ + format = "fm." + format + '('; + }else{ + format = 'this.call("'+ format.substr(5) + '", '; + args = ", values"; + } + }else{ + args= ''; format = "(values['" + name + "'] == undefined ? '' : "; + } + return "'"+ sep + format + "values['" + name + "']" + args + ")"+sep+"'"; + } + + // branched to use + in gecko and [].join() in others + if(Ext.isGecko){ + body = "this.compiled = function(values){ return '" + + me.html.replace(me.compileARe, '\\\\').replace(me.compileBRe, '\\n').replace(me.compileCRe, "\\'").replace(me.re, fn) + + "';};"; + }else{ + body = ["this.compiled = function(values){ return ['"]; + body.push(me.html.replace(me.compileARe, '\\\\').replace(me.compileBRe, '\\n').replace(me.compileCRe, "\\'").replace(me.re, fn)); + body.push("'].join('');};"); + body = body.join(''); + } + eval(body); + return me; + }, + + // private function used to call members + call : function(fnName, value, allValues){ + return this[fnName](value, allValues); + } +}); +Ext.Template.prototype.apply = Ext.Template.prototype.applyTemplate; +/* + * This is code is also distributed under MIT license for use + * with jQuery and prototype JavaScript libraries. + */ +/** + * @class Ext.DomQuery +Provides high performance selector/xpath processing by compiling queries into reusable functions. New pseudo classes and matchers can be plugged. It works on HTML and XML documents (if a content node is passed in). +

    +DomQuery supports most of the CSS3 selectors spec, along with some custom selectors and basic XPath.

    + +

    +All selectors, attribute filters and pseudos below can be combined infinitely in any order. For example "div.foo:nth-child(odd)[@foo=bar].bar:first" would be a perfectly valid selector. Node filters are processed in the order in which they appear, which allows you to optimize your queries for your document structure. +

    +

    Element Selectors:

    +
      +
    • * any element
    • +
    • E an element with the tag E
    • +
    • E F All descendent elements of E that have the tag F
    • +
    • E > F or E/F all direct children elements of E that have the tag F
    • +
    • E + F all elements with the tag F that are immediately preceded by an element with the tag E
    • +
    • E ~ F all elements with the tag F that are preceded by a sibling element with the tag E
    • +
    +

    Attribute Selectors:

    +

    The use of @ and quotes are optional. For example, div[@foo='bar'] is also a valid attribute selector.

    +
      +
    • E[foo] has an attribute "foo"
    • +
    • E[foo=bar] has an attribute "foo" that equals "bar"
    • +
    • E[foo^=bar] has an attribute "foo" that starts with "bar"
    • +
    • E[foo$=bar] has an attribute "foo" that ends with "bar"
    • +
    • E[foo*=bar] has an attribute "foo" that contains the substring "bar"
    • +
    • E[foo%=2] has an attribute "foo" that is evenly divisible by 2
    • +
    • E[foo!=bar] has an attribute "foo" that does not equal "bar"
    • +
    +

    Pseudo Classes:

    +
      +
    • E:first-child E is the first child of its parent
    • +
    • E:last-child E is the last child of its parent
    • +
    • E:nth-child(n) E is the nth child of its parent (1 based as per the spec)
    • +
    • E:nth-child(odd) E is an odd child of its parent
    • +
    • E:nth-child(even) E is an even child of its parent
    • +
    • E:only-child E is the only child of its parent
    • +
    • E:checked E is an element that is has a checked attribute that is true (e.g. a radio or checkbox)
    • +
    • E:first the first E in the resultset
    • +
    • E:last the last E in the resultset
    • +
    • E:nth(n) the nth E in the resultset (1 based)
    • +
    • E:odd shortcut for :nth-child(odd)
    • +
    • E:even shortcut for :nth-child(even)
    • +
    • E:contains(foo) E's innerHTML contains the substring "foo"
    • +
    • E:nodeValue(foo) E contains a textNode with a nodeValue that equals "foo"
    • +
    • E:not(S) an E element that does not match simple selector S
    • +
    • E:has(S) an E element that has a descendent that matches simple selector S
    • +
    • E:next(S) an E element whose next sibling matches simple selector S
    • +
    • E:prev(S) an E element whose previous sibling matches simple selector S
    • +
    • E:any(S1|S2|S2) an E element which matches any of the simple selectors S1, S2 or S3//\\
    • +
    +

    CSS Value Selectors:

    +
      +
    • E{display=none} css value "display" that equals "none"
    • +
    • E{display^=none} css value "display" that starts with "none"
    • +
    • E{display$=none} css value "display" that ends with "none"
    • +
    • E{display*=none} css value "display" that contains the substring "none"
    • +
    • E{display%=2} css value "display" that is evenly divisible by 2
    • +
    • E{display!=none} css value "display" that does not equal "none"
    • +
    + * @singleton + */ +Ext.DomQuery = function(){ + var cache = {}, + simpleCache = {}, + valueCache = {}, + nonSpace = /\S/, + trimRe = /^\s+|\s+$/g, + tplRe = /\{(\d+)\}/g, + modeRe = /^(\s?[\/>+~]\s?|\s|$)/, + tagTokenRe = /^(#)?([\w-\*]+)/, + nthRe = /(\d*)n\+?(\d*)/, + nthRe2 = /\D/, + // This is for IE MSXML which does not support expandos. + // IE runs the same speed using setAttribute, however FF slows way down + // and Safari completely fails so they need to continue to use expandos. + isIE = window.ActiveXObject ? true : false, + key = 30803; + + // this eval is stop the compressor from + // renaming the variable to something shorter + eval("var batch = 30803;"); + + // Retrieve the child node from a particular + // parent at the specified index. + function child(parent, index){ + var i = 0, + n = parent.firstChild; + while(n){ + if(n.nodeType == 1){ + if(++i == index){ + return n; + } + } + n = n.nextSibling; + } + return null; + } + + // retrieve the next element node + function next(n){ + while((n = n.nextSibling) && n.nodeType != 1); + return n; + } + + // retrieve the previous element node + function prev(n){ + while((n = n.previousSibling) && n.nodeType != 1); + return n; + } + + // Mark each child node with a nodeIndex skipping and + // removing empty text nodes. + function children(parent){ + var n = parent.firstChild, + nodeIndex = -1, + nextNode; + while(n){ + nextNode = n.nextSibling; + // clean worthless empty nodes. + if(n.nodeType == 3 && !nonSpace.test(n.nodeValue)){ + parent.removeChild(n); + }else{ + // add an expando nodeIndex + n.nodeIndex = ++nodeIndex; + } + n = nextNode; + } + return this; + } + + + // nodeSet - array of nodes + // cls - CSS Class + function byClassName(nodeSet, cls){ + if(!cls){ + return nodeSet; + } + var result = [], ri = -1; + for(var i = 0, ci; ci = nodeSet[i]; i++){ + if((' '+ci.className+' ').indexOf(cls) != -1){ + result[++ri] = ci; + } + } + return result; + }; + + function attrValue(n, attr){ + // if its an array, use the first node. + if(!n.tagName && typeof n.length != "undefined"){ + n = n[0]; + } + if(!n){ + return null; + } + + if(attr == "for"){ + return n.htmlFor; + } + if(attr == "class" || attr == "className"){ + return n.className; + } + return n.getAttribute(attr) || n[attr]; + + }; + + + // ns - nodes + // mode - false, /, >, +, ~ + // tagName - defaults to "*" + function getNodes(ns, mode, tagName){ + var result = [], ri = -1, cs; + if(!ns){ + return result; + } + tagName = tagName || "*"; + // convert to array + if(typeof ns.getElementsByTagName != "undefined"){ + ns = [ns]; + } + + // no mode specified, grab all elements by tagName + // at any depth + if(!mode){ + for(var i = 0, ni; ni = ns[i]; i++){ + cs = ni.getElementsByTagName(tagName); + for(var j = 0, ci; ci = cs[j]; j++){ + result[++ri] = ci; + } + } + // Direct Child mode (/ or >) + // E > F or E/F all direct children elements of E that have the tag + } else if(mode == "/" || mode == ">"){ + var utag = tagName.toUpperCase(); + for(var i = 0, ni, cn; ni = ns[i]; i++){ + cn = ni.childNodes; + for(var j = 0, cj; cj = cn[j]; j++){ + if(cj.nodeName == utag || cj.nodeName == tagName || tagName == '*'){ + result[++ri] = cj; + } + } + } + // Immediately Preceding mode (+) + // E + F all elements with the tag F that are immediately preceded by an element with the tag E + }else if(mode == "+"){ + var utag = tagName.toUpperCase(); + for(var i = 0, n; n = ns[i]; i++){ + while((n = n.nextSibling) && n.nodeType != 1); + if(n && (n.nodeName == utag || n.nodeName == tagName || tagName == '*')){ + result[++ri] = n; + } + } + // Sibling mode (~) + // E ~ F all elements with the tag F that are preceded by a sibling element with the tag E + }else if(mode == "~"){ + var utag = tagName.toUpperCase(); + for(var i = 0, n; n = ns[i]; i++){ + while((n = n.nextSibling)){ + if (n.nodeName == utag || n.nodeName == tagName || tagName == '*'){ + result[++ri] = n; + } + } + } + } + return result; + } + + function concat(a, b){ + if(b.slice){ + return a.concat(b); + } + for(var i = 0, l = b.length; i < l; i++){ + a[a.length] = b[i]; + } + return a; + } + + function byTag(cs, tagName){ + if(cs.tagName || cs == document){ + cs = [cs]; + } + if(!tagName){ + return cs; + } + var result = [], ri = -1; + tagName = tagName.toLowerCase(); + for(var i = 0, ci; ci = cs[i]; i++){ + if(ci.nodeType == 1 && ci.tagName.toLowerCase() == tagName){ + result[++ri] = ci; + } + } + return result; + } + + function byId(cs, id){ + if(cs.tagName || cs == document){ + cs = [cs]; + } + if(!id){ + return cs; + } + var result = [], ri = -1; + for(var i = 0, ci; ci = cs[i]; i++){ + if(ci && ci.id == id){ + result[++ri] = ci; + return result; + } + } + return result; + } + + // operators are =, !=, ^=, $=, *=, %=, |= and ~= + // custom can be "{" + function byAttribute(cs, attr, value, op, custom){ + var result = [], + ri = -1, + useGetStyle = custom == "{", + fn = Ext.DomQuery.operators[op], + a, + innerHTML; + for(var i = 0, ci; ci = cs[i]; i++){ + // skip non-element nodes. + if(ci.nodeType != 1){ + continue; + } + + innerHTML = ci.innerHTML; + // we only need to change the property names if we're dealing with html nodes, not XML + if(innerHTML !== null && innerHTML !== undefined){ + if(useGetStyle){ + a = Ext.DomQuery.getStyle(ci, attr); + } else if (attr == "class" || attr == "className"){ + a = ci.className; + } else if (attr == "for"){ + a = ci.htmlFor; + } else if (attr == "href"){ + // getAttribute href bug + // http://www.glennjones.net/Post/809/getAttributehrefbug.htm + a = ci.getAttribute("href", 2); + } else{ + a = ci.getAttribute(attr); + } + }else{ + a = ci.getAttribute(attr); + } + if((fn && fn(a, value)) || (!fn && a)){ + result[++ri] = ci; + } + } + return result; + } + + function byPseudo(cs, name, value){ + return Ext.DomQuery.pseudos[name](cs, value); + } + + function nodupIEXml(cs){ + var d = ++key, + r; + cs[0].setAttribute("_nodup", d); + r = [cs[0]]; + for(var i = 1, len = cs.length; i < len; i++){ + var c = cs[i]; + if(!c.getAttribute("_nodup") != d){ + c.setAttribute("_nodup", d); + r[r.length] = c; + } + } + for(var i = 0, len = cs.length; i < len; i++){ + cs[i].removeAttribute("_nodup"); + } + return r; + } + + function nodup(cs){ + if(!cs){ + return []; + } + var len = cs.length, c, i, r = cs, cj, ri = -1; + if(!len || typeof cs.nodeType != "undefined" || len == 1){ + return cs; + } + if(isIE && typeof cs[0].selectSingleNode != "undefined"){ + return nodupIEXml(cs); + } + var d = ++key; + cs[0]._nodup = d; + for(i = 1; c = cs[i]; i++){ + if(c._nodup != d){ + c._nodup = d; + }else{ + r = []; + for(var j = 0; j < i; j++){ + r[++ri] = cs[j]; + } + for(j = i+1; cj = cs[j]; j++){ + if(cj._nodup != d){ + cj._nodup = d; + r[++ri] = cj; + } + } + return r; + } + } + return r; + } + + function quickDiffIEXml(c1, c2){ + var d = ++key, + r = []; + for(var i = 0, len = c1.length; i < len; i++){ + c1[i].setAttribute("_qdiff", d); + } + for(var i = 0, len = c2.length; i < len; i++){ + if(c2[i].getAttribute("_qdiff") != d){ + r[r.length] = c2[i]; + } + } + for(var i = 0, len = c1.length; i < len; i++){ + c1[i].removeAttribute("_qdiff"); + } + return r; + } + + function quickDiff(c1, c2){ + var len1 = c1.length, + d = ++key, + r = []; + if(!len1){ + return c2; + } + if(isIE && typeof c1[0].selectSingleNode != "undefined"){ + return quickDiffIEXml(c1, c2); + } + for(var i = 0; i < len1; i++){ + c1[i]._qdiff = d; + } + for(var i = 0, len = c2.length; i < len; i++){ + if(c2[i]._qdiff != d){ + r[r.length] = c2[i]; + } + } + return r; + } + + function quickId(ns, mode, root, id){ + if(ns == root){ + var d = root.ownerDocument || root; + return d.getElementById(id); + } + ns = getNodes(ns, mode, "*"); + return byId(ns, id); + } + + return { + getStyle : function(el, name){ + return Ext.fly(el).getStyle(name); + }, + /** + * Compiles a selector/xpath query into a reusable function. The returned function + * takes one parameter "root" (optional), which is the context node from where the query should start. + * @param {String} selector The selector/xpath query + * @param {String} type (optional) Either "select" (the default) or "simple" for a simple selector match + * @return {Function} + */ + compile : function(path, type){ + type = type || "select"; + + // setup fn preamble + var fn = ["var f = function(root){\n var mode; ++batch; var n = root || document;\n"], + mode, + lastPath, + matchers = Ext.DomQuery.matchers, + matchersLn = matchers.length, + modeMatch, + // accept leading mode switch + lmode = path.match(modeRe); + + if(lmode && lmode[1]){ + fn[fn.length] = 'mode="'+lmode[1].replace(trimRe, "")+'";'; + path = path.replace(lmode[1], ""); + } + + // strip leading slashes + while(path.substr(0, 1)=="/"){ + path = path.substr(1); + } + + while(path && lastPath != path){ + lastPath = path; + var tokenMatch = path.match(tagTokenRe); + if(type == "select"){ + if(tokenMatch){ + // ID Selector + if(tokenMatch[1] == "#"){ + fn[fn.length] = 'n = quickId(n, mode, root, "'+tokenMatch[2]+'");'; + }else{ + fn[fn.length] = 'n = getNodes(n, mode, "'+tokenMatch[2]+'");'; + } + path = path.replace(tokenMatch[0], ""); + }else if(path.substr(0, 1) != '@'){ + fn[fn.length] = 'n = getNodes(n, mode, "*");'; + } + // type of "simple" + }else{ + if(tokenMatch){ + if(tokenMatch[1] == "#"){ + fn[fn.length] = 'n = byId(n, "'+tokenMatch[2]+'");'; + }else{ + fn[fn.length] = 'n = byTag(n, "'+tokenMatch[2]+'");'; + } + path = path.replace(tokenMatch[0], ""); + } + } + while(!(modeMatch = path.match(modeRe))){ + var matched = false; + for(var j = 0; j < matchersLn; j++){ + var t = matchers[j]; + var m = path.match(t.re); + if(m){ + fn[fn.length] = t.select.replace(tplRe, function(x, i){ + return m[i]; + }); + path = path.replace(m[0], ""); + matched = true; + break; + } + } + // prevent infinite loop on bad selector + if(!matched){ + throw 'Error parsing selector, parsing failed at "' + path + '"'; + } + } + if(modeMatch[1]){ + fn[fn.length] = 'mode="'+modeMatch[1].replace(trimRe, "")+'";'; + path = path.replace(modeMatch[1], ""); + } + } + // close fn out + fn[fn.length] = "return nodup(n);\n}"; + + // eval fn and return it + eval(fn.join("")); + return f; + }, + + /** + * Selects a group of elements. + * @param {String} selector The selector/xpath query (can be a comma separated list of selectors) + * @param {Node/String} root (optional) The start of the query (defaults to document). + * @return {Array} An Array of DOM elements which match the selector. If there are + * no matches, and empty Array is returned. + */ + jsSelect: function(path, root, type){ + // set root to doc if not specified. + root = root || document; + + if(typeof root == "string"){ + root = document.getElementById(root); + } + var paths = path.split(","), + results = []; + + // loop over each selector + for(var i = 0, len = paths.length; i < len; i++){ + var subPath = paths[i].replace(trimRe, ""); + // compile and place in cache + if(!cache[subPath]){ + cache[subPath] = Ext.DomQuery.compile(subPath); + if(!cache[subPath]){ + throw subPath + " is not a valid selector"; + } + } + var result = cache[subPath](root); + if(result && result != document){ + results = results.concat(result); + } + } + + // if there were multiple selectors, make sure dups + // are eliminated + if(paths.length > 1){ + return nodup(results); + } + return results; + }, + isXml: function(el) { + var docEl = (el ? el.ownerDocument || el : 0).documentElement; + return docEl ? docEl.nodeName !== "HTML" : false; + }, + select : document.querySelectorAll ? function(path, root, type) { + root = root || document; + if (!Ext.DomQuery.isXml(root)) { + try { + var cs = root.querySelectorAll(path); + return Ext.toArray(cs); + } + catch (ex) {} + } + return Ext.DomQuery.jsSelect.call(this, path, root, type); + } : function(path, root, type) { + return Ext.DomQuery.jsSelect.call(this, path, root, type); + }, + + /** + * Selects a single element. + * @param {String} selector The selector/xpath query + * @param {Node} root (optional) The start of the query (defaults to document). + * @return {Element} The DOM element which matched the selector. + */ + selectNode : function(path, root){ + return Ext.DomQuery.select(path, root)[0]; + }, + + /** + * Selects the value of a node, optionally replacing null with the defaultValue. + * @param {String} selector The selector/xpath query + * @param {Node} root (optional) The start of the query (defaults to document). + * @param {String} defaultValue + * @return {String} + */ + selectValue : function(path, root, defaultValue){ + path = path.replace(trimRe, ""); + if(!valueCache[path]){ + valueCache[path] = Ext.DomQuery.compile(path, "select"); + } + var n = valueCache[path](root), v; + n = n[0] ? n[0] : n; + + // overcome a limitation of maximum textnode size + // Rumored to potentially crash IE6 but has not been confirmed. + // http://reference.sitepoint.com/javascript/Node/normalize + // https://developer.mozilla.org/En/DOM/Node.normalize + if (typeof n.normalize == 'function') n.normalize(); + + v = (n && n.firstChild ? n.firstChild.nodeValue : null); + return ((v === null||v === undefined||v==='') ? defaultValue : v); + }, + + /** + * Selects the value of a node, parsing integers and floats. Returns the defaultValue, or 0 if none is specified. + * @param {String} selector The selector/xpath query + * @param {Node} root (optional) The start of the query (defaults to document). + * @param {Number} defaultValue + * @return {Number} + */ + selectNumber : function(path, root, defaultValue){ + var v = Ext.DomQuery.selectValue(path, root, defaultValue || 0); + return parseFloat(v); + }, + + /** + * Returns true if the passed element(s) match the passed simple selector (e.g. div.some-class or span:first-child) + * @param {String/HTMLElement/Array} el An element id, element or array of elements + * @param {String} selector The simple selector to test + * @return {Boolean} + */ + is : function(el, ss){ + if(typeof el == "string"){ + el = document.getElementById(el); + } + var isArray = Ext.isArray(el), + result = Ext.DomQuery.filter(isArray ? el : [el], ss); + return isArray ? (result.length == el.length) : (result.length > 0); + }, + + /** + * Filters an array of elements to only include matches of a simple selector (e.g. div.some-class or span:first-child) + * @param {Array} el An array of elements to filter + * @param {String} selector The simple selector to test + * @param {Boolean} nonMatches If true, it returns the elements that DON'T match + * the selector instead of the ones that match + * @return {Array} An Array of DOM elements which match the selector. If there are + * no matches, and empty Array is returned. + */ + filter : function(els, ss, nonMatches){ + ss = ss.replace(trimRe, ""); + if(!simpleCache[ss]){ + simpleCache[ss] = Ext.DomQuery.compile(ss, "simple"); + } + var result = simpleCache[ss](els); + return nonMatches ? quickDiff(result, els) : result; + }, + + /** + * Collection of matching regular expressions and code snippets. + * Each capture group within () will be replace the {} in the select + * statement as specified by their index. + */ + matchers : [{ + re: /^\.([\w-]+)/, + select: 'n = byClassName(n, " {1} ");' + }, { + re: /^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/, + select: 'n = byPseudo(n, "{1}", "{2}");' + },{ + re: /^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/, + select: 'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");' + }, { + re: /^#([\w-]+)/, + select: 'n = byId(n, "{1}");' + },{ + re: /^@([\w-]+)/, + select: 'return {firstChild:{nodeValue:attrValue(n, "{1}")}};' + } + ], + + /** + * Collection of operator comparison functions. The default operators are =, !=, ^=, $=, *=, %=, |= and ~=. + * New operators can be added as long as the match the format c= where c is any character other than space, > <. + */ + operators : { + "=" : function(a, v){ + return a == v; + }, + "!=" : function(a, v){ + return a != v; + }, + "^=" : function(a, v){ + return a && a.substr(0, v.length) == v; + }, + "$=" : function(a, v){ + return a && a.substr(a.length-v.length) == v; + }, + "*=" : function(a, v){ + return a && a.indexOf(v) !== -1; + }, + "%=" : function(a, v){ + return (a % v) == 0; + }, + "|=" : function(a, v){ + return a && (a == v || a.substr(0, v.length+1) == v+'-'); + }, + "~=" : function(a, v){ + return a && (' '+a+' ').indexOf(' '+v+' ') != -1; + } + }, + + /** + *

    Object hash of "pseudo class" filter functions which are used when filtering selections. Each function is passed + * two parameters:

      + *
    • c : Array
      An Array of DOM elements to filter.
    • + *
    • v : String
      The argument (if any) supplied in the selector.
    • + *
    + *

    A filter function returns an Array of DOM elements which conform to the pseudo class.

    + *

    In addition to the provided pseudo classes listed above such as first-child and nth-child, + * developers may add additional, custom psuedo class filters to select elements according to application-specific requirements.

    + *

    For example, to filter <a> elements to only return links to external resources:

    + *
    +Ext.DomQuery.pseudos.external = function(c, v){
    +    var r = [], ri = -1;
    +    for(var i = 0, ci; ci = c[i]; i++){
    +//      Include in result set only if it's a link to an external resource
    +        if(ci.hostname != location.hostname){
    +            r[++ri] = ci;
    +        }
    +    }
    +    return r;
    +};
    + * Then external links could be gathered with the following statement:
    +var externalLinks = Ext.select("a:external");
    +
    + */ + pseudos : { + "first-child" : function(c){ + var r = [], ri = -1, n; + for(var i = 0, ci; ci = n = c[i]; i++){ + while((n = n.previousSibling) && n.nodeType != 1); + if(!n){ + r[++ri] = ci; + } + } + return r; + }, + + "last-child" : function(c){ + var r = [], ri = -1, n; + for(var i = 0, ci; ci = n = c[i]; i++){ + while((n = n.nextSibling) && n.nodeType != 1); + if(!n){ + r[++ri] = ci; + } + } + return r; + }, + + "nth-child" : function(c, a) { + var r = [], ri = -1, + m = nthRe.exec(a == "even" && "2n" || a == "odd" && "2n+1" || !nthRe2.test(a) && "n+" + a || a), + f = (m[1] || 1) - 0, l = m[2] - 0; + for(var i = 0, n; n = c[i]; i++){ + var pn = n.parentNode; + if (batch != pn._batch) { + var j = 0; + for(var cn = pn.firstChild; cn; cn = cn.nextSibling){ + if(cn.nodeType == 1){ + cn.nodeIndex = ++j; + } + } + pn._batch = batch; + } + if (f == 1) { + if (l == 0 || n.nodeIndex == l){ + r[++ri] = n; + } + } else if ((n.nodeIndex + l) % f == 0){ + r[++ri] = n; + } + } + + return r; + }, + + "only-child" : function(c){ + var r = [], ri = -1;; + for(var i = 0, ci; ci = c[i]; i++){ + if(!prev(ci) && !next(ci)){ + r[++ri] = ci; + } + } + return r; + }, + + "empty" : function(c){ + var r = [], ri = -1; + for(var i = 0, ci; ci = c[i]; i++){ + var cns = ci.childNodes, j = 0, cn, empty = true; + while(cn = cns[j]){ + ++j; + if(cn.nodeType == 1 || cn.nodeType == 3){ + empty = false; + break; + } + } + if(empty){ + r[++ri] = ci; + } + } + return r; + }, + + "contains" : function(c, v){ + var r = [], ri = -1; + for(var i = 0, ci; ci = c[i]; i++){ + if((ci.textContent||ci.innerText||'').indexOf(v) != -1){ + r[++ri] = ci; + } + } + return r; + }, + + "nodeValue" : function(c, v){ + var r = [], ri = -1; + for(var i = 0, ci; ci = c[i]; i++){ + if(ci.firstChild && ci.firstChild.nodeValue == v){ + r[++ri] = ci; + } + } + return r; + }, + + "checked" : function(c){ + var r = [], ri = -1; + for(var i = 0, ci; ci = c[i]; i++){ + if(ci.checked == true){ + r[++ri] = ci; + } + } + return r; + }, + + "not" : function(c, ss){ + return Ext.DomQuery.filter(c, ss, true); + }, + + "any" : function(c, selectors){ + var ss = selectors.split('|'), + r = [], ri = -1, s; + for(var i = 0, ci; ci = c[i]; i++){ + for(var j = 0; s = ss[j]; j++){ + if(Ext.DomQuery.is(ci, s)){ + r[++ri] = ci; + break; + } + } + } + return r; + }, + + "odd" : function(c){ + return this["nth-child"](c, "odd"); + }, + + "even" : function(c){ + return this["nth-child"](c, "even"); + }, + + "nth" : function(c, a){ + return c[a-1] || []; + }, + + "first" : function(c){ + return c[0] || []; + }, + + "last" : function(c){ + return c[c.length-1] || []; + }, + + "has" : function(c, ss){ + var s = Ext.DomQuery.select, + r = [], ri = -1; + for(var i = 0, ci; ci = c[i]; i++){ + if(s(ss, ci).length > 0){ + r[++ri] = ci; + } + } + return r; + }, + + "next" : function(c, ss){ + var is = Ext.DomQuery.is, + r = [], ri = -1; + for(var i = 0, ci; ci = c[i]; i++){ + var n = next(ci); + if(n && is(n, ss)){ + r[++ri] = ci; + } + } + return r; + }, + + "prev" : function(c, ss){ + var is = Ext.DomQuery.is, + r = [], ri = -1; + for(var i = 0, ci; ci = c[i]; i++){ + var n = prev(ci); + if(n && is(n, ss)){ + r[++ri] = ci; + } + } + return r; + } + } + }; +}(); + +/** + * Selects an array of DOM nodes by CSS/XPath selector. Shorthand of {@link Ext.DomQuery#select} + * @param {String} path The selector/xpath query + * @param {Node} root (optional) The start of the query (defaults to document). + * @return {Array} + * @member Ext + * @method query + */ +Ext.query = Ext.DomQuery.select; +/** + * @class Ext.util.DelayedTask + *

    The DelayedTask class provides a convenient way to "buffer" the execution of a method, + * performing setTimeout where a new timeout cancels the old timeout. When called, the + * task will wait the specified time period before executing. If durng that time period, + * the task is called again, the original call will be cancelled. This continues so that + * the function is only called a single time for each iteration.

    + *

    This method is especially useful for things like detecting whether a user has finished + * typing in a text field. An example would be performing validation on a keypress. You can + * use this class to buffer the keypress events for a certain number of milliseconds, and + * perform only if they stop for that amount of time. Usage:

    
    +var task = new Ext.util.DelayedTask(function(){
    +    alert(Ext.getDom('myInputField').value.length);
    +});
    +// Wait 500ms before calling our function. If the user presses another key 
    +// during that 500ms, it will be cancelled and we'll wait another 500ms.
    +Ext.get('myInputField').on('keypress', function(){
    +    task.{@link #delay}(500); 
    +});
    + * 
    + *

    Note that we are using a DelayedTask here to illustrate a point. The configuration + * option buffer for {@link Ext.util.Observable#addListener addListener/on} will + * also setup a delayed task for you to buffer events.

    + * @constructor The parameters to this constructor serve as defaults and are not required. + * @param {Function} fn (optional) The default function to call. + * @param {Object} scope The default scope (The this reference) in which the + * function is called. If not specified, this will refer to the browser window. + * @param {Array} args (optional) The default Array of arguments. + */ +Ext.util.DelayedTask = function(fn, scope, args){ + var me = this, + id, + call = function(){ + clearInterval(id); + id = null; + fn.apply(scope, args || []); + }; + + /** + * Cancels any pending timeout and queues a new one + * @param {Number} delay The milliseconds to delay + * @param {Function} newFn (optional) Overrides function passed to constructor + * @param {Object} newScope (optional) Overrides scope passed to constructor. Remember that if no scope + * is specified, this will refer to the browser window. + * @param {Array} newArgs (optional) Overrides args passed to constructor + */ + me.delay = function(delay, newFn, newScope, newArgs){ + me.cancel(); + fn = newFn || fn; + scope = newScope || scope; + args = newArgs || args; + id = setInterval(call, delay); + }; + + /** + * Cancel the last queued timeout + */ + me.cancel = function(){ + if(id){ + clearInterval(id); + id = null; + } + }; +};(function(){ + +var EXTUTIL = Ext.util, + EACH = Ext.each, + TRUE = true, + FALSE = false; +/** + * @class Ext.util.Observable + * Base class that provides a common interface for publishing events. Subclasses are expected to + * to have a property "events" with all the events defined, and, optionally, a property "listeners" + * with configured listeners defined.
    + * For example: + *
    
    +Employee = Ext.extend(Ext.util.Observable, {
    +    constructor: function(config){
    +        this.name = config.name;
    +        this.addEvents({
    +            "fired" : true,
    +            "quit" : true
    +        });
    +
    +        // Copy configured listeners into *this* object so that the base class's
    +        // constructor will add them.
    +        this.listeners = config.listeners;
    +
    +        // Call our superclass constructor to complete construction process.
    +        Employee.superclass.constructor.call(this, config)
    +    }
    +});
    +
    + * This could then be used like this:
    
    +var newEmployee = new Employee({
    +    name: employeeName,
    +    listeners: {
    +        quit: function() {
    +            // By default, "this" will be the object that fired the event.
    +            alert(this.name + " has quit!");
    +        }
    +    }
    +});
    +
    + */ +EXTUTIL.Observable = function(){ + /** + * @cfg {Object} listeners (optional)

    A config object containing one or more event handlers to be added to this + * object during initialization. This should be a valid listeners config object as specified in the + * {@link #addListener} example for attaching multiple handlers at once.

    + *

    DOM events from ExtJs {@link Ext.Component Components}

    + *

    While some ExtJs Component classes export selected DOM events (e.g. "click", "mouseover" etc), this + * is usually only done when extra value can be added. For example the {@link Ext.DataView DataView}'s + * {@link Ext.DataView#click click} event passing the node clicked on. To access DOM + * events directly from a Component's HTMLElement, listeners must be added to the {@link Ext.Component#getEl Element} after the Component + * has been rendered. A plugin can simplify this step:

    
    +// Plugin is configured with a listeners config object.
    +// The Component is appended to the argument list of all handler functions.
    +Ext.DomObserver = Ext.extend(Object, {
    +    constructor: function(config) {
    +        this.listeners = config.listeners ? config.listeners : config;
    +    },
    +
    +    // Component passes itself into plugin's init method
    +    init: function(c) {
    +        var p, l = this.listeners;
    +        for (p in l) {
    +            if (Ext.isFunction(l[p])) {
    +                l[p] = this.createHandler(l[p], c);
    +            } else {
    +                l[p].fn = this.createHandler(l[p].fn, c);
    +            }
    +        }
    +
    +        // Add the listeners to the Element immediately following the render call
    +        c.render = c.render.{@link Function#createSequence createSequence}(function() {
    +            var e = c.getEl();
    +            if (e) {
    +                e.on(l);
    +            }
    +        });
    +    },
    +
    +    createHandler: function(fn, c) {
    +        return function(e) {
    +            fn.call(this, e, c);
    +        };
    +    }
    +});
    +
    +var combo = new Ext.form.ComboBox({
    +
    +    // Collapse combo when its element is clicked on
    +    plugins: [ new Ext.DomObserver({
    +        click: function(evt, comp) {
    +            comp.collapse();
    +        }
    +    })],
    +    store: myStore,
    +    typeAhead: true,
    +    mode: 'local',
    +    triggerAction: 'all'
    +});
    +     * 

    + */ + var me = this, e = me.events; + if(me.listeners){ + me.on(me.listeners); + delete me.listeners; + } + me.events = e || {}; +}; + +EXTUTIL.Observable.prototype = { + // private + filterOptRe : /^(?:scope|delay|buffer|single)$/, + + /** + *

    Fires the specified event with the passed parameters (minus the event name).

    + *

    An event may be set to bubble up an Observable parent hierarchy (See {@link Ext.Component#getBubbleTarget}) + * by calling {@link #enableBubble}.

    + * @param {String} eventName The name of the event to fire. + * @param {Object...} args Variable number of parameters are passed to handlers. + * @return {Boolean} returns false if any of the handlers return false otherwise it returns true. + */ + fireEvent : function(){ + var a = Array.prototype.slice.call(arguments, 0), + ename = a[0].toLowerCase(), + me = this, + ret = TRUE, + ce = me.events[ename], + cc, + q, + c; + if (me.eventsSuspended === TRUE) { + if (q = me.eventQueue) { + q.push(a); + } + } + else if(typeof ce == 'object') { + if (ce.bubble){ + if(ce.fire.apply(ce, a.slice(1)) === FALSE) { + return FALSE; + } + c = me.getBubbleTarget && me.getBubbleTarget(); + if(c && c.enableBubble) { + cc = c.events[ename]; + if(!cc || typeof cc != 'object' || !cc.bubble) { + c.enableBubble(ename); + } + return c.fireEvent.apply(c, a); + } + } + else { + a.shift(); + ret = ce.fire.apply(ce, a); + } + } + return ret; + }, + + /** + * Appends an event handler to this object. + * @param {String} eventName The name of the event to listen for. + * @param {Function} handler The method the event invokes. + * @param {Object} scope (optional) The scope (this reference) in which the handler function is executed. + * If omitted, defaults to the object which fired the event. + * @param {Object} options (optional) An object containing handler configuration. + * properties. This may contain any of the following properties:
      + *
    • scope : Object
      The scope (this reference) in which the handler function is executed. + * If omitted, defaults to the object which fired the event.
    • + *
    • delay : Number
      The number of milliseconds to delay the invocation of the handler after the event fires.
    • + *
    • single : Boolean
      True to add a handler to handle just the next firing of the event, and then remove itself.
    • + *
    • buffer : Number
      Causes the handler to be scheduled to run in an {@link Ext.util.DelayedTask} delayed + * by the specified number of milliseconds. If the event fires again within that time, the original + * handler is not invoked, but the new handler is scheduled in its place.
    • + *
    • target : Observable
      Only call the handler if the event was fired on the target Observable, not + * if the event was bubbled up from a child Observable.
    • + *

    + *

    + * Combining Options
    + * Using the options argument, it is possible to combine different types of listeners:
    + *
    + * A delayed, one-time listener. + *

    
    +myDataView.on('click', this.onClick, this, {
    +single: true,
    +delay: 100
    +});
    + *

    + * Attaching multiple handlers in 1 call
    + * The method also allows for a single argument to be passed which is a config object containing properties + * which specify multiple handlers. + *

    + *

    
    +myGridPanel.on({
    +'click' : {
    +    fn: this.onClick,
    +    scope: this,
    +    delay: 100
    +},
    +'mouseover' : {
    +    fn: this.onMouseOver,
    +    scope: this
    +},
    +'mouseout' : {
    +    fn: this.onMouseOut,
    +    scope: this
    +}
    +});
    + *

    + * Or a shorthand syntax:
    + *

    
    +myGridPanel.on({
    +'click' : this.onClick,
    +'mouseover' : this.onMouseOver,
    +'mouseout' : this.onMouseOut,
    + scope: this
    +});
    + */ + addListener : function(eventName, fn, scope, o){ + var me = this, + e, + oe, + isF, + ce; + if (typeof eventName == 'object') { + o = eventName; + for (e in o){ + oe = o[e]; + if (!me.filterOptRe.test(e)) { + me.addListener(e, oe.fn || oe, oe.scope || o.scope, oe.fn ? oe : o); + } + } + } else { + eventName = eventName.toLowerCase(); + ce = me.events[eventName] || TRUE; + if (typeof ce == 'boolean') { + me.events[eventName] = ce = new EXTUTIL.Event(me, eventName); + } + ce.addListener(fn, scope, typeof o == 'object' ? o : {}); + } + }, + + /** + * Removes an event handler. + * @param {String} eventName The type of event the handler was associated with. + * @param {Function} handler The handler to remove. This must be a reference to the function passed into the {@link #addListener} call. + * @param {Object} scope (optional) The scope originally specified for the handler. + */ + removeListener : function(eventName, fn, scope){ + var ce = this.events[eventName.toLowerCase()]; + if (typeof ce == 'object') { + ce.removeListener(fn, scope); + } + }, + + /** + * Removes all listeners for this object + */ + purgeListeners : function(){ + var events = this.events, + evt, + key; + for(key in events){ + evt = events[key]; + if(typeof evt == 'object'){ + evt.clearListeners(); + } + } + }, + + /** + * Adds the specified events to the list of events which this Observable may fire. + * @param {Object|String} o Either an object with event names as properties with a value of true + * or the first event name string if multiple event names are being passed as separate parameters. + * @param {string} Optional. Event name if multiple event names are being passed as separate parameters. + * Usage:
    
    +this.addEvents('storeloaded', 'storecleared');
    +
    + */ + addEvents : function(o){ + var me = this; + me.events = me.events || {}; + if (typeof o == 'string') { + var a = arguments, + i = a.length; + while(i--) { + me.events[a[i]] = me.events[a[i]] || TRUE; + } + } else { + Ext.applyIf(me.events, o); + } + }, + + /** + * Checks to see if this object has any listeners for a specified event + * @param {String} eventName The name of the event to check for + * @return {Boolean} True if the event is being listened for, else false + */ + hasListener : function(eventName){ + var e = this.events[eventName.toLowerCase()]; + return typeof e == 'object' && e.listeners.length > 0; + }, + + /** + * Suspend the firing of all events. (see {@link #resumeEvents}) + * @param {Boolean} queueSuspended Pass as true to queue up suspended events to be fired + * after the {@link #resumeEvents} call instead of discarding all suspended events; + */ + suspendEvents : function(queueSuspended){ + this.eventsSuspended = TRUE; + if(queueSuspended && !this.eventQueue){ + this.eventQueue = []; + } + }, + + /** + * Resume firing events. (see {@link #suspendEvents}) + * If events were suspended using the queueSuspended parameter, then all + * events fired during event suspension will be sent to any listeners now. + */ + resumeEvents : function(){ + var me = this, + queued = me.eventQueue || []; + me.eventsSuspended = FALSE; + delete me.eventQueue; + EACH(queued, function(e) { + me.fireEvent.apply(me, e); + }); + } +}; + +var OBSERVABLE = EXTUTIL.Observable.prototype; +/** + * Appends an event handler to this object (shorthand for {@link #addListener}.) + * @param {String} eventName The type of event to listen for + * @param {Function} handler The method the event invokes + * @param {Object} scope (optional) The scope (this reference) in which the handler function is executed. + * If omitted, defaults to the object which fired the event. + * @param {Object} options (optional) An object containing handler configuration. + * @method + */ +OBSERVABLE.on = OBSERVABLE.addListener; +/** + * Removes an event handler (shorthand for {@link #removeListener}.) + * @param {String} eventName The type of event the handler was associated with. + * @param {Function} handler The handler to remove. This must be a reference to the function passed into the {@link #addListener} call. + * @param {Object} scope (optional) The scope originally specified for the handler. + * @method + */ +OBSERVABLE.un = OBSERVABLE.removeListener; + +/** + * Removes all added captures from the Observable. + * @param {Observable} o The Observable to release + * @static + */ +EXTUTIL.Observable.releaseCapture = function(o){ + o.fireEvent = OBSERVABLE.fireEvent; +}; + +function createTargeted(h, o, scope){ + return function(){ + if(o.target == arguments[0]){ + h.apply(scope, Array.prototype.slice.call(arguments, 0)); + } + }; +}; + +function createBuffered(h, o, l, scope){ + l.task = new EXTUTIL.DelayedTask(); + return function(){ + l.task.delay(o.buffer, h, scope, Array.prototype.slice.call(arguments, 0)); + }; +}; + +function createSingle(h, e, fn, scope){ + return function(){ + e.removeListener(fn, scope); + return h.apply(scope, arguments); + }; +}; + +function createDelayed(h, o, l, scope){ + return function(){ + var task = new EXTUTIL.DelayedTask(); + if(!l.tasks) { + l.tasks = []; + } + l.tasks.push(task); + task.delay(o.delay || 10, h, scope, Array.prototype.slice.call(arguments, 0)); + }; +}; + +EXTUTIL.Event = function(obj, name){ + this.name = name; + this.obj = obj; + this.listeners = []; +}; + +EXTUTIL.Event.prototype = { + addListener : function(fn, scope, options){ + var me = this, + l; + scope = scope || me.obj; + if(!me.isListening(fn, scope)){ + l = me.createListener(fn, scope, options); + if(me.firing){ // if we are currently firing this event, don't disturb the listener loop + me.listeners = me.listeners.slice(0); + } + me.listeners.push(l); + } + }, + + createListener: function(fn, scope, o){ + o = o || {}, scope = scope || this.obj; + var l = { + fn: fn, + scope: scope, + options: o + }, h = fn; + if(o.target){ + h = createTargeted(h, o, scope); + } + if(o.delay){ + h = createDelayed(h, o, l, scope); + } + if(o.single){ + h = createSingle(h, this, fn, scope); + } + if(o.buffer){ + h = createBuffered(h, o, l, scope); + } + l.fireFn = h; + return l; + }, + + findListener : function(fn, scope){ + var list = this.listeners, + i = list.length, + l; + + scope = scope || this.obj; + while(i--){ + l = list[i]; + if(l){ + if(l.fn == fn && l.scope == scope){ + return i; + } + } + } + return -1; + }, + + isListening : function(fn, scope){ + return this.findListener(fn, scope) != -1; + }, + + removeListener : function(fn, scope){ + var index, + l, + k, + me = this, + ret = FALSE; + if((index = me.findListener(fn, scope)) != -1){ + if (me.firing) { + me.listeners = me.listeners.slice(0); + } + l = me.listeners[index]; + if(l.task) { + l.task.cancel(); + delete l.task; + } + k = l.tasks && l.tasks.length; + if(k) { + while(k--) { + l.tasks[k].cancel(); + } + delete l.tasks; + } + me.listeners.splice(index, 1); + ret = TRUE; + } + return ret; + }, + + // Iterate to stop any buffered/delayed events + clearListeners : function(){ + var me = this, + l = me.listeners, + i = l.length; + while(i--) { + me.removeListener(l[i].fn, l[i].scope); + } + }, + + fire : function(){ + var me = this, + listeners = me.listeners, + len = listeners.length, + i = 0, + l; + + if(len > 0){ + me.firing = TRUE; + var args = Array.prototype.slice.call(arguments, 0); + for (; i < len; i++) { + l = listeners[i]; + if(l && l.fireFn.apply(l.scope || me.obj || window, args) === FALSE) { + return (me.firing = FALSE); + } + } + } + me.firing = FALSE; + return TRUE; + } + +}; +})(); +/** + * @class Ext.util.Observable + */ +Ext.apply(Ext.util.Observable.prototype, function(){ + // this is considered experimental (along with beforeMethod, afterMethod, removeMethodListener?) + // allows for easier interceptor and sequences, including cancelling and overwriting the return value of the call + // private + function getMethodEvent(method){ + var e = (this.methodEvents = this.methodEvents || + {})[method], returnValue, v, cancel, obj = this; + + if (!e) { + this.methodEvents[method] = e = {}; + e.originalFn = this[method]; + e.methodName = method; + e.before = []; + e.after = []; + + var makeCall = function(fn, scope, args){ + if((v = fn.apply(scope || obj, args)) !== undefined){ + if (typeof v == 'object') { + if(v.returnValue !== undefined){ + returnValue = v.returnValue; + }else{ + returnValue = v; + } + cancel = !!v.cancel; + } + else + if (v === false) { + cancel = true; + } + else { + returnValue = v; + } + } + }; + + this[method] = function(){ + var args = Array.prototype.slice.call(arguments, 0), + b; + returnValue = v = undefined; + cancel = false; + + for(var i = 0, len = e.before.length; i < len; i++){ + b = e.before[i]; + makeCall(b.fn, b.scope, args); + if (cancel) { + return returnValue; + } + } + + if((v = e.originalFn.apply(obj, args)) !== undefined){ + returnValue = v; + } + + for(var i = 0, len = e.after.length; i < len; i++){ + b = e.after[i]; + makeCall(b.fn, b.scope, args); + if (cancel) { + return returnValue; + } + } + return returnValue; + }; + } + return e; + } + + return { + // these are considered experimental + // allows for easier interceptor and sequences, including cancelling and overwriting the return value of the call + // adds an 'interceptor' called before the original method + beforeMethod : function(method, fn, scope){ + getMethodEvent.call(this, method).before.push({ + fn: fn, + scope: scope + }); + }, + + // adds a 'sequence' called after the original method + afterMethod : function(method, fn, scope){ + getMethodEvent.call(this, method).after.push({ + fn: fn, + scope: scope + }); + }, + + removeMethodListener: function(method, fn, scope){ + var e = this.getMethodEvent(method); + for(var i = 0, len = e.before.length; i < len; i++){ + if(e.before[i].fn == fn && e.before[i].scope == scope){ + e.before.splice(i, 1); + return; + } + } + for(var i = 0, len = e.after.length; i < len; i++){ + if(e.after[i].fn == fn && e.after[i].scope == scope){ + e.after.splice(i, 1); + return; + } + } + }, + + /** + * Relays selected events from the specified Observable as if the events were fired by this. + * @param {Object} o The Observable whose events this object is to relay. + * @param {Array} events Array of event names to relay. + */ + relayEvents : function(o, events){ + var me = this; + function createHandler(ename){ + return function(){ + return me.fireEvent.apply(me, [ename].concat(Array.prototype.slice.call(arguments, 0))); + }; + } + for(var i = 0, len = events.length; i < len; i++){ + var ename = events[i]; + me.events[ename] = me.events[ename] || true; + o.on(ename, createHandler(ename), me); + } + }, + + /** + *

    Enables events fired by this Observable to bubble up an owner hierarchy by calling + * this.getBubbleTarget() if present. There is no implementation in the Observable base class.

    + *

    This is commonly used by Ext.Components to bubble events to owner Containers. See {@link Ext.Component.getBubbleTarget}. The default + * implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to + * access the required target more quickly.

    + *

    Example:

    
    +Ext.override(Ext.form.Field, {
    +    //  Add functionality to Field's initComponent to enable the change event to bubble
    +    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
    +        this.enableBubble('change');
    +    }),
    +
    +    //  We know that we want Field's events to bubble directly to the FormPanel.
    +    getBubbleTarget : function() {
    +        if (!this.formPanel) {
    +            this.formPanel = this.findParentByType('form');
    +        }
    +        return this.formPanel;
    +    }
    +});
    +
    +var myForm = new Ext.formPanel({
    +    title: 'User Details',
    +    items: [{
    +        ...
    +    }],
    +    listeners: {
    +        change: function() {
    +            // Title goes red if form has been modified.
    +            myForm.header.setStyle('color', 'red');
    +        }
    +    }
    +});
    +
    + * @param {String/Array} events The event name to bubble, or an Array of event names. + */ + enableBubble : function(events){ + var me = this; + if(!Ext.isEmpty(events)){ + events = Ext.isArray(events) ? events : Array.prototype.slice.call(arguments, 0); + for(var i = 0, len = events.length; i < len; i++){ + var ename = events[i]; + ename = ename.toLowerCase(); + var ce = me.events[ename] || true; + if (typeof ce == 'boolean') { + ce = new Ext.util.Event(me, ename); + me.events[ename] = ce; + } + ce.bubble = true; + } + } + } + }; +}()); + + +/** + * Starts capture on the specified Observable. All events will be passed + * to the supplied function with the event name + standard signature of the event + * before the event is fired. If the supplied function returns false, + * the event will not fire. + * @param {Observable} o The Observable to capture events from. + * @param {Function} fn The function to call when an event is fired. + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the Observable firing the event. + * @static + */ +Ext.util.Observable.capture = function(o, fn, scope){ + o.fireEvent = o.fireEvent.createInterceptor(fn, scope); +}; + + +/** + * Sets observability on the passed class constructor.

    + *

    This makes any event fired on any instance of the passed class also fire a single event through + * the class allowing for central handling of events on many instances at once.

    + *

    Usage:

    
    +Ext.util.Observable.observeClass(Ext.data.Connection);
    +Ext.data.Connection.on('beforerequest', function(con, options) {
    +    console.log('Ajax request made to ' + options.url);
    +});
    + * @param {Function} c The class constructor to make observable. + * @param {Object} listeners An object containing a series of listeners to add. See {@link #addListener}. + * @static + */ +Ext.util.Observable.observeClass = function(c, listeners){ + if(c){ + if(!c.fireEvent){ + Ext.apply(c, new Ext.util.Observable()); + Ext.util.Observable.capture(c.prototype, c.fireEvent, c); + } + if(typeof listeners == 'object'){ + c.on(listeners); + } + return c; + } +}; +/** + * @class Ext.EventManager + * Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides + * several useful events directly. + * See {@link Ext.EventObject} for more details on normalized event objects. + * @singleton + */ + +Ext.EventManager = function(){ + var docReadyEvent, + docReadyProcId, + docReadyState = false, + DETECT_NATIVE = Ext.isGecko || Ext.isWebKit || Ext.isSafari, + E = Ext.lib.Event, + D = Ext.lib.Dom, + DOC = document, + WINDOW = window, + DOMCONTENTLOADED = "DOMContentLoaded", + COMPLETE = 'complete', + propRe = /^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/, + /* + * This cache is used to hold special js objects, the document and window, that don't have an id. We need to keep + * a reference to them so we can look them up at a later point. + */ + specialElCache = []; + + function getId(el){ + var id = false, + i = 0, + len = specialElCache.length, + id = false, + skip = false, + o; + if(el){ + if(el.getElementById || el.navigator){ + // look up the id + for(; i < len; ++i){ + o = specialElCache[i]; + if(o.el === el){ + id = o.id; + break; + } + } + if(!id){ + // for browsers that support it, ensure that give the el the same id + id = Ext.id(el); + specialElCache.push({ + id: id, + el: el + }); + skip = true; + } + }else{ + id = Ext.id(el); + } + if(!Ext.elCache[id]){ + Ext.Element.addToCache(new Ext.Element(el), id); + if(skip){ + Ext.elCache[id].skipGC = true; + } + } + } + return id; + }; + + /// There is some jquery work around stuff here that isn't needed in Ext Core. + function addListener(el, ename, fn, task, wrap, scope){ + el = Ext.getDom(el); + var id = getId(el), + es = Ext.elCache[id].events, + wfn; + + wfn = E.on(el, ename, wrap); + es[ename] = es[ename] || []; + + /* 0 = Original Function, + 1 = Event Manager Wrapped Function, + 2 = Scope, + 3 = Adapter Wrapped Function, + 4 = Buffered Task + */ + es[ename].push([fn, wrap, scope, wfn, task]); + + // this is a workaround for jQuery and should somehow be removed from Ext Core in the future + // without breaking ExtJS. + + // workaround for jQuery + if(el.addEventListener && ename == "mousewheel"){ + var args = ["DOMMouseScroll", wrap, false]; + el.addEventListener.apply(el, args); + Ext.EventManager.addListener(WINDOW, 'unload', function(){ + el.removeEventListener.apply(el, args); + }); + } + + // fix stopped mousedowns on the document + if(el == DOC && ename == "mousedown"){ + Ext.EventManager.stoppedMouseDownEvent.addListener(wrap); + } + }; + + function doScrollChk(){ + /* Notes: + 'doScroll' will NOT work in a IFRAME/FRAMESET. + The method succeeds but, a DOM query done immediately after -- FAILS. + */ + if(window != top){ + return false; + } + + try{ + DOC.documentElement.doScroll('left'); + }catch(e){ + return false; + } + + fireDocReady(); + return true; + } + /** + * @return {Boolean} True if the document is in a 'complete' state (or was determined to + * be true by other means). If false, the state is evaluated again until canceled. + */ + function checkReadyState(e){ + + if(Ext.isIE && doScrollChk()){ + return true; + } + if(DOC.readyState == COMPLETE){ + fireDocReady(); + return true; + } + docReadyState || (docReadyProcId = setTimeout(arguments.callee, 2)); + return false; + } + + var styles; + function checkStyleSheets(e){ + styles || (styles = Ext.query('style, link[rel=stylesheet]')); + if(styles.length == DOC.styleSheets.length){ + fireDocReady(); + return true; + } + docReadyState || (docReadyProcId = setTimeout(arguments.callee, 2)); + return false; + } + + function OperaDOMContentLoaded(e){ + DOC.removeEventListener(DOMCONTENTLOADED, arguments.callee, false); + checkStyleSheets(); + } + + function fireDocReady(e){ + if(!docReadyState){ + docReadyState = true; //only attempt listener removal once + + if(docReadyProcId){ + clearTimeout(docReadyProcId); + } + if(DETECT_NATIVE) { + DOC.removeEventListener(DOMCONTENTLOADED, fireDocReady, false); + } + if(Ext.isIE && checkReadyState.bindIE){ //was this was actually set ?? + DOC.detachEvent('onreadystatechange', checkReadyState); + } + E.un(WINDOW, "load", arguments.callee); + } + if(docReadyEvent && !Ext.isReady){ + Ext.isReady = true; + docReadyEvent.fire(); + docReadyEvent.listeners = []; + } + + }; + + function initDocReady(){ + docReadyEvent || (docReadyEvent = new Ext.util.Event()); + if (DETECT_NATIVE) { + DOC.addEventListener(DOMCONTENTLOADED, fireDocReady, false); + } + /* + * Handle additional (exceptional) detection strategies here + */ + if (Ext.isIE){ + //Use readystatechange as a backup AND primary detection mechanism for a FRAME/IFRAME + //See if page is already loaded + if(!checkReadyState()){ + checkReadyState.bindIE = true; + DOC.attachEvent('onreadystatechange', checkReadyState); + } + + }else if(Ext.isOpera ){ + /* Notes: + Opera needs special treatment needed here because CSS rules are NOT QUITE + available after DOMContentLoaded is raised. + */ + + //See if page is already loaded and all styleSheets are in place + (DOC.readyState == COMPLETE && checkStyleSheets()) || + DOC.addEventListener(DOMCONTENTLOADED, OperaDOMContentLoaded, false); + + }else if (Ext.isWebKit){ + //Fallback for older Webkits without DOMCONTENTLOADED support + checkReadyState(); + } + // no matter what, make sure it fires on load + E.on(WINDOW, "load", fireDocReady); + }; + + function createTargeted(h, o){ + return function(){ + var args = Ext.toArray(arguments); + if(o.target == Ext.EventObject.setEvent(args[0]).target){ + h.apply(this, args); + } + }; + }; + + function createBuffered(h, o, task){ + return function(e){ + // create new event object impl so new events don't wipe out properties + task.delay(o.buffer, h, null, [new Ext.EventObjectImpl(e)]); + }; + }; + + function createSingle(h, el, ename, fn, scope){ + return function(e){ + Ext.EventManager.removeListener(el, ename, fn, scope); + h(e); + }; + }; + + function createDelayed(h, o, fn){ + return function(e){ + var task = new Ext.util.DelayedTask(h); + if(!fn.tasks) { + fn.tasks = []; + } + fn.tasks.push(task); + task.delay(o.delay || 10, h, null, [new Ext.EventObjectImpl(e)]); + }; + }; + + function listen(element, ename, opt, fn, scope){ + var o = (!opt || typeof opt == "boolean") ? {} : opt, + el = Ext.getDom(element), task; + + fn = fn || o.fn; + scope = scope || o.scope; + + if(!el){ + throw "Error listening for \"" + ename + '\". Element "' + element + '" doesn\'t exist.'; + } + function h(e){ + // prevent errors while unload occurring + if(!Ext){// !window[xname]){ ==> can't we do this? + return; + } + e = Ext.EventObject.setEvent(e); + var t; + if (o.delegate) { + if(!(t = e.getTarget(o.delegate, el))){ + return; + } + } else { + t = e.target; + } + if (o.stopEvent) { + e.stopEvent(); + } + if (o.preventDefault) { + e.preventDefault(); + } + if (o.stopPropagation) { + e.stopPropagation(); + } + if (o.normalized) { + e = e.browserEvent; + } + + fn.call(scope || el, e, t, o); + }; + if(o.target){ + h = createTargeted(h, o); + } + if(o.delay){ + h = createDelayed(h, o, fn); + } + if(o.single){ + h = createSingle(h, el, ename, fn, scope); + } + if(o.buffer){ + task = new Ext.util.DelayedTask(h); + h = createBuffered(h, o, task); + } + + addListener(el, ename, fn, task, h, scope); + return h; + }; + + var pub = { + /** + * Appends an event handler to an element. The shorthand version {@link #on} is equivalent. Typically you will + * use {@link Ext.Element#addListener} directly on an Element in favor of calling this version. + * @param {String/HTMLElement} el The html element or id to assign the event handler to. + * @param {String} eventName The name of the event to listen for. + * @param {Function} handler The handler function the event invokes. This function is passed + * the following parameters:
      + *
    • evt : EventObject
      The {@link Ext.EventObject EventObject} describing the event.
    • + *
    • t : Element
      The {@link Ext.Element Element} which was the target of the event. + * Note that this may be filtered by using the delegate option.
    • + *
    • o : Object
      The options object from the addListener call.
    • + *
    + * @param {Object} scope (optional) The scope (this reference) in which the handler function is executed. Defaults to the Element. + * @param {Object} options (optional) An object containing handler configuration properties. + * This may contain any of the following properties:
      + *
    • scope : Object
      The scope (this reference) in which the handler function is executed. Defaults to the Element.
    • + *
    • delegate : String
      A simple selector to filter the target or look for a descendant of the target
    • + *
    • stopEvent : Boolean
      True to stop the event. That is stop propagation, and prevent the default action.
    • + *
    • preventDefault : Boolean
      True to prevent the default action
    • + *
    • stopPropagation : Boolean
      True to prevent event propagation
    • + *
    • normalized : Boolean
      False to pass a browser event to the handler function instead of an Ext.EventObject
    • + *
    • delay : Number
      The number of milliseconds to delay the invocation of the handler after te event fires.
    • + *
    • single : Boolean
      True to add a handler to handle just the next firing of the event, and then remove itself.
    • + *
    • buffer : Number
      Causes the handler to be scheduled to run in an {@link Ext.util.DelayedTask} delayed + * by the specified number of milliseconds. If the event fires again within that time, the original + * handler is not invoked, but the new handler is scheduled in its place.
    • + *
    • target : Element
      Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node.
    • + *

    + *

    See {@link Ext.Element#addListener} for examples of how to use these options.

    + */ + addListener : function(element, eventName, fn, scope, options){ + if(typeof eventName == 'object'){ + var o = eventName, e, val; + for(e in o){ + val = o[e]; + if(!propRe.test(e)){ + if(Ext.isFunction(val)){ + // shared options + listen(element, e, o, val, o.scope); + }else{ + // individual options + listen(element, e, val); + } + } + } + } else { + listen(element, eventName, options, fn, scope); + } + }, + + /** + * Removes an event handler from an element. The shorthand version {@link #un} is equivalent. Typically + * you will use {@link Ext.Element#removeListener} directly on an Element in favor of calling this version. + * @param {String/HTMLElement} el The id or html element from which to remove the listener. + * @param {String} eventName The name of the event. + * @param {Function} fn The handler function to remove. This must be a reference to the function passed into the {@link #addListener} call. + * @param {Object} scope If a scope (this reference) was specified when the listener was added, + * then this must refer to the same object. + */ + removeListener : function(el, eventName, fn, scope){ + el = Ext.getDom(el); + var id = getId(el), + f = el && (Ext.elCache[id].events)[eventName] || [], + wrap, i, l, k, len, fnc; + + for (i = 0, len = f.length; i < len; i++) { + + /* 0 = Original Function, + 1 = Event Manager Wrapped Function, + 2 = Scope, + 3 = Adapter Wrapped Function, + 4 = Buffered Task + */ + if (Ext.isArray(fnc = f[i]) && fnc[0] == fn && (!scope || fnc[2] == scope)) { + if(fnc[4]) { + fnc[4].cancel(); + } + k = fn.tasks && fn.tasks.length; + if(k) { + while(k--) { + fn.tasks[k].cancel(); + } + delete fn.tasks; + } + wrap = fnc[1]; + E.un(el, eventName, E.extAdapter ? fnc[3] : wrap); + + // jQuery workaround that should be removed from Ext Core + if(wrap && el.addEventListener && eventName == "mousewheel"){ + el.removeEventListener("DOMMouseScroll", wrap, false); + } + + // fix stopped mousedowns on the document + if(wrap && el == DOC && eventName == "mousedown"){ + Ext.EventManager.stoppedMouseDownEvent.removeListener(wrap); + } + + f.splice(i, 1); + if (f.length === 0) { + delete Ext.elCache[id].events[eventName]; + } + for (k in Ext.elCache[id].events) { + return false; + } + Ext.elCache[id].events = {}; + return false; + } + } + }, + + /** + * Removes all event handers from an element. Typically you will use {@link Ext.Element#removeAllListeners} + * directly on an Element in favor of calling this version. + * @param {String/HTMLElement} el The id or html element from which to remove all event handlers. + */ + removeAll : function(el){ + el = Ext.getDom(el); + var id = getId(el), + ec = Ext.elCache[id] || {}, + es = ec.events || {}, + f, i, len, ename, fn, k, wrap; + + for(ename in es){ + if(es.hasOwnProperty(ename)){ + f = es[ename]; + /* 0 = Original Function, + 1 = Event Manager Wrapped Function, + 2 = Scope, + 3 = Adapter Wrapped Function, + 4 = Buffered Task + */ + for (i = 0, len = f.length; i < len; i++) { + fn = f[i]; + if(fn[4]) { + fn[4].cancel(); + } + if(fn[0].tasks && (k = fn[0].tasks.length)) { + while(k--) { + fn[0].tasks[k].cancel(); + } + delete fn.tasks; + } + wrap = fn[1]; + E.un(el, ename, E.extAdapter ? fn[3] : wrap); + + // jQuery workaround that should be removed from Ext Core + if(el.addEventListener && wrap && ename == "mousewheel"){ + el.removeEventListener("DOMMouseScroll", wrap, false); + } + + // fix stopped mousedowns on the document + if(wrap && el == DOC && ename == "mousedown"){ + Ext.EventManager.stoppedMouseDownEvent.removeListener(wrap); + } + } + } + } + if (Ext.elCache[id]) { + Ext.elCache[id].events = {}; + } + }, + + getListeners : function(el, eventName) { + el = Ext.getDom(el); + var id = getId(el), + ec = Ext.elCache[id] || {}, + es = ec.events || {}, + results = []; + if (es && es[eventName]) { + return es[eventName]; + } else { + return null; + } + }, + + purgeElement : function(el, recurse, eventName) { + el = Ext.getDom(el); + var id = getId(el), + ec = Ext.elCache[id] || {}, + es = ec.events || {}, + i, f, len; + if (eventName) { + if (es && es.hasOwnProperty(eventName)) { + f = es[eventName]; + for (i = 0, len = f.length; i < len; i++) { + Ext.EventManager.removeListener(el, eventName, f[i][0]); + } + } + } else { + Ext.EventManager.removeAll(el); + } + if (recurse && el && el.childNodes) { + for (i = 0, len = el.childNodes.length; i < len; i++) { + Ext.EventManager.purgeElement(el.childNodes[i], recurse, eventName); + } + } + }, + + _unload : function() { + var el; + for (el in Ext.elCache) { + Ext.EventManager.removeAll(el); + } + delete Ext.elCache; + delete Ext.Element._flyweights; + + // Abort any outstanding Ajax requests + var c, + conn, + tid, + ajax = Ext.lib.Ajax; + (typeof ajax.conn == 'object') ? conn = ajax.conn : conn = {}; + for (tid in conn) { + c = conn[tid]; + if (c) { + ajax.abort({conn: c, tId: tid}); + } + } + }, + /** + * Adds a listener to be notified when the document is ready (before onload and before images are loaded). Can be + * accessed shorthanded as Ext.onReady(). + * @param {Function} fn The method the event invokes. + * @param {Object} scope (optional) The scope (this reference) in which the handler function executes. Defaults to the browser window. + * @param {boolean} options (optional) Options object as passed to {@link Ext.Element#addListener}. It is recommended that the options + * {single: true} be used so that the handler is removed on first invocation. + */ + onDocumentReady : function(fn, scope, options){ + if(Ext.isReady){ // if it already fired or document.body is present + docReadyEvent || (docReadyEvent = new Ext.util.Event()); + docReadyEvent.addListener(fn, scope, options); + docReadyEvent.fire(); + docReadyEvent.listeners = []; + }else{ + if(!docReadyEvent){ + initDocReady(); + } + options = options || {}; + options.delay = options.delay || 1; + docReadyEvent.addListener(fn, scope, options); + } + }, + + /** + * Forces a document ready state transition for the framework. Used when Ext is loaded + * into a DOM structure AFTER initial page load (Google API or other dynamic load scenario. + * Any pending 'onDocumentReady' handlers will be fired (if not already handled). + */ + fireDocReady : fireDocReady + }; + /** + * Appends an event handler to an element. Shorthand for {@link #addListener}. + * @param {String/HTMLElement} el The html element or id to assign the event handler to + * @param {String} eventName The name of the event to listen for. + * @param {Function} handler The handler function the event invokes. + * @param {Object} scope (optional) (this reference) in which the handler function executes. Defaults to the Element. + * @param {Object} options (optional) An object containing standard {@link #addListener} options + * @member Ext.EventManager + * @method on + */ + pub.on = pub.addListener; + /** + * Removes an event handler from an element. Shorthand for {@link #removeListener}. + * @param {String/HTMLElement} el The id or html element from which to remove the listener. + * @param {String} eventName The name of the event. + * @param {Function} fn The handler function to remove. This must be a reference to the function passed into the {@link #on} call. + * @param {Object} scope If a scope (this reference) was specified when the listener was added, + * then this must refer to the same object. + * @member Ext.EventManager + * @method un + */ + pub.un = pub.removeListener; + + pub.stoppedMouseDownEvent = new Ext.util.Event(); + return pub; +}(); +/** + * Adds a listener to be notified when the document is ready (before onload and before images are loaded). Shorthand of {@link Ext.EventManager#onDocumentReady}. + * @param {Function} fn The method the event invokes. + * @param {Object} scope (optional) The scope (this reference) in which the handler function executes. Defaults to the browser window. + * @param {boolean} options (optional) Options object as passed to {@link Ext.Element#addListener}. It is recommended that the options + * {single: true} be used so that the handler is removed on first invocation. + * @member Ext + * @method onReady + */ +Ext.onReady = Ext.EventManager.onDocumentReady; + + +//Initialize doc classes +(function(){ + + var initExtCss = function(){ + // find the body element + var bd = document.body || document.getElementsByTagName('body')[0]; + if(!bd){ return false; } + var cls = [' ', + Ext.isIE ? "ext-ie " + (Ext.isIE6 ? 'ext-ie6' : (Ext.isIE7 ? 'ext-ie7' : 'ext-ie8')) + : Ext.isGecko ? "ext-gecko " + (Ext.isGecko2 ? 'ext-gecko2' : 'ext-gecko3') + : Ext.isOpera ? "ext-opera" + : Ext.isWebKit ? "ext-webkit" : ""]; + + if(Ext.isSafari){ + cls.push("ext-safari " + (Ext.isSafari2 ? 'ext-safari2' : (Ext.isSafari3 ? 'ext-safari3' : 'ext-safari4'))); + }else if(Ext.isChrome){ + cls.push("ext-chrome"); + } + + if(Ext.isMac){ + cls.push("ext-mac"); + } + if(Ext.isLinux){ + cls.push("ext-linux"); + } + + if(Ext.isStrict || Ext.isBorderBox){ // add to the parent to allow for selectors like ".ext-strict .ext-ie" + var p = bd.parentNode; + if(p){ + p.className += Ext.isStrict ? ' ext-strict' : ' ext-border-box'; + } + } + bd.className += cls.join(' '); + return true; + } + + if(!initExtCss()){ + Ext.onReady(initExtCss); + } +})(); + + +/** + * @class Ext.EventObject + * Just as {@link Ext.Element} wraps around a native DOM node, Ext.EventObject + * wraps the browser's native event-object normalizing cross-browser differences, + * such as which mouse button is clicked, keys pressed, mechanisms to stop + * event-propagation along with a method to prevent default actions from taking place. + *

    For example:

    + *
    
    +function handleClick(e, t){ // e is not a standard event object, it is a Ext.EventObject
    +    e.preventDefault();
    +    var target = e.getTarget(); // same as t (the target HTMLElement)
    +    ...
    +}
    +var myDiv = {@link Ext#get Ext.get}("myDiv");  // get reference to an {@link Ext.Element}
    +myDiv.on(         // 'on' is shorthand for addListener
    +    "click",      // perform an action on click of myDiv
    +    handleClick   // reference to the action handler
    +);
    +// other methods to do the same:
    +Ext.EventManager.on("myDiv", 'click', handleClick);
    +Ext.EventManager.addListener("myDiv", 'click', handleClick);
    + 
    + * @singleton + */ +Ext.EventObject = function(){ + var E = Ext.lib.Event, + // safari keypress events for special keys return bad keycodes + safariKeys = { + 3 : 13, // enter + 63234 : 37, // left + 63235 : 39, // right + 63232 : 38, // up + 63233 : 40, // down + 63276 : 33, // page up + 63277 : 34, // page down + 63272 : 46, // delete + 63273 : 36, // home + 63275 : 35 // end + }, + // normalize button clicks + btnMap = Ext.isIE ? {1:0,4:1,2:2} : + (Ext.isWebKit ? {1:0,2:1,3:2} : {0:0,1:1,2:2}); + + Ext.EventObjectImpl = function(e){ + if(e){ + this.setEvent(e.browserEvent || e); + } + }; + + Ext.EventObjectImpl.prototype = { + /** @private */ + setEvent : function(e){ + var me = this; + if(e == me || (e && e.browserEvent)){ // already wrapped + return e; + } + me.browserEvent = e; + if(e){ + // normalize buttons + me.button = e.button ? btnMap[e.button] : (e.which ? e.which - 1 : -1); + if(e.type == 'click' && me.button == -1){ + me.button = 0; + } + me.type = e.type; + me.shiftKey = e.shiftKey; + // mac metaKey behaves like ctrlKey + me.ctrlKey = e.ctrlKey || e.metaKey || false; + me.altKey = e.altKey; + // in getKey these will be normalized for the mac + me.keyCode = e.keyCode; + me.charCode = e.charCode; + // cache the target for the delayed and or buffered events + me.target = E.getTarget(e); + // same for XY + me.xy = E.getXY(e); + }else{ + me.button = -1; + me.shiftKey = false; + me.ctrlKey = false; + me.altKey = false; + me.keyCode = 0; + me.charCode = 0; + me.target = null; + me.xy = [0, 0]; + } + return me; + }, + + /** + * Stop the event (preventDefault and stopPropagation) + */ + stopEvent : function(){ + var me = this; + if(me.browserEvent){ + if(me.browserEvent.type == 'mousedown'){ + Ext.EventManager.stoppedMouseDownEvent.fire(me); + } + E.stopEvent(me.browserEvent); + } + }, + + /** + * Prevents the browsers default handling of the event. + */ + preventDefault : function(){ + if(this.browserEvent){ + E.preventDefault(this.browserEvent); + } + }, + + /** + * Cancels bubbling of the event. + */ + stopPropagation : function(){ + var me = this; + if(me.browserEvent){ + if(me.browserEvent.type == 'mousedown'){ + Ext.EventManager.stoppedMouseDownEvent.fire(me); + } + E.stopPropagation(me.browserEvent); + } + }, + + /** + * Gets the character code for the event. + * @return {Number} + */ + getCharCode : function(){ + return this.charCode || this.keyCode; + }, + + /** + * Returns a normalized keyCode for the event. + * @return {Number} The key code + */ + getKey : function(){ + return this.normalizeKey(this.keyCode || this.charCode) + }, + + // private + normalizeKey: function(k){ + return Ext.isSafari ? (safariKeys[k] || k) : k; + }, + + /** + * Gets the x coordinate of the event. + * @return {Number} + */ + getPageX : function(){ + return this.xy[0]; + }, + + /** + * Gets the y coordinate of the event. + * @return {Number} + */ + getPageY : function(){ + return this.xy[1]; + }, + + /** + * Gets the page coordinates of the event. + * @return {Array} The xy values like [x, y] + */ + getXY : function(){ + return this.xy; + }, + + /** + * Gets the target for the event. + * @param {String} selector (optional) A simple selector to filter the target or look for an ancestor of the target + * @param {Number/Mixed} maxDepth (optional) The max depth to + search as a number or element (defaults to 10 || document.body) + * @param {Boolean} returnEl (optional) True to return a Ext.Element object instead of DOM node + * @return {HTMLelement} + */ + getTarget : function(selector, maxDepth, returnEl){ + return selector ? Ext.fly(this.target).findParent(selector, maxDepth, returnEl) : (returnEl ? Ext.get(this.target) : this.target); + }, + + /** + * Gets the related target. + * @return {HTMLElement} + */ + getRelatedTarget : function(){ + return this.browserEvent ? E.getRelatedTarget(this.browserEvent) : null; + }, + + /** + * Normalizes mouse wheel delta across browsers + * @return {Number} The delta + */ + getWheelDelta : function(){ + var e = this.browserEvent; + var delta = 0; + if(e.wheelDelta){ /* IE/Opera. */ + delta = e.wheelDelta/120; + }else if(e.detail){ /* Mozilla case. */ + delta = -e.detail/3; + } + return delta; + }, + + /** + * Returns true if the target of this event is a child of el. Unless the allowEl parameter is set, it will return false if if the target is el. + * Example usage:
    
    +        // Handle click on any child of an element
    +        Ext.getBody().on('click', function(e){
    +            if(e.within('some-el')){
    +                alert('Clicked on a child of some-el!');
    +            }
    +        });
    +
    +        // Handle click directly on an element, ignoring clicks on child nodes
    +        Ext.getBody().on('click', function(e,t){
    +            if((t.id == 'some-el') && !e.within(t, true)){
    +                alert('Clicked directly on some-el!');
    +            }
    +        });
    +        
    + * @param {Mixed} el The id, DOM element or Ext.Element to check + * @param {Boolean} related (optional) true to test if the related target is within el instead of the target + * @param {Boolean} allowEl {optional} true to also check if the passed element is the target or related target + * @return {Boolean} + */ + within : function(el, related, allowEl){ + if(el){ + var t = this[related ? "getRelatedTarget" : "getTarget"](); + return t && ((allowEl ? (t == Ext.getDom(el)) : false) || Ext.fly(el).contains(t)); + } + return false; + } + }; + + return new Ext.EventObjectImpl(); +}(); +/** +* @class Ext.EventManager +*/ +Ext.apply(Ext.EventManager, function(){ + var resizeEvent, + resizeTask, + textEvent, + textSize, + D = Ext.lib.Dom, + propRe = /^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/, + curWidth = 0, + curHeight = 0, + // note 1: IE fires ONLY the keydown event on specialkey autorepeat + // note 2: Safari < 3.1, Gecko (Mac/Linux) & Opera fire only the keypress event on specialkey autorepeat + // (research done by @Jan Wolter at http://unixpapa.com/js/key.html) + useKeydown = Ext.isWebKit ? + Ext.num(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1]) >= 525 : + !((Ext.isGecko && !Ext.isWindows) || Ext.isOpera); + + return { + // private + doResizeEvent: function(){ + var h = D.getViewHeight(), + w = D.getViewWidth(); + + //whacky problem in IE where the resize event will fire even though the w/h are the same. + if(curHeight != h || curWidth != w){ + resizeEvent.fire(curWidth = w, curHeight = h); + } + }, + + /** + * Adds a listener to be notified when the browser window is resized and provides resize event buffering (100 milliseconds), + * passes new viewport width and height to handlers. + * @param {Function} fn The handler function the window resize event invokes. + * @param {Object} scope The scope (this reference) in which the handler function executes. Defaults to the browser window. + * @param {boolean} options Options object as passed to {@link Ext.Element#addListener} + */ + onWindowResize : function(fn, scope, options){ + if(!resizeEvent){ + resizeEvent = new Ext.util.Event(); + resizeTask = new Ext.util.DelayedTask(this.doResizeEvent); + Ext.EventManager.on(window, "resize", this.fireWindowResize, this); + } + resizeEvent.addListener(fn, scope, options); + }, + + // exposed only to allow manual firing + fireWindowResize : function(){ + if(resizeEvent){ + resizeTask.delay(100); + } + }, + + /** + * Adds a listener to be notified when the user changes the active text size. Handler gets called with 2 params, the old size and the new size. + * @param {Function} fn The function the event invokes. + * @param {Object} scope The scope (this reference) in which the handler function executes. Defaults to the browser window. + * @param {boolean} options Options object as passed to {@link Ext.Element#addListener} + */ + onTextResize : function(fn, scope, options){ + if(!textEvent){ + textEvent = new Ext.util.Event(); + var textEl = new Ext.Element(document.createElement('div')); + textEl.dom.className = 'x-text-resize'; + textEl.dom.innerHTML = 'X'; + textEl.appendTo(document.body); + textSize = textEl.dom.offsetHeight; + setInterval(function(){ + if(textEl.dom.offsetHeight != textSize){ + textEvent.fire(textSize, textSize = textEl.dom.offsetHeight); + } + }, this.textResizeInterval); + } + textEvent.addListener(fn, scope, options); + }, + + /** + * Removes the passed window resize listener. + * @param {Function} fn The method the event invokes + * @param {Object} scope The scope of handler + */ + removeResizeListener : function(fn, scope){ + if(resizeEvent){ + resizeEvent.removeListener(fn, scope); + } + }, + + // private + fireResize : function(){ + if(resizeEvent){ + resizeEvent.fire(D.getViewWidth(), D.getViewHeight()); + } + }, + + /** + * The frequency, in milliseconds, to check for text resize events (defaults to 50) + */ + textResizeInterval : 50, + + /** + * Url used for onDocumentReady with using SSL (defaults to Ext.SSL_SECURE_URL) + */ + ieDeferSrc : false, + + // protected for use inside the framework + // detects whether we should use keydown or keypress based on the browser. + useKeydown: useKeydown + }; +}()); + +Ext.EventManager.on = Ext.EventManager.addListener; + + +Ext.apply(Ext.EventObjectImpl.prototype, { + /** Key constant @type Number */ + BACKSPACE: 8, + /** Key constant @type Number */ + TAB: 9, + /** Key constant @type Number */ + NUM_CENTER: 12, + /** Key constant @type Number */ + ENTER: 13, + /** Key constant @type Number */ + RETURN: 13, + /** Key constant @type Number */ + SHIFT: 16, + /** Key constant @type Number */ + CTRL: 17, + CONTROL : 17, // legacy + /** Key constant @type Number */ + ALT: 18, + /** Key constant @type Number */ + PAUSE: 19, + /** Key constant @type Number */ + CAPS_LOCK: 20, + /** Key constant @type Number */ + ESC: 27, + /** Key constant @type Number */ + SPACE: 32, + /** Key constant @type Number */ + PAGE_UP: 33, + PAGEUP : 33, // legacy + /** Key constant @type Number */ + PAGE_DOWN: 34, + PAGEDOWN : 34, // legacy + /** Key constant @type Number */ + END: 35, + /** Key constant @type Number */ + HOME: 36, + /** Key constant @type Number */ + LEFT: 37, + /** Key constant @type Number */ + UP: 38, + /** Key constant @type Number */ + RIGHT: 39, + /** Key constant @type Number */ + DOWN: 40, + /** Key constant @type Number */ + PRINT_SCREEN: 44, + /** Key constant @type Number */ + INSERT: 45, + /** Key constant @type Number */ + DELETE: 46, + /** Key constant @type Number */ + ZERO: 48, + /** Key constant @type Number */ + ONE: 49, + /** Key constant @type Number */ + TWO: 50, + /** Key constant @type Number */ + THREE: 51, + /** Key constant @type Number */ + FOUR: 52, + /** Key constant @type Number */ + FIVE: 53, + /** Key constant @type Number */ + SIX: 54, + /** Key constant @type Number */ + SEVEN: 55, + /** Key constant @type Number */ + EIGHT: 56, + /** Key constant @type Number */ + NINE: 57, + /** Key constant @type Number */ + A: 65, + /** Key constant @type Number */ + B: 66, + /** Key constant @type Number */ + C: 67, + /** Key constant @type Number */ + D: 68, + /** Key constant @type Number */ + E: 69, + /** Key constant @type Number */ + F: 70, + /** Key constant @type Number */ + G: 71, + /** Key constant @type Number */ + H: 72, + /** Key constant @type Number */ + I: 73, + /** Key constant @type Number */ + J: 74, + /** Key constant @type Number */ + K: 75, + /** Key constant @type Number */ + L: 76, + /** Key constant @type Number */ + M: 77, + /** Key constant @type Number */ + N: 78, + /** Key constant @type Number */ + O: 79, + /** Key constant @type Number */ + P: 80, + /** Key constant @type Number */ + Q: 81, + /** Key constant @type Number */ + R: 82, + /** Key constant @type Number */ + S: 83, + /** Key constant @type Number */ + T: 84, + /** Key constant @type Number */ + U: 85, + /** Key constant @type Number */ + V: 86, + /** Key constant @type Number */ + W: 87, + /** Key constant @type Number */ + X: 88, + /** Key constant @type Number */ + Y: 89, + /** Key constant @type Number */ + Z: 90, + /** Key constant @type Number */ + CONTEXT_MENU: 93, + /** Key constant @type Number */ + NUM_ZERO: 96, + /** Key constant @type Number */ + NUM_ONE: 97, + /** Key constant @type Number */ + NUM_TWO: 98, + /** Key constant @type Number */ + NUM_THREE: 99, + /** Key constant @type Number */ + NUM_FOUR: 100, + /** Key constant @type Number */ + NUM_FIVE: 101, + /** Key constant @type Number */ + NUM_SIX: 102, + /** Key constant @type Number */ + NUM_SEVEN: 103, + /** Key constant @type Number */ + NUM_EIGHT: 104, + /** Key constant @type Number */ + NUM_NINE: 105, + /** Key constant @type Number */ + NUM_MULTIPLY: 106, + /** Key constant @type Number */ + NUM_PLUS: 107, + /** Key constant @type Number */ + NUM_MINUS: 109, + /** Key constant @type Number */ + NUM_PERIOD: 110, + /** Key constant @type Number */ + NUM_DIVISION: 111, + /** Key constant @type Number */ + F1: 112, + /** Key constant @type Number */ + F2: 113, + /** Key constant @type Number */ + F3: 114, + /** Key constant @type Number */ + F4: 115, + /** Key constant @type Number */ + F5: 116, + /** Key constant @type Number */ + F6: 117, + /** Key constant @type Number */ + F7: 118, + /** Key constant @type Number */ + F8: 119, + /** Key constant @type Number */ + F9: 120, + /** Key constant @type Number */ + F10: 121, + /** Key constant @type Number */ + F11: 122, + /** Key constant @type Number */ + F12: 123, + + /** @private */ + isNavKeyPress : function(){ + var me = this, + k = this.normalizeKey(me.keyCode); + return (k >= 33 && k <= 40) || // Page Up/Down, End, Home, Left, Up, Right, Down + k == me.RETURN || + k == me.TAB || + k == me.ESC; + }, + + isSpecialKey : function(){ + var k = this.normalizeKey(this.keyCode); + return (this.type == 'keypress' && this.ctrlKey) || + this.isNavKeyPress() || + (k == this.BACKSPACE) || // Backspace + (k >= 16 && k <= 20) || // Shift, Ctrl, Alt, Pause, Caps Lock + (k >= 44 && k <= 46); // Print Screen, Insert, Delete + }, + + getPoint : function(){ + return new Ext.lib.Point(this.xy[0], this.xy[1]); + }, + + /** + * Returns true if the control, meta, shift or alt key was pressed during this event. + * @return {Boolean} + */ + hasModifier : function(){ + return ((this.ctrlKey || this.altKey) || this.shiftKey); + } +});/** + * @class Ext.Element + *

    Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.

    + *

    All instances of this class inherit the methods of {@link Ext.Fx} making visual effects easily available to all DOM elements.

    + *

    Note that the events documented in this class are not Ext events, they encapsulate browser events. To + * access the underlying browser event, see {@link Ext.EventObject#browserEvent}. Some older + * browsers may not support the full range of events. Which events are supported is beyond the control of ExtJs.

    + * Usage:
    +
    
    +// by id
    +var el = Ext.get("my-div");
    +
    +// by DOM element reference
    +var el = Ext.get(myDivElement);
    +
    + * Animations
    + *

    When an element is manipulated, by default there is no animation.

    + *
    
    +var el = Ext.get("my-div");
    +
    +// no animation
    +el.setWidth(100);
    + * 
    + *

    Many of the functions for manipulating an element have an optional "animate" parameter. This + * parameter can be specified as boolean (true) for default animation effects.

    + *
    
    +// default animation
    +el.setWidth(100, true);
    + * 
    + * + *

    To configure the effects, an object literal with animation options to use as the Element animation + * configuration object can also be specified. Note that the supported Element animation configuration + * options are a subset of the {@link Ext.Fx} animation options specific to Fx effects. The supported + * Element animation configuration options are:

    +
    +Option    Default   Description
    +--------- --------  ---------------------------------------------
    +{@link Ext.Fx#duration duration}  .35       The duration of the animation in seconds
    +{@link Ext.Fx#easing easing}    easeOut   The easing method
    +{@link Ext.Fx#callback callback}  none      A function to execute when the anim completes
    +{@link Ext.Fx#scope scope}     this      The scope (this) of the callback function
    +
    + * + *
    
    +// Element animation options object
    +var opt = {
    +    {@link Ext.Fx#duration duration}: 1,
    +    {@link Ext.Fx#easing easing}: 'elasticIn',
    +    {@link Ext.Fx#callback callback}: this.foo,
    +    {@link Ext.Fx#scope scope}: this
    +};
    +// animation with some options set
    +el.setWidth(100, opt);
    + * 
    + *

    The Element animation object being used for the animation will be set on the options + * object as "anim", which allows you to stop or manipulate the animation. Here is an example:

    + *
    
    +// using the "anim" property to get the Anim object
    +if(opt.anim.isAnimated()){
    +    opt.anim.stop();
    +}
    + * 
    + *

    Also see the {@link #animate} method for another animation technique.

    + *

    Composite (Collections of) Elements

    + *

    For working with collections of Elements, see {@link Ext.CompositeElement}

    + * @constructor Create a new Element directly. + * @param {String/HTMLElement} element + * @param {Boolean} forceNew (optional) By default the constructor checks to see if there is already an instance of this element in the cache and if there is it returns the same instance. This will skip that check (useful for extending this class). + */ +(function(){ +var DOC = document; + +Ext.Element = function(element, forceNew){ + var dom = typeof element == "string" ? + DOC.getElementById(element) : element, + id; + + if(!dom) return null; + + id = dom.id; + + if(!forceNew && id && Ext.elCache[id]){ // element object already exists + return Ext.elCache[id].el; + } + + /** + * The DOM element + * @type HTMLElement + */ + this.dom = dom; + + /** + * The DOM element ID + * @type String + */ + this.id = id || Ext.id(dom); +}; + +var D = Ext.lib.Dom, + DH = Ext.DomHelper, + E = Ext.lib.Event, + A = Ext.lib.Anim, + El = Ext.Element, + EC = Ext.elCache; + +El.prototype = { + /** + * Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) + * @param {Object} o The object with the attributes + * @param {Boolean} useSet (optional) false to override the default setAttribute to use expandos. + * @return {Ext.Element} this + */ + set : function(o, useSet){ + var el = this.dom, + attr, + val, + useSet = (useSet !== false) && !!el.setAttribute; + + for(attr in o){ + if (o.hasOwnProperty(attr)) { + val = o[attr]; + if (attr == 'style') { + DH.applyStyles(el, val); + } else if (attr == 'cls') { + el.className = val; + } else if (useSet) { + el.setAttribute(attr, val); + } else { + el[attr] = val; + } + } + } + return this; + }, + +// Mouse events + /** + * @event click + * Fires when a mouse click is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event contextmenu + * Fires when a right click is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event dblclick + * Fires when a mouse double click is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event mousedown + * Fires when a mousedown is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event mouseup + * Fires when a mouseup is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event mouseover + * Fires when a mouseover is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event mousemove + * Fires when a mousemove is detected with the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event mouseout + * Fires when a mouseout is detected with the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event mouseenter + * Fires when the mouse enters the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event mouseleave + * Fires when the mouse leaves the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + +// Keyboard events + /** + * @event keypress + * Fires when a keypress is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event keydown + * Fires when a keydown is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event keyup + * Fires when a keyup is detected within the element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + + +// HTML frame/object events + /** + * @event load + * Fires when the user agent finishes loading all content within the element. Only supported by window, frames, objects and images. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event unload + * Fires when the user agent removes all content from a window or frame. For elements, it fires when the target element or any of its content has been removed. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event abort + * Fires when an object/image is stopped from loading before completely loaded. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event error + * Fires when an object/image/frame cannot be loaded properly. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event resize + * Fires when a document view is resized. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event scroll + * Fires when a document view is scrolled. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + +// Form events + /** + * @event select + * Fires when a user selects some text in a text field, including input and textarea. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event change + * Fires when a control loses the input focus and its value has been modified since gaining focus. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event submit + * Fires when a form is submitted. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event reset + * Fires when a form is reset. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event focus + * Fires when an element receives focus either via the pointing device or by tab navigation. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event blur + * Fires when an element loses focus either via the pointing device or by tabbing navigation. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + +// User Interface events + /** + * @event DOMFocusIn + * Where supported. Similar to HTML focus event, but can be applied to any focusable element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event DOMFocusOut + * Where supported. Similar to HTML blur event, but can be applied to any focusable element. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event DOMActivate + * Where supported. Fires when an element is activated, for instance, through a mouse click or a keypress. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + +// DOM Mutation events + /** + * @event DOMSubtreeModified + * Where supported. Fires when the subtree is modified. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event DOMNodeInserted + * Where supported. Fires when a node has been added as a child of another node. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event DOMNodeRemoved + * Where supported. Fires when a descendant node of the element is removed. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event DOMNodeRemovedFromDocument + * Where supported. Fires when a node is being removed from a document. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event DOMNodeInsertedIntoDocument + * Where supported. Fires when a node is being inserted into a document. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event DOMAttrModified + * Where supported. Fires when an attribute has been modified. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + /** + * @event DOMCharacterDataModified + * Where supported. Fires when the character data has been modified. + * @param {Ext.EventObject} e The {@link Ext.EventObject} encapsulating the DOM event. + * @param {HtmlElement} t The target of the event. + * @param {Object} o The options configuration passed to the {@link #addListener} call. + */ + + /** + * The default unit to append to CSS values where a unit isn't provided (defaults to px). + * @type String + */ + defaultUnit : "px", + + /** + * Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child) + * @param {String} selector The simple selector to test + * @return {Boolean} True if this element matches the selector, else false + */ + is : function(simpleSelector){ + return Ext.DomQuery.is(this.dom, simpleSelector); + }, + + /** + * Tries to focus the element. Any exceptions are caught and ignored. + * @param {Number} defer (optional) Milliseconds to defer the focus + * @return {Ext.Element} this + */ + focus : function(defer, /* private */ dom) { + var me = this, + dom = dom || me.dom; + try{ + if(Number(defer)){ + me.focus.defer(defer, null, [null, dom]); + }else{ + dom.focus(); + } + }catch(e){} + return me; + }, + + /** + * Tries to blur the element. Any exceptions are caught and ignored. + * @return {Ext.Element} this + */ + blur : function() { + try{ + this.dom.blur(); + }catch(e){} + return this; + }, + + /** + * Returns the value of the "value" attribute + * @param {Boolean} asNumber true to parse the value as a number + * @return {String/Number} + */ + getValue : function(asNumber){ + var val = this.dom.value; + return asNumber ? parseInt(val, 10) : val; + }, + + /** + * Appends an event handler to this element. The shorthand version {@link #on} is equivalent. + * @param {String} eventName The name of event to handle. + * @param {Function} fn The handler function the event invokes. This function is passed + * the following parameters:
      + *
    • evt : EventObject
      The {@link Ext.EventObject EventObject} describing the event.
    • + *
    • el : HtmlElement
      The DOM element which was the target of the event. + * Note that this may be filtered by using the delegate option.
    • + *
    • o : Object
      The options object from the addListener call.
    • + *
    + * @param {Object} scope (optional) The scope (this reference) in which the handler function is executed. + * If omitted, defaults to this Element.. + * @param {Object} options (optional) An object containing handler configuration properties. + * This may contain any of the following properties:
      + *
    • scope Object :
      The scope (this reference) in which the handler function is executed. + * If omitted, defaults to this Element.
    • + *
    • delegate String:
      A simple selector to filter the target or look for a descendant of the target. See below for additional details.
    • + *
    • stopEvent Boolean:
      True to stop the event. That is stop propagation, and prevent the default action.
    • + *
    • preventDefault Boolean:
      True to prevent the default action
    • + *
    • stopPropagation Boolean:
      True to prevent event propagation
    • + *
    • normalized Boolean:
      False to pass a browser event to the handler function instead of an Ext.EventObject
    • + *
    • target Ext.Element:
      Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node.
    • + *
    • delay Number:
      The number of milliseconds to delay the invocation of the handler after the event fires.
    • + *
    • single Boolean:
      True to add a handler to handle just the next firing of the event, and then remove itself.
    • + *
    • buffer Number:
      Causes the handler to be scheduled to run in an {@link Ext.util.DelayedTask} delayed + * by the specified number of milliseconds. If the event fires again within that time, the original + * handler is not invoked, but the new handler is scheduled in its place.
    • + *

    + *

    + * Combining Options
    + * In the following examples, the shorthand form {@link #on} is used rather than the more verbose + * addListener. The two are equivalent. Using the options argument, it is possible to combine different + * types of listeners:
    + *
    + * A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the + * options object. The options object is available as the third parameter in the handler function.

    + * Code:
    
    +el.on('click', this.onClick, this, {
    +    single: true,
    +    delay: 100,
    +    stopEvent : true,
    +    forumId: 4
    +});

    + *

    + * Attaching multiple handlers in 1 call
    + * The method also allows for a single argument to be passed which is a config object containing properties + * which specify multiple handlers.

    + *

    + * Code:

    
    +el.on({
    +    'click' : {
    +        fn: this.onClick,
    +        scope: this,
    +        delay: 100
    +    },
    +    'mouseover' : {
    +        fn: this.onMouseOver,
    +        scope: this
    +    },
    +    'mouseout' : {
    +        fn: this.onMouseOut,
    +        scope: this
    +    }
    +});
    + *

    + * Or a shorthand syntax:
    + * Code:

    +el.on({ + 'click' : this.onClick, + 'mouseover' : this.onMouseOver, + 'mouseout' : this.onMouseOut, + scope: this +}); + *

    + *

    delegate

    + *

    This is a configuration option that you can pass along when registering a handler for + * an event to assist with event delegation. Event delegation is a technique that is used to + * reduce memory consumption and prevent exposure to memory-leaks. By registering an event + * for a container element as opposed to each element within a container. By setting this + * configuration option to a simple selector, the target element will be filtered to look for + * a descendant of the target. + * For example:

    
    +// using this markup:
    +<div id='elId'>
    +    <p id='p1'>paragraph one</p>
    +    <p id='p2' class='clickable'>paragraph two</p>
    +    <p id='p3'>paragraph three</p>
    +</div>
    +// utilize event delegation to registering just one handler on the container element:
    +el = Ext.get('elId');
    +el.on(
    +    'click',
    +    function(e,t) {
    +        // handle click
    +        console.info(t.id); // 'p2'
    +    },
    +    this,
    +    {
    +        // filter the target element to be a descendant with the class 'clickable'
    +        delegate: '.clickable'
    +    }
    +);
    +     * 

    + * @return {Ext.Element} this + */ + addListener : function(eventName, fn, scope, options){ + Ext.EventManager.on(this.dom, eventName, fn, scope || this, options); + return this; + }, + + /** + * Removes an event handler from this element. The shorthand version {@link #un} is equivalent. + * Note: if a scope was explicitly specified when {@link #addListener adding} the + * listener, the same scope must be specified here. + * Example: + *
    
    +el.removeListener('click', this.handlerFn);
    +// or
    +el.un('click', this.handlerFn);
    +
    + * @param {String} eventName The name of the event from which to remove the handler. + * @param {Function} fn The handler function to remove. This must be a reference to the function passed into the {@link #addListener} call. + * @param {Object} scope If a scope (this reference) was specified when the listener was added, + * then this must refer to the same object. + * @return {Ext.Element} this + */ + removeListener : function(eventName, fn, scope){ + Ext.EventManager.removeListener(this.dom, eventName, fn, scope || this); + return this; + }, + + /** + * Removes all previous added listeners from this element + * @return {Ext.Element} this + */ + removeAllListeners : function(){ + Ext.EventManager.removeAll(this.dom); + return this; + }, + + /** + * Recursively removes all previous added listeners from this element and its children + * @return {Ext.Element} this + */ + purgeAllListeners : function() { + Ext.EventManager.purgeElement(this, true); + return this; + }, + /** + * @private Test if size has a unit, otherwise appends the default + */ + addUnits : function(size){ + if(size === "" || size == "auto" || size === undefined){ + size = size || ''; + } else if(!isNaN(size) || !unitPattern.test(size)){ + size = size + (this.defaultUnit || 'px'); + } + return size; + }, + + /** + *

    Updates the innerHTML of this Element + * from a specified URL. Note that this is subject to the Same Origin Policy

    + *

    Updating innerHTML of an element will not execute embedded <script> elements. This is a browser restriction.

    + * @param {Mixed} options. Either a sring containing the URL from which to load the HTML, or an {@link Ext.Ajax#request} options object specifying + * exactly how to request the HTML. + * @return {Ext.Element} this + */ + load : function(url, params, cb){ + Ext.Ajax.request(Ext.apply({ + params: params, + url: url.url || url, + callback: cb, + el: this.dom, + indicatorText: url.indicatorText || '' + }, Ext.isObject(url) ? url : {})); + return this; + }, + + /** + * Tests various css rules/browsers to determine if this element uses a border box + * @return {Boolean} + */ + isBorderBox : function(){ + return noBoxAdjust[(this.dom.tagName || "").toLowerCase()] || Ext.isBorderBox; + }, + + /** + *

    Removes this element's dom reference. Note that event and cache removal is handled at {@link Ext#removeNode}

    + */ + remove : function(){ + var me = this, + dom = me.dom; + + if (dom) { + delete me.dom; + Ext.removeNode(dom); + } + }, + + /** + * Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element. + * @param {Function} overFn The function to call when the mouse enters the Element. + * @param {Function} outFn The function to call when the mouse leaves the Element. + * @param {Object} scope (optional) The scope (this reference) in which the functions are executed. Defaults to the Element's DOM element. + * @param {Object} options (optional) Options for the listener. See {@link Ext.util.Observable#addListener the options parameter}. + * @return {Ext.Element} this + */ + hover : function(overFn, outFn, scope, options){ + var me = this; + me.on('mouseenter', overFn, scope || me.dom, options); + me.on('mouseleave', outFn, scope || me.dom, options); + return me; + }, + + /** + * Returns true if this element is an ancestor of the passed element + * @param {HTMLElement/String} el The element to check + * @return {Boolean} True if this element is an ancestor of el, else false + */ + contains : function(el){ + return !el ? false : Ext.lib.Dom.isAncestor(this.dom, el.dom ? el.dom : el); + }, + + /** + * Returns the value of a namespaced attribute from the element's underlying DOM node. + * @param {String} namespace The namespace in which to look for the attribute + * @param {String} name The attribute name + * @return {String} The attribute value + * @deprecated + */ + getAttributeNS : function(ns, name){ + return this.getAttribute(name, ns); + }, + + /** + * Returns the value of an attribute from the element's underlying DOM node. + * @param {String} name The attribute name + * @param {String} namespace (optional) The namespace in which to look for the attribute + * @return {String} The attribute value + */ + getAttribute : Ext.isIE ? function(name, ns){ + var d = this.dom, + type = typeof d[ns + ":" + name]; + + if(['undefined', 'unknown'].indexOf(type) == -1){ + return d[ns + ":" + name]; + } + return d[name]; + } : function(name, ns){ + var d = this.dom; + return d.getAttributeNS(ns, name) || d.getAttribute(ns + ":" + name) || d.getAttribute(name) || d[name]; + }, + + /** + * Update the innerHTML of this element + * @param {String} html The new HTML + * @return {Ext.Element} this + */ + update : function(html) { + if (this.dom) { + this.dom.innerHTML = html; + } + return this; + } +}; + +var ep = El.prototype; + +El.addMethods = function(o){ + Ext.apply(ep, o); +}; + +/** + * Appends an event handler (shorthand for {@link #addListener}). + * @param {String} eventName The name of event to handle. + * @param {Function} fn The handler function the event invokes. + * @param {Object} scope (optional) The scope (this reference) in which the handler function is executed. + * @param {Object} options (optional) An object containing standard {@link #addListener} options + * @member Ext.Element + * @method on + */ +ep.on = ep.addListener; + +/** + * Removes an event handler from this element (see {@link #removeListener} for additional notes). + * @param {String} eventName The name of the event from which to remove the handler. + * @param {Function} fn The handler function to remove. This must be a reference to the function passed into the {@link #addListener} call. + * @param {Object} scope If a scope (this reference) was specified when the listener was added, + * then this must refer to the same object. + * @return {Ext.Element} this + * @member Ext.Element + * @method un + */ +ep.un = ep.removeListener; + +/** + * true to automatically adjust width and height settings for box-model issues (default to true) + */ +ep.autoBoxAdjust = true; + +// private +var unitPattern = /\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i, + docEl; + +/** + * @private + */ + +/** + * Retrieves Ext.Element objects. + *

    This method does not retrieve {@link Ext.Component Component}s. This method + * retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by + * its ID, use {@link Ext.ComponentMgr#get}.

    + *

    Uses simple caching to consistently return the same object. Automatically fixes if an + * object was recreated with the same id via AJAX or DOM.

    + * @param {Mixed} el The id of the node, a DOM Node or an existing Element. + * @return {Element} The Element object (or null if no matching element was found) + * @static + * @member Ext.Element + * @method get + */ +El.get = function(el){ + var ex, + elm, + id; + if(!el){ return null; } + if (typeof el == "string") { // element id + if (!(elm = DOC.getElementById(el))) { + return null; + } + if (EC[el] && EC[el].el) { + ex = EC[el].el; + ex.dom = elm; + } else { + ex = El.addToCache(new El(elm)); + } + return ex; + } else if (el.tagName) { // dom element + if(!(id = el.id)){ + id = Ext.id(el); + } + if (EC[id] && EC[id].el) { + ex = EC[id].el; + ex.dom = el; + } else { + ex = El.addToCache(new El(el)); + } + return ex; + } else if (el instanceof El) { + if(el != docEl){ + // refresh dom element in case no longer valid, + // catch case where it hasn't been appended + + // If an el instance is passed, don't pass to getElementById without some kind of id + if (Ext.isIE && (el.id == undefined || el.id == '')) { + el.dom = el.dom; + } else { + el.dom = DOC.getElementById(el.id) || el.dom; + } + } + return el; + } else if(el.isComposite) { + return el; + } else if(Ext.isArray(el)) { + return El.select(el); + } else if(el == DOC) { + // create a bogus element object representing the document object + if(!docEl){ + var f = function(){}; + f.prototype = El.prototype; + docEl = new f(); + docEl.dom = DOC; + } + return docEl; + } + return null; +}; + +El.addToCache = function(el, id){ + id = id || el.id; + EC[id] = { + el: el, + data: {}, + events: {} + }; + return el; +}; + +// private method for getting and setting element data +El.data = function(el, key, value){ + el = El.get(el); + if (!el) { + return null; + } + var c = EC[el.id].data; + if(arguments.length == 2){ + return c[key]; + }else{ + return (c[key] = value); + } +}; + +// private +// Garbage collection - uncache elements/purge listeners on orphaned elements +// so we don't hold a reference and cause the browser to retain them +function garbageCollect(){ + if(!Ext.enableGarbageCollector){ + clearInterval(El.collectorThreadId); + } else { + var eid, + el, + d, + o; + + for(eid in EC){ + o = EC[eid]; + if(o.skipGC){ + continue; + } + el = o.el; + d = el.dom; + // ------------------------------------------------------- + // Determining what is garbage: + // ------------------------------------------------------- + // !d + // dom node is null, definitely garbage + // ------------------------------------------------------- + // !d.parentNode + // no parentNode == direct orphan, definitely garbage + // ------------------------------------------------------- + // !d.offsetParent && !document.getElementById(eid) + // display none elements have no offsetParent so we will + // also try to look it up by it's id. However, check + // offsetParent first so we don't do unneeded lookups. + // This enables collection of elements that are not orphans + // directly, but somewhere up the line they have an orphan + // parent. + // ------------------------------------------------------- + if(!d || !d.parentNode || (!d.offsetParent && !DOC.getElementById(eid))){ + if(Ext.enableListenerCollection){ + Ext.EventManager.removeAll(d); + } + delete EC[eid]; + } + } + // Cleanup IE Object leaks + if (Ext.isIE) { + var t = {}; + for (eid in EC) { + t[eid] = EC[eid]; + } + EC = Ext.elCache = t; + } + } +} +El.collectorThreadId = setInterval(garbageCollect, 30000); + +var flyFn = function(){}; +flyFn.prototype = El.prototype; + +// dom is optional +El.Flyweight = function(dom){ + this.dom = dom; +}; + +El.Flyweight.prototype = new flyFn(); +El.Flyweight.prototype.isFlyweight = true; +El._flyweights = {}; + +/** + *

    Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element - + * the dom node can be overwritten by other code. Shorthand of {@link Ext.Element#fly}

    + *

    Use this to make one-time references to DOM elements which are not going to be accessed again either by + * application code, or by Ext's classes. If accessing an element which will be processed regularly, then {@link Ext#get} + * will be more appropriate to take advantage of the caching provided by the Ext.Element class.

    + * @param {String/HTMLElement} el The dom node or id + * @param {String} named (optional) Allows for creation of named reusable flyweights to prevent conflicts + * (e.g. internally Ext uses "_global") + * @return {Element} The shared Element object (or null if no matching element was found) + * @member Ext.Element + * @method fly + */ +El.fly = function(el, named){ + var ret = null; + named = named || '_global'; + + if (el = Ext.getDom(el)) { + (El._flyweights[named] = El._flyweights[named] || new El.Flyweight()).dom = el; + ret = El._flyweights[named]; + } + return ret; +}; + +/** + * Retrieves Ext.Element objects. + *

    This method does not retrieve {@link Ext.Component Component}s. This method + * retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by + * its ID, use {@link Ext.ComponentMgr#get}.

    + *

    Uses simple caching to consistently return the same object. Automatically fixes if an + * object was recreated with the same id via AJAX or DOM.

    + * Shorthand of {@link Ext.Element#get} + * @param {Mixed} el The id of the node, a DOM Node or an existing Element. + * @return {Element} The Element object (or null if no matching element was found) + * @member Ext + * @method get + */ +Ext.get = El.get; + +/** + *

    Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element - + * the dom node can be overwritten by other code. Shorthand of {@link Ext.Element#fly}

    + *

    Use this to make one-time references to DOM elements which are not going to be accessed again either by + * application code, or by Ext's classes. If accessing an element which will be processed regularly, then {@link Ext#get} + * will be more appropriate to take advantage of the caching provided by the Ext.Element class.

    + * @param {String/HTMLElement} el The dom node or id + * @param {String} named (optional) Allows for creation of named reusable flyweights to prevent conflicts + * (e.g. internally Ext uses "_global") + * @return {Element} The shared Element object (or null if no matching element was found) + * @member Ext + * @method fly + */ +Ext.fly = El.fly; + +// speedy lookup for elements never to box adjust +var noBoxAdjust = Ext.isStrict ? { + select:1 +} : { + input:1, select:1, textarea:1 +}; +if(Ext.isIE || Ext.isGecko){ + noBoxAdjust['button'] = 1; +} + +})(); +/** + * @class Ext.Element + */ +Ext.Element.addMethods({ + /** + * Stops the specified event(s) from bubbling and optionally prevents the default action + * @param {String/Array} eventName an event / array of events to stop from bubbling + * @param {Boolean} preventDefault (optional) true to prevent the default action too + * @return {Ext.Element} this + */ + swallowEvent : function(eventName, preventDefault){ + var me = this; + function fn(e){ + e.stopPropagation(); + if(preventDefault){ + e.preventDefault(); + } + } + if(Ext.isArray(eventName)){ + Ext.each(eventName, function(e) { + me.on(e, fn); + }); + return me; + } + me.on(eventName, fn); + return me; + }, + + /** + * Create an event handler on this element such that when the event fires and is handled by this element, + * it will be relayed to another object (i.e., fired again as if it originated from that object instead). + * @param {String} eventName The type of event to relay + * @param {Object} object Any object that extends {@link Ext.util.Observable} that will provide the context + * for firing the relayed event + */ + relayEvent : function(eventName, observable){ + this.on(eventName, function(e){ + observable.fireEvent(eventName, e); + }); + }, + + /** + * Removes worthless text nodes + * @param {Boolean} forceReclean (optional) By default the element + * keeps track if it has been cleaned already so + * you can call this over and over. However, if you update the element and + * need to force a reclean, you can pass true. + */ + clean : function(forceReclean){ + var me = this, + dom = me.dom, + n = dom.firstChild, + ni = -1; + + if(Ext.Element.data(dom, 'isCleaned') && forceReclean !== true){ + return me; + } + + while(n){ + var nx = n.nextSibling; + if(n.nodeType == 3 && !/\S/.test(n.nodeValue)){ + dom.removeChild(n); + }else{ + n.nodeIndex = ++ni; + } + n = nx; + } + Ext.Element.data(dom, 'isCleaned', true); + return me; + }, + + /** + * Direct access to the Updater {@link Ext.Updater#update} method. The method takes the same object + * parameter as {@link Ext.Updater#update} + * @return {Ext.Element} this + */ + load : function(){ + var um = this.getUpdater(); + um.update.apply(um, arguments); + return this; + }, + + /** + * Gets this element's {@link Ext.Updater Updater} + * @return {Ext.Updater} The Updater + */ + getUpdater : function(){ + return this.updateManager || (this.updateManager = new Ext.Updater(this)); + }, + + /** + * Update the innerHTML of this element, optionally searching for and processing scripts + * @param {String} html The new HTML + * @param {Boolean} loadScripts (optional) True to look for and process scripts (defaults to false) + * @param {Function} callback (optional) For async script loading you can be notified when the update completes + * @return {Ext.Element} this + */ + update : function(html, loadScripts, callback){ + if (!this.dom) { + return this; + } + html = html || ""; + + if(loadScripts !== true){ + this.dom.innerHTML = html; + if(typeof callback == 'function'){ + callback(); + } + return this; + } + + var id = Ext.id(), + dom = this.dom; + + html += ''; + + Ext.lib.Event.onAvailable(id, function(){ + var DOC = document, + hd = DOC.getElementsByTagName("head")[0], + re = /(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig, + srcRe = /\ssrc=([\'\"])(.*?)\1/i, + typeRe = /\stype=([\'\"])(.*?)\1/i, + match, + attrs, + srcMatch, + typeMatch, + el, + s; + + while((match = re.exec(html))){ + attrs = match[1]; + srcMatch = attrs ? attrs.match(srcRe) : false; + if(srcMatch && srcMatch[2]){ + s = DOC.createElement("script"); + s.src = srcMatch[2]; + typeMatch = attrs.match(typeRe); + if(typeMatch && typeMatch[2]){ + s.type = typeMatch[2]; + } + hd.appendChild(s); + }else if(match[2] && match[2].length > 0){ + if(window.execScript) { + window.execScript(match[2]); + } else { + window.eval(match[2]); + } + } + } + el = DOC.getElementById(id); + if(el){Ext.removeNode(el);} + if(typeof callback == 'function'){ + callback(); + } + }); + dom.innerHTML = html.replace(/(?:)((\n|\r|.)*?)(?:<\/script>)/ig, ""); + return this; + }, + + // inherit docs, overridden so we can add removeAnchor + removeAllListeners : function(){ + this.removeAnchor(); + Ext.EventManager.removeAll(this.dom); + return this; + }, + + /** + * Creates a proxy element of this element + * @param {String/Object} config The class name of the proxy element or a DomHelper config object + * @param {String/HTMLElement} renderTo (optional) The element or element id to render the proxy to (defaults to document.body) + * @param {Boolean} matchBox (optional) True to align and size the proxy to this element now (defaults to false) + * @return {Ext.Element} The new proxy element + */ + createProxy : function(config, renderTo, matchBox){ + config = (typeof config == 'object') ? config : {tag : "div", cls: config}; + + var me = this, + proxy = renderTo ? Ext.DomHelper.append(renderTo, config, true) : + Ext.DomHelper.insertBefore(me.dom, config, true); + + if(matchBox && me.setBox && me.getBox){ // check to make sure Element.position.js is loaded + proxy.setBox(me.getBox()); + } + return proxy; + } +}); + +Ext.Element.prototype.getUpdateManager = Ext.Element.prototype.getUpdater; +/** + * @class Ext.Element + */ +Ext.Element.addMethods({ + /** + * Gets the x,y coordinates specified by the anchor position on the element. + * @param {String} anchor (optional) The specified anchor position (defaults to "c"). See {@link #alignTo} + * for details on supported anchor positions. + * @param {Boolean} local (optional) True to get the local (element top/left-relative) anchor position instead + * of page coordinates + * @param {Object} size (optional) An object containing the size to use for calculating anchor position + * {width: (target width), height: (target height)} (defaults to the element's current size) + * @return {Array} [x, y] An array containing the element's x and y coordinates + */ + getAnchorXY : function(anchor, local, s){ + //Passing a different size is useful for pre-calculating anchors, + //especially for anchored animations that change the el size. + anchor = (anchor || "tl").toLowerCase(); + s = s || {}; + + var me = this, + vp = me.dom == document.body || me.dom == document, + w = s.width || vp ? Ext.lib.Dom.getViewWidth() : me.getWidth(), + h = s.height || vp ? Ext.lib.Dom.getViewHeight() : me.getHeight(), + xy, + r = Math.round, + o = me.getXY(), + scroll = me.getScroll(), + extraX = vp ? scroll.left : !local ? o[0] : 0, + extraY = vp ? scroll.top : !local ? o[1] : 0, + hash = { + c : [r(w * 0.5), r(h * 0.5)], + t : [r(w * 0.5), 0], + l : [0, r(h * 0.5)], + r : [w, r(h * 0.5)], + b : [r(w * 0.5), h], + tl : [0, 0], + bl : [0, h], + br : [w, h], + tr : [w, 0] + }; + + xy = hash[anchor]; + return [xy[0] + extraX, xy[1] + extraY]; + }, + + /** + * Anchors an element to another element and realigns it when the window is resized. + * @param {Mixed} element The element to align to. + * @param {String} position The position to align to. + * @param {Array} offsets (optional) Offset the positioning by [x, y] + * @param {Boolean/Object} animate (optional) True for the default animation or a standard Element animation config object + * @param {Boolean/Number} monitorScroll (optional) True to monitor body scroll and reposition. If this parameter + * is a number, it is used as the buffer delay (defaults to 50ms). + * @param {Function} callback The function to call after the animation finishes + * @return {Ext.Element} this + */ + anchorTo : function(el, alignment, offsets, animate, monitorScroll, callback){ + var me = this, + dom = me.dom, + scroll = !Ext.isEmpty(monitorScroll), + action = function(){ + Ext.fly(dom).alignTo(el, alignment, offsets, animate); + Ext.callback(callback, Ext.fly(dom)); + }, + anchor = this.getAnchor(); + + // previous listener anchor, remove it + this.removeAnchor(); + Ext.apply(anchor, { + fn: action, + scroll: scroll + }); + + Ext.EventManager.onWindowResize(action, null); + + if(scroll){ + Ext.EventManager.on(window, 'scroll', action, null, + {buffer: !isNaN(monitorScroll) ? monitorScroll : 50}); + } + action.call(me); // align immediately + return me; + }, + + /** + * Remove any anchor to this element. See {@link #anchorTo}. + * @return {Ext.Element} this + */ + removeAnchor : function(){ + var me = this, + anchor = this.getAnchor(); + + if(anchor && anchor.fn){ + Ext.EventManager.removeResizeListener(anchor.fn); + if(anchor.scroll){ + Ext.EventManager.un(window, 'scroll', anchor.fn); + } + delete anchor.fn; + } + return me; + }, + + // private + getAnchor : function(){ + var data = Ext.Element.data, + dom = this.dom; + if (!dom) { + return; + } + var anchor = data(dom, '_anchor'); + + if(!anchor){ + anchor = data(dom, '_anchor', {}); + } + return anchor; + }, + + /** + * Gets the x,y coordinates to align this element with another element. See {@link #alignTo} for more info on the + * supported position values. + * @param {Mixed} element The element to align to. + * @param {String} position (optional, defaults to "tl-bl?") The position to align to. + * @param {Array} offsets (optional) Offset the positioning by [x, y] + * @return {Array} [x, y] + */ + getAlignToXY : function(el, p, o){ + el = Ext.get(el); + + if(!el || !el.dom){ + throw "Element.alignToXY with an element that doesn't exist"; + } + + o = o || [0,0]; + p = (!p || p == "?" ? "tl-bl?" : (!/-/.test(p) && p !== "" ? "tl-" + p : p || "tl-bl")).toLowerCase(); + + var me = this, + d = me.dom, + a1, + a2, + x, + y, + //constrain the aligned el to viewport if necessary + w, + h, + r, + dw = Ext.lib.Dom.getViewWidth() -10, // 10px of margin for ie + dh = Ext.lib.Dom.getViewHeight()-10, // 10px of margin for ie + p1y, + p1x, + p2y, + p2x, + swapY, + swapX, + doc = document, + docElement = doc.documentElement, + docBody = doc.body, + scrollX = (docElement.scrollLeft || docBody.scrollLeft || 0)+5, + scrollY = (docElement.scrollTop || docBody.scrollTop || 0)+5, + c = false, //constrain to viewport + p1 = "", + p2 = "", + m = p.match(/^([a-z]+)-([a-z]+)(\?)?$/); + + if(!m){ + throw "Element.alignTo with an invalid alignment " + p; + } + + p1 = m[1]; + p2 = m[2]; + c = !!m[3]; + + //Subtract the aligned el's internal xy from the target's offset xy + //plus custom offset to get the aligned el's new offset xy + a1 = me.getAnchorXY(p1, true); + a2 = el.getAnchorXY(p2, false); + + x = a2[0] - a1[0] + o[0]; + y = a2[1] - a1[1] + o[1]; + + if(c){ + w = me.getWidth(); + h = me.getHeight(); + r = el.getRegion(); + //If we are at a viewport boundary and the aligned el is anchored on a target border that is + //perpendicular to the vp border, allow the aligned el to slide on that border, + //otherwise swap the aligned el to the opposite border of the target. + p1y = p1.charAt(0); + p1x = p1.charAt(p1.length-1); + p2y = p2.charAt(0); + p2x = p2.charAt(p2.length-1); + swapY = ((p1y=="t" && p2y=="b") || (p1y=="b" && p2y=="t")); + swapX = ((p1x=="r" && p2x=="l") || (p1x=="l" && p2x=="r")); + + + if (x + w > dw + scrollX) { + x = swapX ? r.left-w : dw+scrollX-w; + } + if (x < scrollX) { + x = swapX ? r.right : scrollX; + } + if (y + h > dh + scrollY) { + y = swapY ? r.top-h : dh+scrollY-h; + } + if (y < scrollY){ + y = swapY ? r.bottom : scrollY; + } + } + return [x,y]; + }, + + /** + * Aligns this element with another element relative to the specified anchor points. If the other element is the + * document it aligns it to the viewport. + * The position parameter is optional, and can be specified in any one of the following formats: + *
      + *
    • Blank: Defaults to aligning the element's top-left corner to the target's bottom-left corner ("tl-bl").
    • + *
    • One anchor (deprecated): The passed anchor position is used as the target element's anchor point. + * The element being aligned will position its top-left corner (tl) to that point. This method has been + * deprecated in favor of the newer two anchor syntax below.
    • + *
    • Two anchors: If two values from the table below are passed separated by a dash, the first value is used as the + * element's anchor point, and the second value is used as the target's anchor point.
    • + *
    + * In addition to the anchor points, the position parameter also supports the "?" character. If "?" is passed at the end of + * the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to + * the viewport if necessary. Note that the element being aligned might be swapped to align to a different position than + * that specified in order to enforce the viewport constraints. + * Following are all of the supported anchor positions: +
    +Value  Description
    +-----  -----------------------------
    +tl     The top left corner (default)
    +t      The center of the top edge
    +tr     The top right corner
    +l      The center of the left edge
    +c      In the center of the element
    +r      The center of the right edge
    +bl     The bottom left corner
    +b      The center of the bottom edge
    +br     The bottom right corner
    +
    +Example Usage: +
    
    +// align el to other-el using the default positioning ("tl-bl", non-constrained)
    +el.alignTo("other-el");
    +
    +// align the top left corner of el with the top right corner of other-el (constrained to viewport)
    +el.alignTo("other-el", "tr?");
    +
    +// align the bottom right corner of el with the center left edge of other-el
    +el.alignTo("other-el", "br-l?");
    +
    +// align the center of el with the bottom left corner of other-el and
    +// adjust the x position by -6 pixels (and the y position by 0)
    +el.alignTo("other-el", "c-bl", [-6, 0]);
    +
    + * @param {Mixed} element The element to align to. + * @param {String} position (optional, defaults to "tl-bl?") The position to align to. + * @param {Array} offsets (optional) Offset the positioning by [x, y] + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + alignTo : function(element, position, offsets, animate){ + var me = this; + return me.setXY(me.getAlignToXY(element, position, offsets), + me.preanim && !!animate ? me.preanim(arguments, 3) : false); + }, + + // private ==> used outside of core + adjustForConstraints : function(xy, parent, offsets){ + return this.getConstrainToXY(parent || document, false, offsets, xy) || xy; + }, + + // private ==> used outside of core + getConstrainToXY : function(el, local, offsets, proposedXY){ + var os = {top:0, left:0, bottom:0, right: 0}; + + return function(el, local, offsets, proposedXY){ + el = Ext.get(el); + offsets = offsets ? Ext.applyIf(offsets, os) : os; + + var vw, vh, vx = 0, vy = 0; + if(el.dom == document.body || el.dom == document){ + vw =Ext.lib.Dom.getViewWidth(); + vh = Ext.lib.Dom.getViewHeight(); + }else{ + vw = el.dom.clientWidth; + vh = el.dom.clientHeight; + if(!local){ + var vxy = el.getXY(); + vx = vxy[0]; + vy = vxy[1]; + } + } + + var s = el.getScroll(); + + vx += offsets.left + s.left; + vy += offsets.top + s.top; + + vw -= offsets.right; + vh -= offsets.bottom; + + var vr = vx+vw; + var vb = vy+vh; + + var xy = proposedXY || (!local ? this.getXY() : [this.getLeft(true), this.getTop(true)]); + var x = xy[0], y = xy[1]; + var w = this.dom.offsetWidth, h = this.dom.offsetHeight; + + // only move it if it needs it + var moved = false; + + // first validate right/bottom + if((x + w) > vr){ + x = vr - w; + moved = true; + } + if((y + h) > vb){ + y = vb - h; + moved = true; + } + // then make sure top/left isn't negative + if(x < vx){ + x = vx; + moved = true; + } + if(y < vy){ + y = vy; + moved = true; + } + return moved ? [x, y] : false; + }; + }(), + + + +// el = Ext.get(el); +// offsets = Ext.applyIf(offsets || {}, {top : 0, left : 0, bottom : 0, right : 0}); + +// var me = this, +// doc = document, +// s = el.getScroll(), +// vxy = el.getXY(), +// vx = offsets.left + s.left, +// vy = offsets.top + s.top, +// vw = -offsets.right, +// vh = -offsets.bottom, +// vr, +// vb, +// xy = proposedXY || (!local ? me.getXY() : [me.getLeft(true), me.getTop(true)]), +// x = xy[0], +// y = xy[1], +// w = me.dom.offsetWidth, h = me.dom.offsetHeight, +// moved = false; // only move it if it needs it +// +// +// if(el.dom == doc.body || el.dom == doc){ +// vw += Ext.lib.Dom.getViewWidth(); +// vh += Ext.lib.Dom.getViewHeight(); +// }else{ +// vw += el.dom.clientWidth; +// vh += el.dom.clientHeight; +// if(!local){ +// vx += vxy[0]; +// vy += vxy[1]; +// } +// } + +// // first validate right/bottom +// if(x + w > vx + vw){ +// x = vx + vw - w; +// moved = true; +// } +// if(y + h > vy + vh){ +// y = vy + vh - h; +// moved = true; +// } +// // then make sure top/left isn't negative +// if(x < vx){ +// x = vx; +// moved = true; +// } +// if(y < vy){ +// y = vy; +// moved = true; +// } +// return moved ? [x, y] : false; +// }, + + /** + * Calculates the x, y to center this element on the screen + * @return {Array} The x, y values [x, y] + */ + getCenterXY : function(){ + return this.getAlignToXY(document, 'c-c'); + }, + + /** + * Centers the Element in either the viewport, or another Element. + * @param {Mixed} centerIn (optional) The element in which to center the element. + */ + center : function(centerIn){ + return this.alignTo(centerIn || document, 'c-c'); + } +}); +/** + * @class Ext.Element + */ +Ext.Element.addMethods(function(){ + var PARENTNODE = 'parentNode', + NEXTSIBLING = 'nextSibling', + PREVIOUSSIBLING = 'previousSibling', + DQ = Ext.DomQuery, + GET = Ext.get; + + return { + /** + * Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) + * @param {String} selector The simple selector to test + * @param {Number/Mixed} maxDepth (optional) The max depth to search as a number or element (defaults to 50 || document.body) + * @param {Boolean} returnEl (optional) True to return a Ext.Element object instead of DOM node + * @return {HTMLElement} The matching DOM node (or null if no match was found) + */ + findParent : function(simpleSelector, maxDepth, returnEl){ + var p = this.dom, + b = document.body, + depth = 0, + stopEl; + if(Ext.isGecko && Object.prototype.toString.call(p) == '[object XULElement]') { + return null; + } + maxDepth = maxDepth || 50; + if (isNaN(maxDepth)) { + stopEl = Ext.getDom(maxDepth); + maxDepth = Number.MAX_VALUE; + } + while(p && p.nodeType == 1 && depth < maxDepth && p != b && p != stopEl){ + if(DQ.is(p, simpleSelector)){ + return returnEl ? GET(p) : p; + } + depth++; + p = p.parentNode; + } + return null; + }, + + /** + * Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) + * @param {String} selector The simple selector to test + * @param {Number/Mixed} maxDepth (optional) The max depth to + search as a number or element (defaults to 10 || document.body) + * @param {Boolean} returnEl (optional) True to return a Ext.Element object instead of DOM node + * @return {HTMLElement} The matching DOM node (or null if no match was found) + */ + findParentNode : function(simpleSelector, maxDepth, returnEl){ + var p = Ext.fly(this.dom.parentNode, '_internal'); + return p ? p.findParent(simpleSelector, maxDepth, returnEl) : null; + }, + + /** + * Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child). + * This is a shortcut for findParentNode() that always returns an Ext.Element. + * @param {String} selector The simple selector to test + * @param {Number/Mixed} maxDepth (optional) The max depth to + search as a number or element (defaults to 10 || document.body) + * @return {Ext.Element} The matching DOM node (or null if no match was found) + */ + up : function(simpleSelector, maxDepth){ + return this.findParentNode(simpleSelector, maxDepth, true); + }, + + /** + * Creates a {@link Ext.CompositeElement} for child nodes based on the passed CSS selector (the selector should not contain an id). + * @param {String} selector The CSS selector + * @return {CompositeElement/CompositeElementLite} The composite element + */ + select : function(selector){ + return Ext.Element.select(selector, this.dom); + }, + + /** + * Selects child nodes based on the passed CSS selector (the selector should not contain an id). + * @param {String} selector The CSS selector + * @return {Array} An array of the matched nodes + */ + query : function(selector){ + return DQ.select(selector, this.dom); + }, + + /** + * Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id). + * @param {String} selector The CSS selector + * @param {Boolean} returnDom (optional) True to return the DOM node instead of Ext.Element (defaults to false) + * @return {HTMLElement/Ext.Element} The child Ext.Element (or DOM node if returnDom = true) + */ + child : function(selector, returnDom){ + var n = DQ.selectNode(selector, this.dom); + return returnDom ? n : GET(n); + }, + + /** + * Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id). + * @param {String} selector The CSS selector + * @param {Boolean} returnDom (optional) True to return the DOM node instead of Ext.Element (defaults to false) + * @return {HTMLElement/Ext.Element} The child Ext.Element (or DOM node if returnDom = true) + */ + down : function(selector, returnDom){ + var n = DQ.selectNode(" > " + selector, this.dom); + return returnDom ? n : GET(n); + }, + + /** + * Gets the parent node for this element, optionally chaining up trying to match a selector + * @param {String} selector (optional) Find a parent node that matches the passed simple selector + * @param {Boolean} returnDom (optional) True to return a raw dom node instead of an Ext.Element + * @return {Ext.Element/HTMLElement} The parent node or null + */ + parent : function(selector, returnDom){ + return this.matchNode(PARENTNODE, PARENTNODE, selector, returnDom); + }, + + /** + * Gets the next sibling, skipping text nodes + * @param {String} selector (optional) Find the next sibling that matches the passed simple selector + * @param {Boolean} returnDom (optional) True to return a raw dom node instead of an Ext.Element + * @return {Ext.Element/HTMLElement} The next sibling or null + */ + next : function(selector, returnDom){ + return this.matchNode(NEXTSIBLING, NEXTSIBLING, selector, returnDom); + }, + + /** + * Gets the previous sibling, skipping text nodes + * @param {String} selector (optional) Find the previous sibling that matches the passed simple selector + * @param {Boolean} returnDom (optional) True to return a raw dom node instead of an Ext.Element + * @return {Ext.Element/HTMLElement} The previous sibling or null + */ + prev : function(selector, returnDom){ + return this.matchNode(PREVIOUSSIBLING, PREVIOUSSIBLING, selector, returnDom); + }, + + + /** + * Gets the first child, skipping text nodes + * @param {String} selector (optional) Find the next sibling that matches the passed simple selector + * @param {Boolean} returnDom (optional) True to return a raw dom node instead of an Ext.Element + * @return {Ext.Element/HTMLElement} The first child or null + */ + first : function(selector, returnDom){ + return this.matchNode(NEXTSIBLING, 'firstChild', selector, returnDom); + }, + + /** + * Gets the last child, skipping text nodes + * @param {String} selector (optional) Find the previous sibling that matches the passed simple selector + * @param {Boolean} returnDom (optional) True to return a raw dom node instead of an Ext.Element + * @return {Ext.Element/HTMLElement} The last child or null + */ + last : function(selector, returnDom){ + return this.matchNode(PREVIOUSSIBLING, 'lastChild', selector, returnDom); + }, + + matchNode : function(dir, start, selector, returnDom){ + var n = this.dom[start]; + while(n){ + if(n.nodeType == 1 && (!selector || DQ.is(n, selector))){ + return !returnDom ? GET(n) : n; + } + n = n[dir]; + } + return null; + } + } +}());/** + * @class Ext.Element + */ +Ext.Element.addMethods({ + /** + * Creates a {@link Ext.CompositeElement} for child nodes based on the passed CSS selector (the selector should not contain an id). + * @param {String} selector The CSS selector + * @param {Boolean} unique (optional) True to create a unique Ext.Element for each child (defaults to false, which creates a single shared flyweight object) + * @return {CompositeElement/CompositeElementLite} The composite element + */ + select : function(selector, unique){ + return Ext.Element.select(selector, unique, this.dom); + } +});/** + * @class Ext.Element + */ +Ext.Element.addMethods( +function() { + var GETDOM = Ext.getDom, + GET = Ext.get, + DH = Ext.DomHelper; + + return { + /** + * Appends the passed element(s) to this element + * @param {String/HTMLElement/Array/Element/CompositeElement} el + * @return {Ext.Element} this + */ + appendChild: function(el){ + return GET(el).appendTo(this); + }, + + /** + * Appends this element to the passed element + * @param {Mixed} el The new parent element + * @return {Ext.Element} this + */ + appendTo: function(el){ + GETDOM(el).appendChild(this.dom); + return this; + }, + + /** + * Inserts this element before the passed element in the DOM + * @param {Mixed} el The element before which this element will be inserted + * @return {Ext.Element} this + */ + insertBefore: function(el){ + (el = GETDOM(el)).parentNode.insertBefore(this.dom, el); + return this; + }, + + /** + * Inserts this element after the passed element in the DOM + * @param {Mixed} el The element to insert after + * @return {Ext.Element} this + */ + insertAfter: function(el){ + (el = GETDOM(el)).parentNode.insertBefore(this.dom, el.nextSibling); + return this; + }, + + /** + * Inserts (or creates) an element (or DomHelper config) as the first child of this element + * @param {Mixed/Object} el The id or element to insert or a DomHelper config to create and insert + * @return {Ext.Element} The new child + */ + insertFirst: function(el, returnDom){ + el = el || {}; + if(el.nodeType || el.dom || typeof el == 'string'){ // element + el = GETDOM(el); + this.dom.insertBefore(el, this.dom.firstChild); + return !returnDom ? GET(el) : el; + }else{ // dh config + return this.createChild(el, this.dom.firstChild, returnDom); + } + }, + + /** + * Replaces the passed element with this element + * @param {Mixed} el The element to replace + * @return {Ext.Element} this + */ + replace: function(el){ + el = GET(el); + this.insertBefore(el); + el.remove(); + return this; + }, + + /** + * Replaces this element with the passed element + * @param {Mixed/Object} el The new element or a DomHelper config of an element to create + * @return {Ext.Element} this + */ + replaceWith: function(el){ + var me = this; + + if(el.nodeType || el.dom || typeof el == 'string'){ + el = GETDOM(el); + me.dom.parentNode.insertBefore(el, me.dom); + }else{ + el = DH.insertBefore(me.dom, el); + } + + delete Ext.elCache[me.id]; + Ext.removeNode(me.dom); + me.id = Ext.id(me.dom = el); + Ext.Element.addToCache(me.isFlyweight ? new Ext.Element(me.dom) : me); + return me; + }, + + /** + * Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element. + * @param {Object} config DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be + * automatically generated with the specified attributes. + * @param {HTMLElement} insertBefore (optional) a child element of this element + * @param {Boolean} returnDom (optional) true to return the dom node instead of creating an Element + * @return {Ext.Element} The new child element + */ + createChild: function(config, insertBefore, returnDom){ + config = config || {tag:'div'}; + return insertBefore ? + DH.insertBefore(insertBefore, config, returnDom !== true) : + DH[!this.dom.firstChild ? 'overwrite' : 'append'](this.dom, config, returnDom !== true); + }, + + /** + * Creates and wraps this element with another element + * @param {Object} config (optional) DomHelper element config object for the wrapper element or null for an empty div + * @param {Boolean} returnDom (optional) True to return the raw DOM element instead of Ext.Element + * @return {HTMLElement/Element} The newly created wrapper element + */ + wrap: function(config, returnDom){ + var newEl = DH.insertBefore(this.dom, config || {tag: "div"}, !returnDom); + newEl.dom ? newEl.dom.appendChild(this.dom) : newEl.appendChild(this.dom); + return newEl; + }, + + /** + * Inserts an html fragment into this element + * @param {String} where Where to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd. + * @param {String} html The HTML fragment + * @param {Boolean} returnEl (optional) True to return an Ext.Element (defaults to false) + * @return {HTMLElement/Ext.Element} The inserted node (or nearest related if more than 1 inserted) + */ + insertHtml : function(where, html, returnEl){ + var el = DH.insertHtml(where, this.dom, html); + return returnEl ? Ext.get(el) : el; + } + } +}());/** + * @class Ext.Element + */ +Ext.apply(Ext.Element.prototype, function() { + var GETDOM = Ext.getDom, + GET = Ext.get, + DH = Ext.DomHelper; + + return { + /** + * Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element + * @param {Mixed/Object/Array} el The id, element to insert or a DomHelper config to create and insert *or* an array of any of those. + * @param {String} where (optional) 'before' or 'after' defaults to before + * @param {Boolean} returnDom (optional) True to return the raw DOM element instead of Ext.Element + * @return {Ext.Element} The inserted Element. If an array is passed, the last inserted element is returned. + */ + insertSibling: function(el, where, returnDom){ + var me = this, + rt, + isAfter = (where || 'before').toLowerCase() == 'after', + insertEl; + + if(Ext.isArray(el)){ + insertEl = me; + Ext.each(el, function(e) { + rt = Ext.fly(insertEl, '_internal').insertSibling(e, where, returnDom); + if(isAfter){ + insertEl = rt; + } + }); + return rt; + } + + el = el || {}; + + if(el.nodeType || el.dom){ + rt = me.dom.parentNode.insertBefore(GETDOM(el), isAfter ? me.dom.nextSibling : me.dom); + if (!returnDom) { + rt = GET(rt); + } + }else{ + if (isAfter && !me.dom.nextSibling) { + rt = DH.append(me.dom.parentNode, el, !returnDom); + } else { + rt = DH[isAfter ? 'insertAfter' : 'insertBefore'](me.dom, el, !returnDom); + } + } + return rt; + } + }; +}());/** + * @class Ext.Element + */ +Ext.Element.addMethods(function(){ + // local style camelizing for speed + var propCache = {}, + camelRe = /(-[a-z])/gi, + classReCache = {}, + view = document.defaultView, + propFloat = Ext.isIE ? 'styleFloat' : 'cssFloat', + opacityRe = /alpha\(opacity=(.*)\)/i, + trimRe = /^\s+|\s+$/g, + spacesRe = /\s+/, + wordsRe = /\w/g, + EL = Ext.Element, + PADDING = "padding", + MARGIN = "margin", + BORDER = "border", + LEFT = "-left", + RIGHT = "-right", + TOP = "-top", + BOTTOM = "-bottom", + WIDTH = "-width", + MATH = Math, + HIDDEN = 'hidden', + ISCLIPPED = 'isClipped', + OVERFLOW = 'overflow', + OVERFLOWX = 'overflow-x', + OVERFLOWY = 'overflow-y', + ORIGINALCLIP = 'originalClip', + // special markup used throughout Ext when box wrapping elements + borders = {l: BORDER + LEFT + WIDTH, r: BORDER + RIGHT + WIDTH, t: BORDER + TOP + WIDTH, b: BORDER + BOTTOM + WIDTH}, + paddings = {l: PADDING + LEFT, r: PADDING + RIGHT, t: PADDING + TOP, b: PADDING + BOTTOM}, + margins = {l: MARGIN + LEFT, r: MARGIN + RIGHT, t: MARGIN + TOP, b: MARGIN + BOTTOM}, + data = Ext.Element.data; + + + // private + function camelFn(m, a) { + return a.charAt(1).toUpperCase(); + } + + function chkCache(prop) { + return propCache[prop] || (propCache[prop] = prop == 'float' ? propFloat : prop.replace(camelRe, camelFn)); + } + + return { + // private ==> used by Fx + adjustWidth : function(width) { + var me = this; + var isNum = (typeof width == "number"); + if(isNum && me.autoBoxAdjust && !me.isBorderBox()){ + width -= (me.getBorderWidth("lr") + me.getPadding("lr")); + } + return (isNum && width < 0) ? 0 : width; + }, + + // private ==> used by Fx + adjustHeight : function(height) { + var me = this; + var isNum = (typeof height == "number"); + if(isNum && me.autoBoxAdjust && !me.isBorderBox()){ + height -= (me.getBorderWidth("tb") + me.getPadding("tb")); + } + return (isNum && height < 0) ? 0 : height; + }, + + + /** + * Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out. + * @param {String/Array} className The CSS class to add, or an array of classes + * @return {Ext.Element} this + */ + addClass : function(className){ + var me = this, + i, + len, + v, + cls = []; + // Separate case is for speed + if (!Ext.isArray(className)) { + if (typeof className == 'string' && !this.hasClass(className)) { + me.dom.className += " " + className; + } + } + else { + for (i = 0, len = className.length; i < len; i++) { + v = className[i]; + if (typeof v == 'string' && (' ' + me.dom.className + ' ').indexOf(' ' + v + ' ') == -1) { + cls.push(v); + } + } + if (cls.length) { + me.dom.className += " " + cls.join(" "); + } + } + return me; + }, + + /** + * Removes one or more CSS classes from the element. + * @param {String/Array} className The CSS class to remove, or an array of classes + * @return {Ext.Element} this + */ + removeClass : function(className){ + var me = this, + i, + idx, + len, + cls, + elClasses; + if (!Ext.isArray(className)){ + className = [className]; + } + if (me.dom && me.dom.className) { + elClasses = me.dom.className.replace(trimRe, '').split(spacesRe); + for (i = 0, len = className.length; i < len; i++) { + cls = className[i]; + if (typeof cls == 'string') { + cls = cls.replace(trimRe, ''); + idx = elClasses.indexOf(cls); + if (idx != -1) { + elClasses.splice(idx, 1); + } + } + } + me.dom.className = elClasses.join(" "); + } + return me; + }, + + /** + * Adds one or more CSS classes to this element and removes the same class(es) from all siblings. + * @param {String/Array} className The CSS class to add, or an array of classes + * @return {Ext.Element} this + */ + radioClass : function(className){ + var cn = this.dom.parentNode.childNodes, + v, + i, + len; + className = Ext.isArray(className) ? className : [className]; + for (i = 0, len = cn.length; i < len; i++) { + v = cn[i]; + if (v && v.nodeType == 1) { + Ext.fly(v, '_internal').removeClass(className); + } + }; + return this.addClass(className); + }, + + /** + * Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). + * @param {String} className The CSS class to toggle + * @return {Ext.Element} this + */ + toggleClass : function(className){ + return this.hasClass(className) ? this.removeClass(className) : this.addClass(className); + }, + + /** + * Checks if the specified CSS class exists on this element's DOM node. + * @param {String} className The CSS class to check for + * @return {Boolean} True if the class exists, else false + */ + hasClass : function(className){ + return className && (' '+this.dom.className+' ').indexOf(' '+className+' ') != -1; + }, + + /** + * Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added. + * @param {String} oldClassName The CSS class to replace + * @param {String} newClassName The replacement CSS class + * @return {Ext.Element} this + */ + replaceClass : function(oldClassName, newClassName){ + return this.removeClass(oldClassName).addClass(newClassName); + }, + + isStyle : function(style, val) { + return this.getStyle(style) == val; + }, + + /** + * Normalizes currentStyle and computedStyle. + * @param {String} property The style property whose value is returned. + * @return {String} The current value of the style property for this element. + */ + getStyle : function(){ + return view && view.getComputedStyle ? + function(prop){ + var el = this.dom, + v, + cs, + out, + display, + wk = Ext.isWebKit, + display; + + if(el == document){ + return null; + } + prop = chkCache(prop); + // Fix bug caused by this: https://bugs.webkit.org/show_bug.cgi?id=13343 + if(wk && /marginRight/.test(prop)){ + display = this.getStyle('display'); + el.style.display = 'inline-block'; + } + out = (v = el.style[prop]) ? v : + (cs = view.getComputedStyle(el, "")) ? cs[prop] : null; + + // Webkit returns rgb values for transparent. + if(wk){ + if(out == 'rgba(0, 0, 0, 0)'){ + out = 'transparent'; + }else if(display){ + el.style.display = display; + } + } + return out; + } : + function(prop){ + var el = this.dom, + m, + cs; + + if(el == document) return null; + if (prop == 'opacity') { + if (el.style.filter.match) { + if(m = el.style.filter.match(opacityRe)){ + var fv = parseFloat(m[1]); + if(!isNaN(fv)){ + return fv ? fv / 100 : 0; + } + } + } + return 1; + } + prop = chkCache(prop); + return el.style[prop] || ((cs = el.currentStyle) ? cs[prop] : null); + }; + }(), + + /** + * Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values + * are convert to standard 6 digit hex color. + * @param {String} attr The css attribute + * @param {String} defaultValue The default value to use when a valid color isn't found + * @param {String} prefix (optional) defaults to #. Use an empty string when working with + * color anims. + */ + getColor : function(attr, defaultValue, prefix){ + var v = this.getStyle(attr), + color = (typeof prefix != 'undefined') ? prefix : '#', + h; + + if(!v || /transparent|inherit/.test(v)){ + return defaultValue; + } + if(/^r/.test(v)){ + Ext.each(v.slice(4, v.length -1).split(','), function(s){ + h = parseInt(s, 10); + color += (h < 16 ? '0' : '') + h.toString(16); + }); + }else{ + v = v.replace('#', ''); + color += v.length == 3 ? v.replace(/^(\w)(\w)(\w)$/, '$1$1$2$2$3$3') : v; + } + return(color.length > 5 ? color.toLowerCase() : defaultValue); + }, + + /** + * Wrapper for setting style properties, also takes single object parameter of multiple styles. + * @param {String/Object} property The style property to be set, or an object of multiple styles. + * @param {String} value (optional) The value to apply to the given property, or null if an object was passed. + * @return {Ext.Element} this + */ + setStyle : function(prop, value){ + var tmp, + style, + camel; + if (typeof prop != 'object') { + tmp = {}; + tmp[prop] = value; + prop = tmp; + } + for (style in prop) { + value = prop[style]; + style == 'opacity' ? + this.setOpacity(value) : + this.dom.style[chkCache(style)] = value; + } + return this; + }, + + /** + * Set the opacity of the element + * @param {Float} opacity The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc + * @param {Boolean/Object} animate (optional) a standard Element animation config object or true for + * the default animation ({duration: .35, easing: 'easeIn'}) + * @return {Ext.Element} this + */ + setOpacity : function(opacity, animate){ + var me = this, + s = me.dom.style; + + if(!animate || !me.anim){ + if(Ext.isIE){ + var opac = opacity < 1 ? 'alpha(opacity=' + opacity * 100 + ')' : '', + val = s.filter.replace(opacityRe, '').replace(trimRe, ''); + + s.zoom = 1; + s.filter = val + (val.length > 0 ? ' ' : '') + opac; + }else{ + s.opacity = opacity; + } + }else{ + me.anim({opacity: {to: opacity}}, me.preanim(arguments, 1), null, .35, 'easeIn'); + } + return me; + }, + + /** + * Clears any opacity settings from this element. Required in some cases for IE. + * @return {Ext.Element} this + */ + clearOpacity : function(){ + var style = this.dom.style; + if(Ext.isIE){ + if(!Ext.isEmpty(style.filter)){ + style.filter = style.filter.replace(opacityRe, '').replace(trimRe, ''); + } + }else{ + style.opacity = style['-moz-opacity'] = style['-khtml-opacity'] = ''; + } + return this; + }, + + /** + * Returns the offset height of the element + * @param {Boolean} contentHeight (optional) true to get the height minus borders and padding + * @return {Number} The element's height + */ + getHeight : function(contentHeight){ + var me = this, + dom = me.dom, + hidden = Ext.isIE && me.isStyle('display', 'none'), + h = MATH.max(dom.offsetHeight, hidden ? 0 : dom.clientHeight) || 0; + + h = !contentHeight ? h : h - me.getBorderWidth("tb") - me.getPadding("tb"); + return h < 0 ? 0 : h; + }, + + /** + * Returns the offset width of the element + * @param {Boolean} contentWidth (optional) true to get the width minus borders and padding + * @return {Number} The element's width + */ + getWidth : function(contentWidth){ + var me = this, + dom = me.dom, + hidden = Ext.isIE && me.isStyle('display', 'none'), + w = MATH.max(dom.offsetWidth, hidden ? 0 : dom.clientWidth) || 0; + w = !contentWidth ? w : w - me.getBorderWidth("lr") - me.getPadding("lr"); + return w < 0 ? 0 : w; + }, + + /** + * Set the width of this Element. + * @param {Mixed} width The new width. This may be one of:
      + *
    • A Number specifying the new width in this Element's {@link #defaultUnit}s (by default, pixels).
    • + *
    • A String used to set the CSS width style. Animation may not be used. + *
    + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + setWidth : function(width, animate){ + var me = this; + width = me.adjustWidth(width); + !animate || !me.anim ? + me.dom.style.width = me.addUnits(width) : + me.anim({width : {to : width}}, me.preanim(arguments, 1)); + return me; + }, + + /** + * Set the height of this Element. + *
    
    +// change the height to 200px and animate with default configuration
    +Ext.fly('elementId').setHeight(200, true);
    +
    +// change the height to 150px and animate with a custom configuration
    +Ext.fly('elId').setHeight(150, {
    +    duration : .5, // animation will have a duration of .5 seconds
    +    // will change the content to "finished"
    +    callback: function(){ this.{@link #update}("finished"); }
    +});
    +         * 
    + * @param {Mixed} height The new height. This may be one of:
      + *
    • A Number specifying the new height in this Element's {@link #defaultUnit}s (by default, pixels.)
    • + *
    • A String used to set the CSS height style. Animation may not be used.
    • + *
    + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + setHeight : function(height, animate){ + var me = this; + height = me.adjustHeight(height); + !animate || !me.anim ? + me.dom.style.height = me.addUnits(height) : + me.anim({height : {to : height}}, me.preanim(arguments, 1)); + return me; + }, + + /** + * Gets the width of the border(s) for the specified side(s) + * @param {String} side Can be t, l, r, b or any combination of those to add multiple values. For example, + * passing 'lr' would get the border left width + the border right width. + * @return {Number} The width of the sides passed added together + */ + getBorderWidth : function(side){ + return this.addStyles(side, borders); + }, + + /** + * Gets the width of the padding(s) for the specified side(s) + * @param {String} side Can be t, l, r, b or any combination of those to add multiple values. For example, + * passing 'lr' would get the padding left + the padding right. + * @return {Number} The padding of the sides passed added together + */ + getPadding : function(side){ + return this.addStyles(side, paddings); + }, + + /** + * Store the current overflow setting and clip overflow on the element - use {@link #unclip} to remove + * @return {Ext.Element} this + */ + clip : function(){ + var me = this, + dom = me.dom; + + if(!data(dom, ISCLIPPED)){ + data(dom, ISCLIPPED, true); + data(dom, ORIGINALCLIP, { + o: me.getStyle(OVERFLOW), + x: me.getStyle(OVERFLOWX), + y: me.getStyle(OVERFLOWY) + }); + me.setStyle(OVERFLOW, HIDDEN); + me.setStyle(OVERFLOWX, HIDDEN); + me.setStyle(OVERFLOWY, HIDDEN); + } + return me; + }, + + /** + * Return clipping (overflow) to original clipping before {@link #clip} was called + * @return {Ext.Element} this + */ + unclip : function(){ + var me = this, + dom = me.dom; + + if(data(dom, ISCLIPPED)){ + data(dom, ISCLIPPED, false); + var o = data(dom, ORIGINALCLIP); + if(o.o){ + me.setStyle(OVERFLOW, o.o); + } + if(o.x){ + me.setStyle(OVERFLOWX, o.x); + } + if(o.y){ + me.setStyle(OVERFLOWY, o.y); + } + } + return me; + }, + + // private + addStyles : function(sides, styles){ + var ttlSize = 0, + sidesArr = sides.match(wordsRe), + side, + size, + i, + len = sidesArr.length; + for (i = 0; i < len; i++) { + side = sidesArr[i]; + size = side && parseInt(this.getStyle(styles[side]), 10); + if (size) { + ttlSize += MATH.abs(size); + } + } + return ttlSize; + }, + + margins : margins + } +}() +); +/** + * @class Ext.Element + */ + +// special markup used throughout Ext when box wrapping elements +Ext.Element.boxMarkup = '
    '; + +Ext.Element.addMethods(function(){ + var INTERNAL = "_internal", + pxMatch = /(\d+\.?\d+)px/; + return { + /** + * More flexible version of {@link #setStyle} for setting style properties. + * @param {String/Object/Function} styles A style specification string, e.g. "width:100px", or object in the form {width:"100px"}, or + * a function which returns such a specification. + * @return {Ext.Element} this + */ + applyStyles : function(style){ + Ext.DomHelper.applyStyles(this.dom, style); + return this; + }, + + /** + * Returns an object with properties matching the styles requested. + * For example, el.getStyles('color', 'font-size', 'width') might return + * {'color': '#FFFFFF', 'font-size': '13px', 'width': '100px'}. + * @param {String} style1 A style name + * @param {String} style2 A style name + * @param {String} etc. + * @return {Object} The style object + */ + getStyles : function(){ + var ret = {}; + Ext.each(arguments, function(v) { + ret[v] = this.getStyle(v); + }, + this); + return ret; + }, + + // private ==> used by ext full + setOverflow : function(v){ + var dom = this.dom; + if(v=='auto' && Ext.isMac && Ext.isGecko2){ // work around stupid FF 2.0/Mac scroll bar bug + dom.style.overflow = 'hidden'; + (function(){dom.style.overflow = 'auto';}).defer(1); + }else{ + dom.style.overflow = v; + } + }, + + /** + *

    Wraps the specified element with a special 9 element markup/CSS block that renders by default as + * a gray container with a gradient background, rounded corners and a 4-way shadow.

    + *

    This special markup is used throughout Ext when box wrapping elements ({@link Ext.Button}, + * {@link Ext.Panel} when {@link Ext.Panel#frame frame=true}, {@link Ext.Window}). The markup + * is of this form:

    + *
    
    +    Ext.Element.boxMarkup =
    +    '<div class="{0}-tl"><div class="{0}-tr"><div class="{0}-tc"></div></div></div>
    +     <div class="{0}-ml"><div class="{0}-mr"><div class="{0}-mc"></div></div></div>
    +     <div class="{0}-bl"><div class="{0}-br"><div class="{0}-bc"></div></div></div>';
    +        * 
    + *

    Example usage:

    + *
    
    +    // Basic box wrap
    +    Ext.get("foo").boxWrap();
    +
    +    // You can also add a custom class and use CSS inheritance rules to customize the box look.
    +    // 'x-box-blue' is a built-in alternative -- look at the related CSS definitions as an example
    +    // for how to create a custom box wrap style.
    +    Ext.get("foo").boxWrap().addClass("x-box-blue");
    +        * 
    + * @param {String} class (optional) A base CSS class to apply to the containing wrapper element + * (defaults to 'x-box'). Note that there are a number of CSS rules that are dependent on + * this name to make the overall effect work, so if you supply an alternate base class, make sure you + * also supply all of the necessary rules. + * @return {Ext.Element} The outermost wrapping element of the created box structure. + */ + boxWrap : function(cls){ + cls = cls || 'x-box'; + var el = Ext.get(this.insertHtml("beforeBegin", "
    " + String.format(Ext.Element.boxMarkup, cls) + "
    ")); //String.format('
    '+Ext.Element.boxMarkup+'
    ', cls))); + Ext.DomQuery.selectNode('.' + cls + '-mc', el.dom).appendChild(this.dom); + return el; + }, + + /** + * Set the size of this Element. If animation is true, both width and height will be animated concurrently. + * @param {Mixed} width The new width. This may be one of:
      + *
    • A Number specifying the new width in this Element's {@link #defaultUnit}s (by default, pixels).
    • + *
    • A String used to set the CSS width style. Animation may not be used. + *
    • A size object in the format {width: widthValue, height: heightValue}.
    • + *
    + * @param {Mixed} height The new height. This may be one of:
      + *
    • A Number specifying the new height in this Element's {@link #defaultUnit}s (by default, pixels).
    • + *
    • A String used to set the CSS height style. Animation may not be used.
    • + *
    + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + setSize : function(width, height, animate){ + var me = this; + if(typeof width == 'object'){ // in case of object from getSize() + height = width.height; + width = width.width; + } + width = me.adjustWidth(width); + height = me.adjustHeight(height); + if(!animate || !me.anim){ + me.dom.style.width = me.addUnits(width); + me.dom.style.height = me.addUnits(height); + }else{ + me.anim({width: {to: width}, height: {to: height}}, me.preanim(arguments, 2)); + } + return me; + }, + + /** + * Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders + * when needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements + * if a height has not been set using CSS. + * @return {Number} + */ + getComputedHeight : function(){ + var me = this, + h = Math.max(me.dom.offsetHeight, me.dom.clientHeight); + if(!h){ + h = parseFloat(me.getStyle('height')) || 0; + if(!me.isBorderBox()){ + h += me.getFrameWidth('tb'); + } + } + return h; + }, + + /** + * Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders + * when needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements + * if a width has not been set using CSS. + * @return {Number} + */ + getComputedWidth : function(){ + var w = Math.max(this.dom.offsetWidth, this.dom.clientWidth); + if(!w){ + w = parseFloat(this.getStyle('width')) || 0; + if(!this.isBorderBox()){ + w += this.getFrameWidth('lr'); + } + } + return w; + }, + + /** + * Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth() + for more information about the sides. + * @param {String} sides + * @return {Number} + */ + getFrameWidth : function(sides, onlyContentBox){ + return onlyContentBox && this.isBorderBox() ? 0 : (this.getPadding(sides) + this.getBorderWidth(sides)); + }, + + /** + * Sets up event handlers to add and remove a css class when the mouse is over this element + * @param {String} className + * @return {Ext.Element} this + */ + addClassOnOver : function(className){ + this.hover( + function(){ + Ext.fly(this, INTERNAL).addClass(className); + }, + function(){ + Ext.fly(this, INTERNAL).removeClass(className); + } + ); + return this; + }, + + /** + * Sets up event handlers to add and remove a css class when this element has the focus + * @param {String} className + * @return {Ext.Element} this + */ + addClassOnFocus : function(className){ + this.on("focus", function(){ + Ext.fly(this, INTERNAL).addClass(className); + }, this.dom); + this.on("blur", function(){ + Ext.fly(this, INTERNAL).removeClass(className); + }, this.dom); + return this; + }, + + /** + * Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect) + * @param {String} className + * @return {Ext.Element} this + */ + addClassOnClick : function(className){ + var dom = this.dom; + this.on("mousedown", function(){ + Ext.fly(dom, INTERNAL).addClass(className); + var d = Ext.getDoc(), + fn = function(){ + Ext.fly(dom, INTERNAL).removeClass(className); + d.removeListener("mouseup", fn); + }; + d.on("mouseup", fn); + }); + return this; + }, + + /** + *

    Returns the dimensions of the element available to lay content out in.

    + *

    If the element (or any ancestor element) has CSS style display : none, the dimensions will be zero.

    + * example:
    
    +        var vpSize = Ext.getBody().getViewSize();
    +
    +        // all Windows created afterwards will have a default value of 90% height and 95% width
    +        Ext.Window.override({
    +            width: vpSize.width * 0.9,
    +            height: vpSize.height * 0.95
    +        });
    +        // To handle window resizing you would have to hook onto onWindowResize.
    +        * 
    + * + * getViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars. + * To obtain the size including scrollbars, use getStyleSize + * + * Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc. + */ + + getViewSize : function(){ + var doc = document, + d = this.dom, + isDoc = (d == doc || d == doc.body); + + // If the body, use Ext.lib.Dom + if (isDoc) { + var extdom = Ext.lib.Dom; + return { + width : extdom.getViewWidth(), + height : extdom.getViewHeight() + }; + + // Else use clientHeight/clientWidth + } else { + return { + width : d.clientWidth, + height : d.clientHeight + } + } + }, + + /** + *

    Returns the dimensions of the element available to lay content out in.

    + * + * getStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and offsetWidth/clientWidth. + * To obtain the size excluding scrollbars, use getViewSize + * + * Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc. + */ + + getStyleSize : function(){ + var me = this, + w, h, + doc = document, + d = this.dom, + isDoc = (d == doc || d == doc.body), + s = d.style; + + // If the body, use Ext.lib.Dom + if (isDoc) { + var extdom = Ext.lib.Dom; + return { + width : extdom.getViewWidth(), + height : extdom.getViewHeight() + } + } + // Use Styles if they are set + if(s.width && s.width != 'auto'){ + w = parseFloat(s.width); + if(me.isBorderBox()){ + w -= me.getFrameWidth('lr'); + } + } + // Use Styles if they are set + if(s.height && s.height != 'auto'){ + h = parseFloat(s.height); + if(me.isBorderBox()){ + h -= me.getFrameWidth('tb'); + } + } + // Use getWidth/getHeight if style not set. + return {width: w || me.getWidth(true), height: h || me.getHeight(true)}; + }, + + /** + * Returns the size of the element. + * @param {Boolean} contentSize (optional) true to get the width/size minus borders and padding + * @return {Object} An object containing the element's size {width: (element width), height: (element height)} + */ + getSize : function(contentSize){ + return {width: this.getWidth(contentSize), height: this.getHeight(contentSize)}; + }, + + /** + * Forces the browser to repaint this element + * @return {Ext.Element} this + */ + repaint : function(){ + var dom = this.dom; + this.addClass("x-repaint"); + setTimeout(function(){ + Ext.fly(dom).removeClass("x-repaint"); + }, 1); + return this; + }, + + /** + * Disables text selection for this element (normalized across browsers) + * @return {Ext.Element} this + */ + unselectable : function(){ + this.dom.unselectable = "on"; + return this.swallowEvent("selectstart", true). + applyStyles("-moz-user-select:none;-khtml-user-select:none;"). + addClass("x-unselectable"); + }, + + /** + * Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed, + * then it returns the calculated width of the sides (see getPadding) + * @param {String} sides (optional) Any combination of l, r, t, b to get the sum of those sides + * @return {Object/Number} + */ + getMargins : function(side){ + var me = this, + key, + hash = {t:"top", l:"left", r:"right", b: "bottom"}, + o = {}; + + if (!side) { + for (key in me.margins){ + o[hash[key]] = parseFloat(me.getStyle(me.margins[key])) || 0; + } + return o; + } else { + return me.addStyles.call(me, side, me.margins); + } + } + }; +}()); +/** + * @class Ext.Element + */ +(function(){ +var D = Ext.lib.Dom, + LEFT = "left", + RIGHT = "right", + TOP = "top", + BOTTOM = "bottom", + POSITION = "position", + STATIC = "static", + RELATIVE = "relative", + AUTO = "auto", + ZINDEX = "z-index"; + +Ext.Element.addMethods({ + /** + * Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @return {Number} The X position of the element + */ + getX : function(){ + return D.getX(this.dom); + }, + + /** + * Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @return {Number} The Y position of the element + */ + getY : function(){ + return D.getY(this.dom); + }, + + /** + * Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @return {Array} The XY position of the element + */ + getXY : function(){ + return D.getXY(this.dom); + }, + + /** + * Returns the offsets of this element from the passed element. Both element must be part of the DOM tree and not have display:none to have page coordinates. + * @param {Mixed} element The element to get the offsets from. + * @return {Array} The XY page offsets (e.g. [100, -200]) + */ + getOffsetsTo : function(el){ + var o = this.getXY(), + e = Ext.fly(el, '_internal').getXY(); + return [o[0]-e[0],o[1]-e[1]]; + }, + + /** + * Sets the X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @param {Number} The X position of the element + * @param {Boolean/Object} animate (optional) True for the default animation, or a standard Element animation config object + * @return {Ext.Element} this + */ + setX : function(x, animate){ + return this.setXY([x, this.getY()], this.animTest(arguments, animate, 1)); + }, + + /** + * Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @param {Number} The Y position of the element + * @param {Boolean/Object} animate (optional) True for the default animation, or a standard Element animation config object + * @return {Ext.Element} this + */ + setY : function(y, animate){ + return this.setXY([this.getX(), y], this.animTest(arguments, animate, 1)); + }, + + /** + * Sets the element's left position directly using CSS style (instead of {@link #setX}). + * @param {String} left The left CSS property value + * @return {Ext.Element} this + */ + setLeft : function(left){ + this.setStyle(LEFT, this.addUnits(left)); + return this; + }, + + /** + * Sets the element's top position directly using CSS style (instead of {@link #setY}). + * @param {String} top The top CSS property value + * @return {Ext.Element} this + */ + setTop : function(top){ + this.setStyle(TOP, this.addUnits(top)); + return this; + }, + + /** + * Sets the element's CSS right style. + * @param {String} right The right CSS property value + * @return {Ext.Element} this + */ + setRight : function(right){ + this.setStyle(RIGHT, this.addUnits(right)); + return this; + }, + + /** + * Sets the element's CSS bottom style. + * @param {String} bottom The bottom CSS property value + * @return {Ext.Element} this + */ + setBottom : function(bottom){ + this.setStyle(BOTTOM, this.addUnits(bottom)); + return this; + }, + + /** + * Sets the position of the element in page coordinates, regardless of how the element is positioned. + * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @param {Array} pos Contains X & Y [x, y] values for new position (coordinates are page-based) + * @param {Boolean/Object} animate (optional) True for the default animation, or a standard Element animation config object + * @return {Ext.Element} this + */ + setXY : function(pos, animate){ + var me = this; + if(!animate || !me.anim){ + D.setXY(me.dom, pos); + }else{ + me.anim({points: {to: pos}}, me.preanim(arguments, 1), 'motion'); + } + return me; + }, + + /** + * Sets the position of the element in page coordinates, regardless of how the element is positioned. + * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @param {Number} x X value for new position (coordinates are page-based) + * @param {Number} y Y value for new position (coordinates are page-based) + * @param {Boolean/Object} animate (optional) True for the default animation, or a standard Element animation config object + * @return {Ext.Element} this + */ + setLocation : function(x, y, animate){ + return this.setXY([x, y], this.animTest(arguments, animate, 2)); + }, + + /** + * Sets the position of the element in page coordinates, regardless of how the element is positioned. + * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @param {Number} x X value for new position (coordinates are page-based) + * @param {Number} y Y value for new position (coordinates are page-based) + * @param {Boolean/Object} animate (optional) True for the default animation, or a standard Element animation config object + * @return {Ext.Element} this + */ + moveTo : function(x, y, animate){ + return this.setXY([x, y], this.animTest(arguments, animate, 2)); + }, + + /** + * Gets the left X coordinate + * @param {Boolean} local True to get the local css position instead of page coordinate + * @return {Number} + */ + getLeft : function(local){ + return !local ? this.getX() : parseInt(this.getStyle(LEFT), 10) || 0; + }, + + /** + * Gets the right X coordinate of the element (element X position + element width) + * @param {Boolean} local True to get the local css position instead of page coordinate + * @return {Number} + */ + getRight : function(local){ + var me = this; + return !local ? me.getX() + me.getWidth() : (me.getLeft(true) + me.getWidth()) || 0; + }, + + /** + * Gets the top Y coordinate + * @param {Boolean} local True to get the local css position instead of page coordinate + * @return {Number} + */ + getTop : function(local) { + return !local ? this.getY() : parseInt(this.getStyle(TOP), 10) || 0; + }, + + /** + * Gets the bottom Y coordinate of the element (element Y position + element height) + * @param {Boolean} local True to get the local css position instead of page coordinate + * @return {Number} + */ + getBottom : function(local){ + var me = this; + return !local ? me.getY() + me.getHeight() : (me.getTop(true) + me.getHeight()) || 0; + }, + + /** + * Initializes positioning on this element. If a desired position is not passed, it will make the + * the element positioned relative IF it is not already positioned. + * @param {String} pos (optional) Positioning to use "relative", "absolute" or "fixed" + * @param {Number} zIndex (optional) The zIndex to apply + * @param {Number} x (optional) Set the page X position + * @param {Number} y (optional) Set the page Y position + */ + position : function(pos, zIndex, x, y){ + var me = this; + + if(!pos && me.isStyle(POSITION, STATIC)){ + me.setStyle(POSITION, RELATIVE); + } else if(pos) { + me.setStyle(POSITION, pos); + } + if(zIndex){ + me.setStyle(ZINDEX, zIndex); + } + if(x || y) me.setXY([x || false, y || false]); + }, + + /** + * Clear positioning back to the default when the document was loaded + * @param {String} value (optional) The value to use for the left,right,top,bottom, defaults to '' (empty string). You could use 'auto'. + * @return {Ext.Element} this + */ + clearPositioning : function(value){ + value = value || ''; + this.setStyle({ + left : value, + right : value, + top : value, + bottom : value, + "z-index" : "", + position : STATIC + }); + return this; + }, + + /** + * Gets an object with all CSS positioning properties. Useful along with setPostioning to get + * snapshot before performing an update and then restoring the element. + * @return {Object} + */ + getPositioning : function(){ + var l = this.getStyle(LEFT); + var t = this.getStyle(TOP); + return { + "position" : this.getStyle(POSITION), + "left" : l, + "right" : l ? "" : this.getStyle(RIGHT), + "top" : t, + "bottom" : t ? "" : this.getStyle(BOTTOM), + "z-index" : this.getStyle(ZINDEX) + }; + }, + + /** + * Set positioning with an object returned by getPositioning(). + * @param {Object} posCfg + * @return {Ext.Element} this + */ + setPositioning : function(pc){ + var me = this, + style = me.dom.style; + + me.setStyle(pc); + + if(pc.right == AUTO){ + style.right = ""; + } + if(pc.bottom == AUTO){ + style.bottom = ""; + } + + return me; + }, + + /** + * Translates the passed page coordinates into left/top css values for this element + * @param {Number/Array} x The page x or an array containing [x, y] + * @param {Number} y (optional) The page y, required if x is not an array + * @return {Object} An object with left and top properties. e.g. {left: (value), top: (value)} + */ + translatePoints : function(x, y){ + y = isNaN(x[1]) ? y : x[1]; + x = isNaN(x[0]) ? x : x[0]; + var me = this, + relative = me.isStyle(POSITION, RELATIVE), + o = me.getXY(), + l = parseInt(me.getStyle(LEFT), 10), + t = parseInt(me.getStyle(TOP), 10); + + l = !isNaN(l) ? l : (relative ? 0 : me.dom.offsetLeft); + t = !isNaN(t) ? t : (relative ? 0 : me.dom.offsetTop); + + return {left: (x - o[0] + l), top: (y - o[1] + t)}; + }, + + animTest : function(args, animate, i) { + return !!animate && this.preanim ? this.preanim(args, i) : false; + } +}); +})();/** + * @class Ext.Element + */ +Ext.Element.addMethods({ + /** + * Sets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x and y will be animated concurrently. + * @param {Object} box The box to fill {x, y, width, height} + * @param {Boolean} adjust (optional) Whether to adjust for box-model issues automatically + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + setBox : function(box, adjust, animate){ + var me = this, + w = box.width, + h = box.height; + if((adjust && !me.autoBoxAdjust) && !me.isBorderBox()){ + w -= (me.getBorderWidth("lr") + me.getPadding("lr")); + h -= (me.getBorderWidth("tb") + me.getPadding("tb")); + } + me.setBounds(box.x, box.y, w, h, me.animTest.call(me, arguments, animate, 2)); + return me; + }, + + /** + * Return an object defining the area of this Element which can be passed to {@link #setBox} to + * set another Element's size/location to match this element. + * @param {Boolean} contentBox (optional) If true a box for the content of the element is returned. + * @param {Boolean} local (optional) If true the element's left and top are returned instead of page x/y. + * @return {Object} box An object in the format

    
    +{
    +    x: <Element's X position>,
    +    y: <Element's Y position>,
    +    width: <Element's width>,
    +    height: <Element's height>,
    +    bottom: <Element's lower bound>,
    +    right: <Element's rightmost bound>
    +}
    +
    + * The returned object may also be addressed as an Array where index 0 contains the X position + * and index 1 contains the Y position. So the result may also be used for {@link #setXY} + */ + getBox : function(contentBox, local) { + var me = this, + xy, + left, + top, + getBorderWidth = me.getBorderWidth, + getPadding = me.getPadding, + l, + r, + t, + b; + if(!local){ + xy = me.getXY(); + }else{ + left = parseInt(me.getStyle("left"), 10) || 0; + top = parseInt(me.getStyle("top"), 10) || 0; + xy = [left, top]; + } + var el = me.dom, w = el.offsetWidth, h = el.offsetHeight, bx; + if(!contentBox){ + bx = {x: xy[0], y: xy[1], 0: xy[0], 1: xy[1], width: w, height: h}; + }else{ + l = getBorderWidth.call(me, "l") + getPadding.call(me, "l"); + r = getBorderWidth.call(me, "r") + getPadding.call(me, "r"); + t = getBorderWidth.call(me, "t") + getPadding.call(me, "t"); + b = getBorderWidth.call(me, "b") + getPadding.call(me, "b"); + bx = {x: xy[0]+l, y: xy[1]+t, 0: xy[0]+l, 1: xy[1]+t, width: w-(l+r), height: h-(t+b)}; + } + bx.right = bx.x + bx.width; + bx.bottom = bx.y + bx.height; + return bx; + }, + + /** + * Move this element relative to its current position. + * @param {String} direction Possible values are: "l" (or "left"), "r" (or "right"), "t" (or "top", or "up"), "b" (or "bottom", or "down"). + * @param {Number} distance How far to move the element in pixels + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + move : function(direction, distance, animate){ + var me = this, + xy = me.getXY(), + x = xy[0], + y = xy[1], + left = [x - distance, y], + right = [x + distance, y], + top = [x, y - distance], + bottom = [x, y + distance], + hash = { + l : left, + left : left, + r : right, + right : right, + t : top, + top : top, + up : top, + b : bottom, + bottom : bottom, + down : bottom + }; + + direction = direction.toLowerCase(); + me.moveTo(hash[direction][0], hash[direction][1], me.animTest.call(me, arguments, animate, 2)); + }, + + /** + * Quick set left and top adding default units + * @param {String} left The left CSS property value + * @param {String} top The top CSS property value + * @return {Ext.Element} this + */ + setLeftTop : function(left, top){ + var me = this, + style = me.dom.style; + style.left = me.addUnits(left); + style.top = me.addUnits(top); + return me; + }, + + /** + * Returns the region of the given element. + * The element must be part of the DOM tree to have a region (display:none or elements not appended return false). + * @return {Region} A Ext.lib.Region containing "top, left, bottom, right" member data. + */ + getRegion : function(){ + return Ext.lib.Dom.getRegion(this.dom); + }, + + /** + * Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently. + * @param {Number} x X value for new position (coordinates are page-based) + * @param {Number} y Y value for new position (coordinates are page-based) + * @param {Mixed} width The new width. This may be one of:
      + *
    • A Number specifying the new width in this Element's {@link #defaultUnit}s (by default, pixels)
    • + *
    • A String used to set the CSS width style. Animation may not be used. + *
    + * @param {Mixed} height The new height. This may be one of:
      + *
    • A Number specifying the new height in this Element's {@link #defaultUnit}s (by default, pixels)
    • + *
    • A String used to set the CSS height style. Animation may not be used.
    • + *
    + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + setBounds : function(x, y, width, height, animate){ + var me = this; + if (!animate || !me.anim) { + me.setSize(width, height); + me.setLocation(x, y); + } else { + me.anim({points: {to: [x, y]}, + width: {to: me.adjustWidth(width)}, + height: {to: me.adjustHeight(height)}}, + me.preanim(arguments, 4), + 'motion'); + } + return me; + }, + + /** + * Sets the element's position and size the specified region. If animation is true then width, height, x and y will be animated concurrently. + * @param {Ext.lib.Region} region The region to fill + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + setRegion : function(region, animate) { + return this.setBounds(region.left, region.top, region.right-region.left, region.bottom-region.top, this.animTest.call(this, arguments, animate, 1)); + } +});/** + * @class Ext.Element + */ +Ext.Element.addMethods({ + /** + * Returns true if this element is scrollable. + * @return {Boolean} + */ + isScrollable : function(){ + var dom = this.dom; + return dom.scrollHeight > dom.clientHeight || dom.scrollWidth > dom.clientWidth; + }, + + /** + * Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will try to do it. For auto bounds checking, use scroll(). + * @param {String} side Either "left" for scrollLeft values or "top" for scrollTop values. + * @param {Number} value The new scroll value. + * @return {Element} this + */ + scrollTo : function(side, value){ + this.dom["scroll" + (/top/i.test(side) ? "Top" : "Left")] = value; + return this; + }, + + /** + * Returns the current scroll position of the element. + * @return {Object} An object containing the scroll position in the format {left: (scrollLeft), top: (scrollTop)} + */ + getScroll : function(){ + var d = this.dom, + doc = document, + body = doc.body, + docElement = doc.documentElement, + l, + t, + ret; + + if(d == doc || d == body){ + if(Ext.isIE && Ext.isStrict){ + l = docElement.scrollLeft; + t = docElement.scrollTop; + }else{ + l = window.pageXOffset; + t = window.pageYOffset; + } + ret = {left: l || (body ? body.scrollLeft : 0), top: t || (body ? body.scrollTop : 0)}; + }else{ + ret = {left: d.scrollLeft, top: d.scrollTop}; + } + return ret; + } +});/** + * @class Ext.Element + */ +Ext.Element.addMethods({ + /** + * Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will try to do it. For auto bounds checking, use scroll(). + * @param {String} side Either "left" for scrollLeft values or "top" for scrollTop values. + * @param {Number} value The new scroll value + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Element} this + */ + scrollTo : function(side, value, animate){ + var top = /top/i.test(side), //check if we're scrolling top or left + me = this, + dom = me.dom, + prop; + if (!animate || !me.anim) { + prop = 'scroll' + (top ? 'Top' : 'Left'), // just setting the value, so grab the direction + dom[prop] = value; + }else{ + prop = 'scroll' + (top ? 'Left' : 'Top'), // if scrolling top, we need to grab scrollLeft, if left, scrollTop + me.anim({scroll: {to: top ? [dom[prop], value] : [value, dom[prop]]}}, + me.preanim(arguments, 2), 'scroll'); + } + return me; + }, + + /** + * Scrolls this element into view within the passed container. + * @param {Mixed} container (optional) The container element to scroll (defaults to document.body). Should be a + * string (id), dom node, or Ext.Element. + * @param {Boolean} hscroll (optional) False to disable horizontal scroll (defaults to true) + * @return {Ext.Element} this + */ + scrollIntoView : function(container, hscroll){ + var c = Ext.getDom(container) || Ext.getBody().dom, + el = this.dom, + o = this.getOffsetsTo(c), + l = o[0] + c.scrollLeft, + t = o[1] + c.scrollTop, + b = t + el.offsetHeight, + r = l + el.offsetWidth, + ch = c.clientHeight, + ct = parseInt(c.scrollTop, 10), + cl = parseInt(c.scrollLeft, 10), + cb = ct + ch, + cr = cl + c.clientWidth; + + if (el.offsetHeight > ch || t < ct) { + c.scrollTop = t; + } else if (b > cb){ + c.scrollTop = b-ch; + } + c.scrollTop = c.scrollTop; // corrects IE, other browsers will ignore + + if(hscroll !== false){ + if(el.offsetWidth > c.clientWidth || l < cl){ + c.scrollLeft = l; + }else if(r > cr){ + c.scrollLeft = r - c.clientWidth; + } + c.scrollLeft = c.scrollLeft; + } + return this; + }, + + // private + scrollChildIntoView : function(child, hscroll){ + Ext.fly(child, '_scrollChildIntoView').scrollIntoView(this, hscroll); + }, + + /** + * Scrolls this element the specified direction. Does bounds checking to make sure the scroll is + * within this element's scrollable range. + * @param {String} direction Possible values are: "l" (or "left"), "r" (or "right"), "t" (or "top", or "up"), "b" (or "bottom", or "down"). + * @param {Number} distance How far to scroll the element in pixels + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Boolean} Returns true if a scroll was triggered or false if the element + * was scrolled as far as it could go. + */ + scroll : function(direction, distance, animate){ + if(!this.isScrollable()){ + return; + } + var el = this.dom, + l = el.scrollLeft, t = el.scrollTop, + w = el.scrollWidth, h = el.scrollHeight, + cw = el.clientWidth, ch = el.clientHeight, + scrolled = false, v, + hash = { + l: Math.min(l + distance, w-cw), + r: v = Math.max(l - distance, 0), + t: Math.max(t - distance, 0), + b: Math.min(t + distance, h-ch) + }; + hash.d = hash.b; + hash.u = hash.t; + + direction = direction.substr(0, 1); + if((v = hash[direction]) > -1){ + scrolled = true; + this.scrollTo(direction == 'l' || direction == 'r' ? 'left' : 'top', v, this.preanim(arguments, 2)); + } + return scrolled; + } +});/** + * @class Ext.Element + */ +/** + * Visibility mode constant for use with {@link #setVisibilityMode}. Use visibility to hide element + * @static + * @type Number + */ +Ext.Element.VISIBILITY = 1; +/** + * Visibility mode constant for use with {@link #setVisibilityMode}. Use display to hide element + * @static + * @type Number + */ +Ext.Element.DISPLAY = 2; + +Ext.Element.addMethods(function(){ + var VISIBILITY = "visibility", + DISPLAY = "display", + HIDDEN = "hidden", + OFFSETS = "offsets", + NONE = "none", + ORIGINALDISPLAY = 'originalDisplay', + VISMODE = 'visibilityMode', + ELDISPLAY = Ext.Element.DISPLAY, + data = Ext.Element.data, + getDisplay = function(dom){ + var d = data(dom, ORIGINALDISPLAY); + if(d === undefined){ + data(dom, ORIGINALDISPLAY, d = ''); + } + return d; + }, + getVisMode = function(dom){ + var m = data(dom, VISMODE); + if(m === undefined){ + data(dom, VISMODE, m = 1); + } + return m; + }; + + return { + /** + * The element's default display mode (defaults to "") + * @type String + */ + originalDisplay : "", + visibilityMode : 1, + + /** + * Sets the element's visibility mode. When setVisible() is called it + * will use this to determine whether to set the visibility or the display property. + * @param {Number} visMode Ext.Element.VISIBILITY or Ext.Element.DISPLAY + * @return {Ext.Element} this + */ + setVisibilityMode : function(visMode){ + data(this.dom, VISMODE, visMode); + return this; + }, + + /** + * Perform custom animation on this element. + *
      + *
    • Animation Properties
    • + * + *

      The Animation Control Object enables gradual transitions for any member of an + * element's style object that takes a numeric value including but not limited to + * these properties:

        + *
      • bottom, top, left, right
      • + *
      • height, width
      • + *
      • margin, padding
      • + *
      • borderWidth
      • + *
      • opacity
      • + *
      • fontSize
      • + *
      • lineHeight
      • + *
      + * + * + *
    • Animation Property Attributes
    • + * + *

      Each Animation Property is a config object with optional properties:

      + *
        + *
      • by* : relative change - start at current value, change by this value
      • + *
      • from : ignore current value, start from this value
      • + *
      • to* : start at current value, go to this value
      • + *
      • unit : any allowable unit specification
      • + *

        * do not specify both to and by for an animation property

        + *
      + * + *
    • Animation Types
    • + * + *

      The supported animation types:

        + *
      • 'run' : Default + *
        
        +var el = Ext.get('complexEl');
        +el.animate(
        +    // animation control object
        +    {
        +        borderWidth: {to: 3, from: 0},
        +        opacity: {to: .3, from: 1},
        +        height: {to: 50, from: el.getHeight()},
        +        width: {to: 300, from: el.getWidth()},
        +        top  : {by: - 100, unit: 'px'},
        +    },
        +    0.35,      // animation duration
        +    null,      // callback
        +    'easeOut', // easing method
        +    'run'      // animation type ('run','color','motion','scroll')
        +);
        +         * 
        + *
      • + *
      • 'color' + *

        Animates transition of background, text, or border colors.

        + *
        
        +el.animate(
        +    // animation control object
        +    {
        +        color: { to: '#06e' },
        +        backgroundColor: { to: '#e06' }
        +    },
        +    0.35,      // animation duration
        +    null,      // callback
        +    'easeOut', // easing method
        +    'color'    // animation type ('run','color','motion','scroll')
        +);
        +         * 
        + *
      • + * + *
      • 'motion' + *

        Animates the motion of an element to/from specific points using optional bezier + * way points during transit.

        + *
        
        +el.animate(
        +    // animation control object
        +    {
        +        borderWidth: {to: 3, from: 0},
        +        opacity: {to: .3, from: 1},
        +        height: {to: 50, from: el.getHeight()},
        +        width: {to: 300, from: el.getWidth()},
        +        top  : {by: - 100, unit: 'px'},
        +        points: {
        +            to: [50, 100],  // go to this point
        +            control: [      // optional bezier way points
        +                [ 600, 800],
        +                [-100, 200]
        +            ]
        +        }
        +    },
        +    3000,      // animation duration (milliseconds!)
        +    null,      // callback
        +    'easeOut', // easing method
        +    'motion'   // animation type ('run','color','motion','scroll')
        +);
        +         * 
        + *
      • + *
      • 'scroll' + *

        Animate horizontal or vertical scrolling of an overflowing page element.

        + *
        
        +el.animate(
        +    // animation control object
        +    {
        +        scroll: {to: [400, 300]}
        +    },
        +    0.35,      // animation duration
        +    null,      // callback
        +    'easeOut', // easing method
        +    'scroll'   // animation type ('run','color','motion','scroll')
        +);
        +         * 
        + *
      • + *
      + * + *
    + * + * @param {Object} args The animation control args + * @param {Float} duration (optional) How long the animation lasts in seconds (defaults to .35) + * @param {Function} onComplete (optional) Function to call when animation completes + * @param {String} easing (optional) {@link Ext.Fx#easing} method to use (defaults to 'easeOut') + * @param {String} animType (optional) 'run' is the default. Can also be 'color', + * 'motion', or 'scroll' + * @return {Ext.Element} this + */ + animate : function(args, duration, onComplete, easing, animType){ + this.anim(args, {duration: duration, callback: onComplete, easing: easing}, animType); + return this; + }, + + /* + * @private Internal animation call + */ + anim : function(args, opt, animType, defaultDur, defaultEase, cb){ + animType = animType || 'run'; + opt = opt || {}; + var me = this, + anim = Ext.lib.Anim[animType]( + me.dom, + args, + (opt.duration || defaultDur) || .35, + (opt.easing || defaultEase) || 'easeOut', + function(){ + if(cb) cb.call(me); + if(opt.callback) opt.callback.call(opt.scope || me, me, opt); + }, + me + ); + opt.anim = anim; + return anim; + }, + + // private legacy anim prep + preanim : function(a, i){ + return !a[i] ? false : (typeof a[i] == 'object' ? a[i]: {duration: a[i+1], callback: a[i+2], easing: a[i+3]}); + }, + + /** + * Checks whether the element is currently visible using both visibility and display properties. + * @return {Boolean} True if the element is currently visible, else false + */ + isVisible : function() { + return !this.isStyle(VISIBILITY, HIDDEN) && !this.isStyle(DISPLAY, NONE); + }, + + /** + * Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use + * the display property to hide the element, otherwise it uses visibility. The default is to hide and show using the visibility property. + * @param {Boolean} visible Whether the element is visible + * @param {Boolean/Object} animate (optional) True for the default animation, or a standard Element animation config object + * @return {Ext.Element} this + */ + setVisible : function(visible, animate){ + var me = this, isDisplay, isVisible, isOffsets, + dom = me.dom; + + // hideMode string override + if (typeof animate == 'string'){ + isDisplay = animate == DISPLAY; + isVisible = animate == VISIBILITY; + isOffsets = animate == OFFSETS; + animate = false; + } else { + isDisplay = getVisMode(this.dom) == ELDISPLAY; + isVisible = !isDisplay; + } + + if (!animate || !me.anim) { + if (isDisplay){ + me.setDisplayed(visible); + } else if (isOffsets){ + if (!visible){ + me.hideModeStyles = { + position: me.getStyle('position'), + top: me.getStyle('top'), + left: me.getStyle('left') + }; + + me.applyStyles({position: 'absolute', top: '-10000px', left: '-10000px'}); + } else { + me.applyStyles(me.hideModeStyles || {position: '', top: '', left: ''}); + } + }else{ + me.fixDisplay(); + dom.style.visibility = visible ? "visible" : HIDDEN; + } + }else{ + // closure for composites + if (visible){ + me.setOpacity(.01); + me.setVisible(true); + } + me.anim({opacity: { to: (visible?1:0) }}, + me.preanim(arguments, 1), + null, + .35, + 'easeIn', + function(){ + if(!visible){ + dom.style[isDisplay ? DISPLAY : VISIBILITY] = (isDisplay) ? NONE : HIDDEN; + Ext.fly(dom).setOpacity(1); + } + }); + } + return me; + }, + + /** + * Toggles the element's visibility or display, depending on visibility mode. + * @param {Boolean/Object} animate (optional) True for the default animation, or a standard Element animation config object + * @return {Ext.Element} this + */ + toggle : function(animate){ + var me = this; + me.setVisible(!me.isVisible(), me.preanim(arguments, 0)); + return me; + }, + + /** + * Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true. + * @param {Mixed} value Boolean value to display the element using its default display, or a string to set the display directly. + * @return {Ext.Element} this + */ + setDisplayed : function(value) { + if(typeof value == "boolean"){ + value = value ? getDisplay(this.dom) : NONE; + } + this.setStyle(DISPLAY, value); + return this; + }, + + // private + fixDisplay : function(){ + var me = this; + if(me.isStyle(DISPLAY, NONE)){ + me.setStyle(VISIBILITY, HIDDEN); + me.setStyle(DISPLAY, getDisplay(this.dom)); // first try reverting to default + if(me.isStyle(DISPLAY, NONE)){ // if that fails, default to block + me.setStyle(DISPLAY, "block"); + } + } + }, + + /** + * Hide this element - Uses display mode to determine whether to use "display" or "visibility". See {@link #setVisible}. + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + hide : function(animate){ + // hideMode override + if (typeof animate == 'string'){ + this.setVisible(false, animate); + return this; + } + this.setVisible(false, this.preanim(arguments, 0)); + return this; + }, + + /** + * Show this element - Uses display mode to determine whether to use "display" or "visibility". See {@link #setVisible}. + * @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object + * @return {Ext.Element} this + */ + show : function(animate){ + // hideMode override + if (typeof animate == 'string'){ + this.setVisible(true, animate); + return this; + } + this.setVisible(true, this.preanim(arguments, 0)); + return this; + } + }; +}()); +/** + * @class Ext.Element + */ +Ext.Element.addMethods( +function(){ + var VISIBILITY = "visibility", + DISPLAY = "display", + HIDDEN = "hidden", + NONE = "none", + XMASKED = "x-masked", + XMASKEDRELATIVE = "x-masked-relative", + data = Ext.Element.data; + + return { + /** + * Checks whether the element is currently visible using both visibility and display properties. + * @param {Boolean} deep (optional) True to walk the dom and see if parent elements are hidden (defaults to false) + * @return {Boolean} True if the element is currently visible, else false + */ + isVisible : function(deep) { + var vis = !this.isStyle(VISIBILITY,HIDDEN) && !this.isStyle(DISPLAY,NONE), + p = this.dom.parentNode; + if(deep !== true || !vis){ + return vis; + } + while(p && !/^body/i.test(p.tagName)){ + if(!Ext.fly(p, '_isVisible').isVisible()){ + return false; + } + p = p.parentNode; + } + return true; + }, + + /** + * Returns true if display is not "none" + * @return {Boolean} + */ + isDisplayed : function() { + return !this.isStyle(DISPLAY, NONE); + }, + + /** + * Convenience method for setVisibilityMode(Element.DISPLAY) + * @param {String} display (optional) What to set display to when visible + * @return {Ext.Element} this + */ + enableDisplayMode : function(display){ + this.setVisibilityMode(Ext.Element.DISPLAY); + if(!Ext.isEmpty(display)){ + data(this.dom, 'originalDisplay', display); + } + return this; + }, + + /** + * Puts a mask over this element to disable user interaction. Requires core.css. + * This method can only be applied to elements which accept child nodes. + * @param {String} msg (optional) A message to display in the mask + * @param {String} msgCls (optional) A css class to apply to the msg element + * @return {Element} The mask element + */ + mask : function(msg, msgCls){ + var me = this, + dom = me.dom, + dh = Ext.DomHelper, + EXTELMASKMSG = "ext-el-mask-msg", + el, + mask; + + if(!/^body/i.test(dom.tagName) && me.getStyle('position') == 'static'){ + me.addClass(XMASKEDRELATIVE); + } + if((el = data(dom, 'maskMsg'))){ + el.remove(); + } + if((el = data(dom, 'mask'))){ + el.remove(); + } + + mask = dh.append(dom, {cls : "ext-el-mask"}, true); + data(dom, 'mask', mask); + + me.addClass(XMASKED); + mask.setDisplayed(true); + if(typeof msg == 'string'){ + var mm = dh.append(dom, {cls : EXTELMASKMSG, cn:{tag:'div'}}, true); + data(dom, 'maskMsg', mm); + mm.dom.className = msgCls ? EXTELMASKMSG + " " + msgCls : EXTELMASKMSG; + mm.dom.firstChild.innerHTML = msg; + mm.setDisplayed(true); + mm.center(me); + } + if(Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && me.getStyle('height') == 'auto'){ // ie will not expand full height automatically + mask.setSize(undefined, me.getHeight()); + } + return mask; + }, + + /** + * Removes a previously applied mask. + */ + unmask : function(){ + var me = this, + dom = me.dom, + mask = data(dom, 'mask'), + maskMsg = data(dom, 'maskMsg'); + if(mask){ + if(maskMsg){ + maskMsg.remove(); + data(dom, 'maskMsg', undefined); + } + mask.remove(); + data(dom, 'mask', undefined); + } + me.removeClass([XMASKED, XMASKEDRELATIVE]); + }, + + /** + * Returns true if this element is masked + * @return {Boolean} + */ + isMasked : function(){ + var m = data(this.dom, 'mask'); + return m && m.isVisible(); + }, + + /** + * Creates an iframe shim for this element to keep selects and other windowed objects from + * showing through. + * @return {Ext.Element} The new shim element + */ + createShim : function(){ + var el = document.createElement('iframe'), + shim; + el.frameBorder = '0'; + el.className = 'ext-shim'; + el.src = Ext.SSL_SECURE_URL; + shim = Ext.get(this.dom.parentNode.insertBefore(el, this.dom)); + shim.autoBoxAdjust = false; + return shim; + } + }; +}());/** + * @class Ext.Element + */ +Ext.Element.addMethods({ + /** + * Convenience method for constructing a KeyMap + * @param {Number/Array/Object/String} key Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: + * {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param {Function} fn The function to call + * @param {Object} scope (optional) The scope (this reference) in which the specified function is executed. Defaults to this Element. + * @return {Ext.KeyMap} The KeyMap created + */ + addKeyListener : function(key, fn, scope){ + var config; + if(typeof key != 'object' || Ext.isArray(key)){ + config = { + key: key, + fn: fn, + scope: scope + }; + }else{ + config = { + key : key.key, + shift : key.shift, + ctrl : key.ctrl, + alt : key.alt, + fn: fn, + scope: scope + }; + } + return new Ext.KeyMap(this, config); + }, + + /** + * Creates a KeyMap for this element + * @param {Object} config The KeyMap config. See {@link Ext.KeyMap} for more details + * @return {Ext.KeyMap} The KeyMap created + */ + addKeyMap : function(config){ + return new Ext.KeyMap(this, config); + } +}); +(function(){ + // contants + var NULL = null, + UNDEFINED = undefined, + TRUE = true, + FALSE = false, + SETX = "setX", + SETY = "setY", + SETXY = "setXY", + LEFT = "left", + BOTTOM = "bottom", + TOP = "top", + RIGHT = "right", + HEIGHT = "height", + WIDTH = "width", + POINTS = "points", + HIDDEN = "hidden", + ABSOLUTE = "absolute", + VISIBLE = "visible", + MOTION = "motion", + POSITION = "position", + EASEOUT = "easeOut", + /* + * Use a light flyweight here since we are using so many callbacks and are always assured a DOM element + */ + flyEl = new Ext.Element.Flyweight(), + queues = {}, + getObject = function(o){ + return o || {}; + }, + fly = function(dom){ + flyEl.dom = dom; + flyEl.id = Ext.id(dom); + return flyEl; + }, + /* + * Queueing now stored outside of the element due to closure issues + */ + getQueue = function(id){ + if(!queues[id]){ + queues[id] = []; + } + return queues[id]; + }, + setQueue = function(id, value){ + queues[id] = value; + }; + +//Notifies Element that fx methods are available +Ext.enableFx = TRUE; + +/** + * @class Ext.Fx + *

    A class to provide basic animation and visual effects support. Note: This class is automatically applied + * to the {@link Ext.Element} interface when included, so all effects calls should be performed via {@link Ext.Element}. + * Conversely, since the effects are not actually defined in {@link Ext.Element}, Ext.Fx must be + * {@link Ext#enableFx included} in order for the Element effects to work.


    + * + *

    Method Chaining

    + *

    It is important to note that although the Fx methods and many non-Fx Element methods support "method chaining" in that + * they return the Element object itself as the method return value, it is not always possible to mix the two in a single + * method chain. The Fx methods use an internal effects queue so that each effect can be properly timed and sequenced. + * Non-Fx methods, on the other hand, have no such internal queueing and will always execute immediately. For this reason, + * while it may be possible to mix certain Fx and non-Fx method calls in a single chain, it may not always provide the + * expected results and should be done with care. Also see {@link #callback}.


    + * + *

    Anchor Options for Motion Effects

    + *

    Motion effects support 8-way anchoring, meaning that you can choose one of 8 different anchor points on the Element + * that will serve as either the start or end point of the animation. Following are all of the supported anchor positions:

    +
    +Value  Description
    +-----  -----------------------------
    +tl     The top left corner
    +t      The center of the top edge
    +tr     The top right corner
    +l      The center of the left edge
    +r      The center of the right edge
    +bl     The bottom left corner
    +b      The center of the bottom edge
    +br     The bottom right corner
    +
    + * Note: some Fx methods accept specific custom config parameters. The options shown in the Config Options + * section below are common options that can be passed to any Fx method unless otherwise noted. + * + * @cfg {Function} callback A function called when the effect is finished. Note that effects are queued internally by the + * Fx class, so a callback is not required to specify another effect -- effects can simply be chained together + * and called in sequence (see note for Method Chaining above), for example:
    
    + * el.slideIn().highlight();
    + * 
    + * The callback is intended for any additional code that should run once a particular effect has completed. The Element + * being operated upon is passed as the first parameter. + * + * @cfg {Object} scope The scope (this reference) in which the {@link #callback} function is executed. Defaults to the browser window. + * + * @cfg {String} easing A valid Ext.lib.Easing value for the effect:

      + *
    • backBoth
    • + *
    • backIn
    • + *
    • backOut
    • + *
    • bounceBoth
    • + *
    • bounceIn
    • + *
    • bounceOut
    • + *
    • easeBoth
    • + *
    • easeBothStrong
    • + *
    • easeIn
    • + *
    • easeInStrong
    • + *
    • easeNone
    • + *
    • easeOut
    • + *
    • easeOutStrong
    • + *
    • elasticBoth
    • + *
    • elasticIn
    • + *
    • elasticOut
    • + *
    + * + * @cfg {String} afterCls A css class to apply after the effect + * @cfg {Number} duration The length of time (in seconds) that the effect should last + * + * @cfg {Number} endOpacity Only applicable for {@link #fadeIn} or {@link #fadeOut}, a number between + * 0 and 1 inclusive to configure the ending opacity value. + * + * @cfg {Boolean} remove Whether the Element should be removed from the DOM and destroyed after the effect finishes + * @cfg {Boolean} useDisplay Whether to use the display CSS property instead of visibility when hiding Elements (only applies to + * effects that end with the element being visually hidden, ignored otherwise) + * @cfg {String/Object/Function} afterStyle A style specification string, e.g. "width:100px", or an object + * in the form {width:"100px"}, or a function which returns such a specification that will be applied to the + * Element after the effect finishes. + * @cfg {Boolean} block Whether the effect should block other effects from queueing while it runs + * @cfg {Boolean} concurrent Whether to allow subsequently-queued effects to run at the same time as the current effect, or to ensure that they run in sequence + * @cfg {Boolean} stopFx Whether preceding effects should be stopped and removed before running current effect (only applies to non blocking effects) + */ +Ext.Fx = { + + // private - calls the function taking arguments from the argHash based on the key. Returns the return value of the function. + // this is useful for replacing switch statements (for example). + switchStatements : function(key, fn, argHash){ + return fn.apply(this, argHash[key]); + }, + + /** + * Slides the element into view. An anchor point can be optionally passed to set the point of + * origin for the slide effect. This function automatically handles wrapping the element with + * a fixed-size container if needed. See the Fx class overview for valid anchor point options. + * Usage: + *
    
    +// default: slide the element in from the top
    +el.slideIn();
    +
    +// custom: slide the element in from the right with a 2-second duration
    +el.slideIn('r', { duration: 2 });
    +
    +// common config options shown with default values
    +el.slideIn('t', {
    +    easing: 'easeOut',
    +    duration: .5
    +});
    +
    + * @param {String} anchor (optional) One of the valid Fx anchor positions (defaults to top: 't') + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + slideIn : function(anchor, o){ + o = getObject(o); + var me = this, + dom = me.dom, + st = dom.style, + xy, + r, + b, + wrap, + after, + st, + args, + pt, + bw, + bh; + + anchor = anchor || "t"; + + me.queueFx(o, function(){ + xy = fly(dom).getXY(); + // fix display to visibility + fly(dom).fixDisplay(); + + // restore values after effect + r = fly(dom).getFxRestore(); + b = {x: xy[0], y: xy[1], 0: xy[0], 1: xy[1], width: dom.offsetWidth, height: dom.offsetHeight}; + b.right = b.x + b.width; + b.bottom = b.y + b.height; + + // fixed size for slide + fly(dom).setWidth(b.width).setHeight(b.height); + + // wrap if needed + wrap = fly(dom).fxWrap(r.pos, o, HIDDEN); + + st.visibility = VISIBLE; + st.position = ABSOLUTE; + + // clear out temp styles after slide and unwrap + function after(){ + fly(dom).fxUnwrap(wrap, r.pos, o); + st.width = r.width; + st.height = r.height; + fly(dom).afterFx(o); + } + + // time to calculate the positions + pt = {to: [b.x, b.y]}; + bw = {to: b.width}; + bh = {to: b.height}; + + function argCalc(wrap, style, ww, wh, sXY, sXYval, s1, s2, w, h, p){ + var ret = {}; + fly(wrap).setWidth(ww).setHeight(wh); + if(fly(wrap)[sXY]){ + fly(wrap)[sXY](sXYval); + } + style[s1] = style[s2] = "0"; + if(w){ + ret.width = w + }; + if(h){ + ret.height = h; + } + if(p){ + ret.points = p; + } + return ret; + }; + + args = fly(dom).switchStatements(anchor.toLowerCase(), argCalc, { + t : [wrap, st, b.width, 0, NULL, NULL, LEFT, BOTTOM, NULL, bh, NULL], + l : [wrap, st, 0, b.height, NULL, NULL, RIGHT, TOP, bw, NULL, NULL], + r : [wrap, st, b.width, b.height, SETX, b.right, LEFT, TOP, NULL, NULL, pt], + b : [wrap, st, b.width, b.height, SETY, b.bottom, LEFT, TOP, NULL, bh, pt], + tl : [wrap, st, 0, 0, NULL, NULL, RIGHT, BOTTOM, bw, bh, pt], + bl : [wrap, st, 0, 0, SETY, b.y + b.height, RIGHT, TOP, bw, bh, pt], + br : [wrap, st, 0, 0, SETXY, [b.right, b.bottom], LEFT, TOP, bw, bh, pt], + tr : [wrap, st, 0, 0, SETX, b.x + b.width, LEFT, BOTTOM, bw, bh, pt] + }); + + st.visibility = VISIBLE; + fly(wrap).show(); + + arguments.callee.anim = fly(wrap).fxanim(args, + o, + MOTION, + .5, + EASEOUT, + after); + }); + return me; + }, + + /** + * Slides the element out of view. An anchor point can be optionally passed to set the end point + * for the slide effect. When the effect is completed, the element will be hidden (visibility = + * 'hidden') but block elements will still take up space in the document. The element must be removed + * from the DOM using the 'remove' config option if desired. This function automatically handles + * wrapping the element with a fixed-size container if needed. See the Fx class overview for valid anchor point options. + * Usage: + *
    
    +// default: slide the element out to the top
    +el.slideOut();
    +
    +// custom: slide the element out to the right with a 2-second duration
    +el.slideOut('r', { duration: 2 });
    +
    +// common config options shown with default values
    +el.slideOut('t', {
    +    easing: 'easeOut',
    +    duration: .5,
    +    remove: false,
    +    useDisplay: false
    +});
    +
    + * @param {String} anchor (optional) One of the valid Fx anchor positions (defaults to top: 't') + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + slideOut : function(anchor, o){ + o = getObject(o); + var me = this, + dom = me.dom, + st = dom.style, + xy = me.getXY(), + wrap, + r, + b, + a, + zero = {to: 0}; + + anchor = anchor || "t"; + + me.queueFx(o, function(){ + + // restore values after effect + r = fly(dom).getFxRestore(); + b = {x: xy[0], y: xy[1], 0: xy[0], 1: xy[1], width: dom.offsetWidth, height: dom.offsetHeight}; + b.right = b.x + b.width; + b.bottom = b.y + b.height; + + // fixed size for slide + fly(dom).setWidth(b.width).setHeight(b.height); + + // wrap if needed + wrap = fly(dom).fxWrap(r.pos, o, VISIBLE); + + st.visibility = VISIBLE; + st.position = ABSOLUTE; + fly(wrap).setWidth(b.width).setHeight(b.height); + + function after(){ + o.useDisplay ? fly(dom).setDisplayed(FALSE) : fly(dom).hide(); + fly(dom).fxUnwrap(wrap, r.pos, o); + st.width = r.width; + st.height = r.height; + fly(dom).afterFx(o); + } + + function argCalc(style, s1, s2, p1, v1, p2, v2, p3, v3){ + var ret = {}; + + style[s1] = style[s2] = "0"; + ret[p1] = v1; + if(p2){ + ret[p2] = v2; + } + if(p3){ + ret[p3] = v3; + } + + return ret; + }; + + a = fly(dom).switchStatements(anchor.toLowerCase(), argCalc, { + t : [st, LEFT, BOTTOM, HEIGHT, zero], + l : [st, RIGHT, TOP, WIDTH, zero], + r : [st, LEFT, TOP, WIDTH, zero, POINTS, {to : [b.right, b.y]}], + b : [st, LEFT, TOP, HEIGHT, zero, POINTS, {to : [b.x, b.bottom]}], + tl : [st, RIGHT, BOTTOM, WIDTH, zero, HEIGHT, zero], + bl : [st, RIGHT, TOP, WIDTH, zero, HEIGHT, zero, POINTS, {to : [b.x, b.bottom]}], + br : [st, LEFT, TOP, WIDTH, zero, HEIGHT, zero, POINTS, {to : [b.x + b.width, b.bottom]}], + tr : [st, LEFT, BOTTOM, WIDTH, zero, HEIGHT, zero, POINTS, {to : [b.right, b.y]}] + }); + + arguments.callee.anim = fly(wrap).fxanim(a, + o, + MOTION, + .5, + EASEOUT, + after); + }); + return me; + }, + + /** + * Fades the element out while slowly expanding it in all directions. When the effect is completed, the + * element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. + * The element must be removed from the DOM using the 'remove' config option if desired. + * Usage: + *
    
    +// default
    +el.puff();
    +
    +// common config options shown with default values
    +el.puff({
    +    easing: 'easeOut',
    +    duration: .5,
    +    remove: false,
    +    useDisplay: false
    +});
    +
    + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + puff : function(o){ + o = getObject(o); + var me = this, + dom = me.dom, + st = dom.style, + width, + height, + r; + + me.queueFx(o, function(){ + width = fly(dom).getWidth(); + height = fly(dom).getHeight(); + fly(dom).clearOpacity(); + fly(dom).show(); + + // restore values after effect + r = fly(dom).getFxRestore(); + + function after(){ + o.useDisplay ? fly(dom).setDisplayed(FALSE) : fly(dom).hide(); + fly(dom).clearOpacity(); + fly(dom).setPositioning(r.pos); + st.width = r.width; + st.height = r.height; + st.fontSize = ''; + fly(dom).afterFx(o); + } + + arguments.callee.anim = fly(dom).fxanim({ + width : {to : fly(dom).adjustWidth(width * 2)}, + height : {to : fly(dom).adjustHeight(height * 2)}, + points : {by : [-width * .5, -height * .5]}, + opacity : {to : 0}, + fontSize: {to : 200, unit: "%"} + }, + o, + MOTION, + .5, + EASEOUT, + after); + }); + return me; + }, + + /** + * Blinks the element as if it was clicked and then collapses on its center (similar to switching off a television). + * When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still + * take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired. + * Usage: + *
    
    +// default
    +el.switchOff();
    +
    +// all config options shown with default values
    +el.switchOff({
    +    easing: 'easeIn',
    +    duration: .3,
    +    remove: false,
    +    useDisplay: false
    +});
    +
    + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + switchOff : function(o){ + o = getObject(o); + var me = this, + dom = me.dom, + st = dom.style, + r; + + me.queueFx(o, function(){ + fly(dom).clearOpacity(); + fly(dom).clip(); + + // restore values after effect + r = fly(dom).getFxRestore(); + + function after(){ + o.useDisplay ? fly(dom).setDisplayed(FALSE) : fly(dom).hide(); + fly(dom).clearOpacity(); + fly(dom).setPositioning(r.pos); + st.width = r.width; + st.height = r.height; + fly(dom).afterFx(o); + }; + + fly(dom).fxanim({opacity : {to : 0.3}}, + NULL, + NULL, + .1, + NULL, + function(){ + fly(dom).clearOpacity(); + (function(){ + fly(dom).fxanim({ + height : {to : 1}, + points : {by : [0, fly(dom).getHeight() * .5]} + }, + o, + MOTION, + 0.3, + 'easeIn', + after); + }).defer(100); + }); + }); + return me; + }, + + /** + * Highlights the Element by setting a color (applies to the background-color by default, but can be + * changed using the "attr" config option) and then fading back to the original color. If no original + * color is available, you should provide the "endColor" config option which will be cleared after the animation. + * Usage: +
    
    +// default: highlight background to yellow
    +el.highlight();
    +
    +// custom: highlight foreground text to blue for 2 seconds
    +el.highlight("0000ff", { attr: 'color', duration: 2 });
    +
    +// common config options shown with default values
    +el.highlight("ffff9c", {
    +    attr: "background-color", //can be any valid CSS property (attribute) that supports a color value
    +    endColor: (current color) or "ffffff",
    +    easing: 'easeIn',
    +    duration: 1
    +});
    +
    + * @param {String} color (optional) The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c') + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + highlight : function(color, o){ + o = getObject(o); + var me = this, + dom = me.dom, + attr = o.attr || "backgroundColor", + a = {}, + restore; + + me.queueFx(o, function(){ + fly(dom).clearOpacity(); + fly(dom).show(); + + function after(){ + dom.style[attr] = restore; + fly(dom).afterFx(o); + } + restore = dom.style[attr]; + a[attr] = {from: color || "ffff9c", to: o.endColor || fly(dom).getColor(attr) || "ffffff"}; + arguments.callee.anim = fly(dom).fxanim(a, + o, + 'color', + 1, + 'easeIn', + after); + }); + return me; + }, + + /** + * Shows a ripple of exploding, attenuating borders to draw attention to an Element. + * Usage: +
    
    +// default: a single light blue ripple
    +el.frame();
    +
    +// custom: 3 red ripples lasting 3 seconds total
    +el.frame("ff0000", 3, { duration: 3 });
    +
    +// common config options shown with default values
    +el.frame("C3DAF9", 1, {
    +    duration: 1 //duration of each individual ripple.
    +    // Note: Easing is not configurable and will be ignored if included
    +});
    +
    + * @param {String} color (optional) The color of the border. Should be a 6 char hex color without the leading # (defaults to light blue: 'C3DAF9'). + * @param {Number} count (optional) The number of ripples to display (defaults to 1) + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + frame : function(color, count, o){ + o = getObject(o); + var me = this, + dom = me.dom, + proxy, + active; + + me.queueFx(o, function(){ + color = color || '#C3DAF9'; + if(color.length == 6){ + color = '#' + color; + } + count = count || 1; + fly(dom).show(); + + var xy = fly(dom).getXY(), + b = {x: xy[0], y: xy[1], 0: xy[0], 1: xy[1], width: dom.offsetWidth, height: dom.offsetHeight}, + queue = function(){ + proxy = fly(document.body || document.documentElement).createChild({ + style:{ + position : ABSOLUTE, + 'z-index': 35000, // yee haw + border : '0px solid ' + color + } + }); + return proxy.queueFx({}, animFn); + }; + + + arguments.callee.anim = { + isAnimated: true, + stop: function() { + count = 0; + proxy.stopFx(); + } + }; + + function animFn(){ + var scale = Ext.isBorderBox ? 2 : 1; + active = proxy.anim({ + top : {from : b.y, to : b.y - 20}, + left : {from : b.x, to : b.x - 20}, + borderWidth : {from : 0, to : 10}, + opacity : {from : 1, to : 0}, + height : {from : b.height, to : b.height + 20 * scale}, + width : {from : b.width, to : b.width + 20 * scale} + },{ + duration: o.duration || 1, + callback: function() { + proxy.remove(); + --count > 0 ? queue() : fly(dom).afterFx(o); + } + }); + arguments.callee.anim = { + isAnimated: true, + stop: function(){ + active.stop(); + } + }; + }; + queue(); + }); + return me; + }, + + /** + * Creates a pause before any subsequent queued effects begin. If there are + * no effects queued after the pause it will have no effect. + * Usage: +
    
    +el.pause(1);
    +
    + * @param {Number} seconds The length of time to pause (in seconds) + * @return {Ext.Element} The Element + */ + pause : function(seconds){ + var dom = this.dom, + t; + + this.queueFx({}, function(){ + t = setTimeout(function(){ + fly(dom).afterFx({}); + }, seconds * 1000); + arguments.callee.anim = { + isAnimated: true, + stop: function(){ + clearTimeout(t); + fly(dom).afterFx({}); + } + }; + }); + return this; + }, + + /** + * Fade an element in (from transparent to opaque). The ending opacity can be specified + * using the {@link #endOpacity} config option. + * Usage: +
    
    +// default: fade in from opacity 0 to 100%
    +el.fadeIn();
    +
    +// custom: fade in from opacity 0 to 75% over 2 seconds
    +el.fadeIn({ endOpacity: .75, duration: 2});
    +
    +// common config options shown with default values
    +el.fadeIn({
    +    endOpacity: 1, //can be any value between 0 and 1 (e.g. .5)
    +    easing: 'easeOut',
    +    duration: .5
    +});
    +
    + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + fadeIn : function(o){ + o = getObject(o); + var me = this, + dom = me.dom, + to = o.endOpacity || 1; + + me.queueFx(o, function(){ + fly(dom).setOpacity(0); + fly(dom).fixDisplay(); + dom.style.visibility = VISIBLE; + arguments.callee.anim = fly(dom).fxanim({opacity:{to:to}}, + o, NULL, .5, EASEOUT, function(){ + if(to == 1){ + fly(dom).clearOpacity(); + } + fly(dom).afterFx(o); + }); + }); + return me; + }, + + /** + * Fade an element out (from opaque to transparent). The ending opacity can be specified + * using the {@link #endOpacity} config option. Note that IE may require + * {@link #useDisplay}:true in order to redisplay correctly. + * Usage: +
    
    +// default: fade out from the element's current opacity to 0
    +el.fadeOut();
    +
    +// custom: fade out from the element's current opacity to 25% over 2 seconds
    +el.fadeOut({ endOpacity: .25, duration: 2});
    +
    +// common config options shown with default values
    +el.fadeOut({
    +    endOpacity: 0, //can be any value between 0 and 1 (e.g. .5)
    +    easing: 'easeOut',
    +    duration: .5,
    +    remove: false,
    +    useDisplay: false
    +});
    +
    + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + fadeOut : function(o){ + o = getObject(o); + var me = this, + dom = me.dom, + style = dom.style, + to = o.endOpacity || 0; + + me.queueFx(o, function(){ + arguments.callee.anim = fly(dom).fxanim({ + opacity : {to : to}}, + o, + NULL, + .5, + EASEOUT, + function(){ + if(to == 0){ + Ext.Element.data(dom, 'visibilityMode') == Ext.Element.DISPLAY || o.useDisplay ? + style.display = "none" : + style.visibility = HIDDEN; + + fly(dom).clearOpacity(); + } + fly(dom).afterFx(o); + }); + }); + return me; + }, + + /** + * Animates the transition of an element's dimensions from a starting height/width + * to an ending height/width. This method is a convenience implementation of {@link shift}. + * Usage: +
    
    +// change height and width to 100x100 pixels
    +el.scale(100, 100);
    +
    +// common config options shown with default values.  The height and width will default to
    +// the element's existing values if passed as null.
    +el.scale(
    +    [element's width],
    +    [element's height], {
    +        easing: 'easeOut',
    +        duration: .35
    +    }
    +);
    +
    + * @param {Number} width The new width (pass undefined to keep the original width) + * @param {Number} height The new height (pass undefined to keep the original height) + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + scale : function(w, h, o){ + this.shift(Ext.apply({}, o, { + width: w, + height: h + })); + return this; + }, + + /** + * Animates the transition of any combination of an element's dimensions, xy position and/or opacity. + * Any of these properties not specified in the config object will not be changed. This effect + * requires that at least one new dimension, position or opacity setting must be passed in on + * the config object in order for the function to have any effect. + * Usage: +
    
    +// slide the element horizontally to x position 200 while changing the height and opacity
    +el.shift({ x: 200, height: 50, opacity: .8 });
    +
    +// common config options shown with default values.
    +el.shift({
    +    width: [element's width],
    +    height: [element's height],
    +    x: [element's x position],
    +    y: [element's y position],
    +    opacity: [element's opacity],
    +    easing: 'easeOut',
    +    duration: .35
    +});
    +
    + * @param {Object} options Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + shift : function(o){ + o = getObject(o); + var dom = this.dom, + a = {}; + + this.queueFx(o, function(){ + for (var prop in o) { + if (o[prop] != UNDEFINED) { + a[prop] = {to : o[prop]}; + } + } + + a.width ? a.width.to = fly(dom).adjustWidth(o.width) : a; + a.height ? a.height.to = fly(dom).adjustWidth(o.height) : a; + + if (a.x || a.y || a.xy) { + a.points = a.xy || + {to : [ a.x ? a.x.to : fly(dom).getX(), + a.y ? a.y.to : fly(dom).getY()]}; + } + + arguments.callee.anim = fly(dom).fxanim(a, + o, + MOTION, + .35, + EASEOUT, + function(){ + fly(dom).afterFx(o); + }); + }); + return this; + }, + + /** + * Slides the element while fading it out of view. An anchor point can be optionally passed to set the + * ending point of the effect. + * Usage: + *
    
    +// default: slide the element downward while fading out
    +el.ghost();
    +
    +// custom: slide the element out to the right with a 2-second duration
    +el.ghost('r', { duration: 2 });
    +
    +// common config options shown with default values
    +el.ghost('b', {
    +    easing: 'easeOut',
    +    duration: .5,
    +    remove: false,
    +    useDisplay: false
    +});
    +
    + * @param {String} anchor (optional) One of the valid Fx anchor positions (defaults to bottom: 'b') + * @param {Object} options (optional) Object literal with any of the Fx config options + * @return {Ext.Element} The Element + */ + ghost : function(anchor, o){ + o = getObject(o); + var me = this, + dom = me.dom, + st = dom.style, + a = {opacity: {to: 0}, points: {}}, + pt = a.points, + r, + w, + h; + + anchor = anchor || "b"; + + me.queueFx(o, function(){ + // restore values after effect + r = fly(dom).getFxRestore(); + w = fly(dom).getWidth(); + h = fly(dom).getHeight(); + + function after(){ + o.useDisplay ? fly(dom).setDisplayed(FALSE) : fly(dom).hide(); + fly(dom).clearOpacity(); + fly(dom).setPositioning(r.pos); + st.width = r.width; + st.height = r.height; + fly(dom).afterFx(o); + } + + pt.by = fly(dom).switchStatements(anchor.toLowerCase(), function(v1,v2){ return [v1, v2];}, { + t : [0, -h], + l : [-w, 0], + r : [w, 0], + b : [0, h], + tl : [-w, -h], + bl : [-w, h], + br : [w, h], + tr : [w, -h] + }); + + arguments.callee.anim = fly(dom).fxanim(a, + o, + MOTION, + .5, + EASEOUT, after); + }); + return me; + }, + + /** + * Ensures that all effects queued after syncFx is called on the element are + * run concurrently. This is the opposite of {@link #sequenceFx}. + * @return {Ext.Element} The Element + */ + syncFx : function(){ + var me = this; + me.fxDefaults = Ext.apply(me.fxDefaults || {}, { + block : FALSE, + concurrent : TRUE, + stopFx : FALSE + }); + return me; + }, + + /** + * Ensures that all effects queued after sequenceFx is called on the element are + * run in sequence. This is the opposite of {@link #syncFx}. + * @return {Ext.Element} The Element + */ + sequenceFx : function(){ + var me = this; + me.fxDefaults = Ext.apply(me.fxDefaults || {}, { + block : FALSE, + concurrent : FALSE, + stopFx : FALSE + }); + return me; + }, + + /* @private */ + nextFx : function(){ + var ef = getQueue(this.dom.id)[0]; + if(ef){ + ef.call(this); + } + }, + + /** + * Returns true if the element has any effects actively running or queued, else returns false. + * @return {Boolean} True if element has active effects, else false + */ + hasActiveFx : function(){ + return getQueue(this.dom.id)[0]; + }, + + /** + * Stops any running effects and clears the element's internal effects queue if it contains + * any additional effects that haven't started yet. + * @return {Ext.Element} The Element + */ + stopFx : function(finish){ + var me = this, + id = me.dom.id; + if(me.hasActiveFx()){ + var cur = getQueue(id)[0]; + if(cur && cur.anim){ + if(cur.anim.isAnimated){ + setQueue(id, [cur]); //clear + cur.anim.stop(finish !== undefined ? finish : TRUE); + }else{ + setQueue(id, []); + } + } + } + return me; + }, + + /* @private */ + beforeFx : function(o){ + if(this.hasActiveFx() && !o.concurrent){ + if(o.stopFx){ + this.stopFx(); + return TRUE; + } + return FALSE; + } + return TRUE; + }, + + /** + * Returns true if the element is currently blocking so that no other effect can be queued + * until this effect is finished, else returns false if blocking is not set. This is commonly + * used to ensure that an effect initiated by a user action runs to completion prior to the + * same effect being restarted (e.g., firing only one effect even if the user clicks several times). + * @return {Boolean} True if blocking, else false + */ + hasFxBlock : function(){ + var q = getQueue(this.dom.id); + return q && q[0] && q[0].block; + }, + + /* @private */ + queueFx : function(o, fn){ + var me = fly(this.dom); + if(!me.hasFxBlock()){ + Ext.applyIf(o, me.fxDefaults); + if(!o.concurrent){ + var run = me.beforeFx(o); + fn.block = o.block; + getQueue(me.dom.id).push(fn); + if(run){ + me.nextFx(); + } + }else{ + fn.call(me); + } + } + return me; + }, + + /* @private */ + fxWrap : function(pos, o, vis){ + var dom = this.dom, + wrap, + wrapXY; + if(!o.wrap || !(wrap = Ext.getDom(o.wrap))){ + if(o.fixPosition){ + wrapXY = fly(dom).getXY(); + } + var div = document.createElement("div"); + div.style.visibility = vis; + wrap = dom.parentNode.insertBefore(div, dom); + fly(wrap).setPositioning(pos); + if(fly(wrap).isStyle(POSITION, "static")){ + fly(wrap).position("relative"); + } + fly(dom).clearPositioning('auto'); + fly(wrap).clip(); + wrap.appendChild(dom); + if(wrapXY){ + fly(wrap).setXY(wrapXY); + } + } + return wrap; + }, + + /* @private */ + fxUnwrap : function(wrap, pos, o){ + var dom = this.dom; + fly(dom).clearPositioning(); + fly(dom).setPositioning(pos); + if(!o.wrap){ + var pn = fly(wrap).dom.parentNode; + pn.insertBefore(dom, wrap); + fly(wrap).remove(); + } + }, + + /* @private */ + getFxRestore : function(){ + var st = this.dom.style; + return {pos: this.getPositioning(), width: st.width, height : st.height}; + }, + + /* @private */ + afterFx : function(o){ + var dom = this.dom, + id = dom.id; + if(o.afterStyle){ + fly(dom).setStyle(o.afterStyle); + } + if(o.afterCls){ + fly(dom).addClass(o.afterCls); + } + if(o.remove == TRUE){ + fly(dom).remove(); + } + if(o.callback){ + o.callback.call(o.scope, fly(dom)); + } + if(!o.concurrent){ + getQueue(id).shift(); + fly(dom).nextFx(); + } + }, + + /* @private */ + fxanim : function(args, opt, animType, defaultDur, defaultEase, cb){ + animType = animType || 'run'; + opt = opt || {}; + var anim = Ext.lib.Anim[animType]( + this.dom, + args, + (opt.duration || defaultDur) || .35, + (opt.easing || defaultEase) || EASEOUT, + cb, + this + ); + opt.anim = anim; + return anim; + } +}; + +// backwards compat +Ext.Fx.resize = Ext.Fx.scale; + +//When included, Ext.Fx is automatically applied to Element so that all basic +//effects are available directly via the Element API +Ext.Element.addMethods(Ext.Fx); +})(); +/** + * @class Ext.CompositeElementLite + *

    This class encapsulates a collection of DOM elements, providing methods to filter + * members, or to perform collective actions upon the whole set.

    + *

    Although they are not listed, this class supports all of the methods of {@link Ext.Element} and + * {@link Ext.Fx}. The methods from these classes will be performed on all the elements in this collection.

    + * Example:
    
    +var els = Ext.select("#some-el div.some-class");
    +// or select directly from an existing element
    +var el = Ext.get('some-el');
    +el.select('div.some-class');
    +
    +els.setWidth(100); // all elements become 100 width
    +els.hide(true); // all elements fade out and hide
    +// or
    +els.setWidth(100).hide(true);
    +
    + */
    +Ext.CompositeElementLite = function(els, root){
    +    /**
    +     * 

    The Array of DOM elements which this CompositeElement encapsulates. Read-only.

    + *

    This will not usually be accessed in developers' code, but developers wishing + * to augment the capabilities of the CompositeElementLite class may use it when adding + * methods to the class.

    + *

    For example to add the nextAll method to the class to add all + * following siblings of selected elements, the code would be

    +Ext.override(Ext.CompositeElementLite, {
    +    nextAll: function() {
    +        var els = this.elements, i, l = els.length, n, r = [], ri = -1;
    +
    +//      Loop through all elements in this Composite, accumulating
    +//      an Array of all siblings.
    +        for (i = 0; i < l; i++) {
    +            for (n = els[i].nextSibling; n; n = n.nextSibling) {
    +                r[++ri] = n;
    +            }
    +        }
    +
    +//      Add all found siblings to this Composite
    +        return this.add(r);
    +    }
    +});
    + * @type Array + * @property elements + */ + this.elements = []; + this.add(els, root); + this.el = new Ext.Element.Flyweight(); +}; + +Ext.CompositeElementLite.prototype = { + isComposite: true, + + // private + getElement : function(el){ + // Set the shared flyweight dom property to the current element + var e = this.el; + e.dom = el; + e.id = el.id; + return e; + }, + + // private + transformElement : function(el){ + return Ext.getDom(el); + }, + + /** + * Returns the number of elements in this Composite. + * @return Number + */ + getCount : function(){ + return this.elements.length; + }, + /** + * Adds elements to this Composite object. + * @param {Mixed} els Either an Array of DOM elements to add, or another Composite object who's elements should be added. + * @return {CompositeElement} This Composite object. + */ + add : function(els, root){ + var me = this, + elements = me.elements; + if(!els){ + return this; + } + if(typeof els == "string"){ + els = Ext.Element.selectorFunction(els, root); + }else if(els.isComposite){ + els = els.elements; + }else if(!Ext.isIterable(els)){ + els = [els]; + } + + for(var i = 0, len = els.length; i < len; ++i){ + elements.push(me.transformElement(els[i])); + } + return me; + }, + + invoke : function(fn, args){ + var me = this, + els = me.elements, + len = els.length, + e, + i; + + for(i = 0; i < len; i++) { + e = els[i]; + if(e){ + Ext.Element.prototype[fn].apply(me.getElement(e), args); + } + } + return me; + }, + /** + * Returns a flyweight Element of the dom element object at the specified index + * @param {Number} index + * @return {Ext.Element} + */ + item : function(index){ + var me = this, + el = me.elements[index], + out = null; + + if(el){ + out = me.getElement(el); + } + return out; + }, + + // fixes scope with flyweight + addListener : function(eventName, handler, scope, opt){ + var els = this.elements, + len = els.length, + i, e; + + for(i = 0; iCalls the passed function for each element in this composite.

    + * @param {Function} fn The function to call. The function is passed the following parameters:
      + *
    • el : Element
      The current Element in the iteration. + * This is the flyweight (shared) Ext.Element instance, so if you require a + * a reference to the dom node, use el.dom.
    • + *
    • c : Composite
      This Composite object.
    • + *
    • idx : Number
      The zero-based index in the iteration.
    • + *
    + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. (defaults to the Element) + * @return {CompositeElement} this + */ + each : function(fn, scope){ + var me = this, + els = me.elements, + len = els.length, + i, e; + + for(i = 0; i + *
  • el : Ext.Element
    The current DOM element.
  • + *
  • index : Number
    The current index within the collection.
  • + * + * @return {CompositeElement} this + */ + filter : function(selector){ + var els = [], + me = this, + elements = me.elements, + fn = Ext.isFunction(selector) ? selector + : function(el){ + return el.is(selector); + }; + + + me.each(function(el, self, i){ + if(fn(el, i) !== false){ + els[els.length] = me.transformElement(el); + } + }); + me.elements = els; + return me; + }, + + /** + * Find the index of the passed element within the composite collection. + * @param el {Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. + * @return Number The index of the passed Ext.Element in the composite collection, or -1 if not found. + */ + indexOf : function(el){ + return this.elements.indexOf(this.transformElement(el)); + }, + + /** + * Replaces the specified element with the passed element. + * @param {Mixed} el The id of an element, the Element itself, the index of the element in this composite + * to replace. + * @param {Mixed} replacement The id of an element or the Element itself. + * @param {Boolean} domReplace (Optional) True to remove and replace the element in the document too. + * @return {CompositeElement} this + */ + replaceElement : function(el, replacement, domReplace){ + var index = !isNaN(el) ? el : this.indexOf(el), + d; + if(index > -1){ + replacement = Ext.getDom(replacement); + if(domReplace){ + d = this.elements[index]; + d.parentNode.insertBefore(replacement, d); + Ext.removeNode(d); + } + this.elements.splice(index, 1, replacement); + } + return this; + }, + + /** + * Removes all elements. + */ + clear : function(){ + this.elements = []; + } +}; + +Ext.CompositeElementLite.prototype.on = Ext.CompositeElementLite.prototype.addListener; + +(function(){ +var fnName, + ElProto = Ext.Element.prototype, + CelProto = Ext.CompositeElementLite.prototype; + +for(fnName in ElProto){ + if(Ext.isFunction(ElProto[fnName])){ + (function(fnName){ + CelProto[fnName] = CelProto[fnName] || function(){ + return this.invoke(fnName, arguments); + }; + }).call(CelProto, fnName); + + } +} +})(); + +if(Ext.DomQuery){ + Ext.Element.selectorFunction = Ext.DomQuery.select; +} + +/** + * Selects elements based on the passed CSS selector to enable {@link Ext.Element Element} methods + * to be applied to many related elements in one statement through the returned {@link Ext.CompositeElement CompositeElement} or + * {@link Ext.CompositeElementLite CompositeElementLite} object. + * @param {String/Array} selector The CSS selector or an array of elements + * @param {HTMLElement/String} root (optional) The root element of the query or id of the root + * @return {CompositeElementLite/CompositeElement} + * @member Ext.Element + * @method select + */ +Ext.Element.select = function(selector, root){ + var els; + if(typeof selector == "string"){ + els = Ext.Element.selectorFunction(selector, root); + }else if(selector.length !== undefined){ + els = selector; + }else{ + throw "Invalid selector"; + } + return new Ext.CompositeElementLite(els); +}; +/** + * Selects elements based on the passed CSS selector to enable {@link Ext.Element Element} methods + * to be applied to many related elements in one statement through the returned {@link Ext.CompositeElement CompositeElement} or + * {@link Ext.CompositeElementLite CompositeElementLite} object. + * @param {String/Array} selector The CSS selector or an array of elements + * @param {HTMLElement/String} root (optional) The root element of the query or id of the root + * @return {CompositeElementLite/CompositeElement} + * @member Ext + * @method select + */ +Ext.select = Ext.Element.select; +/** + * @class Ext.CompositeElementLite + */ +Ext.apply(Ext.CompositeElementLite.prototype, { + addElements : function(els, root){ + if(!els){ + return this; + } + if(typeof els == "string"){ + els = Ext.Element.selectorFunction(els, root); + } + var yels = this.elements; + Ext.each(els, function(e) { + yels.push(Ext.get(e)); + }); + return this; + }, + + /** + * Returns the first Element + * @return {Ext.Element} + */ + first : function(){ + return this.item(0); + }, + + /** + * Returns the last Element + * @return {Ext.Element} + */ + last : function(){ + return this.item(this.getCount()-1); + }, + + /** + * Returns true if this composite contains the passed element + * @param el {Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. + * @return Boolean + */ + contains : function(el){ + return this.indexOf(el) != -1; + }, + + /** + * Removes the specified element(s). + * @param {Mixed} el The id of an element, the Element itself, the index of the element in this composite + * or an array of any of those. + * @param {Boolean} removeDom (optional) True to also remove the element from the document + * @return {CompositeElement} this + */ + removeElement : function(keys, removeDom){ + var me = this, + els = this.elements, + el; + Ext.each(keys, function(val){ + if ((el = (els[val] || els[val = me.indexOf(val)]))) { + if(removeDom){ + if(el.dom){ + el.remove(); + }else{ + Ext.removeNode(el); + } + } + els.splice(val, 1); + } + }); + return this; + } +}); +/** + * @class Ext.CompositeElement + * @extends Ext.CompositeElementLite + *

    This class encapsulates a collection of DOM elements, providing methods to filter + * members, or to perform collective actions upon the whole set.

    + *

    Although they are not listed, this class supports all of the methods of {@link Ext.Element} and + * {@link Ext.Fx}. The methods from these classes will be performed on all the elements in this collection.

    + *

    All methods return this and can be chained.

    + * Usage: +
    
    +var els = Ext.select("#some-el div.some-class", true);
    +// or select directly from an existing element
    +var el = Ext.get('some-el');
    +el.select('div.some-class', true);
    +
    +els.setWidth(100); // all elements become 100 width
    +els.hide(true); // all elements fade out and hide
    +// or
    +els.setWidth(100).hide(true);
    +
    + */ +Ext.CompositeElement = Ext.extend(Ext.CompositeElementLite, { + + constructor : function(els, root){ + this.elements = []; + this.add(els, root); + }, + + // private + getElement : function(el){ + // In this case just return it, since we already have a reference to it + return el; + }, + + // private + transformElement : function(el){ + return Ext.get(el); + } + + /** + * Adds elements to this composite. + * @param {String/Array} els A string CSS selector, an array of elements or an element + * @return {CompositeElement} this + */ + + /** + * Returns the Element object at the specified index + * @param {Number} index + * @return {Ext.Element} + */ + + /** + * Iterates each element in this composite + * calling the supplied function using {@link Ext#each}. + * @param {Function} fn The function to be called with each + * element. If the supplied function returns false, + * iteration stops. This function is called with the following arguments: + *
      + *
    • element : Ext.Element
      The element at the current index + * in the composite
    • + *
    • composite : Object
      This composite.
    • + *
    • index : Number
      The current index within the composite
    • + *
    + * @param {Object} scope (optional) The scope ( reference) in which the specified function is executed. + * Defaults to the element at the current index + * within the composite. + * @return {CompositeElement} this + */ +}); + +/** + * Selects elements based on the passed CSS selector to enable {@link Ext.Element Element} methods + * to be applied to many related elements in one statement through the returned {@link Ext.CompositeElement CompositeElement} or + * {@link Ext.CompositeElementLite CompositeElementLite} object. + * @param {String/Array} selector The CSS selector or an array of elements + * @param {Boolean} unique (optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object) + * @param {HTMLElement/String} root (optional) The root element of the query or id of the root + * @return {CompositeElementLite/CompositeElement} + * @member Ext.Element + * @method select + */ +Ext.Element.select = function(selector, unique, root){ + var els; + if(typeof selector == "string"){ + els = Ext.Element.selectorFunction(selector, root); + }else if(selector.length !== undefined){ + els = selector; + }else{ + throw "Invalid selector"; + } + + return (unique === true) ? new Ext.CompositeElement(els) : new Ext.CompositeElementLite(els); +}; + +/** + * Selects elements based on the passed CSS selector to enable {@link Ext.Element Element} methods + * to be applied to many related elements in one statement through the returned {@link Ext.CompositeElement CompositeElement} or + * {@link Ext.CompositeElementLite CompositeElementLite} object. + * @param {String/Array} selector The CSS selector or an array of elements + * @param {Boolean} unique (optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object) + * @param {HTMLElement/String} root (optional) The root element of the query or id of the root + * @return {CompositeElementLite/CompositeElement} + * @member Ext + * @method select + */ +Ext.select = Ext.Element.select;(function(){ + var BEFOREREQUEST = "beforerequest", + REQUESTCOMPLETE = "requestcomplete", + REQUESTEXCEPTION = "requestexception", + UNDEFINED = undefined, + LOAD = 'load', + POST = 'POST', + GET = 'GET', + WINDOW = window; + + /** + * @class Ext.data.Connection + * @extends Ext.util.Observable + *

    The class encapsulates a connection to the page's originating domain, allowing requests to be made + * either to a configured URL, or to a URL specified at request time.

    + *

    Requests made by this class are asynchronous, and will return immediately. No data from + * the server will be available to the statement immediately following the {@link #request} call. + * To process returned data, use a + * success callback + * in the request options object, + * or an {@link #requestcomplete event listener}.

    + *

    File Uploads

    File uploads are not performed using normal "Ajax" techniques, that + * is they are not performed using XMLHttpRequests. Instead the form is submitted in the standard + * manner with the DOM <form> element temporarily modified to have its + * target set to refer + * to a dynamically generated, hidden <iframe> which is inserted into the document + * but removed after the return data has been gathered.

    + *

    The server response is parsed by the browser to create the document for the IFRAME. If the + * server is using JSON to send the return object, then the + * Content-Type header + * must be set to "text/html" in order to tell the browser to insert the text unchanged into the document body.

    + *

    Characters which are significant to an HTML parser must be sent as HTML entities, so encode + * "<" as "&lt;", "&" as "&amp;" etc.

    + *

    The response text is retrieved from the document, and a fake XMLHttpRequest object + * is created containing a responseText property in order to conform to the + * requirements of event handlers and callbacks.

    + *

    Be aware that file upload packets are sent with the content type multipart/form + * and some server technologies (notably JEE) may require some custom processing in order to + * retrieve parameter names and parameter values from the packet content.

    + * @constructor + * @param {Object} config a configuration object. + */ + Ext.data.Connection = function(config){ + Ext.apply(this, config); + this.addEvents( + /** + * @event beforerequest + * Fires before a network request is made to retrieve a data object. + * @param {Connection} conn This Connection object. + * @param {Object} options The options config object passed to the {@link #request} method. + */ + BEFOREREQUEST, + /** + * @event requestcomplete + * Fires if the request was successfully completed. + * @param {Connection} conn This Connection object. + * @param {Object} response The XHR object containing the response data. + * See The XMLHttpRequest Object + * for details. + * @param {Object} options The options config object passed to the {@link #request} method. + */ + REQUESTCOMPLETE, + /** + * @event requestexception + * Fires if an error HTTP status was returned from the server. + * See HTTP Status Code Definitions + * for details of HTTP status codes. + * @param {Connection} conn This Connection object. + * @param {Object} response The XHR object containing the response data. + * See The XMLHttpRequest Object + * for details. + * @param {Object} options The options config object passed to the {@link #request} method. + */ + REQUESTEXCEPTION + ); + Ext.data.Connection.superclass.constructor.call(this); + }; + + Ext.extend(Ext.data.Connection, Ext.util.Observable, { + /** + * @cfg {String} url (Optional)

    The default URL to be used for requests to the server. Defaults to undefined.

    + *

    The url config may be a function which returns the URL to use for the Ajax request. The scope + * (this reference) of the function is the scope option passed to the {@link #request} method.

    + */ + /** + * @cfg {Object} extraParams (Optional) An object containing properties which are used as + * extra parameters to each request made by this object. (defaults to undefined) + */ + /** + * @cfg {Object} defaultHeaders (Optional) An object containing request headers which are added + * to each request made by this object. (defaults to undefined) + */ + /** + * @cfg {String} method (Optional) The default HTTP method to be used for requests. + * (defaults to undefined; if not set, but {@link #request} params are present, POST will be used; + * otherwise, GET will be used.) + */ + /** + * @cfg {Number} timeout (Optional) The timeout in milliseconds to be used for requests. (defaults to 30000) + */ + timeout : 30000, + /** + * @cfg {Boolean} autoAbort (Optional) Whether this request should abort any pending requests. (defaults to false) + * @type Boolean + */ + autoAbort:false, + + /** + * @cfg {Boolean} disableCaching (Optional) True to add a unique cache-buster param to GET requests. (defaults to true) + * @type Boolean + */ + disableCaching: true, + + /** + * @cfg {String} disableCachingParam (Optional) Change the parameter which is sent went disabling caching + * through a cache buster. Defaults to '_dc' + * @type String + */ + disableCachingParam: '_dc', + + /** + *

    Sends an HTTP request to a remote server.

    + *

    Important: Ajax server requests are asynchronous, and this call will + * return before the response has been received. Process any returned data + * in a callback function.

    + *
    
    +Ext.Ajax.request({
    +   url: 'ajax_demo/sample.json',
    +   success: function(response, opts) {
    +      var obj = Ext.decode(response.responseText);
    +      console.dir(obj);
    +   },
    +   failure: function(response, opts) {
    +      console.log('server-side failure with status code ' + response.status);
    +   }
    +});
    +         * 
    + *

    To execute a callback function in the correct scope, use the scope option.

    + * @param {Object} options An object which may contain the following properties:
      + *
    • url : String/Function (Optional)
      The URL to + * which to send the request, or a function to call which returns a URL string. The scope of the + * function is specified by the scope option. Defaults to the configured + * {@link #url}.
    • + *
    • params : Object/String/Function (Optional)
      + * An object containing properties which are used as parameters to the + * request, a url encoded string or a function to call to get either. The scope of the function + * is specified by the scope option.
    • + *
    • method : String (Optional)
      The HTTP method to use + * for the request. Defaults to the configured method, or if no method was configured, + * "GET" if no parameters are being sent, and "POST" if parameters are being sent. Note that + * the method name is case-sensitive and should be all caps.
    • + *
    • callback : Function (Optional)
      The + * function to be called upon receipt of the HTTP response. The callback is + * called regardless of success or failure and is passed the following + * parameters:
        + *
      • options : Object
        The parameter to the request call.
      • + *
      • success : Boolean
        True if the request succeeded.
      • + *
      • response : Object
        The XMLHttpRequest object containing the response data. + * See http://www.w3.org/TR/XMLHttpRequest/ for details about + * accessing elements of the response.
      • + *
    • + *
    • success : Function (Optional)
      The function + * to be called upon success of the request. The callback is passed the following + * parameters:
        + *
      • response : Object
        The XMLHttpRequest object containing the response data.
      • + *
      • options : Object
        The parameter to the request call.
      • + *
    • + *
    • failure : Function (Optional)
      The function + * to be called upon failure of the request. The callback is passed the + * following parameters:
        + *
      • response : Object
        The XMLHttpRequest object containing the response data.
      • + *
      • options : Object
        The parameter to the request call.
      • + *
    • + *
    • scope : Object (Optional)
      The scope in + * which to execute the callbacks: The "this" object for the callback function. If the url, or params options were + * specified as functions from which to draw values, then this also serves as the scope for those function calls. + * Defaults to the browser window.
    • + *
    • timeout : Number (Optional)
      The timeout in milliseconds to be used for this request. Defaults to 30 seconds.
    • + *
    • form : Element/HTMLElement/String (Optional)
      The <form> + * Element or the id of the <form> to pull parameters from.
    • + *
    • isUpload : Boolean (Optional)
      Only meaningful when used + * with the form option. + *

      True if the form object is a file upload (will be set automatically if the form was + * configured with enctype "multipart/form-data").

      + *

      File uploads are not performed using normal "Ajax" techniques, that is they are not + * performed using XMLHttpRequests. Instead the form is submitted in the standard manner with the + * DOM <form> element temporarily modified to have its + * target set to refer + * to a dynamically generated, hidden <iframe> which is inserted into the document + * but removed after the return data has been gathered.

      + *

      The server response is parsed by the browser to create the document for the IFRAME. If the + * server is using JSON to send the return object, then the + * Content-Type header + * must be set to "text/html" in order to tell the browser to insert the text unchanged into the document body.

      + *

      The response text is retrieved from the document, and a fake XMLHttpRequest object + * is created containing a responseText property in order to conform to the + * requirements of event handlers and callbacks.

      + *

      Be aware that file upload packets are sent with the content type multipart/form + * and some server technologies (notably JEE) may require some custom processing in order to + * retrieve parameter names and parameter values from the packet content.

      + *
    • + *
    • headers : Object (Optional)
      Request + * headers to set for the request.
    • + *
    • xmlData : Object (Optional)
      XML document + * to use for the post. Note: This will be used instead of params for the post + * data. Any params will be appended to the URL.
    • + *
    • jsonData : Object/String (Optional)
      JSON + * data to use as the post. Note: This will be used instead of params for the post + * data. Any params will be appended to the URL.
    • + *
    • disableCaching : Boolean (Optional)
      True + * to add a unique cache-buster param to GET requests.
    • + *

    + *

    The options object may also contain any other property which might be needed to perform + * postprocessing in a callback because it is passed to callback functions.

    + * @return {Number} transactionId The id of the server transaction. This may be used + * to cancel the request. + */ + request : function(o){ + var me = this; + if(me.fireEvent(BEFOREREQUEST, me, o)){ + if (o.el) { + if(!Ext.isEmpty(o.indicatorText)){ + me.indicatorText = '
    '+o.indicatorText+"
    "; + } + if(me.indicatorText) { + Ext.getDom(o.el).innerHTML = me.indicatorText; + } + o.success = (Ext.isFunction(o.success) ? o.success : function(){}).createInterceptor(function(response) { + Ext.getDom(o.el).innerHTML = response.responseText; + }); + } + + var p = o.params, + url = o.url || me.url, + method, + cb = {success: me.handleResponse, + failure: me.handleFailure, + scope: me, + argument: {options: o}, + timeout : o.timeout || me.timeout + }, + form, + serForm; + + + if (Ext.isFunction(p)) { + p = p.call(o.scope||WINDOW, o); + } + + p = Ext.urlEncode(me.extraParams, Ext.isObject(p) ? Ext.urlEncode(p) : p); + + if (Ext.isFunction(url)) { + url = url.call(o.scope || WINDOW, o); + } + + if((form = Ext.getDom(o.form))){ + url = url || form.action; + if(o.isUpload || /multipart\/form-data/i.test(form.getAttribute("enctype"))) { + return me.doFormUpload.call(me, o, p, url); + } + serForm = Ext.lib.Ajax.serializeForm(form); + p = p ? (p + '&' + serForm) : serForm; + } + + method = o.method || me.method || ((p || o.xmlData || o.jsonData) ? POST : GET); + + if(method === GET && (me.disableCaching && o.disableCaching !== false) || o.disableCaching === true){ + var dcp = o.disableCachingParam || me.disableCachingParam; + url = Ext.urlAppend(url, dcp + '=' + (new Date().getTime())); + } + + o.headers = Ext.apply(o.headers || {}, me.defaultHeaders || {}); + + if(o.autoAbort === true || me.autoAbort) { + me.abort(); + } + + if((method == GET || o.xmlData || o.jsonData) && p){ + url = Ext.urlAppend(url, p); + p = ''; + } + return (me.transId = Ext.lib.Ajax.request(method, url, cb, p, o)); + }else{ + return o.callback ? o.callback.apply(o.scope, [o,UNDEFINED,UNDEFINED]) : null; + } + }, + + /** + * Determine whether this object has a request outstanding. + * @param {Number} transactionId (Optional) defaults to the last transaction + * @return {Boolean} True if there is an outstanding request. + */ + isLoading : function(transId){ + return transId ? Ext.lib.Ajax.isCallInProgress(transId) : !! this.transId; + }, + + /** + * Aborts any outstanding request. + * @param {Number} transactionId (Optional) defaults to the last transaction + */ + abort : function(transId){ + if(transId || this.isLoading()){ + Ext.lib.Ajax.abort(transId || this.transId); + } + }, + + // private + handleResponse : function(response){ + this.transId = false; + var options = response.argument.options; + response.argument = options ? options.argument : null; + this.fireEvent(REQUESTCOMPLETE, this, response, options); + if(options.success){ + options.success.call(options.scope, response, options); + } + if(options.callback){ + options.callback.call(options.scope, options, true, response); + } + }, + + // private + handleFailure : function(response, e){ + this.transId = false; + var options = response.argument.options; + response.argument = options ? options.argument : null; + this.fireEvent(REQUESTEXCEPTION, this, response, options, e); + if(options.failure){ + options.failure.call(options.scope, response, options); + } + if(options.callback){ + options.callback.call(options.scope, options, false, response); + } + }, + + // private + doFormUpload : function(o, ps, url){ + var id = Ext.id(), + doc = document, + frame = doc.createElement('iframe'), + form = Ext.getDom(o.form), + hiddens = [], + hd, + encoding = 'multipart/form-data', + buf = { + target: form.target, + method: form.method, + encoding: form.encoding, + enctype: form.enctype, + action: form.action + }; + + /* + * Originally this behaviour was modified for Opera 10 to apply the secure URL after + * the frame had been added to the document. It seems this has since been corrected in + * Opera so the behaviour has been reverted, the URL will be set before being added. + */ + Ext.fly(frame).set({ + id: id, + name: id, + cls: 'x-hidden', + src: Ext.SSL_SECURE_URL + }); + + doc.body.appendChild(frame); + + // This is required so that IE doesn't pop the response up in a new window. + if(Ext.isIE){ + document.frames[id].name = id; + } + + + Ext.fly(form).set({ + target: id, + method: POST, + enctype: encoding, + encoding: encoding, + action: url || buf.action + }); + + // add dynamic params + Ext.iterate(Ext.urlDecode(ps, false), function(k, v){ + hd = doc.createElement('input'); + Ext.fly(hd).set({ + type: 'hidden', + value: v, + name: k + }); + form.appendChild(hd); + hiddens.push(hd); + }); + + function cb(){ + var me = this, + // bogus response object + r = {responseText : '', + responseXML : null, + argument : o.argument}, + doc, + firstChild; + + try{ + doc = frame.contentWindow.document || frame.contentDocument || WINDOW.frames[id].document; + if(doc){ + if(doc.body){ + if(/textarea/i.test((firstChild = doc.body.firstChild || {}).tagName)){ // json response wrapped in textarea + r.responseText = firstChild.value; + }else{ + r.responseText = doc.body.innerHTML; + } + } + //in IE the document may still have a body even if returns XML. + r.responseXML = doc.XMLDocument || doc; + } + } + catch(e) {} + + Ext.EventManager.removeListener(frame, LOAD, cb, me); + + me.fireEvent(REQUESTCOMPLETE, me, r, o); + + function runCallback(fn, scope, args){ + if(Ext.isFunction(fn)){ + fn.apply(scope, args); + } + } + + runCallback(o.success, o.scope, [r, o]); + runCallback(o.callback, o.scope, [o, true, r]); + + if(!me.debugUploads){ + setTimeout(function(){Ext.removeNode(frame);}, 100); + } + } + + Ext.EventManager.on(frame, LOAD, cb, this); + form.submit(); + + Ext.fly(form).set(buf); + Ext.each(hiddens, function(h) { + Ext.removeNode(h); + }); + } + }); +})(); + +/** + * @class Ext.Ajax + * @extends Ext.data.Connection + *

    The global Ajax request class that provides a simple way to make Ajax requests + * with maximum flexibility.

    + *

    Since Ext.Ajax is a singleton, you can set common properties/events for it once + * and override them at the request function level only if necessary.

    + *

    Common Properties you may want to set are:

      + *
    • {@link #method}

    • + *
    • {@link #extraParams}

    • + *
    • {@link #url}

    • + *
    + *
    
    +// Default headers to pass in every request
    +Ext.Ajax.defaultHeaders = {
    +    'Powered-By': 'Ext'
    +};
    + * 
    + *

    + *

    Common Events you may want to set are:

      + *
    • {@link Ext.data.Connection#beforerequest beforerequest}

    • + *
    • {@link Ext.data.Connection#requestcomplete requestcomplete}

    • + *
    • {@link Ext.data.Connection#requestexception requestexception}

    • + *
    + *
    
    +// Example: show a spinner during all Ajax requests
    +Ext.Ajax.on('beforerequest', this.showSpinner, this);
    +Ext.Ajax.on('requestcomplete', this.hideSpinner, this);
    +Ext.Ajax.on('requestexception', this.hideSpinner, this);
    + * 
    + *

    + *

    An example request:

    + *
    
    +// Basic request
    +Ext.Ajax.{@link Ext.data.Connection#request request}({
    +   url: 'foo.php',
    +   success: someFn,
    +   failure: otherFn,
    +   headers: {
    +       'my-header': 'foo'
    +   },
    +   params: { foo: 'bar' }
    +});
    +
    +// Simple ajax form submission
    +Ext.Ajax.{@link Ext.data.Connection#request request}({
    +    form: 'some-form',
    +    params: 'foo=bar'
    +});
    + * 
    + *

    + * @singleton + */ +Ext.Ajax = new Ext.data.Connection({ + /** + * @cfg {String} url @hide + */ + /** + * @cfg {Object} extraParams @hide + */ + /** + * @cfg {Object} defaultHeaders @hide + */ + /** + * @cfg {String} method (Optional) @hide + */ + /** + * @cfg {Number} timeout (Optional) @hide + */ + /** + * @cfg {Boolean} autoAbort (Optional) @hide + */ + + /** + * @cfg {Boolean} disableCaching (Optional) @hide + */ + + /** + * @property disableCaching + * True to add a unique cache-buster param to GET requests. (defaults to true) + * @type Boolean + */ + /** + * @property url + * The default URL to be used for requests to the server. (defaults to undefined) + * If the server receives all requests through one URL, setting this once is easier than + * entering it on every request. + * @type String + */ + /** + * @property extraParams + * An object containing properties which are used as extra parameters to each request made + * by this object (defaults to undefined). Session information and other data that you need + * to pass with each request are commonly put here. + * @type Object + */ + /** + * @property defaultHeaders + * An object containing request headers which are added to each request made by this object + * (defaults to undefined). + * @type Object + */ + /** + * @property method + * The default HTTP method to be used for requests. Note that this is case-sensitive and + * should be all caps (defaults to undefined; if not set but params are present will use + * "POST", otherwise will use "GET".) + * @type String + */ + /** + * @property timeout + * The timeout in milliseconds to be used for requests. (defaults to 30000) + * @type Number + */ + + /** + * @property autoAbort + * Whether a new request should abort any pending requests. (defaults to false) + * @type Boolean + */ + autoAbort : false, + + /** + * Serialize the passed form into a url encoded string + * @param {String/HTMLElement} form + * @return {String} + */ + serializeForm : function(form){ + return Ext.lib.Ajax.serializeForm(form); + } +}); +/** + * @class Ext.Updater + * @extends Ext.util.Observable + * Provides AJAX-style update capabilities for Element objects. Updater can be used to {@link #update} + * an {@link Ext.Element} once, or you can use {@link #startAutoRefresh} to set up an auto-updating + * {@link Ext.Element Element} on a specific interval.

    + * Usage:
    + *
    
    + * var el = Ext.get("foo"); // Get Ext.Element object
    + * var mgr = el.getUpdater();
    + * mgr.update({
    +        url: "http://myserver.com/index.php",
    +        params: {
    +            param1: "foo",
    +            param2: "bar"
    +        }
    + * });
    + * ...
    + * mgr.formUpdate("myFormId", "http://myserver.com/index.php");
    + * 
    + * // or directly (returns the same Updater instance) + * var mgr = new Ext.Updater("myElementId"); + * mgr.startAutoRefresh(60, "http://myserver.com/index.php"); + * mgr.on("update", myFcnNeedsToKnow); + *
    + * // short handed call directly from the element object + * Ext.get("foo").load({ + url: "bar.php", + scripts: true, + params: "param1=foo&param2=bar", + text: "Loading Foo..." + * }); + *
    + * @constructor + * Create new Updater directly. + * @param {Mixed} el The element to update + * @param {Boolean} forceNew (optional) By default the constructor checks to see if the passed element already + * has an Updater and if it does it returns the same instance. This will skip that check (useful for extending this class). + */ +Ext.UpdateManager = Ext.Updater = Ext.extend(Ext.util.Observable, +function() { + var BEFOREUPDATE = "beforeupdate", + UPDATE = "update", + FAILURE = "failure"; + + // private + function processSuccess(response){ + var me = this; + me.transaction = null; + if (response.argument.form && response.argument.reset) { + try { // put in try/catch since some older FF releases had problems with this + response.argument.form.reset(); + } catch(e){} + } + if (me.loadScripts) { + me.renderer.render(me.el, response, me, + updateComplete.createDelegate(me, [response])); + } else { + me.renderer.render(me.el, response, me); + updateComplete.call(me, response); + } + } + + // private + function updateComplete(response, type, success){ + this.fireEvent(type || UPDATE, this.el, response); + if(Ext.isFunction(response.argument.callback)){ + response.argument.callback.call(response.argument.scope, this.el, Ext.isEmpty(success) ? true : false, response, response.argument.options); + } + } + + // private + function processFailure(response){ + updateComplete.call(this, response, FAILURE, !!(this.transaction = null)); + } + + return { + constructor: function(el, forceNew){ + var me = this; + el = Ext.get(el); + if(!forceNew && el.updateManager){ + return el.updateManager; + } + /** + * The Element object + * @type Ext.Element + */ + me.el = el; + /** + * Cached url to use for refreshes. Overwritten every time update() is called unless "discardUrl" param is set to true. + * @type String + */ + me.defaultUrl = null; + + me.addEvents( + /** + * @event beforeupdate + * Fired before an update is made, return false from your handler and the update is cancelled. + * @param {Ext.Element} el + * @param {String/Object/Function} url + * @param {String/Object} params + */ + BEFOREUPDATE, + /** + * @event update + * Fired after successful update is made. + * @param {Ext.Element} el + * @param {Object} oResponseObject The response Object + */ + UPDATE, + /** + * @event failure + * Fired on update failure. + * @param {Ext.Element} el + * @param {Object} oResponseObject The response Object + */ + FAILURE + ); + + Ext.apply(me, Ext.Updater.defaults); + /** + * Blank page URL to use with SSL file uploads (defaults to {@link Ext.Updater.defaults#sslBlankUrl}). + * @property sslBlankUrl + * @type String + */ + /** + * Whether to append unique parameter on get request to disable caching (defaults to {@link Ext.Updater.defaults#disableCaching}). + * @property disableCaching + * @type Boolean + */ + /** + * Text for loading indicator (defaults to {@link Ext.Updater.defaults#indicatorText}). + * @property indicatorText + * @type String + */ + /** + * Whether to show indicatorText when loading (defaults to {@link Ext.Updater.defaults#showLoadIndicator}). + * @property showLoadIndicator + * @type String + */ + /** + * Timeout for requests or form posts in seconds (defaults to {@link Ext.Updater.defaults#timeout}). + * @property timeout + * @type Number + */ + /** + * True to process scripts in the output (defaults to {@link Ext.Updater.defaults#loadScripts}). + * @property loadScripts + * @type Boolean + */ + + /** + * Transaction object of the current executing transaction, or null if there is no active transaction. + */ + me.transaction = null; + /** + * Delegate for refresh() prebound to "this", use myUpdater.refreshDelegate.createCallback(arg1, arg2) to bind arguments + * @type Function + */ + me.refreshDelegate = me.refresh.createDelegate(me); + /** + * Delegate for update() prebound to "this", use myUpdater.updateDelegate.createCallback(arg1, arg2) to bind arguments + * @type Function + */ + me.updateDelegate = me.update.createDelegate(me); + /** + * Delegate for formUpdate() prebound to "this", use myUpdater.formUpdateDelegate.createCallback(arg1, arg2) to bind arguments + * @type Function + */ + me.formUpdateDelegate = (me.formUpdate || function(){}).createDelegate(me); + + /** + * The renderer for this Updater (defaults to {@link Ext.Updater.BasicRenderer}). + */ + me.renderer = me.renderer || me.getDefaultRenderer(); + + Ext.Updater.superclass.constructor.call(me); + }, + + /** + * Sets the content renderer for this Updater. See {@link Ext.Updater.BasicRenderer#render} for more details. + * @param {Object} renderer The object implementing the render() method + */ + setRenderer : function(renderer){ + this.renderer = renderer; + }, + + /** + * Returns the current content renderer for this Updater. See {@link Ext.Updater.BasicRenderer#render} for more details. + * @return {Object} + */ + getRenderer : function(){ + return this.renderer; + }, + + /** + * This is an overrideable method which returns a reference to a default + * renderer class if none is specified when creating the Ext.Updater. + * Defaults to {@link Ext.Updater.BasicRenderer} + */ + getDefaultRenderer: function() { + return new Ext.Updater.BasicRenderer(); + }, + + /** + * Sets the default URL used for updates. + * @param {String/Function} defaultUrl The url or a function to call to get the url + */ + setDefaultUrl : function(defaultUrl){ + this.defaultUrl = defaultUrl; + }, + + /** + * Get the Element this Updater is bound to + * @return {Ext.Element} The element + */ + getEl : function(){ + return this.el; + }, + + /** + * Performs an asynchronous request, updating this element with the response. + * If params are specified it uses POST, otherwise it uses GET.

    + * Note: Due to the asynchronous nature of remote server requests, the Element + * will not have been fully updated when the function returns. To post-process the returned + * data, use the callback option, or an update event handler. + * @param {Object} options A config object containing any of the following options:
      + *
    • url : String/Function

      The URL to request or a function which + * returns the URL (defaults to the value of {@link Ext.Ajax#url} if not specified).

    • + *
    • method : String

      The HTTP method to + * use. Defaults to POST if the params argument is present, otherwise GET.

    • + *
    • params : String/Object/Function

      The + * parameters to pass to the server (defaults to none). These may be specified as a url-encoded + * string, or as an object containing properties which represent parameters, + * or as a function, which returns such an object.

    • + *
    • scripts : Boolean

      If true + * any <script> tags embedded in the response text will be extracted + * and executed (defaults to {@link Ext.Updater.defaults#loadScripts}). If this option is specified, + * the callback will be called after the execution of the scripts.

    • + *
    • callback : Function

      A function to + * be called when the response from the server arrives. The following + * parameters are passed:

        + *
      • el : Ext.Element

        The Element being updated.

      • + *
      • success : Boolean

        True for success, false for failure.

      • + *
      • response : XMLHttpRequest

        The XMLHttpRequest which processed the update.

      • + *
      • options : Object

        The config object passed to the update call.

      + *

    • + *
    • scope : Object

      The scope in which + * to execute the callback (The callback's this reference.) If the + * params argument is a function, this scope is used for that function also.

    • + *
    • discardUrl : Boolean

      By default, the URL of this request becomes + * the default URL for this Updater object, and will be subsequently used in {@link #refresh} + * calls. To bypass this behavior, pass discardUrl:true (defaults to false).

    • + *
    • timeout : Number

      The number of seconds to wait for a response before + * timing out (defaults to {@link Ext.Updater.defaults#timeout}).

    • + *
    • text : String

      The text to use as the innerHTML of the + * {@link Ext.Updater.defaults#indicatorText} div (defaults to 'Loading...'). To replace the entire div, not + * just the text, override {@link Ext.Updater.defaults#indicatorText} directly.

    • + *
    • nocache : Boolean

      Only needed for GET + * requests, this option causes an extra, auto-generated parameter to be appended to the request + * to defeat caching (defaults to {@link Ext.Updater.defaults#disableCaching}).

    + *

    + * For example: +

    
    +    um.update({
    +        url: "your-url.php",
    +        params: {param1: "foo", param2: "bar"}, // or a URL encoded string
    +        callback: yourFunction,
    +        scope: yourObject, //(optional scope)
    +        discardUrl: true,
    +        nocache: true,
    +        text: "Loading...",
    +        timeout: 60,
    +        scripts: false // Save time by avoiding RegExp execution.
    +    });
    +    
    + */ + update : function(url, params, callback, discardUrl){ + var me = this, + cfg, + callerScope; + + if(me.fireEvent(BEFOREUPDATE, me.el, url, params) !== false){ + if(Ext.isObject(url)){ // must be config object + cfg = url; + url = cfg.url; + params = params || cfg.params; + callback = callback || cfg.callback; + discardUrl = discardUrl || cfg.discardUrl; + callerScope = cfg.scope; + if(!Ext.isEmpty(cfg.nocache)){me.disableCaching = cfg.nocache;}; + if(!Ext.isEmpty(cfg.text)){me.indicatorText = '
    '+cfg.text+"
    ";}; + if(!Ext.isEmpty(cfg.scripts)){me.loadScripts = cfg.scripts;}; + if(!Ext.isEmpty(cfg.timeout)){me.timeout = cfg.timeout;}; + } + me.showLoading(); + + if(!discardUrl){ + me.defaultUrl = url; + } + if(Ext.isFunction(url)){ + url = url.call(me); + } + + var o = Ext.apply({}, { + url : url, + params: (Ext.isFunction(params) && callerScope) ? params.createDelegate(callerScope) : params, + success: processSuccess, + failure: processFailure, + scope: me, + callback: undefined, + timeout: (me.timeout*1000), + disableCaching: me.disableCaching, + argument: { + "options": cfg, + "url": url, + "form": null, + "callback": callback, + "scope": callerScope || window, + "params": params + } + }, cfg); + + me.transaction = Ext.Ajax.request(o); + } + }, + + /** + *

    Performs an asynchronous form post, updating this element with the response. If the form has the attribute + * enctype="multipart/form-data", it assumes it's a file upload. + * Uses this.sslBlankUrl for SSL file uploads to prevent IE security warning.

    + *

    File uploads are not performed using normal "Ajax" techniques, that is they are not + * performed using XMLHttpRequests. Instead the form is submitted in the standard manner with the + * DOM <form> element temporarily modified to have its + * target set to refer + * to a dynamically generated, hidden <iframe> which is inserted into the document + * but removed after the return data has been gathered.

    + *

    Be aware that file upload packets, sent with the content type multipart/form-data + * and some server technologies (notably JEE) may require some custom processing in order to + * retrieve parameter names and parameter values from the packet content.

    + * @param {String/HTMLElement} form The form Id or form element + * @param {String} url (optional) The url to pass the form to. If omitted the action attribute on the form will be used. + * @param {Boolean} reset (optional) Whether to try to reset the form after the update + * @param {Function} callback (optional) Callback when transaction is complete. The following + * parameters are passed:
      + *
    • el : Ext.Element

      The Element being updated.

    • + *
    • success : Boolean

      True for success, false for failure.

    • + *
    • response : XMLHttpRequest

      The XMLHttpRequest which processed the update.

    + */ + formUpdate : function(form, url, reset, callback){ + var me = this; + if(me.fireEvent(BEFOREUPDATE, me.el, form, url) !== false){ + if(Ext.isFunction(url)){ + url = url.call(me); + } + form = Ext.getDom(form); + me.transaction = Ext.Ajax.request({ + form: form, + url:url, + success: processSuccess, + failure: processFailure, + scope: me, + timeout: (me.timeout*1000), + argument: { + "url": url, + "form": form, + "callback": callback, + "reset": reset + } + }); + me.showLoading.defer(1, me); + } + }, + + /** + * Set this element to auto refresh. Can be canceled by calling {@link #stopAutoRefresh}. + * @param {Number} interval How often to update (in seconds). + * @param {String/Object/Function} url (optional) The url for this request, a config object in the same format + * supported by {@link #load}, or a function to call to get the url (defaults to the last used url). Note that while + * the url used in a load call can be reused by this method, other load config options will not be reused and must be + * sepcified as part of a config object passed as this paramter if needed. + * @param {String/Object} params (optional) The parameters to pass as either a url encoded string + * "¶m1=1¶m2=2" or as an object {param1: 1, param2: 2} + * @param {Function} callback (optional) Callback when transaction is complete - called with signature (oElement, bSuccess) + * @param {Boolean} refreshNow (optional) Whether to execute the refresh now, or wait the interval + */ + startAutoRefresh : function(interval, url, params, callback, refreshNow){ + var me = this; + if(refreshNow){ + me.update(url || me.defaultUrl, params, callback, true); + } + if(me.autoRefreshProcId){ + clearInterval(me.autoRefreshProcId); + } + me.autoRefreshProcId = setInterval(me.update.createDelegate(me, [url || me.defaultUrl, params, callback, true]), interval * 1000); + }, + + /** + * Stop auto refresh on this element. + */ + stopAutoRefresh : function(){ + if(this.autoRefreshProcId){ + clearInterval(this.autoRefreshProcId); + delete this.autoRefreshProcId; + } + }, + + /** + * Returns true if the Updater is currently set to auto refresh its content (see {@link #startAutoRefresh}), otherwise false. + */ + isAutoRefreshing : function(){ + return !!this.autoRefreshProcId; + }, + + /** + * Display the element's "loading" state. By default, the element is updated with {@link #indicatorText}. This + * method may be overridden to perform a custom action while this Updater is actively updating its contents. + */ + showLoading : function(){ + if(this.showLoadIndicator){ + this.el.dom.innerHTML = this.indicatorText; + } + }, + + /** + * Aborts the currently executing transaction, if any. + */ + abort : function(){ + if(this.transaction){ + Ext.Ajax.abort(this.transaction); + } + }, + + /** + * Returns true if an update is in progress, otherwise false. + * @return {Boolean} + */ + isUpdating : function(){ + return this.transaction ? Ext.Ajax.isLoading(this.transaction) : false; + }, + + /** + * Refresh the element with the last used url or defaultUrl. If there is no url, it returns immediately + * @param {Function} callback (optional) Callback when transaction is complete - called with signature (oElement, bSuccess) + */ + refresh : function(callback){ + if(this.defaultUrl){ + this.update(this.defaultUrl, null, callback, true); + } + } + } +}()); + +/** + * @class Ext.Updater.defaults + * The defaults collection enables customizing the default properties of Updater + */ +Ext.Updater.defaults = { + /** + * Timeout for requests or form posts in seconds (defaults to 30 seconds). + * @type Number + */ + timeout : 30, + /** + * True to append a unique parameter to GET requests to disable caching (defaults to false). + * @type Boolean + */ + disableCaching : false, + /** + * Whether or not to show {@link #indicatorText} during loading (defaults to true). + * @type Boolean + */ + showLoadIndicator : true, + /** + * Text for loading indicator (defaults to '<div class="loading-indicator">Loading...</div>'). + * @type String + */ + indicatorText : '
    Loading...
    ', + /** + * True to process scripts by default (defaults to false). + * @type Boolean + */ + loadScripts : false, + /** + * Blank page URL to use with SSL file uploads (defaults to {@link Ext#SSL_SECURE_URL} if set, or "javascript:false"). + * @type String + */ + sslBlankUrl : Ext.SSL_SECURE_URL +}; + + +/** + * Static convenience method. This method is deprecated in favor of el.load({url:'foo.php', ...}). + * Usage: + *
    Ext.Updater.updateElement("my-div", "stuff.php");
    + * @param {Mixed} el The element to update + * @param {String} url The url + * @param {String/Object} params (optional) Url encoded param string or an object of name/value pairs + * @param {Object} options (optional) A config object with any of the Updater properties you want to set - for + * example: {disableCaching:true, indicatorText: "Loading data..."} + * @static + * @deprecated + * @member Ext.Updater + */ +Ext.Updater.updateElement = function(el, url, params, options){ + var um = Ext.get(el).getUpdater(); + Ext.apply(um, options); + um.update(url, params, options ? options.callback : null); +}; + +/** + * @class Ext.Updater.BasicRenderer + *

    This class is a base class implementing a simple render method which updates an element using results from an Ajax request.

    + *

    The BasicRenderer updates the element's innerHTML with the responseText. To perform a custom render (i.e. XML or JSON processing), + * create an object with a conforming {@link #render} method and pass it to setRenderer on the Updater.

    + */ +Ext.Updater.BasicRenderer = function(){}; + +Ext.Updater.BasicRenderer.prototype = { + /** + * This method is called when an Ajax response is received, and an Element needs updating. + * @param {Ext.Element} el The element being rendered + * @param {Object} xhr The XMLHttpRequest object + * @param {Updater} updateManager The calling update manager + * @param {Function} callback A callback that will need to be called if loadScripts is true on the Updater + */ + render : function(el, response, updateManager, callback){ + el.update(response.responseText, updateManager.loadScripts, callback); + } +};/** + * @class Date + * + * The date parsing and formatting syntax contains a subset of + * PHP's date() function, and the formats that are + * supported will provide results equivalent to their PHP versions. + * + * The following is a list of all currently supported formats: + *
    +Format  Description                                                               Example returned values
    +------  -----------------------------------------------------------------------   -----------------------
    +  d     Day of the month, 2 digits with leading zeros                             01 to 31
    +  D     A short textual representation of the day of the week                     Mon to Sun
    +  j     Day of the month without leading zeros                                    1 to 31
    +  l     A full textual representation of the day of the week                      Sunday to Saturday
    +  N     ISO-8601 numeric representation of the day of the week                    1 (for Monday) through 7 (for Sunday)
    +  S     English ordinal suffix for the day of the month, 2 characters             st, nd, rd or th. Works well with j
    +  w     Numeric representation of the day of the week                             0 (for Sunday) to 6 (for Saturday)
    +  z     The day of the year (starting from 0)                                     0 to 364 (365 in leap years)
    +  W     ISO-8601 week number of year, weeks starting on Monday                    01 to 53
    +  F     A full textual representation of a month, such as January or March        January to December
    +  m     Numeric representation of a month, with leading zeros                     01 to 12
    +  M     A short textual representation of a month                                 Jan to Dec
    +  n     Numeric representation of a month, without leading zeros                  1 to 12
    +  t     Number of days in the given month                                         28 to 31
    +  L     Whether it's a leap year                                                  1 if it is a leap year, 0 otherwise.
    +  o     ISO-8601 year number (identical to (Y), but if the ISO week number (W)    Examples: 1998 or 2004
    +        belongs to the previous or next year, that year is used instead)
    +  Y     A full numeric representation of a year, 4 digits                         Examples: 1999 or 2003
    +  y     A two digit representation of a year                                      Examples: 99 or 03
    +  a     Lowercase Ante meridiem and Post meridiem                                 am or pm
    +  A     Uppercase Ante meridiem and Post meridiem                                 AM or PM
    +  g     12-hour format of an hour without leading zeros                           1 to 12
    +  G     24-hour format of an hour without leading zeros                           0 to 23
    +  h     12-hour format of an hour with leading zeros                              01 to 12
    +  H     24-hour format of an hour with leading zeros                              00 to 23
    +  i     Minutes, with leading zeros                                               00 to 59
    +  s     Seconds, with leading zeros                                               00 to 59
    +  u     Decimal fraction of a second                                              Examples:
    +        (minimum 1 digit, arbitrary number of digits allowed)                     001 (i.e. 0.001s) or
    +                                                                                  100 (i.e. 0.100s) or
    +                                                                                  999 (i.e. 0.999s) or
    +                                                                                  999876543210 (i.e. 0.999876543210s)
    +  O     Difference to Greenwich time (GMT) in hours and minutes                   Example: +1030
    +  P     Difference to Greenwich time (GMT) with colon between hours and minutes   Example: -08:00
    +  T     Timezone abbreviation of the machine running the code                     Examples: EST, MDT, PDT ...
    +  Z     Timezone offset in seconds (negative if west of UTC, positive if east)    -43200 to 50400
    +  c     ISO 8601 date
    +        Notes:                                                                    Examples:
    +        1) If unspecified, the month / day defaults to the current month / day,   1991 or
    +           the time defaults to midnight, while the timezone defaults to the      1992-10 or
    +           browser's timezone. If a time is specified, it must include both hours 1993-09-20 or
    +           and minutes. The "T" delimiter, seconds, milliseconds and timezone     1994-08-19T16:20+01:00 or
    +           are optional.                                                          1995-07-18T17:21:28-02:00 or
    +        2) The decimal fraction of a second, if specified, must contain at        1996-06-17T18:22:29.98765+03:00 or
    +           least 1 digit (there is no limit to the maximum number                 1997-05-16T19:23:30,12345-0400 or
    +           of digits allowed), and may be delimited by either a '.' or a ','      1998-04-15T20:24:31.2468Z or
    +        Refer to the examples on the right for the various levels of              1999-03-14T20:24:32Z or
    +        date-time granularity which are supported, or see                         2000-02-13T21:25:33
    +        http://www.w3.org/TR/NOTE-datetime for more info.                         2001-01-12 22:26:34
    +  U     Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)                1193432466 or -2138434463
    +  M$    Microsoft AJAX serialized dates                                           \/Date(1238606590509)\/ (i.e. UTC milliseconds since epoch) or
    +                                                                                  \/Date(1238606590509+0800)\/
    +
    + * + * Example usage (note that you must escape format specifiers with '\\' to render them as character literals): + *
    
    +// Sample date:
    +// 'Wed Jan 10 2007 15:05:01 GMT-0600 (Central Standard Time)'
    +
    +var dt = new Date('1/10/2007 03:05:01 PM GMT-0600');
    +document.write(dt.format('Y-m-d'));                           // 2007-01-10
    +document.write(dt.format('F j, Y, g:i a'));                   // January 10, 2007, 3:05 pm
    +document.write(dt.format('l, \\t\\he jS \\of F Y h:i:s A'));  // Wednesday, the 10th of January 2007 03:05:01 PM
    +
    + * + * Here are some standard date/time patterns that you might find helpful. They + * are not part of the source of Date.js, but to use them you can simply copy this + * block of code into any script that is included after Date.js and they will also become + * globally available on the Date object. Feel free to add or remove patterns as needed in your code. + *
    
    +Date.patterns = {
    +    ISO8601Long:"Y-m-d H:i:s",
    +    ISO8601Short:"Y-m-d",
    +    ShortDate: "n/j/Y",
    +    LongDate: "l, F d, Y",
    +    FullDateTime: "l, F d, Y g:i:s A",
    +    MonthDay: "F d",
    +    ShortTime: "g:i A",
    +    LongTime: "g:i:s A",
    +    SortableDateTime: "Y-m-d\\TH:i:s",
    +    UniversalSortableDateTime: "Y-m-d H:i:sO",
    +    YearMonth: "F, Y"
    +};
    +
    + * + * Example usage: + *
    
    +var dt = new Date();
    +document.write(dt.format(Date.patterns.ShortDate));
    +
    + *

    Developer-written, custom formats may be used by supplying both a formatting and a parsing function + * which perform to specialized requirements. The functions are stored in {@link #parseFunctions} and {@link #formatFunctions}.

    + */ + +/* + * Most of the date-formatting functions below are the excellent work of Baron Schwartz. + * (see http://www.xaprb.com/blog/2005/12/12/javascript-closures-for-runtime-efficiency/) + * They generate precompiled functions from format patterns instead of parsing and + * processing each pattern every time a date is formatted. These functions are available + * on every Date object. + */ + +(function() { + +/** + * Global flag which determines if strict date parsing should be used. + * Strict date parsing will not roll-over invalid dates, which is the + * default behaviour of javascript Date objects. + * (see {@link #parseDate} for more information) + * Defaults to false. + * @static + * @type Boolean +*/ +Date.useStrict = false; + + +// create private copy of Ext's String.format() method +// - to remove unnecessary dependency +// - to resolve namespace conflict with M$-Ajax's implementation +function xf(format) { + var args = Array.prototype.slice.call(arguments, 1); + return format.replace(/\{(\d+)\}/g, function(m, i) { + return args[i]; + }); +} + + +// private +Date.formatCodeToRegex = function(character, currentGroup) { + // Note: currentGroup - position in regex result array (see notes for Date.parseCodes below) + var p = Date.parseCodes[character]; + + if (p) { + p = typeof p == 'function'? p() : p; + Date.parseCodes[character] = p; // reassign function result to prevent repeated execution + } + + return p ? Ext.applyIf({ + c: p.c ? xf(p.c, currentGroup || "{0}") : p.c + }, p) : { + g:0, + c:null, + s:Ext.escapeRe(character) // treat unrecognised characters as literals + } +}; + +// private shorthand for Date.formatCodeToRegex since we'll be using it fairly often +var $f = Date.formatCodeToRegex; + +Ext.apply(Date, { + /** + *

    An object hash in which each property is a date parsing function. The property name is the + * format string which that function parses.

    + *

    This object is automatically populated with date parsing functions as + * date formats are requested for Ext standard formatting strings.

    + *

    Custom parsing functions may be inserted into this object, keyed by a name which from then on + * may be used as a format string to {@link #parseDate}.

    + *

    Example:

    
    +Date.parseFunctions['x-date-format'] = myDateParser;
    +
    + *

    A parsing function should return a Date object, and is passed the following parameters:

      + *
    • date : String
      The date string to parse.
    • + *
    • strict : Boolean
      True to validate date strings while parsing + * (i.e. prevent javascript Date "rollover") (The default must be false). + * Invalid date strings should return null when parsed.
    • + *

    + *

    To enable Dates to also be formatted according to that format, a corresponding + * formatting function must be placed into the {@link #formatFunctions} property. + * @property parseFunctions + * @static + * @type Object + */ + parseFunctions: { + "M$": function(input, strict) { + // note: the timezone offset is ignored since the M$ Ajax server sends + // a UTC milliseconds-since-Unix-epoch value (negative values are allowed) + var re = new RegExp('\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/'); + var r = (input || '').match(re); + return r? new Date(((r[1] || '') + r[2]) * 1) : null; + } + }, + parseRegexes: [], + + /** + *

    An object hash in which each property is a date formatting function. The property name is the + * format string which corresponds to the produced formatted date string.

    + *

    This object is automatically populated with date formatting functions as + * date formats are requested for Ext standard formatting strings.

    + *

    Custom formatting functions may be inserted into this object, keyed by a name which from then on + * may be used as a format string to {@link #format}. Example:

    
    +Date.formatFunctions['x-date-format'] = myDateFormatter;
    +
    + *

    A formatting function should return a string representation of the passed Date object, and is passed the following parameters:

      + *
    • date : Date
      The Date to format.
    • + *

    + *

    To enable date strings to also be parsed according to that format, a corresponding + * parsing function must be placed into the {@link #parseFunctions} property. + * @property formatFunctions + * @static + * @type Object + */ + formatFunctions: { + "M$": function() { + // UTC milliseconds since Unix epoch (M$-AJAX serialized date format (MRSF)) + return '\\/Date(' + this.getTime() + ')\\/'; + } + }, + + y2kYear : 50, + + /** + * Date interval constant + * @static + * @type String + */ + MILLI : "ms", + + /** + * Date interval constant + * @static + * @type String + */ + SECOND : "s", + + /** + * Date interval constant + * @static + * @type String + */ + MINUTE : "mi", + + /** Date interval constant + * @static + * @type String + */ + HOUR : "h", + + /** + * Date interval constant + * @static + * @type String + */ + DAY : "d", + + /** + * Date interval constant + * @static + * @type String + */ + MONTH : "mo", + + /** + * Date interval constant + * @static + * @type String + */ + YEAR : "y", + + /** + *

    An object hash containing default date values used during date parsing.

    + *

    The following properties are available:

      + *
    • y : Number
      The default year value. (defaults to undefined)
    • + *
    • m : Number
      The default 1-based month value. (defaults to undefined)
    • + *
    • d : Number
      The default day value. (defaults to undefined)
    • + *
    • h : Number
      The default hour value. (defaults to undefined)
    • + *
    • i : Number
      The default minute value. (defaults to undefined)
    • + *
    • s : Number
      The default second value. (defaults to undefined)
    • + *
    • ms : Number
      The default millisecond value. (defaults to undefined)
    • + *

    + *

    Override these properties to customize the default date values used by the {@link #parseDate} method.

    + *

    Note: In countries which experience Daylight Saving Time (i.e. DST), the h, i, s + * and ms properties may coincide with the exact time in which DST takes effect. + * It is the responsiblity of the developer to account for this.

    + * Example Usage: + *
    
    +// set default day value to the first day of the month
    +Date.defaults.d = 1;
    +
    +// parse a February date string containing only year and month values.
    +// setting the default day value to 1 prevents weird date rollover issues
    +// when attempting to parse the following date string on, for example, March 31st 2009.
    +Date.parseDate('2009-02', 'Y-m'); // returns a Date object representing February 1st 2009
    +
    + * @property defaults + * @static + * @type Object + */ + defaults: {}, + + /** + * An array of textual day names. + * Override these values for international dates. + * Example: + *
    
    +Date.dayNames = [
    +    'SundayInYourLang',
    +    'MondayInYourLang',
    +    ...
    +];
    +
    + * @type Array + * @static + */ + dayNames : [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + + /** + * An array of textual month names. + * Override these values for international dates. + * Example: + *
    
    +Date.monthNames = [
    +    'JanInYourLang',
    +    'FebInYourLang',
    +    ...
    +];
    +
    + * @type Array + * @static + */ + monthNames : [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + + /** + * An object hash of zero-based javascript month numbers (with short month names as keys. note: keys are case-sensitive). + * Override these values for international dates. + * Example: + *
    
    +Date.monthNumbers = {
    +    'ShortJanNameInYourLang':0,
    +    'ShortFebNameInYourLang':1,
    +    ...
    +};
    +
    + * @type Object + * @static + */ + monthNumbers : { + Jan:0, + Feb:1, + Mar:2, + Apr:3, + May:4, + Jun:5, + Jul:6, + Aug:7, + Sep:8, + Oct:9, + Nov:10, + Dec:11 + }, + + /** + * Get the short month name for the given month number. + * Override this function for international dates. + * @param {Number} month A zero-based javascript month number. + * @return {String} The short month name. + * @static + */ + getShortMonthName : function(month) { + return Date.monthNames[month].substring(0, 3); + }, + + /** + * Get the short day name for the given day number. + * Override this function for international dates. + * @param {Number} day A zero-based javascript day number. + * @return {String} The short day name. + * @static + */ + getShortDayName : function(day) { + return Date.dayNames[day].substring(0, 3); + }, + + /** + * Get the zero-based javascript month number for the given short/full month name. + * Override this function for international dates. + * @param {String} name The short/full month name. + * @return {Number} The zero-based javascript month number. + * @static + */ + getMonthNumber : function(name) { + // handle camel casing for english month names (since the keys for the Date.monthNumbers hash are case sensitive) + return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; + }, + + /** + * The base format-code to formatting-function hashmap used by the {@link #format} method. + * Formatting functions are strings (or functions which return strings) which + * will return the appropriate value when evaluated in the context of the Date object + * from which the {@link #format} method is called. + * Add to / override these mappings for custom date formatting. + * Note: Date.format() treats characters as literals if an appropriate mapping cannot be found. + * Example: + *
    
    +Date.formatCodes.x = "String.leftPad(this.getDate(), 2, '0')";
    +(new Date()).format("X"); // returns the current day of the month
    +
    + * @type Object + * @static + */ + formatCodes : { + d: "String.leftPad(this.getDate(), 2, '0')", + D: "Date.getShortDayName(this.getDay())", // get localised short day name + j: "this.getDate()", + l: "Date.dayNames[this.getDay()]", + N: "(this.getDay() ? this.getDay() : 7)", + S: "this.getSuffix()", + w: "this.getDay()", + z: "this.getDayOfYear()", + W: "String.leftPad(this.getWeekOfYear(), 2, '0')", + F: "Date.monthNames[this.getMonth()]", + m: "String.leftPad(this.getMonth() + 1, 2, '0')", + M: "Date.getShortMonthName(this.getMonth())", // get localised short month name + n: "(this.getMonth() + 1)", + t: "this.getDaysInMonth()", + L: "(this.isLeapYear() ? 1 : 0)", + o: "(this.getFullYear() + (this.getWeekOfYear() == 1 && this.getMonth() > 0 ? +1 : (this.getWeekOfYear() >= 52 && this.getMonth() < 11 ? -1 : 0)))", + Y: "this.getFullYear()", + y: "('' + this.getFullYear()).substring(2, 4)", + a: "(this.getHours() < 12 ? 'am' : 'pm')", + A: "(this.getHours() < 12 ? 'AM' : 'PM')", + g: "((this.getHours() % 12) ? this.getHours() % 12 : 12)", + G: "this.getHours()", + h: "String.leftPad((this.getHours() % 12) ? this.getHours() % 12 : 12, 2, '0')", + H: "String.leftPad(this.getHours(), 2, '0')", + i: "String.leftPad(this.getMinutes(), 2, '0')", + s: "String.leftPad(this.getSeconds(), 2, '0')", + u: "String.leftPad(this.getMilliseconds(), 3, '0')", + O: "this.getGMTOffset()", + P: "this.getGMTOffset(true)", + T: "this.getTimezone()", + Z: "(this.getTimezoneOffset() * -60)", + + c: function() { // ISO-8601 -- GMT format + for (var c = "Y-m-dTH:i:sP", code = [], i = 0, l = c.length; i < l; ++i) { + var e = c.charAt(i); + code.push(e == "T" ? "'T'" : Date.getFormatCode(e)); // treat T as a character literal + } + return code.join(" + "); + }, + /* + c: function() { // ISO-8601 -- UTC format + return [ + "this.getUTCFullYear()", "'-'", + "String.leftPad(this.getUTCMonth() + 1, 2, '0')", "'-'", + "String.leftPad(this.getUTCDate(), 2, '0')", + "'T'", + "String.leftPad(this.getUTCHours(), 2, '0')", "':'", + "String.leftPad(this.getUTCMinutes(), 2, '0')", "':'", + "String.leftPad(this.getUTCSeconds(), 2, '0')", + "'Z'" + ].join(" + "); + }, + */ + + U: "Math.round(this.getTime() / 1000)" + }, + + /** + * Checks if the passed Date parameters will cause a javascript Date "rollover". + * @param {Number} year 4-digit year + * @param {Number} month 1-based month-of-year + * @param {Number} day Day of month + * @param {Number} hour (optional) Hour + * @param {Number} minute (optional) Minute + * @param {Number} second (optional) Second + * @param {Number} millisecond (optional) Millisecond + * @return {Boolean} true if the passed parameters do not cause a Date "rollover", false otherwise. + * @static + */ + isValid : function(y, m, d, h, i, s, ms) { + // setup defaults + h = h || 0; + i = i || 0; + s = s || 0; + ms = ms || 0; + + var dt = new Date(y, m - 1, d, h, i, s, ms); + + return y == dt.getFullYear() && + m == dt.getMonth() + 1 && + d == dt.getDate() && + h == dt.getHours() && + i == dt.getMinutes() && + s == dt.getSeconds() && + ms == dt.getMilliseconds(); + }, + + /** + * Parses the passed string using the specified date format. + * Note that this function expects normal calendar dates, meaning that months are 1-based (i.e. 1 = January). + * The {@link #defaults} hash will be used for any date value (i.e. year, month, day, hour, minute, second or millisecond) + * which cannot be found in the passed string. If a corresponding default date value has not been specified in the {@link #defaults} hash, + * the current date's year, month, day or DST-adjusted zero-hour time value will be used instead. + * Keep in mind that the input date string must precisely match the specified format string + * in order for the parse operation to be successful (failed parse operations return a null value). + *

    Example:

    
    +//dt = Fri May 25 2007 (current date)
    +var dt = new Date();
    +
    +//dt = Thu May 25 2006 (today's month/day in 2006)
    +dt = Date.parseDate("2006", "Y");
    +
    +//dt = Sun Jan 15 2006 (all date parts specified)
    +dt = Date.parseDate("2006-01-15", "Y-m-d");
    +
    +//dt = Sun Jan 15 2006 15:20:01
    +dt = Date.parseDate("2006-01-15 3:20:01 PM", "Y-m-d g:i:s A");
    +
    +// attempt to parse Sun Feb 29 2006 03:20:01 in strict mode
    +dt = Date.parseDate("2006-02-29 03:20:01", "Y-m-d H:i:s", true); // returns null
    +
    + * @param {String} input The raw date string. + * @param {String} format The expected date string format. + * @param {Boolean} strict (optional) True to validate date strings while parsing (i.e. prevents javascript Date "rollover") + (defaults to false). Invalid date strings will return null when parsed. + * @return {Date} The parsed Date. + * @static + */ + parseDate : function(input, format, strict) { + var p = Date.parseFunctions; + if (p[format] == null) { + Date.createParser(format); + } + return p[format](input, Ext.isDefined(strict) ? strict : Date.useStrict); + }, + + // private + getFormatCode : function(character) { + var f = Date.formatCodes[character]; + + if (f) { + f = typeof f == 'function'? f() : f; + Date.formatCodes[character] = f; // reassign function result to prevent repeated execution + } + + // note: unknown characters are treated as literals + return f || ("'" + String.escape(character) + "'"); + }, + + // private + createFormat : function(format) { + var code = [], + special = false, + ch = ''; + + for (var i = 0; i < format.length; ++i) { + ch = format.charAt(i); + if (!special && ch == "\\") { + special = true; + } else if (special) { + special = false; + code.push("'" + String.escape(ch) + "'"); + } else { + code.push(Date.getFormatCode(ch)) + } + } + Date.formatFunctions[format] = new Function("return " + code.join('+')); + }, + + // private + createParser : function() { + var code = [ + "var dt, y, m, d, h, i, s, ms, o, z, zz, u, v,", + "def = Date.defaults,", + "results = String(input).match(Date.parseRegexes[{0}]);", // either null, or an array of matched strings + + "if(results){", + "{1}", + + "if(u != null){", // i.e. unix time is defined + "v = new Date(u * 1000);", // give top priority to UNIX time + "}else{", + // create Date object representing midnight of the current day; + // this will provide us with our date defaults + // (note: clearTime() handles Daylight Saving Time automatically) + "dt = (new Date()).clearTime();", + + // date calculations (note: these calculations create a dependency on Ext.num()) + "y = Ext.num(y, Ext.num(def.y, dt.getFullYear()));", + "m = Ext.num(m, Ext.num(def.m - 1, dt.getMonth()));", + "d = Ext.num(d, Ext.num(def.d, dt.getDate()));", + + // time calculations (note: these calculations create a dependency on Ext.num()) + "h = Ext.num(h, Ext.num(def.h, dt.getHours()));", + "i = Ext.num(i, Ext.num(def.i, dt.getMinutes()));", + "s = Ext.num(s, Ext.num(def.s, dt.getSeconds()));", + "ms = Ext.num(ms, Ext.num(def.ms, dt.getMilliseconds()));", + + "if(z >= 0 && y >= 0){", + // both the year and zero-based day of year are defined and >= 0. + // these 2 values alone provide sufficient info to create a full date object + + // create Date object representing January 1st for the given year + "v = new Date(y, 0, 1, h, i, s, ms);", + + // then add day of year, checking for Date "rollover" if necessary + "v = !strict? v : (strict === true && (z <= 364 || (v.isLeapYear() && z <= 365))? v.add(Date.DAY, z) : null);", + "}else if(strict === true && !Date.isValid(y, m + 1, d, h, i, s, ms)){", // check for Date "rollover" + "v = null;", // invalid date, so return null + "}else{", + // plain old Date object + "v = new Date(y, m, d, h, i, s, ms);", + "}", + "}", + "}", + + "if(v){", + // favour UTC offset over GMT offset + "if(zz != null){", + // reset to UTC, then add offset + "v = v.add(Date.SECOND, -v.getTimezoneOffset() * 60 - zz);", + "}else if(o){", + // reset to GMT, then add offset + "v = v.add(Date.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));", + "}", + "}", + + "return v;" + ].join('\n'); + + return function(format) { + var regexNum = Date.parseRegexes.length, + currentGroup = 1, + calc = [], + regex = [], + special = false, + ch = ""; + + for (var i = 0; i < format.length; ++i) { + ch = format.charAt(i); + if (!special && ch == "\\") { + special = true; + } else if (special) { + special = false; + regex.push(String.escape(ch)); + } else { + var obj = $f(ch, currentGroup); + currentGroup += obj.g; + regex.push(obj.s); + if (obj.g && obj.c) { + calc.push(obj.c); + } + } + } + + Date.parseRegexes[regexNum] = new RegExp("^" + regex.join('') + "$"); + Date.parseFunctions[format] = new Function("input", "strict", xf(code, regexNum, calc.join(''))); + } + }(), + + // private + parseCodes : { + /* + * Notes: + * g = {Number} calculation group (0 or 1. only group 1 contributes to date calculations.) + * c = {String} calculation method (required for group 1. null for group 0. {0} = currentGroup - position in regex result array) + * s = {String} regex pattern. all matches are stored in results[], and are accessible by the calculation mapped to 'c' + */ + d: { + g:1, + c:"d = parseInt(results[{0}], 10);\n", + s:"(\\d{2})" // day of month with leading zeroes (01 - 31) + }, + j: { + g:1, + c:"d = parseInt(results[{0}], 10);\n", + s:"(\\d{1,2})" // day of month without leading zeroes (1 - 31) + }, + D: function() { + for (var a = [], i = 0; i < 7; a.push(Date.getShortDayName(i)), ++i); // get localised short day names + return { + g:0, + c:null, + s:"(?:" + a.join("|") +")" + } + }, + l: function() { + return { + g:0, + c:null, + s:"(?:" + Date.dayNames.join("|") + ")" + } + }, + N: { + g:0, + c:null, + s:"[1-7]" // ISO-8601 day number (1 (monday) - 7 (sunday)) + }, + S: { + g:0, + c:null, + s:"(?:st|nd|rd|th)" + }, + w: { + g:0, + c:null, + s:"[0-6]" // javascript day number (0 (sunday) - 6 (saturday)) + }, + z: { + g:1, + c:"z = parseInt(results[{0}], 10);\n", + s:"(\\d{1,3})" // day of the year (0 - 364 (365 in leap years)) + }, + W: { + g:0, + c:null, + s:"(?:\\d{2})" // ISO-8601 week number (with leading zero) + }, + F: function() { + return { + g:1, + c:"m = parseInt(Date.getMonthNumber(results[{0}]), 10);\n", // get localised month number + s:"(" + Date.monthNames.join("|") + ")" + } + }, + M: function() { + for (var a = [], i = 0; i < 12; a.push(Date.getShortMonthName(i)), ++i); // get localised short month names + return Ext.applyIf({ + s:"(" + a.join("|") + ")" + }, $f("F")); + }, + m: { + g:1, + c:"m = parseInt(results[{0}], 10) - 1;\n", + s:"(\\d{2})" // month number with leading zeros (01 - 12) + }, + n: { + g:1, + c:"m = parseInt(results[{0}], 10) - 1;\n", + s:"(\\d{1,2})" // month number without leading zeros (1 - 12) + }, + t: { + g:0, + c:null, + s:"(?:\\d{2})" // no. of days in the month (28 - 31) + }, + L: { + g:0, + c:null, + s:"(?:1|0)" + }, + o: function() { + return $f("Y"); + }, + Y: { + g:1, + c:"y = parseInt(results[{0}], 10);\n", + s:"(\\d{4})" // 4-digit year + }, + y: { + g:1, + c:"var ty = parseInt(results[{0}], 10);\n" + + "y = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n", // 2-digit year + s:"(\\d{1,2})" + }, + a: { + g:1, + c:"if (results[{0}] == 'am') {\n" + + "if (!h || h == 12) { h = 0; }\n" + + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}", + s:"(am|pm)" + }, + A: { + g:1, + c:"if (results[{0}] == 'AM') {\n" + + "if (!h || h == 12) { h = 0; }\n" + + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}", + s:"(AM|PM)" + }, + g: function() { + return $f("G"); + }, + G: { + g:1, + c:"h = parseInt(results[{0}], 10);\n", + s:"(\\d{1,2})" // 24-hr format of an hour without leading zeroes (0 - 23) + }, + h: function() { + return $f("H"); + }, + H: { + g:1, + c:"h = parseInt(results[{0}], 10);\n", + s:"(\\d{2})" // 24-hr format of an hour with leading zeroes (00 - 23) + }, + i: { + g:1, + c:"i = parseInt(results[{0}], 10);\n", + s:"(\\d{2})" // minutes with leading zeros (00 - 59) + }, + s: { + g:1, + c:"s = parseInt(results[{0}], 10);\n", + s:"(\\d{2})" // seconds with leading zeros (00 - 59) + }, + u: { + g:1, + c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n", + s:"(\\d+)" // decimal fraction of a second (minimum = 1 digit, maximum = unlimited) + }, + O: { + g:1, + c:[ + "o = results[{0}];", + "var sn = o.substring(0,1),", // get + / - sign + "hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),", // get hours (performs minutes-to-hour conversion also, just in case) + "mn = o.substring(3,5) % 60;", // get minutes + "o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + String.leftPad(hr, 2, '0') + String.leftPad(mn, 2, '0')) : null;\n" // -12hrs <= GMT offset <= 14hrs + ].join("\n"), + s: "([+\-]\\d{4})" // GMT offset in hrs and mins + }, + P: { + g:1, + c:[ + "o = results[{0}];", + "var sn = o.substring(0,1),", // get + / - sign + "hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),", // get hours (performs minutes-to-hour conversion also, just in case) + "mn = o.substring(4,6) % 60;", // get minutes + "o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + String.leftPad(hr, 2, '0') + String.leftPad(mn, 2, '0')) : null;\n" // -12hrs <= GMT offset <= 14hrs + ].join("\n"), + s: "([+\-]\\d{2}:\\d{2})" // GMT offset in hrs and mins (with colon separator) + }, + T: { + g:0, + c:null, + s:"[A-Z]{1,4}" // timezone abbrev. may be between 1 - 4 chars + }, + Z: { + g:1, + c:"zz = results[{0}] * 1;\n" // -43200 <= UTC offset <= 50400 + + "zz = (-43200 <= zz && zz <= 50400)? zz : null;\n", + s:"([+\-]?\\d{1,5})" // leading '+' sign is optional for UTC offset + }, + c: function() { + var calc = [], + arr = [ + $f("Y", 1), // year + $f("m", 2), // month + $f("d", 3), // day + $f("h", 4), // hour + $f("i", 5), // minute + $f("s", 6), // second + {c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"}, // decimal fraction of a second (minimum = 1 digit, maximum = unlimited) + {c:[ // allow either "Z" (i.e. UTC) or "-0530" or "+08:00" (i.e. UTC offset) timezone delimiters. assumes local timezone if no timezone is specified + "if(results[8]) {", // timezone specified + "if(results[8] == 'Z'){", + "zz = 0;", // UTC + "}else if (results[8].indexOf(':') > -1){", + $f("P", 8).c, // timezone offset with colon separator + "}else{", + $f("O", 8).c, // timezone offset without colon separator + "}", + "}" + ].join('\n')} + ]; + + for (var i = 0, l = arr.length; i < l; ++i) { + calc.push(arr[i].c); + } + + return { + g:1, + c:calc.join(""), + s:[ + arr[0].s, // year (required) + "(?:", "-", arr[1].s, // month (optional) + "(?:", "-", arr[2].s, // day (optional) + "(?:", + "(?:T| )?", // time delimiter -- either a "T" or a single blank space + arr[3].s, ":", arr[4].s, // hour AND minute, delimited by a single colon (optional). MUST be preceded by either a "T" or a single blank space + "(?::", arr[5].s, ")?", // seconds (optional) + "(?:(?:\\.|,)(\\d+))?", // decimal fraction of a second (e.g. ",12345" or ".98765") (optional) + "(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?", // "Z" (UTC) or "-0530" (UTC offset without colon delimiter) or "+08:00" (UTC offset with colon delimiter) (optional) + ")?", + ")?", + ")?" + ].join("") + } + }, + U: { + g:1, + c:"u = parseInt(results[{0}], 10);\n", + s:"(-?\\d+)" // leading minus sign indicates seconds before UNIX epoch + } + } +}); + +}()); + +Ext.apply(Date.prototype, { + // private + dateFormat : function(format) { + if (Date.formatFunctions[format] == null) { + Date.createFormat(format); + } + return Date.formatFunctions[format].call(this); + }, + + /** + * Get the timezone abbreviation of the current date (equivalent to the format specifier 'T'). + * + * Note: The date string returned by the javascript Date object's toString() method varies + * between browsers (e.g. FF vs IE) and system region settings (e.g. IE in Asia vs IE in America). + * For a given date string e.g. "Thu Oct 25 2007 22:55:35 GMT+0800 (Malay Peninsula Standard Time)", + * getTimezone() first tries to get the timezone abbreviation from between a pair of parentheses + * (which may or may not be present), failing which it proceeds to get the timezone abbreviation + * from the GMT offset portion of the date string. + * @return {String} The abbreviated timezone name (e.g. 'CST', 'PDT', 'EDT', 'MPST' ...). + */ + getTimezone : function() { + // the following list shows the differences between date strings from different browsers on a WinXP SP2 machine from an Asian locale: + // + // Opera : "Thu, 25 Oct 2007 22:53:45 GMT+0800" -- shortest (weirdest) date string of the lot + // Safari : "Thu Oct 25 2007 22:55:35 GMT+0800 (Malay Peninsula Standard Time)" -- value in parentheses always gives the correct timezone (same as FF) + // FF : "Thu Oct 25 2007 22:55:35 GMT+0800 (Malay Peninsula Standard Time)" -- value in parentheses always gives the correct timezone + // IE : "Thu Oct 25 22:54:35 UTC+0800 2007" -- (Asian system setting) look for 3-4 letter timezone abbrev + // IE : "Thu Oct 25 17:06:37 PDT 2007" -- (American system setting) look for 3-4 letter timezone abbrev + // + // this crazy regex attempts to guess the correct timezone abbreviation despite these differences. + // step 1: (?:\((.*)\) -- find timezone in parentheses + // step 2: ([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?) -- if nothing was found in step 1, find timezone from timezone offset portion of date string + // step 3: remove all non uppercase characters found in step 1 and 2 + return this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/, "$1$2").replace(/[^A-Z]/g, ""); + }, + + /** + * Get the offset from GMT of the current date (equivalent to the format specifier 'O'). + * @param {Boolean} colon (optional) true to separate the hours and minutes with a colon (defaults to false). + * @return {String} The 4-character offset string prefixed with + or - (e.g. '-0600'). + */ + getGMTOffset : function(colon) { + return (this.getTimezoneOffset() > 0 ? "-" : "+") + + String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset()) / 60), 2, "0") + + (colon ? ":" : "") + + String.leftPad(Math.abs(this.getTimezoneOffset() % 60), 2, "0"); + }, + + /** + * Get the numeric day number of the year, adjusted for leap year. + * @return {Number} 0 to 364 (365 in leap years). + */ + getDayOfYear: function() { + var num = 0, + d = this.clone(), + m = this.getMonth(), + i; + + for (i = 0, d.setDate(1), d.setMonth(0); i < m; d.setMonth(++i)) { + num += d.getDaysInMonth(); + } + return num + this.getDate() - 1; + }, + + /** + * Get the numeric ISO-8601 week number of the year. + * (equivalent to the format specifier 'W', but without a leading zero). + * @return {Number} 1 to 53 + */ + getWeekOfYear : function() { + // adapted from http://www.merlyn.demon.co.uk/weekcalc.htm + var ms1d = 864e5, // milliseconds in a day + ms7d = 7 * ms1d; // milliseconds in a week + + return function() { // return a closure so constants get calculated only once + var DC3 = Date.UTC(this.getFullYear(), this.getMonth(), this.getDate() + 3) / ms1d, // an Absolute Day Number + AWN = Math.floor(DC3 / 7), // an Absolute Week Number + Wyr = new Date(AWN * ms7d).getUTCFullYear(); + + return AWN - Math.floor(Date.UTC(Wyr, 0, 7) / ms7d) + 1; + } + }(), + + /** + * Checks if the current date falls within a leap year. + * @return {Boolean} True if the current date falls within a leap year, false otherwise. + */ + isLeapYear : function() { + var year = this.getFullYear(); + return !!((year & 3) == 0 && (year % 100 || (year % 400 == 0 && year))); + }, + + /** + * Get the first day of the current month, adjusted for leap year. The returned value + * is the numeric day index within the week (0-6) which can be used in conjunction with + * the {@link #monthNames} array to retrieve the textual day name. + * Example: + *
    
    +var dt = new Date('1/10/2007');
    +document.write(Date.dayNames[dt.getFirstDayOfMonth()]); //output: 'Monday'
    +
    + * @return {Number} The day number (0-6). + */ + getFirstDayOfMonth : function() { + var day = (this.getDay() - (this.getDate() - 1)) % 7; + return (day < 0) ? (day + 7) : day; + }, + + /** + * Get the last day of the current month, adjusted for leap year. The returned value + * is the numeric day index within the week (0-6) which can be used in conjunction with + * the {@link #monthNames} array to retrieve the textual day name. + * Example: + *
    
    +var dt = new Date('1/10/2007');
    +document.write(Date.dayNames[dt.getLastDayOfMonth()]); //output: 'Wednesday'
    +
    + * @return {Number} The day number (0-6). + */ + getLastDayOfMonth : function() { + return this.getLastDateOfMonth().getDay(); + }, + + + /** + * Get the date of the first day of the month in which this date resides. + * @return {Date} + */ + getFirstDateOfMonth : function() { + return new Date(this.getFullYear(), this.getMonth(), 1); + }, + + /** + * Get the date of the last day of the month in which this date resides. + * @return {Date} + */ + getLastDateOfMonth : function() { + return new Date(this.getFullYear(), this.getMonth(), this.getDaysInMonth()); + }, + + /** + * Get the number of days in the current month, adjusted for leap year. + * @return {Number} The number of days in the month. + */ + getDaysInMonth: function() { + var daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + + return function() { // return a closure for efficiency + var m = this.getMonth(); + + return m == 1 && this.isLeapYear() ? 29 : daysInMonth[m]; + } + }(), + + /** + * Get the English ordinal suffix of the current day (equivalent to the format specifier 'S'). + * @return {String} 'st, 'nd', 'rd' or 'th'. + */ + getSuffix : function() { + switch (this.getDate()) { + case 1: + case 21: + case 31: + return "st"; + case 2: + case 22: + return "nd"; + case 3: + case 23: + return "rd"; + default: + return "th"; + } + }, + + /** + * Creates and returns a new Date instance with the exact same date value as the called instance. + * Dates are copied and passed by reference, so if a copied date variable is modified later, the original + * variable will also be changed. When the intention is to create a new variable that will not + * modify the original instance, you should create a clone. + * + * Example of correctly cloning a date: + *
    
    +//wrong way:
    +var orig = new Date('10/1/2006');
    +var copy = orig;
    +copy.setDate(5);
    +document.write(orig);  //returns 'Thu Oct 05 2006'!
    +
    +//correct way:
    +var orig = new Date('10/1/2006');
    +var copy = orig.clone();
    +copy.setDate(5);
    +document.write(orig);  //returns 'Thu Oct 01 2006'
    +
    + * @return {Date} The new Date instance. + */ + clone : function() { + return new Date(this.getTime()); + }, + + /** + * Checks if the current date is affected by Daylight Saving Time (DST). + * @return {Boolean} True if the current date is affected by DST. + */ + isDST : function() { + // adapted from http://extjs.com/forum/showthread.php?p=247172#post247172 + // courtesy of @geoffrey.mcgill + return new Date(this.getFullYear(), 0, 1).getTimezoneOffset() != this.getTimezoneOffset(); + }, + + /** + * Attempts to clear all time information from this Date by setting the time to midnight of the same day, + * automatically adjusting for Daylight Saving Time (DST) where applicable. + * (note: DST timezone information for the browser's host operating system is assumed to be up-to-date) + * @param {Boolean} clone true to create a clone of this date, clear the time and return it (defaults to false). + * @return {Date} this or the clone. + */ + clearTime : function(clone) { + if (clone) { + return this.clone().clearTime(); + } + + // get current date before clearing time + var d = this.getDate(); + + // clear time + this.setHours(0); + this.setMinutes(0); + this.setSeconds(0); + this.setMilliseconds(0); + + if (this.getDate() != d) { // account for DST (i.e. day of month changed when setting hour = 0) + // note: DST adjustments are assumed to occur in multiples of 1 hour (this is almost always the case) + // refer to http://www.timeanddate.com/time/aboutdst.html for the (rare) exceptions to this rule + + // increment hour until cloned date == current date + for (var hr = 1, c = this.add(Date.HOUR, hr); c.getDate() != d; hr++, c = this.add(Date.HOUR, hr)); + + this.setDate(d); + this.setHours(c.getHours()); + } + + return this; + }, + + /** + * Provides a convenient method for performing basic date arithmetic. This method + * does not modify the Date instance being called - it creates and returns + * a new Date instance containing the resulting date value. + * + * Examples: + *
    
    +// Basic usage:
    +var dt = new Date('10/29/2006').add(Date.DAY, 5);
    +document.write(dt); //returns 'Fri Nov 03 2006 00:00:00'
    +
    +// Negative values will be subtracted:
    +var dt2 = new Date('10/1/2006').add(Date.DAY, -5);
    +document.write(dt2); //returns 'Tue Sep 26 2006 00:00:00'
    +
    +// You can even chain several calls together in one line:
    +var dt3 = new Date('10/1/2006').add(Date.DAY, 5).add(Date.HOUR, 8).add(Date.MINUTE, -30);
    +document.write(dt3); //returns 'Fri Oct 06 2006 07:30:00'
    +
    + * + * @param {String} interval A valid date interval enum value. + * @param {Number} value The amount to add to the current date. + * @return {Date} The new Date instance. + */ + add : function(interval, value) { + var d = this.clone(); + if (!interval || value === 0) return d; + + switch(interval.toLowerCase()) { + case Date.MILLI: + d.setMilliseconds(this.getMilliseconds() + value); + break; + case Date.SECOND: + d.setSeconds(this.getSeconds() + value); + break; + case Date.MINUTE: + d.setMinutes(this.getMinutes() + value); + break; + case Date.HOUR: + d.setHours(this.getHours() + value); + break; + case Date.DAY: + d.setDate(this.getDate() + value); + break; + case Date.MONTH: + var day = this.getDate(); + if (day > 28) { + day = Math.min(day, this.getFirstDateOfMonth().add('mo', value).getLastDateOfMonth().getDate()); + } + d.setDate(day); + d.setMonth(this.getMonth() + value); + break; + case Date.YEAR: + d.setFullYear(this.getFullYear() + value); + break; + } + return d; + }, + + /** + * Checks if this date falls on or between the given start and end dates. + * @param {Date} start Start date + * @param {Date} end End date + * @return {Boolean} true if this date falls on or between the given start and end dates. + */ + between : function(start, end) { + var t = this.getTime(); + return start.getTime() <= t && t <= end.getTime(); + } +}); + + +/** + * Formats a date given the supplied format string. + * @param {String} format The format string. + * @return {String} The formatted date. + * @method format + */ +Date.prototype.format = Date.prototype.dateFormat; + + +// private +if (Ext.isSafari && (navigator.userAgent.match(/WebKit\/(\d+)/)[1] || NaN) < 420) { + Ext.apply(Date.prototype, { + _xMonth : Date.prototype.setMonth, + _xDate : Date.prototype.setDate, + + // Bug in Safari 1.3, 2.0 (WebKit build < 420) + // Date.setMonth does not work consistently if iMonth is not 0-11 + setMonth : function(num) { + if (num <= -1) { + var n = Math.ceil(-num), + back_year = Math.ceil(n / 12), + month = (n % 12) ? 12 - n % 12 : 0; + + this.setFullYear(this.getFullYear() - back_year); + + return this._xMonth(month); + } else { + return this._xMonth(num); + } + }, + + // Bug in setDate() method (resolved in WebKit build 419.3, so to be safe we target Webkit builds < 420) + // The parameter for Date.setDate() is converted to a signed byte integer in Safari + // http://brianary.blogspot.com/2006/03/safari-date-bug.html + setDate : function(d) { + // use setTime() to workaround setDate() bug + // subtract current day of month in milliseconds, then add desired day of month in milliseconds + return this.setTime(this.getTime() - (this.getDate() - d) * 864e5); + } + }); +} + + + +/* Some basic Date tests... (requires Firebug) + +Date.parseDate('', 'c'); // call Date.parseDate() once to force computation of regex string so we can console.log() it +console.log('Insane Regex for "c" format: %o', Date.parseCodes.c.s); // view the insane regex for the "c" format specifier + +// standard tests +console.group('Standard Date.parseDate() Tests'); + console.log('Date.parseDate("2009-01-05T11:38:56", "c") = %o', Date.parseDate("2009-01-05T11:38:56", "c")); // assumes browser's timezone setting + console.log('Date.parseDate("2009-02-04T12:37:55.001000", "c") = %o', Date.parseDate("2009-02-04T12:37:55.001000", "c")); // assumes browser's timezone setting + console.log('Date.parseDate("2009-03-03T13:36:54,101000Z", "c") = %o', Date.parseDate("2009-03-03T13:36:54,101000Z", "c")); // UTC + console.log('Date.parseDate("2009-04-02T14:35:53.901000-0530", "c") = %o', Date.parseDate("2009-04-02T14:35:53.901000-0530", "c")); // GMT-0530 + console.log('Date.parseDate("2009-05-01T15:34:52,9876000+08:00", "c") = %o', Date.parseDate("2009-05-01T15:34:52,987600+08:00", "c")); // GMT+08:00 +console.groupEnd(); + +// ISO-8601 format as specified in http://www.w3.org/TR/NOTE-datetime +// -- accepts ALL 6 levels of date-time granularity +console.group('ISO-8601 Granularity Test (see http://www.w3.org/TR/NOTE-datetime)'); + console.log('Date.parseDate("1997", "c") = %o', Date.parseDate("1997", "c")); // YYYY (e.g. 1997) + console.log('Date.parseDate("1997-07", "c") = %o', Date.parseDate("1997-07", "c")); // YYYY-MM (e.g. 1997-07) + console.log('Date.parseDate("1997-07-16", "c") = %o', Date.parseDate("1997-07-16", "c")); // YYYY-MM-DD (e.g. 1997-07-16) + console.log('Date.parseDate("1997-07-16T19:20+01:00", "c") = %o', Date.parseDate("1997-07-16T19:20+01:00", "c")); // YYYY-MM-DDThh:mmTZD (e.g. 1997-07-16T19:20+01:00) + console.log('Date.parseDate("1997-07-16T19:20:30+01:00", "c") = %o', Date.parseDate("1997-07-16T19:20:30+01:00", "c")); // YYYY-MM-DDThh:mm:ssTZD (e.g. 1997-07-16T19:20:30+01:00) + console.log('Date.parseDate("1997-07-16T19:20:30.45+01:00", "c") = %o', Date.parseDate("1997-07-16T19:20:30.45+01:00", "c")); // YYYY-MM-DDThh:mm:ss.sTZD (e.g. 1997-07-16T19:20:30.45+01:00) + console.log('Date.parseDate("1997-07-16 19:20:30.45+01:00", "c") = %o', Date.parseDate("1997-07-16 19:20:30.45+01:00", "c")); // YYYY-MM-DD hh:mm:ss.sTZD (e.g. 1997-07-16T19:20:30.45+01:00) + console.log('Date.parseDate("1997-13-16T19:20:30.45+01:00", "c", true)= %o', Date.parseDate("1997-13-16T19:20:30.45+01:00", "c", true)); // strict date parsing with invalid month value +console.groupEnd(); + +//*/ +/** + * @class Ext.util.MixedCollection + * @extends Ext.util.Observable + * A Collection class that maintains both numeric indexes and keys and exposes events. + * @constructor + * @param {Boolean} allowFunctions Specify true if the {@link #addAll} + * function should add function references to the collection. Defaults to + * false. + * @param {Function} keyFn A function that can accept an item of the type(s) stored in this MixedCollection + * and return the key value for that item. This is used when available to look up the key on items that + * were passed without an explicit key parameter to a MixedCollection method. Passing this parameter is + * equivalent to providing an implementation for the {@link #getKey} method. + */ +Ext.util.MixedCollection = function(allowFunctions, keyFn){ + this.items = []; + this.map = {}; + this.keys = []; + this.length = 0; + this.addEvents( + /** + * @event clear + * Fires when the collection is cleared. + */ + 'clear', + /** + * @event add + * Fires when an item is added to the collection. + * @param {Number} index The index at which the item was added. + * @param {Object} o The item added. + * @param {String} key The key associated with the added item. + */ + 'add', + /** + * @event replace + * Fires when an item is replaced in the collection. + * @param {String} key he key associated with the new added. + * @param {Object} old The item being replaced. + * @param {Object} new The new item. + */ + 'replace', + /** + * @event remove + * Fires when an item is removed from the collection. + * @param {Object} o The item being removed. + * @param {String} key (optional) The key associated with the removed item. + */ + 'remove', + 'sort' + ); + this.allowFunctions = allowFunctions === true; + if(keyFn){ + this.getKey = keyFn; + } + Ext.util.MixedCollection.superclass.constructor.call(this); +}; + +Ext.extend(Ext.util.MixedCollection, Ext.util.Observable, { + + /** + * @cfg {Boolean} allowFunctions Specify true if the {@link #addAll} + * function should add function references to the collection. Defaults to + * false. + */ + allowFunctions : false, + + /** + * Adds an item to the collection. Fires the {@link #add} event when complete. + * @param {String} key

    The key to associate with the item, or the new item.

    + *

    If a {@link #getKey} implementation was specified for this MixedCollection, + * or if the key of the stored items is in a property called id, + * the MixedCollection will be able to derive the key for the new item. + * In this case just pass the new item in this parameter.

    + * @param {Object} o The item to add. + * @return {Object} The item added. + */ + add : function(key, o){ + if(arguments.length == 1){ + o = arguments[0]; + key = this.getKey(o); + } + if(typeof key != 'undefined' && key !== null){ + var old = this.map[key]; + if(typeof old != 'undefined'){ + return this.replace(key, o); + } + this.map[key] = o; + } + this.length++; + this.items.push(o); + this.keys.push(key); + this.fireEvent('add', this.length-1, o, key); + return o; + }, + + /** + * MixedCollection has a generic way to fetch keys if you implement getKey. The default implementation + * simply returns item.id but you can provide your own implementation + * to return a different value as in the following examples:
    
    +// normal way
    +var mc = new Ext.util.MixedCollection();
    +mc.add(someEl.dom.id, someEl);
    +mc.add(otherEl.dom.id, otherEl);
    +//and so on
    +
    +// using getKey
    +var mc = new Ext.util.MixedCollection();
    +mc.getKey = function(el){
    +   return el.dom.id;
    +};
    +mc.add(someEl);
    +mc.add(otherEl);
    +
    +// or via the constructor
    +var mc = new Ext.util.MixedCollection(false, function(el){
    +   return el.dom.id;
    +});
    +mc.add(someEl);
    +mc.add(otherEl);
    +     * 
    + * @param {Object} item The item for which to find the key. + * @return {Object} The key for the passed item. + */ + getKey : function(o){ + return o.id; + }, + + /** + * Replaces an item in the collection. Fires the {@link #replace} event when complete. + * @param {String} key

    The key associated with the item to replace, or the replacement item.

    + *

    If you supplied a {@link #getKey} implementation for this MixedCollection, or if the key + * of your stored items is in a property called id, then the MixedCollection + * will be able to derive the key of the replacement item. If you want to replace an item + * with one having the same key value, then just pass the replacement item in this parameter.

    + * @param o {Object} o (optional) If the first parameter passed was a key, the item to associate + * with that key. + * @return {Object} The new item. + */ + replace : function(key, o){ + if(arguments.length == 1){ + o = arguments[0]; + key = this.getKey(o); + } + var old = this.map[key]; + if(typeof key == 'undefined' || key === null || typeof old == 'undefined'){ + return this.add(key, o); + } + var index = this.indexOfKey(key); + this.items[index] = o; + this.map[key] = o; + this.fireEvent('replace', key, old, o); + return o; + }, + + /** + * Adds all elements of an Array or an Object to the collection. + * @param {Object/Array} objs An Object containing properties which will be added + * to the collection, or an Array of values, each of which are added to the collection. + * Functions references will be added to the collection if {@link #allowFunctions} + * has been set to true. + */ + addAll : function(objs){ + if(arguments.length > 1 || Ext.isArray(objs)){ + var args = arguments.length > 1 ? arguments : objs; + for(var i = 0, len = args.length; i < len; i++){ + this.add(args[i]); + } + }else{ + for(var key in objs){ + if(this.allowFunctions || typeof objs[key] != 'function'){ + this.add(key, objs[key]); + } + } + } + }, + + /** + * Executes the specified function once for every item in the collection, passing the following arguments: + *
      + *
    • item : Mixed

      The collection item

    • + *
    • index : Number

      The item's index

    • + *
    • length : Number

      The total number of items in the collection

    • + *
    + * The function should return a boolean value. Returning false from the function will stop the iteration. + * @param {Function} fn The function to execute for each item. + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the current item in the iteration. + */ + each : function(fn, scope){ + var items = [].concat(this.items); // each safe for removal + for(var i = 0, len = items.length; i < len; i++){ + if(fn.call(scope || items[i], items[i], i, len) === false){ + break; + } + } + }, + + /** + * Executes the specified function once for every key in the collection, passing each + * key, and its associated item as the first two parameters. + * @param {Function} fn The function to execute for each item. + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + eachKey : function(fn, scope){ + for(var i = 0, len = this.keys.length; i < len; i++){ + fn.call(scope || window, this.keys[i], this.items[i], i, len); + } + }, + + /** + * Returns the first item in the collection which elicits a true return value from the + * passed selection function. + * @param {Function} fn The selection function to execute for each item. + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the browser window. + * @return {Object} The first item in the collection which returned true from the selection function. + */ + find : function(fn, scope){ + for(var i = 0, len = this.items.length; i < len; i++){ + if(fn.call(scope || window, this.items[i], this.keys[i])){ + return this.items[i]; + } + } + return null; + }, + + /** + * Inserts an item at the specified index in the collection. Fires the {@link #add} event when complete. + * @param {Number} index The index to insert the item at. + * @param {String} key The key to associate with the new item, or the item itself. + * @param {Object} o (optional) If the second parameter was a key, the new item. + * @return {Object} The item inserted. + */ + insert : function(index, key, o){ + if(arguments.length == 2){ + o = arguments[1]; + key = this.getKey(o); + } + if(this.containsKey(key)){ + this.suspendEvents(); + this.removeKey(key); + this.resumeEvents(); + } + if(index >= this.length){ + return this.add(key, o); + } + this.length++; + this.items.splice(index, 0, o); + if(typeof key != 'undefined' && key !== null){ + this.map[key] = o; + } + this.keys.splice(index, 0, key); + this.fireEvent('add', index, o, key); + return o; + }, + + /** + * Remove an item from the collection. + * @param {Object} o The item to remove. + * @return {Object} The item removed or false if no item was removed. + */ + remove : function(o){ + return this.removeAt(this.indexOf(o)); + }, + + /** + * Remove an item from a specified index in the collection. Fires the {@link #remove} event when complete. + * @param {Number} index The index within the collection of the item to remove. + * @return {Object} The item removed or false if no item was removed. + */ + removeAt : function(index){ + if(index < this.length && index >= 0){ + this.length--; + var o = this.items[index]; + this.items.splice(index, 1); + var key = this.keys[index]; + if(typeof key != 'undefined'){ + delete this.map[key]; + } + this.keys.splice(index, 1); + this.fireEvent('remove', o, key); + return o; + } + return false; + }, + + /** + * Removed an item associated with the passed key fom the collection. + * @param {String} key The key of the item to remove. + * @return {Object} The item removed or false if no item was removed. + */ + removeKey : function(key){ + return this.removeAt(this.indexOfKey(key)); + }, + + /** + * Returns the number of items in the collection. + * @return {Number} the number of items in the collection. + */ + getCount : function(){ + return this.length; + }, + + /** + * Returns index within the collection of the passed Object. + * @param {Object} o The item to find the index of. + * @return {Number} index of the item. Returns -1 if not found. + */ + indexOf : function(o){ + return this.items.indexOf(o); + }, + + /** + * Returns index within the collection of the passed key. + * @param {String} key The key to find the index of. + * @return {Number} index of the key. + */ + indexOfKey : function(key){ + return this.keys.indexOf(key); + }, + + /** + * Returns the item associated with the passed key OR index. + * Key has priority over index. This is the equivalent + * of calling {@link #key} first, then if nothing matched calling {@link #itemAt}. + * @param {String/Number} key The key or index of the item. + * @return {Object} If the item is found, returns the item. If the item was not found, returns undefined. + * If an item was found, but is a Class, returns null. + */ + item : function(key){ + var mk = this.map[key], + item = mk !== undefined ? mk : (typeof key == 'number') ? this.items[key] : undefined; + return typeof item != 'function' || this.allowFunctions ? item : null; // for prototype! + }, + + /** + * Returns the item at the specified index. + * @param {Number} index The index of the item. + * @return {Object} The item at the specified index. + */ + itemAt : function(index){ + return this.items[index]; + }, + + /** + * Returns the item associated with the passed key. + * @param {String/Number} key The key of the item. + * @return {Object} The item associated with the passed key. + */ + key : function(key){ + return this.map[key]; + }, + + /** + * Returns true if the collection contains the passed Object as an item. + * @param {Object} o The Object to look for in the collection. + * @return {Boolean} True if the collection contains the Object as an item. + */ + contains : function(o){ + return this.indexOf(o) != -1; + }, + + /** + * Returns true if the collection contains the passed Object as a key. + * @param {String} key The key to look for in the collection. + * @return {Boolean} True if the collection contains the Object as a key. + */ + containsKey : function(key){ + return typeof this.map[key] != 'undefined'; + }, + + /** + * Removes all items from the collection. Fires the {@link #clear} event when complete. + */ + clear : function(){ + this.length = 0; + this.items = []; + this.keys = []; + this.map = {}; + this.fireEvent('clear'); + }, + + /** + * Returns the first item in the collection. + * @return {Object} the first item in the collection.. + */ + first : function(){ + return this.items[0]; + }, + + /** + * Returns the last item in the collection. + * @return {Object} the last item in the collection.. + */ + last : function(){ + return this.items[this.length-1]; + }, + + /** + * @private + * Performs the actual sorting based on a direction and a sorting function. Internally, + * this creates a temporary array of all items in the MixedCollection, sorts it and then writes + * the sorted array data back into this.items and this.keys + * @param {String} property Property to sort by ('key', 'value', or 'index') + * @param {String} dir (optional) Direction to sort 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param {Function} fn (optional) Comparison function that defines the sort order. + * Defaults to sorting by numeric value. + */ + _sort : function(property, dir, fn){ + var i, len, + dsc = String(dir).toUpperCase() == 'DESC' ? -1 : 1, + + //this is a temporary array used to apply the sorting function + c = [], + keys = this.keys, + items = this.items; + + //default to a simple sorter function if one is not provided + fn = fn || function(a, b) { + return a - b; + }; + + //copy all the items into a temporary array, which we will sort + for(i = 0, len = items.length; i < len; i++){ + c[c.length] = { + key : keys[i], + value: items[i], + index: i + }; + } + + //sort the temporary array + c.sort(function(a, b){ + var v = fn(a[property], b[property]) * dsc; + if(v === 0){ + v = (a.index < b.index ? -1 : 1); + } + return v; + }); + + //copy the temporary array back into the main this.items and this.keys objects + for(i = 0, len = c.length; i < len; i++){ + items[i] = c[i].value; + keys[i] = c[i].key; + } + + this.fireEvent('sort', this); + }, + + /** + * Sorts this collection by item value with the passed comparison function. + * @param {String} direction (optional) 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param {Function} fn (optional) Comparison function that defines the sort order. + * Defaults to sorting by numeric value. + */ + sort : function(dir, fn){ + this._sort('value', dir, fn); + }, + + /** + * Reorders each of the items based on a mapping from old index to new index. Internally this + * just translates into a sort. The 'sort' event is fired whenever reordering has occured. + * @param {Object} mapping Mapping from old item index to new item index + */ + reorder: function(mapping) { + this.suspendEvents(); + + var items = this.items, + index = 0, + length = items.length, + order = [], + remaining = []; + + //object of {oldPosition: newPosition} reversed to {newPosition: oldPosition} + for (oldIndex in mapping) { + order[mapping[oldIndex]] = items[oldIndex]; + } + + for (index = 0; index < length; index++) { + if (mapping[index] == undefined) { + remaining.push(items[index]); + } + } + + for (index = 0; index < length; index++) { + if (order[index] == undefined) { + order[index] = remaining.shift(); + } + } + + this.clear(); + this.addAll(order); + + this.resumeEvents(); + this.fireEvent('sort', this); + }, + + /** + * Sorts this collection by keys. + * @param {String} direction (optional) 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param {Function} fn (optional) Comparison function that defines the sort order. + * Defaults to sorting by case insensitive string. + */ + keySort : function(dir, fn){ + this._sort('key', dir, fn || function(a, b){ + var v1 = String(a).toUpperCase(), v2 = String(b).toUpperCase(); + return v1 > v2 ? 1 : (v1 < v2 ? -1 : 0); + }); + }, + + /** + * Returns a range of items in this collection + * @param {Number} startIndex (optional) The starting index. Defaults to 0. + * @param {Number} endIndex (optional) The ending index. Defaults to the last item. + * @return {Array} An array of items + */ + getRange : function(start, end){ + var items = this.items; + if(items.length < 1){ + return []; + } + start = start || 0; + end = Math.min(typeof end == 'undefined' ? this.length-1 : end, this.length-1); + var i, r = []; + if(start <= end){ + for(i = start; i <= end; i++) { + r[r.length] = items[i]; + } + }else{ + for(i = start; i >= end; i--) { + r[r.length] = items[i]; + } + } + return r; + }, + + /** + * Filter the objects in this collection by a specific property. + * Returns a new collection that has been filtered. + * @param {String} property A property on your objects + * @param {String/RegExp} value Either string that the property values + * should start with or a RegExp to test against the property + * @param {Boolean} anyMatch (optional) True to match any part of the string, not just the beginning + * @param {Boolean} caseSensitive (optional) True for case sensitive comparison (defaults to False). + * @return {MixedCollection} The new filtered collection + */ + filter : function(property, value, anyMatch, caseSensitive){ + if(Ext.isEmpty(value, false)){ + return this.clone(); + } + value = this.createValueMatcher(value, anyMatch, caseSensitive); + return this.filterBy(function(o){ + return o && value.test(o[property]); + }); + }, + + /** + * Filter by a function. Returns a new collection that has been filtered. + * The passed function will be called with each object in the collection. + * If the function returns true, the value is included otherwise it is filtered. + * @param {Function} fn The function to be called, it will receive the args o (the object), k (the key) + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @return {MixedCollection} The new filtered collection + */ + filterBy : function(fn, scope){ + var r = new Ext.util.MixedCollection(); + r.getKey = this.getKey; + var k = this.keys, it = this.items; + for(var i = 0, len = it.length; i < len; i++){ + if(fn.call(scope||this, it[i], k[i])){ + r.add(k[i], it[i]); + } + } + return r; + }, + + /** + * Finds the index of the first matching object in this collection by a specific property/value. + * @param {String} property The name of a property on your objects. + * @param {String/RegExp} value A string that the property values + * should start with or a RegExp to test against the property. + * @param {Number} start (optional) The index to start searching at (defaults to 0). + * @param {Boolean} anyMatch (optional) True to match any part of the string, not just the beginning. + * @param {Boolean} caseSensitive (optional) True for case sensitive comparison. + * @return {Number} The matched index or -1 + */ + findIndex : function(property, value, start, anyMatch, caseSensitive){ + if(Ext.isEmpty(value, false)){ + return -1; + } + value = this.createValueMatcher(value, anyMatch, caseSensitive); + return this.findIndexBy(function(o){ + return o && value.test(o[property]); + }, null, start); + }, + + /** + * Find the index of the first matching object in this collection by a function. + * If the function returns true it is considered a match. + * @param {Function} fn The function to be called, it will receive the args o (the object), k (the key). + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @param {Number} start (optional) The index to start searching at (defaults to 0). + * @return {Number} The matched index or -1 + */ + findIndexBy : function(fn, scope, start){ + var k = this.keys, it = this.items; + for(var i = (start||0), len = it.length; i < len; i++){ + if(fn.call(scope||this, it[i], k[i])){ + return i; + } + } + return -1; + }, + + /** + * Returns a regular expression based on the given value and matching options. This is used internally for finding and filtering, + * and by Ext.data.Store#filter + * @private + * @param {String} value The value to create the regex for. This is escaped using Ext.escapeRe + * @param {Boolean} anyMatch True to allow any match - no regex start/end line anchors will be added. Defaults to false + * @param {Boolean} caseSensitive True to make the regex case sensitive (adds 'i' switch to regex). Defaults to false. + * @param {Boolean} exactMatch True to force exact match (^ and $ characters added to the regex). Defaults to false. Ignored if anyMatch is true. + */ + createValueMatcher : function(value, anyMatch, caseSensitive, exactMatch) { + if (!value.exec) { // not a regex + var er = Ext.escapeRe; + value = String(value); + + if (anyMatch === true) { + value = er(value); + } else { + value = '^' + er(value); + if (exactMatch === true) { + value += '$'; + } + } + value = new RegExp(value, caseSensitive ? '' : 'i'); + } + return value; + }, + + /** + * Creates a shallow copy of this collection + * @return {MixedCollection} + */ + clone : function(){ + var r = new Ext.util.MixedCollection(); + var k = this.keys, it = this.items; + for(var i = 0, len = it.length; i < len; i++){ + r.add(k[i], it[i]); + } + r.getKey = this.getKey; + return r; + } +}); +/** + * This method calls {@link #item item()}. + * Returns the item associated with the passed key OR index. Key has priority + * over index. This is the equivalent of calling {@link #key} first, then if + * nothing matched calling {@link #itemAt}. + * @param {String/Number} key The key or index of the item. + * @return {Object} If the item is found, returns the item. If the item was + * not found, returns undefined. If an item was found, but is a Class, + * returns null. + */ +Ext.util.MixedCollection.prototype.get = Ext.util.MixedCollection.prototype.item; +/** + * @class Ext.util.JSON + * Modified version of Douglas Crockford"s json.js that doesn"t + * mess with the Object prototype + * http://www.json.org/js.html + * @singleton + */ +Ext.util.JSON = new (function(){ + var useHasOwn = !!{}.hasOwnProperty, + isNative = function() { + var useNative = null; + + return function() { + if (useNative === null) { + useNative = Ext.USE_NATIVE_JSON && window.JSON && JSON.toString() == '[object JSON]'; + } + + return useNative; + }; + }(), + pad = function(n) { + return n < 10 ? "0" + n : n; + }, + doDecode = function(json){ + return eval("(" + json + ')'); + }, + doEncode = function(o){ + if(!Ext.isDefined(o) || o === null){ + return "null"; + }else if(Ext.isArray(o)){ + return encodeArray(o); + }else if(Ext.isDate(o)){ + return Ext.util.JSON.encodeDate(o); + }else if(Ext.isString(o)){ + return encodeString(o); + }else if(typeof o == "number"){ + //don't use isNumber here, since finite checks happen inside isNumber + return isFinite(o) ? String(o) : "null"; + }else if(Ext.isBoolean(o)){ + return String(o); + }else { + var a = ["{"], b, i, v; + for (i in o) { + // don't encode DOM objects + if(!o.getElementsByTagName){ + if(!useHasOwn || o.hasOwnProperty(i)) { + v = o[i]; + switch (typeof v) { + case "undefined": + case "function": + case "unknown": + break; + default: + if(b){ + a.push(','); + } + a.push(doEncode(i), ":", + v === null ? "null" : doEncode(v)); + b = true; + } + } + } + } + a.push("}"); + return a.join(""); + } + }, + m = { + "\b": '\\b', + "\t": '\\t', + "\n": '\\n', + "\f": '\\f', + "\r": '\\r', + '"' : '\\"', + "\\": '\\\\' + }, + encodeString = function(s){ + if (/["\\\x00-\x1f]/.test(s)) { + return '"' + s.replace(/([\x00-\x1f\\"])/g, function(a, b) { + var c = m[b]; + if(c){ + return c; + } + c = b.charCodeAt(); + return "\\u00" + + Math.floor(c / 16).toString(16) + + (c % 16).toString(16); + }) + '"'; + } + return '"' + s + '"'; + }, + encodeArray = function(o){ + var a = ["["], b, i, l = o.length, v; + for (i = 0; i < l; i += 1) { + v = o[i]; + switch (typeof v) { + case "undefined": + case "function": + case "unknown": + break; + default: + if (b) { + a.push(','); + } + a.push(v === null ? "null" : Ext.util.JSON.encode(v)); + b = true; + } + } + a.push("]"); + return a.join(""); + }; + + /** + *

    Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression. + * The returned value includes enclosing double quotation marks.

    + *

    The default return format is "yyyy-mm-ddThh:mm:ss".

    + *

    To override this:

    
    +Ext.util.JSON.encodeDate = function(d) {
    +    return d.format('"Y-m-d"');
    +};
    +
    + * @param {Date} d The Date to encode + * @return {String} The string literal to use in a JSON string. + */ + this.encodeDate = function(o){ + return '"' + o.getFullYear() + "-" + + pad(o.getMonth() + 1) + "-" + + pad(o.getDate()) + "T" + + pad(o.getHours()) + ":" + + pad(o.getMinutes()) + ":" + + pad(o.getSeconds()) + '"'; + }; + + /** + * Encodes an Object, Array or other value + * @param {Mixed} o The variable to encode + * @return {String} The JSON string + */ + this.encode = function() { + var ec; + return function(o) { + if (!ec) { + // setup encoding function on first access + ec = isNative() ? JSON.stringify : doEncode; + } + return ec(o); + }; + }(); + + + /** + * Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError unless the safe option is set. + * @param {String} json The JSON string + * @return {Object} The resulting object + */ + this.decode = function() { + var dc; + return function(json) { + if (!dc) { + // setup decoding function on first access + dc = isNative() ? JSON.parse : doDecode; + } + return dc(json); + }; + }(); + +})(); +/** + * Shorthand for {@link Ext.util.JSON#encode} + * @param {Mixed} o The variable to encode + * @return {String} The JSON string + * @member Ext + * @method encode + */ +Ext.encode = Ext.util.JSON.encode; +/** + * Shorthand for {@link Ext.util.JSON#decode} + * @param {String} json The JSON string + * @param {Boolean} safe (optional) Whether to return null or throw an exception if the JSON is invalid. + * @return {Object} The resulting object + * @member Ext + * @method decode + */ +Ext.decode = Ext.util.JSON.decode; +/** + * @class Ext.util.Format + * Reusable data formatting functions + * @singleton + */ +Ext.util.Format = function(){ + var trimRe = /^\s+|\s+$/g, + stripTagsRE = /<\/?[^>]+>/gi, + stripScriptsRe = /(?:)((\n|\r|.)*?)(?:<\/script>)/ig, + nl2brRe = /\r?\n/g; + + return { + /** + * Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length + * @param {String} value The string to truncate + * @param {Number} length The maximum length to allow before truncating + * @param {Boolean} word True to try to find a common work break + * @return {String} The converted text + */ + ellipsis : function(value, len, word){ + if(value && value.length > len){ + if(word){ + var vs = value.substr(0, len - 2), + index = Math.max(vs.lastIndexOf(' '), vs.lastIndexOf('.'), vs.lastIndexOf('!'), vs.lastIndexOf('?')); + if(index == -1 || index < (len - 15)){ + return value.substr(0, len - 3) + "..."; + }else{ + return vs.substr(0, index) + "..."; + } + } else{ + return value.substr(0, len - 3) + "..."; + } + } + return value; + }, + + /** + * Checks a reference and converts it to empty string if it is undefined + * @param {Mixed} value Reference to check + * @return {Mixed} Empty string if converted, otherwise the original value + */ + undef : function(value){ + return value !== undefined ? value : ""; + }, + + /** + * Checks a reference and converts it to the default value if it's empty + * @param {Mixed} value Reference to check + * @param {String} defaultValue The value to insert of it's undefined (defaults to "") + * @return {String} + */ + defaultValue : function(value, defaultValue){ + return value !== undefined && value !== '' ? value : defaultValue; + }, + + /** + * Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages. + * @param {String} value The string to encode + * @return {String} The encoded text + */ + htmlEncode : function(value){ + return !value ? value : String(value).replace(/&/g, "&").replace(/>/g, ">").replace(/, and ') from their HTML character equivalents. + * @param {String} value The string to decode + * @return {String} The decoded text + */ + htmlDecode : function(value){ + return !value ? value : String(value).replace(/>/g, ">").replace(/</g, "<").replace(/"/g, '"').replace(/&/g, "&"); + }, + + /** + * Trims any whitespace from either side of a string + * @param {String} value The text to trim + * @return {String} The trimmed text + */ + trim : function(value){ + return String(value).replace(trimRe, ""); + }, + + /** + * Returns a substring from within an original string + * @param {String} value The original text + * @param {Number} start The start index of the substring + * @param {Number} length The length of the substring + * @return {String} The substring + */ + substr : function(value, start, length){ + return String(value).substr(start, length); + }, + + /** + * Converts a string to all lower case letters + * @param {String} value The text to convert + * @return {String} The converted text + */ + lowercase : function(value){ + return String(value).toLowerCase(); + }, + + /** + * Converts a string to all upper case letters + * @param {String} value The text to convert + * @return {String} The converted text + */ + uppercase : function(value){ + return String(value).toUpperCase(); + }, + + /** + * Converts the first character only of a string to upper case + * @param {String} value The text to convert + * @return {String} The converted text + */ + capitalize : function(value){ + return !value ? value : value.charAt(0).toUpperCase() + value.substr(1).toLowerCase(); + }, + + // private + call : function(value, fn){ + if(arguments.length > 2){ + var args = Array.prototype.slice.call(arguments, 2); + args.unshift(value); + return eval(fn).apply(window, args); + }else{ + return eval(fn).call(window, value); + } + }, + + /** + * Format a number as US currency + * @param {Number/String} value The numeric value to format + * @return {String} The formatted currency string + */ + usMoney : function(v){ + v = (Math.round((v-0)*100))/100; + v = (v == Math.floor(v)) ? v + ".00" : ((v*10 == Math.floor(v*10)) ? v + "0" : v); + v = String(v); + var ps = v.split('.'), + whole = ps[0], + sub = ps[1] ? '.'+ ps[1] : '.00', + r = /(\d+)(\d{3})/; + while (r.test(whole)) { + whole = whole.replace(r, '$1' + ',' + '$2'); + } + v = whole + sub; + if(v.charAt(0) == '-'){ + return '-$' + v.substr(1); + } + return "$" + v; + }, + + /** + * Parse a value into a formatted date using the specified format pattern. + * @param {String/Date} value The value to format (Strings must conform to the format expected by the javascript Date object's parse() method) + * @param {String} format (optional) Any valid date format string (defaults to 'm/d/Y') + * @return {String} The formatted date string + */ + date : function(v, format){ + if(!v){ + return ""; + } + if(!Ext.isDate(v)){ + v = new Date(Date.parse(v)); + } + return v.dateFormat(format || "m/d/Y"); + }, + + /** + * Returns a date rendering function that can be reused to apply a date format multiple times efficiently + * @param {String} format Any valid date format string + * @return {Function} The date formatting function + */ + dateRenderer : function(format){ + return function(v){ + return Ext.util.Format.date(v, format); + }; + }, + + /** + * Strips all HTML tags + * @param {Mixed} value The text from which to strip tags + * @return {String} The stripped text + */ + stripTags : function(v){ + return !v ? v : String(v).replace(stripTagsRE, ""); + }, + + /** + * Strips all script tags + * @param {Mixed} value The text from which to strip script tags + * @return {String} The stripped text + */ + stripScripts : function(v){ + return !v ? v : String(v).replace(stripScriptsRe, ""); + }, + + /** + * Simple format for a file size (xxx bytes, xxx KB, xxx MB) + * @param {Number/String} size The numeric value to format + * @return {String} The formatted file size + */ + fileSize : function(size){ + if(size < 1024) { + return size + " bytes"; + } else if(size < 1048576) { + return (Math.round(((size*10) / 1024))/10) + " KB"; + } else { + return (Math.round(((size*10) / 1048576))/10) + " MB"; + } + }, + + /** + * It does simple math for use in a template, for example:
    
    +         * var tpl = new Ext.Template('{value} * 10 = {value:math("* 10")}');
    +         * 
    + * @return {Function} A function that operates on the passed value. + */ + math : function(){ + var fns = {}; + return function(v, a){ + if(!fns[a]){ + fns[a] = new Function('v', 'return v ' + a + ';'); + } + return fns[a](v); + } + }(), + + /** + * Rounds the passed number to the required decimal precision. + * @param {Number/String} value The numeric value to round. + * @param {Number} precision The number of decimal places to which to round the first parameter's value. + * @return {Number} The rounded value. + */ + round : function(value, precision) { + var result = Number(value); + if (typeof precision == 'number') { + precision = Math.pow(10, precision); + result = Math.round(value * precision) / precision; + } + return result; + }, + + /** + * Formats the number according to the format string. + *
    examples (123456.789): + *
    + * 0 - (123456) show only digits, no precision
    + * 0.00 - (123456.78) show only digits, 2 precision
    + * 0.0000 - (123456.7890) show only digits, 4 precision
    + * 0,000 - (123,456) show comma and digits, no precision
    + * 0,000.00 - (123,456.78) show comma and digits, 2 precision
    + * 0,0.00 - (123,456.78) shortcut method, show comma and digits, 2 precision
    + * To reverse the grouping (,) and decimal (.) for international numbers, add /i to the end. + * For example: 0.000,00/i + *
    + * @param {Number} v The number to format. + * @param {String} format The way you would like to format this text. + * @return {String} The formatted number. + */ + number: function(v, format) { + if(!format){ + return v; + } + v = Ext.num(v, NaN); + if (isNaN(v)){ + return ''; + } + var comma = ',', + dec = '.', + i18n = false, + neg = v < 0; + + v = Math.abs(v); + if(format.substr(format.length - 2) == '/i'){ + format = format.substr(0, format.length - 2); + i18n = true; + comma = '.'; + dec = ','; + } + + var hasComma = format.indexOf(comma) != -1, + psplit = (i18n ? format.replace(/[^\d\,]/g, '') : format.replace(/[^\d\.]/g, '')).split(dec); + + if(1 < psplit.length){ + v = v.toFixed(psplit[1].length); + }else if(2 < psplit.length){ + throw ('NumberFormatException: invalid format, formats should have no more than 1 period: ' + format); + }else{ + v = v.toFixed(0); + } + + var fnum = v.toString(); + + psplit = fnum.split('.'); + + if (hasComma) { + var cnum = psplit[0], parr = [], j = cnum.length, m = Math.floor(j / 3), n = cnum.length % 3 || 3; + + for (var i = 0; i < j; i += n) { + if (i != 0) { + n = 3; + } + parr[parr.length] = cnum.substr(i, n); + m -= 1; + } + fnum = parr.join(comma); + if (psplit[1]) { + fnum += dec + psplit[1]; + } + } else { + if (psplit[1]) { + fnum = psplit[0] + dec + psplit[1]; + } + } + + return (neg ? '-' : '') + format.replace(/[\d,?\.?]+/, fnum); + }, + + /** + * Returns a number rendering function that can be reused to apply a number format multiple times efficiently + * @param {String} format Any valid number format string for {@link #number} + * @return {Function} The number formatting function + */ + numberRenderer : function(format){ + return function(v){ + return Ext.util.Format.number(v, format); + }; + }, + + /** + * Selectively do a plural form of a word based on a numeric value. For example, in a template, + * {commentCount:plural("Comment")} would result in "1 Comment" if commentCount was 1 or would be "x Comments" + * if the value is 0 or greater than 1. + * @param {Number} value The value to compare against + * @param {String} singular The singular form of the word + * @param {String} plural (optional) The plural form of the word (defaults to the singular with an "s") + */ + plural : function(v, s, p){ + return v +' ' + (v == 1 ? s : (p ? p : s+'s')); + }, + + /** + * Converts newline characters to the HTML tag <br/> + * @param {String} The string value to format. + * @return {String} The string with embedded <br/> tags in place of newlines. + */ + nl2br : function(v){ + return Ext.isEmpty(v) ? '' : v.replace(nl2brRe, '
    '); + } + } +}(); +/** + * @class Ext.XTemplate + * @extends Ext.Template + *

    A template class that supports advanced functionality like:

      + *
    • Autofilling arrays using templates and sub-templates
    • + *
    • Conditional processing with basic comparison operators
    • + *
    • Basic math function support
    • + *
    • Execute arbitrary inline code with special built-in template variables
    • + *
    • Custom member functions
    • + *
    • Many special tags and built-in operators that aren't defined as part of + * the API, but are supported in the templates that can be created
    • + *

    + *

    XTemplate provides the templating mechanism built into:

      + *
    • {@link Ext.DataView}
    • + *
    • {@link Ext.ListView}
    • + *
    • {@link Ext.form.ComboBox}
    • + *
    • {@link Ext.grid.TemplateColumn}
    • + *
    • {@link Ext.grid.GroupingView}
    • + *
    • {@link Ext.menu.Item}
    • + *
    • {@link Ext.layout.MenuLayout}
    • + *
    • {@link Ext.ColorPalette}
    • + *

    + * + *

    For example usage {@link #XTemplate see the constructor}.

    + * + * @constructor + * The {@link Ext.Template#Template Ext.Template constructor} describes + * the acceptable parameters to pass to the constructor. The following + * examples demonstrate all of the supported features.

    + * + *
      + * + *
    • Sample Data + *
      + *

      This is the data object used for reference in each code example:

      + *
      
      +var data = {
      +    name: 'Jack Slocum',
      +    title: 'Lead Developer',
      +    company: 'Ext JS, LLC',
      +    email: 'jack@extjs.com',
      +    address: '4 Red Bulls Drive',
      +    city: 'Cleveland',
      +    state: 'Ohio',
      +    zip: '44102',
      +    drinks: ['Red Bull', 'Coffee', 'Water'],
      +    kids: [{
      +        name: 'Sara Grace',
      +        age:3
      +    },{
      +        name: 'Zachary',
      +        age:2
      +    },{
      +        name: 'John James',
      +        age:0
      +    }]
      +};
      + * 
      + *
      + *
    • + * + * + *
    • Auto filling of arrays + *
      + *

      The tpl tag and the for operator are used + * to process the provided data object: + *

        + *
      • If the value specified in for is an array, it will auto-fill, + * repeating the template block inside the tpl tag for each item in the + * array.
      • + *
      • If for="." is specified, the data object provided is examined.
      • + *
      • While processing an array, the special variable {#} + * will provide the current array index + 1 (starts at 1, not 0).
      • + *
      + *

      + *
      
      +<tpl for=".">...</tpl>       // loop through array at root node
      +<tpl for="foo">...</tpl>     // loop through array at foo node
      +<tpl for="foo.bar">...</tpl> // loop through array at foo.bar node
      + * 
      + * Using the sample data above: + *
      
      +var tpl = new Ext.XTemplate(
      +    '<p>Kids: ',
      +    '<tpl for=".">',       // process the data.kids node
      +        '<p>{#}. {name}</p>',  // use current array index to autonumber
      +    '</tpl></p>'
      +);
      +tpl.overwrite(panel.body, data.kids); // pass the kids property of the data object
      + * 
      + *

      An example illustrating how the for property can be leveraged + * to access specified members of the provided data object to populate the template:

      + *
      
      +var tpl = new Ext.XTemplate(
      +    '<p>Name: {name}</p>',
      +    '<p>Title: {title}</p>',
      +    '<p>Company: {company}</p>',
      +    '<p>Kids: ',
      +    '<tpl for="kids">',     // interrogate the kids property within the data
      +        '<p>{name}</p>',
      +    '</tpl></p>'
      +);
      +tpl.overwrite(panel.body, data);  // pass the root node of the data object
      + * 
      + *

      Flat arrays that contain values (and not objects) can be auto-rendered + * using the special {.} variable inside a loop. This variable + * will represent the value of the array at the current index:

      + *
      
      +var tpl = new Ext.XTemplate(
      +    '<p>{name}\'s favorite beverages:</p>',
      +    '<tpl for="drinks">',
      +       '<div> - {.}</div>',
      +    '</tpl>'
      +);
      +tpl.overwrite(panel.body, data);
      + * 
      + *

      When processing a sub-template, for example while looping through a child array, + * you can access the parent object's members via the parent object:

      + *
      
      +var tpl = new Ext.XTemplate(
      +    '<p>Name: {name}</p>',
      +    '<p>Kids: ',
      +    '<tpl for="kids">',
      +        '<tpl if="age > 1">',
      +            '<p>{name}</p>',
      +            '<p>Dad: {parent.name}</p>',
      +        '</tpl>',
      +    '</tpl></p>'
      +);
      +tpl.overwrite(panel.body, data);
      + * 
      + *
      + *
    • + * + * + *
    • Conditional processing with basic comparison operators + *
      + *

      The tpl tag and the if operator are used + * to provide conditional checks for deciding whether or not to render specific + * parts of the template. Notes:

        + *
      • Double quotes must be encoded if used within the conditional
      • + *
      • There is no else operator — if needed, two opposite + * if statements should be used.
      • + *
      + *
      
      +<tpl if="age > 1 && age < 10">Child</tpl>
      +<tpl if="age >= 10 && age < 18">Teenager</tpl>
      +<tpl if="this.isGirl(name)">...</tpl>
      +<tpl if="id==\'download\'">...</tpl>
      +<tpl if="needsIcon"><img src="{icon}" class="{iconCls}"/></tpl>
      +// no good:
      +<tpl if="name == "Jack"">Hello</tpl>
      +// encode " if it is part of the condition, e.g.
      +<tpl if="name == &quot;Jack&quot;">Hello</tpl>
      + * 
      + * Using the sample data above: + *
      
      +var tpl = new Ext.XTemplate(
      +    '<p>Name: {name}</p>',
      +    '<p>Kids: ',
      +    '<tpl for="kids">',
      +        '<tpl if="age > 1">',
      +            '<p>{name}</p>',
      +        '</tpl>',
      +    '</tpl></p>'
      +);
      +tpl.overwrite(panel.body, data);
      + * 
      + *
      + *
    • + * + * + *
    • Basic math support + *
      + *

      The following basic math operators may be applied directly on numeric + * data values:

      + * + - * /
      + * 
      + * For example: + *
      
      +var tpl = new Ext.XTemplate(
      +    '<p>Name: {name}</p>',
      +    '<p>Kids: ',
      +    '<tpl for="kids">',
      +        '<tpl if="age &gt; 1">',  // <-- Note that the > is encoded
      +            '<p>{#}: {name}</p>',  // <-- Auto-number each item
      +            '<p>In 5 Years: {age+5}</p>',  // <-- Basic math
      +            '<p>Dad: {parent.name}</p>',
      +        '</tpl>',
      +    '</tpl></p>'
      +);
      +tpl.overwrite(panel.body, data);
      +
      + *
      + *
    • + * + * + *
    • Execute arbitrary inline code with special built-in template variables + *
      + *

      Anything between {[ ... ]} is considered code to be executed + * in the scope of the template. There are some special variables available in that code: + *

        + *
      • values: The values in the current scope. If you are using + * scope changing sub-templates, you can change what values is.
      • + *
      • parent: The scope (values) of the ancestor template.
      • + *
      • xindex: If you are in a looping template, the index of the + * loop you are in (1-based).
      • + *
      • xcount: If you are in a looping template, the total length + * of the array you are looping.
      • + *
      • fm: An alias for Ext.util.Format.
      • + *
      + * This example demonstrates basic row striping using an inline code block and the + * xindex variable:

      + *
      
      +var tpl = new Ext.XTemplate(
      +    '<p>Name: {name}</p>',
      +    '<p>Company: {[values.company.toUpperCase() + ", " + values.title]}</p>',
      +    '<p>Kids: ',
      +    '<tpl for="kids">',
      +       '<div class="{[xindex % 2 === 0 ? "even" : "odd"]}">',
      +        '{name}',
      +        '</div>',
      +    '</tpl></p>'
      +);
      +tpl.overwrite(panel.body, data);
      + * 
      + *
      + *
    • + * + *
    • Template member functions + *
      + *

      One or more member functions can be specified in a configuration + * object passed into the XTemplate constructor for more complex processing:

      + *
      
      +var tpl = new Ext.XTemplate(
      +    '<p>Name: {name}</p>',
      +    '<p>Kids: ',
      +    '<tpl for="kids">',
      +        '<tpl if="this.isGirl(name)">',
      +            '<p>Girl: {name} - {age}</p>',
      +        '</tpl>',
      +        // use opposite if statement to simulate 'else' processing:
      +        '<tpl if="this.isGirl(name) == false">',
      +            '<p>Boy: {name} - {age}</p>',
      +        '</tpl>',
      +        '<tpl if="this.isBaby(age)">',
      +            '<p>{name} is a baby!</p>',
      +        '</tpl>',
      +    '</tpl></p>',
      +    {
      +        // XTemplate configuration:
      +        compiled: true,
      +        disableFormats: true,
      +        // member functions:
      +        isGirl: function(name){
      +            return name == 'Sara Grace';
      +        },
      +        isBaby: function(age){
      +            return age < 1;
      +        }
      +    }
      +);
      +tpl.overwrite(panel.body, data);
      + * 
      + *
      + *
    • + * + *
    + * + * @param {Mixed} config + */ +Ext.XTemplate = function(){ + Ext.XTemplate.superclass.constructor.apply(this, arguments); + + var me = this, + s = me.html, + re = /]*>((?:(?=([^<]+))\2|<(?!tpl\b[^>]*>))*?)<\/tpl>/, + nameRe = /^]*?for="(.*?)"/, + ifRe = /^]*?if="(.*?)"/, + execRe = /^]*?exec="(.*?)"/, + m, + id = 0, + tpls = [], + VALUES = 'values', + PARENT = 'parent', + XINDEX = 'xindex', + XCOUNT = 'xcount', + RETURN = 'return ', + WITHVALUES = 'with(values){ '; + + s = ['', s, ''].join(''); + + while((m = s.match(re))){ + var m2 = m[0].match(nameRe), + m3 = m[0].match(ifRe), + m4 = m[0].match(execRe), + exp = null, + fn = null, + exec = null, + name = m2 && m2[1] ? m2[1] : ''; + + if (m3) { + exp = m3 && m3[1] ? m3[1] : null; + if(exp){ + fn = new Function(VALUES, PARENT, XINDEX, XCOUNT, WITHVALUES + RETURN +(Ext.util.Format.htmlDecode(exp))+'; }'); + } + } + if (m4) { + exp = m4 && m4[1] ? m4[1] : null; + if(exp){ + exec = new Function(VALUES, PARENT, XINDEX, XCOUNT, WITHVALUES +(Ext.util.Format.htmlDecode(exp))+'; }'); + } + } + if(name){ + switch(name){ + case '.': name = new Function(VALUES, PARENT, WITHVALUES + RETURN + VALUES + '; }'); break; + case '..': name = new Function(VALUES, PARENT, WITHVALUES + RETURN + PARENT + '; }'); break; + default: name = new Function(VALUES, PARENT, WITHVALUES + RETURN + name + '; }'); + } + } + tpls.push({ + id: id, + target: name, + exec: exec, + test: fn, + body: m[1]||'' + }); + s = s.replace(m[0], '{xtpl'+ id + '}'); + ++id; + } + for(var i = tpls.length-1; i >= 0; --i){ + me.compileTpl(tpls[i]); + } + me.master = tpls[tpls.length-1]; + me.tpls = tpls; +}; +Ext.extend(Ext.XTemplate, Ext.Template, { + // private + re : /\{([\w-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g, + // private + codeRe : /\{\[((?:\\\]|.|\n)*?)\]\}/g, + + // private + applySubTemplate : function(id, values, parent, xindex, xcount){ + var me = this, + len, + t = me.tpls[id], + vs, + buf = []; + if ((t.test && !t.test.call(me, values, parent, xindex, xcount)) || + (t.exec && t.exec.call(me, values, parent, xindex, xcount))) { + return ''; + } + vs = t.target ? t.target.call(me, values, parent) : values; + len = vs.length; + parent = t.target ? values : parent; + if(t.target && Ext.isArray(vs)){ + for(var i = 0, len = vs.length; i < len; i++){ + buf[buf.length] = t.compiled.call(me, vs[i], parent, i+1, len); + } + return buf.join(''); + } + return t.compiled.call(me, vs, parent, xindex, xcount); + }, + + // private + compileTpl : function(tpl){ + var fm = Ext.util.Format, + useF = this.disableFormats !== true, + sep = Ext.isGecko ? "+" : ",", + body; + + function fn(m, name, format, args, math){ + if(name.substr(0, 4) == 'xtpl'){ + return "'"+ sep +'this.applySubTemplate('+name.substr(4)+', values, parent, xindex, xcount)'+sep+"'"; + } + var v; + if(name === '.'){ + v = 'values'; + }else if(name === '#'){ + v = 'xindex'; + }else if(name.indexOf('.') != -1){ + v = name; + }else{ + v = "values['" + name + "']"; + } + if(math){ + v = '(' + v + math + ')'; + } + if (format && useF) { + args = args ? ',' + args : ""; + if(format.substr(0, 5) != "this."){ + format = "fm." + format + '('; + }else{ + format = 'this.call("'+ format.substr(5) + '", '; + args = ", values"; + } + } else { + args= ''; format = "("+v+" === undefined ? '' : "; + } + return "'"+ sep + format + v + args + ")"+sep+"'"; + } + + function codeFn(m, code){ + // Single quotes get escaped when the template is compiled, however we want to undo this when running code. + return "'" + sep + '(' + code.replace(/\\'/g, "'") + ')' + sep + "'"; + } + + // branched to use + in gecko and [].join() in others + if(Ext.isGecko){ + body = "tpl.compiled = function(values, parent, xindex, xcount){ return '" + + tpl.body.replace(/(\r\n|\n)/g, '\\n').replace(/'/g, "\\'").replace(this.re, fn).replace(this.codeRe, codeFn) + + "';};"; + }else{ + body = ["tpl.compiled = function(values, parent, xindex, xcount){ return ['"]; + body.push(tpl.body.replace(/(\r\n|\n)/g, '\\n').replace(/'/g, "\\'").replace(this.re, fn).replace(this.codeRe, codeFn)); + body.push("'].join('');};"); + body = body.join(''); + } + eval(body); + return this; + }, + + /** + * Returns an HTML fragment of this template with the specified values applied. + * @param {Object} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) + * @return {String} The HTML fragment + */ + applyTemplate : function(values){ + return this.master.compiled.call(this, values, {}, 1, 1); + }, + + /** + * Compile the template to a function for optimized performance. Recommended if the template will be used frequently. + * @return {Function} The compiled function + */ + compile : function(){return this;} + + /** + * @property re + * @hide + */ + /** + * @property disableFormats + * @hide + */ + /** + * @method set + * @hide + */ + +}); +/** + * Alias for {@link #applyTemplate} + * Returns an HTML fragment of this template with the specified values applied. + * @param {Object/Array} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) + * @return {String} The HTML fragment + * @member Ext.XTemplate + * @method apply + */ +Ext.XTemplate.prototype.apply = Ext.XTemplate.prototype.applyTemplate; + +/** + * Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. + * @param {String/HTMLElement} el A DOM element or its id + * @return {Ext.Template} The created template + * @static + */ +Ext.XTemplate.from = function(el){ + el = Ext.getDom(el); + return new Ext.XTemplate(el.value || el.innerHTML); +}; +/** + * @class Ext.util.CSS + * Utility class for manipulating CSS rules + * @singleton + */ +Ext.util.CSS = function(){ + var rules = null; + var doc = document; + + var camelRe = /(-[a-z])/gi; + var camelFn = function(m, a){ return a.charAt(1).toUpperCase(); }; + + return { + /** + * Creates a stylesheet from a text blob of rules. + * These rules will be wrapped in a STYLE tag and appended to the HEAD of the document. + * @param {String} cssText The text containing the css rules + * @param {String} id An id to add to the stylesheet for later removal + * @return {StyleSheet} + */ + createStyleSheet : function(cssText, id){ + var ss; + var head = doc.getElementsByTagName("head")[0]; + var rules = doc.createElement("style"); + rules.setAttribute("type", "text/css"); + if(id){ + rules.setAttribute("id", id); + } + if(Ext.isIE){ + head.appendChild(rules); + ss = rules.styleSheet; + ss.cssText = cssText; + }else{ + try{ + rules.appendChild(doc.createTextNode(cssText)); + }catch(e){ + rules.cssText = cssText; + } + head.appendChild(rules); + ss = rules.styleSheet ? rules.styleSheet : (rules.sheet || doc.styleSheets[doc.styleSheets.length-1]); + } + this.cacheStyleSheet(ss); + return ss; + }, + + /** + * Removes a style or link tag by id + * @param {String} id The id of the tag + */ + removeStyleSheet : function(id){ + var existing = doc.getElementById(id); + if(existing){ + existing.parentNode.removeChild(existing); + } + }, + + /** + * Dynamically swaps an existing stylesheet reference for a new one + * @param {String} id The id of an existing link tag to remove + * @param {String} url The href of the new stylesheet to include + */ + swapStyleSheet : function(id, url){ + this.removeStyleSheet(id); + var ss = doc.createElement("link"); + ss.setAttribute("rel", "stylesheet"); + ss.setAttribute("type", "text/css"); + ss.setAttribute("id", id); + ss.setAttribute("href", url); + doc.getElementsByTagName("head")[0].appendChild(ss); + }, + + /** + * Refresh the rule cache if you have dynamically added stylesheets + * @return {Object} An object (hash) of rules indexed by selector + */ + refreshCache : function(){ + return this.getRules(true); + }, + + // private + cacheStyleSheet : function(ss){ + if(!rules){ + rules = {}; + } + try{// try catch for cross domain access issue + var ssRules = ss.cssRules || ss.rules; + for(var j = ssRules.length-1; j >= 0; --j){ + rules[ssRules[j].selectorText.toLowerCase()] = ssRules[j]; + } + }catch(e){} + }, + + /** + * Gets all css rules for the document + * @param {Boolean} refreshCache true to refresh the internal cache + * @return {Object} An object (hash) of rules indexed by selector + */ + getRules : function(refreshCache){ + if(rules === null || refreshCache){ + rules = {}; + var ds = doc.styleSheets; + for(var i =0, len = ds.length; i < len; i++){ + try{ + this.cacheStyleSheet(ds[i]); + }catch(e){} + } + } + return rules; + }, + + /** + * Gets an an individual CSS rule by selector(s) + * @param {String/Array} selector The CSS selector or an array of selectors to try. The first selector that is found is returned. + * @param {Boolean} refreshCache true to refresh the internal cache if you have recently updated any rules or added styles dynamically + * @return {CSSRule} The CSS rule or null if one is not found + */ + getRule : function(selector, refreshCache){ + var rs = this.getRules(refreshCache); + if(!Ext.isArray(selector)){ + return rs[selector.toLowerCase()]; + } + for(var i = 0; i < selector.length; i++){ + if(rs[selector[i]]){ + return rs[selector[i].toLowerCase()]; + } + } + return null; + }, + + + /** + * Updates a rule property + * @param {String/Array} selector If it's an array it tries each selector until it finds one. Stops immediately once one is found. + * @param {String} property The css property + * @param {String} value The new value for the property + * @return {Boolean} true If a rule was found and updated + */ + updateRule : function(selector, property, value){ + if(!Ext.isArray(selector)){ + var rule = this.getRule(selector); + if(rule){ + rule.style[property.replace(camelRe, camelFn)] = value; + return true; + } + }else{ + for(var i = 0; i < selector.length; i++){ + if(this.updateRule(selector[i], property, value)){ + return true; + } + } + } + return false; + } + }; +}();/** + @class Ext.util.ClickRepeater + @extends Ext.util.Observable + + A wrapper class which can be applied to any element. Fires a "click" event while the + mouse is pressed. The interval between firings may be specified in the config but + defaults to 20 milliseconds. + + Optionally, a CSS class may be applied to the element during the time it is pressed. + + @cfg {Mixed} el The element to act as a button. + @cfg {Number} delay The initial delay before the repeating event begins firing. + Similar to an autorepeat key delay. + @cfg {Number} interval The interval between firings of the "click" event. Default 20 ms. + @cfg {String} pressClass A CSS class name to be applied to the element while pressed. + @cfg {Boolean} accelerate True if autorepeating should start slowly and accelerate. + "interval" and "delay" are ignored. + @cfg {Boolean} preventDefault True to prevent the default click event + @cfg {Boolean} stopDefault True to stop the default click event + + @history + 2007-02-02 jvs Original code contributed by Nige "Animal" White + 2007-02-02 jvs Renamed to ClickRepeater + 2007-02-03 jvs Modifications for FF Mac and Safari + + @constructor + @param {Mixed} el The element to listen on + @param {Object} config + */ +Ext.util.ClickRepeater = function(el, config) +{ + this.el = Ext.get(el); + this.el.unselectable(); + + Ext.apply(this, config); + + this.addEvents( + /** + * @event mousedown + * Fires when the mouse button is depressed. + * @param {Ext.util.ClickRepeater} this + */ + "mousedown", + /** + * @event click + * Fires on a specified interval during the time the element is pressed. + * @param {Ext.util.ClickRepeater} this + */ + "click", + /** + * @event mouseup + * Fires when the mouse key is released. + * @param {Ext.util.ClickRepeater} this + */ + "mouseup" + ); + + if(!this.disabled){ + this.disabled = true; + this.enable(); + } + + // allow inline handler + if(this.handler){ + this.on("click", this.handler, this.scope || this); + } + + Ext.util.ClickRepeater.superclass.constructor.call(this); +}; + +Ext.extend(Ext.util.ClickRepeater, Ext.util.Observable, { + interval : 20, + delay: 250, + preventDefault : true, + stopDefault : false, + timer : 0, + + /** + * Enables the repeater and allows events to fire. + */ + enable: function(){ + if(this.disabled){ + this.el.on('mousedown', this.handleMouseDown, this); + if (Ext.isIE){ + this.el.on('dblclick', this.handleDblClick, this); + } + if(this.preventDefault || this.stopDefault){ + this.el.on('click', this.eventOptions, this); + } + } + this.disabled = false; + }, + + /** + * Disables the repeater and stops events from firing. + */ + disable: function(/* private */ force){ + if(force || !this.disabled){ + clearTimeout(this.timer); + if(this.pressClass){ + this.el.removeClass(this.pressClass); + } + Ext.getDoc().un('mouseup', this.handleMouseUp, this); + this.el.removeAllListeners(); + } + this.disabled = true; + }, + + /** + * Convenience function for setting disabled/enabled by boolean. + * @param {Boolean} disabled + */ + setDisabled: function(disabled){ + this[disabled ? 'disable' : 'enable'](); + }, + + eventOptions: function(e){ + if(this.preventDefault){ + e.preventDefault(); + } + if(this.stopDefault){ + e.stopEvent(); + } + }, + + // private + destroy : function() { + this.disable(true); + Ext.destroy(this.el); + this.purgeListeners(); + }, + + handleDblClick : function(){ + clearTimeout(this.timer); + this.el.blur(); + + this.fireEvent("mousedown", this); + this.fireEvent("click", this); + }, + + // private + handleMouseDown : function(){ + clearTimeout(this.timer); + this.el.blur(); + if(this.pressClass){ + this.el.addClass(this.pressClass); + } + this.mousedownTime = new Date(); + + Ext.getDoc().on("mouseup", this.handleMouseUp, this); + this.el.on("mouseout", this.handleMouseOut, this); + + this.fireEvent("mousedown", this); + this.fireEvent("click", this); + + // Do not honor delay or interval if acceleration wanted. + if (this.accelerate) { + this.delay = 400; + } + this.timer = this.click.defer(this.delay || this.interval, this); + }, + + // private + click : function(){ + this.fireEvent("click", this); + this.timer = this.click.defer(this.accelerate ? + this.easeOutExpo(this.mousedownTime.getElapsed(), + 400, + -390, + 12000) : + this.interval, this); + }, + + easeOutExpo : function (t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + + // private + handleMouseOut : function(){ + clearTimeout(this.timer); + if(this.pressClass){ + this.el.removeClass(this.pressClass); + } + this.el.on("mouseover", this.handleMouseReturn, this); + }, + + // private + handleMouseReturn : function(){ + this.el.un("mouseover", this.handleMouseReturn, this); + if(this.pressClass){ + this.el.addClass(this.pressClass); + } + this.click(); + }, + + // private + handleMouseUp : function(){ + clearTimeout(this.timer); + this.el.un("mouseover", this.handleMouseReturn, this); + this.el.un("mouseout", this.handleMouseOut, this); + Ext.getDoc().un("mouseup", this.handleMouseUp, this); + this.el.removeClass(this.pressClass); + this.fireEvent("mouseup", this); + } +});/** + * @class Ext.KeyNav + *

    Provides a convenient wrapper for normalized keyboard navigation. KeyNav allows you to bind + * navigation keys to function calls that will get called when the keys are pressed, providing an easy + * way to implement custom navigation schemes for any UI component.

    + *

    The following are all of the possible keys that can be implemented: enter, left, right, up, down, tab, esc, + * pageUp, pageDown, del, home, end. Usage:

    +
    
    +var nav = new Ext.KeyNav("my-element", {
    +    "left" : function(e){
    +        this.moveLeft(e.ctrlKey);
    +    },
    +    "right" : function(e){
    +        this.moveRight(e.ctrlKey);
    +    },
    +    "enter" : function(e){
    +        this.save();
    +    },
    +    scope : this
    +});
    +
    + * @constructor + * @param {Mixed} el The element to bind to + * @param {Object} config The config + */ +Ext.KeyNav = function(el, config){ + this.el = Ext.get(el); + Ext.apply(this, config); + if(!this.disabled){ + this.disabled = true; + this.enable(); + } +}; + +Ext.KeyNav.prototype = { + /** + * @cfg {Boolean} disabled + * True to disable this KeyNav instance (defaults to false) + */ + disabled : false, + /** + * @cfg {String} defaultEventAction + * The method to call on the {@link Ext.EventObject} after this KeyNav intercepts a key. Valid values are + * {@link Ext.EventObject#stopEvent}, {@link Ext.EventObject#preventDefault} and + * {@link Ext.EventObject#stopPropagation} (defaults to 'stopEvent') + */ + defaultEventAction: "stopEvent", + /** + * @cfg {Boolean} forceKeyDown + * Handle the keydown event instead of keypress (defaults to false). KeyNav automatically does this for IE since + * IE does not propagate special keys on keypress, but setting this to true will force other browsers to also + * handle keydown instead of keypress. + */ + forceKeyDown : false, + + // private + relay : function(e){ + var k = e.getKey(); + var h = this.keyToHandler[k]; + if(h && this[h]){ + if(this.doRelay(e, this[h], h) !== true){ + e[this.defaultEventAction](); + } + } + }, + + // private + doRelay : function(e, h, hname){ + return h.call(this.scope || this, e); + }, + + // possible handlers + enter : false, + left : false, + right : false, + up : false, + down : false, + tab : false, + esc : false, + pageUp : false, + pageDown : false, + del : false, + home : false, + end : false, + + // quick lookup hash + keyToHandler : { + 37 : "left", + 39 : "right", + 38 : "up", + 40 : "down", + 33 : "pageUp", + 34 : "pageDown", + 46 : "del", + 36 : "home", + 35 : "end", + 13 : "enter", + 27 : "esc", + 9 : "tab" + }, + + stopKeyUp: function(e) { + var k = e.getKey(); + + if (k >= 37 && k <= 40) { + // *** bugfix - safari 2.x fires 2 keyup events on cursor keys + // *** (note: this bugfix sacrifices the "keyup" event originating from keyNav elements in Safari 2) + e.stopEvent(); + } + }, + + /** + * Destroy this KeyNav (this is the same as calling disable). + */ + destroy: function(){ + this.disable(); + }, + + /** + * Enable this KeyNav + */ + enable: function() { + if (this.disabled) { + if (Ext.isSafari2) { + // call stopKeyUp() on "keyup" event + this.el.on('keyup', this.stopKeyUp, this); + } + + this.el.on(this.isKeydown()? 'keydown' : 'keypress', this.relay, this); + this.disabled = false; + } + }, + + /** + * Disable this KeyNav + */ + disable: function() { + if (!this.disabled) { + if (Ext.isSafari2) { + // remove "keyup" event handler + this.el.un('keyup', this.stopKeyUp, this); + } + + this.el.un(this.isKeydown()? 'keydown' : 'keypress', this.relay, this); + this.disabled = true; + } + }, + + /** + * Convenience function for setting disabled/enabled by boolean. + * @param {Boolean} disabled + */ + setDisabled : function(disabled){ + this[disabled ? "disable" : "enable"](); + }, + + // private + isKeydown: function(){ + return this.forceKeyDown || Ext.EventManager.useKeydown; + } +}; +/** + * @class Ext.KeyMap + * Handles mapping keys to actions for an element. One key map can be used for multiple actions. + * The constructor accepts the same config object as defined by {@link #addBinding}. + * If you bind a callback function to a KeyMap, anytime the KeyMap handles an expected key + * combination it will call the function with this signature (if the match is a multi-key + * combination the callback will still be called only once): (String key, Ext.EventObject e) + * A KeyMap can also handle a string representation of keys.
    + * Usage: +
    
    +// map one key by key code
    +var map = new Ext.KeyMap("my-element", {
    +    key: 13, // or Ext.EventObject.ENTER
    +    fn: myHandler,
    +    scope: myObject
    +});
    +
    +// map multiple keys to one action by string
    +var map = new Ext.KeyMap("my-element", {
    +    key: "a\r\n\t",
    +    fn: myHandler,
    +    scope: myObject
    +});
    +
    +// map multiple keys to multiple actions by strings and array of codes
    +var map = new Ext.KeyMap("my-element", [
    +    {
    +        key: [10,13],
    +        fn: function(){ alert("Return was pressed"); }
    +    }, {
    +        key: "abc",
    +        fn: function(){ alert('a, b or c was pressed'); }
    +    }, {
    +        key: "\t",
    +        ctrl:true,
    +        shift:true,
    +        fn: function(){ alert('Control + shift + tab was pressed.'); }
    +    }
    +]);
    +
    + * Note: A KeyMap starts enabled + * @constructor + * @param {Mixed} el The element to bind to + * @param {Object} config The config (see {@link #addBinding}) + * @param {String} eventName (optional) The event to bind to (defaults to "keydown") + */ +Ext.KeyMap = function(el, config, eventName){ + this.el = Ext.get(el); + this.eventName = eventName || "keydown"; + this.bindings = []; + if(config){ + this.addBinding(config); + } + this.enable(); +}; + +Ext.KeyMap.prototype = { + /** + * True to stop the event from bubbling and prevent the default browser action if the + * key was handled by the KeyMap (defaults to false) + * @type Boolean + */ + stopEvent : false, + + /** + * Add a new binding to this KeyMap. The following config object properties are supported: + *
    +Property    Type             Description
    +----------  ---------------  ----------------------------------------------------------------------
    +key         String/Array     A single keycode or an array of keycodes to handle
    +shift       Boolean          True to handle key only when shift is pressed, False to handle the key only when shift is not pressed (defaults to undefined)
    +ctrl        Boolean          True to handle key only when ctrl is pressed, False to handle the key only when ctrl is not pressed (defaults to undefined)
    +alt         Boolean          True to handle key only when alt is pressed, False to handle the key only when alt is not pressed (defaults to undefined)
    +handler     Function         The function to call when KeyMap finds the expected key combination
    +fn          Function         Alias of handler (for backwards-compatibility)
    +scope       Object           The scope of the callback function
    +stopEvent   Boolean          True to stop the event from bubbling and prevent the default browser action if the key was handled by the KeyMap (defaults to false)
    +
    + * + * Usage: + *
    
    +// Create a KeyMap
    +var map = new Ext.KeyMap(document, {
    +    key: Ext.EventObject.ENTER,
    +    fn: handleKey,
    +    scope: this
    +});
    +
    +//Add a new binding to the existing KeyMap later
    +map.addBinding({
    +    key: 'abc',
    +    shift: true,
    +    fn: handleKey,
    +    scope: this
    +});
    +
    + * @param {Object/Array} config A single KeyMap config or an array of configs + */ + addBinding : function(config){ + if(Ext.isArray(config)){ + Ext.each(config, function(c){ + this.addBinding(c); + }, this); + return; + } + var keyCode = config.key, + fn = config.fn || config.handler, + scope = config.scope; + + if (config.stopEvent) { + this.stopEvent = config.stopEvent; + } + + if(typeof keyCode == "string"){ + var ks = []; + var keyString = keyCode.toUpperCase(); + for(var j = 0, len = keyString.length; j < len; j++){ + ks.push(keyString.charCodeAt(j)); + } + keyCode = ks; + } + var keyArray = Ext.isArray(keyCode); + + var handler = function(e){ + if(this.checkModifiers(config, e)){ + var k = e.getKey(); + if(keyArray){ + for(var i = 0, len = keyCode.length; i < len; i++){ + if(keyCode[i] == k){ + if(this.stopEvent){ + e.stopEvent(); + } + fn.call(scope || window, k, e); + return; + } + } + }else{ + if(k == keyCode){ + if(this.stopEvent){ + e.stopEvent(); + } + fn.call(scope || window, k, e); + } + } + } + }; + this.bindings.push(handler); + }, + + // private + checkModifiers: function(config, e){ + var val, key, keys = ['shift', 'ctrl', 'alt']; + for (var i = 0, len = keys.length; i < len; ++i){ + key = keys[i]; + val = config[key]; + if(!(val === undefined || (val === e[key + 'Key']))){ + return false; + } + } + return true; + }, + + /** + * Shorthand for adding a single key listener + * @param {Number/Array/Object} key Either the numeric key code, array of key codes or an object with the + * following options: + * {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param {Function} fn The function to call + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + on : function(key, fn, scope){ + var keyCode, shift, ctrl, alt; + if(typeof key == "object" && !Ext.isArray(key)){ + keyCode = key.key; + shift = key.shift; + ctrl = key.ctrl; + alt = key.alt; + }else{ + keyCode = key; + } + this.addBinding({ + key: keyCode, + shift: shift, + ctrl: ctrl, + alt: alt, + fn: fn, + scope: scope + }); + }, + + // private + handleKeyDown : function(e){ + if(this.enabled){ //just in case + var b = this.bindings; + for(var i = 0, len = b.length; i < len; i++){ + b[i].call(this, e); + } + } + }, + + /** + * Returns true if this KeyMap is enabled + * @return {Boolean} + */ + isEnabled : function(){ + return this.enabled; + }, + + /** + * Enables this KeyMap + */ + enable: function(){ + if(!this.enabled){ + this.el.on(this.eventName, this.handleKeyDown, this); + this.enabled = true; + } + }, + + /** + * Disable this KeyMap + */ + disable: function(){ + if(this.enabled){ + this.el.removeListener(this.eventName, this.handleKeyDown, this); + this.enabled = false; + } + }, + + /** + * Convenience function for setting disabled/enabled by boolean. + * @param {Boolean} disabled + */ + setDisabled : function(disabled){ + this[disabled ? "disable" : "enable"](); + } +};/** + * @class Ext.util.TextMetrics + * Provides precise pixel measurements for blocks of text so that you can determine exactly how high and + * wide, in pixels, a given block of text will be. Note that when measuring text, it should be plain text and + * should not contain any HTML, otherwise it may not be measured correctly. + * @singleton + */ +Ext.util.TextMetrics = function(){ + var shared; + return { + /** + * Measures the size of the specified text + * @param {String/HTMLElement} el The element, dom node or id from which to copy existing CSS styles + * that can affect the size of the rendered text + * @param {String} text The text to measure + * @param {Number} fixedWidth (optional) If the text will be multiline, you have to set a fixed width + * in order to accurately measure the text height + * @return {Object} An object containing the text's size {width: (width), height: (height)} + */ + measure : function(el, text, fixedWidth){ + if(!shared){ + shared = Ext.util.TextMetrics.Instance(el, fixedWidth); + } + shared.bind(el); + shared.setFixedWidth(fixedWidth || 'auto'); + return shared.getSize(text); + }, + + /** + * Return a unique TextMetrics instance that can be bound directly to an element and reused. This reduces + * the overhead of multiple calls to initialize the style properties on each measurement. + * @param {String/HTMLElement} el The element, dom node or id that the instance will be bound to + * @param {Number} fixedWidth (optional) If the text will be multiline, you have to set a fixed width + * in order to accurately measure the text height + * @return {Ext.util.TextMetrics.Instance} instance The new instance + */ + createInstance : function(el, fixedWidth){ + return Ext.util.TextMetrics.Instance(el, fixedWidth); + } + }; +}(); + +Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){ + var ml = new Ext.Element(document.createElement('div')); + document.body.appendChild(ml.dom); + ml.position('absolute'); + ml.setLeftTop(-1000, -1000); + ml.hide(); + + if(fixedWidth){ + ml.setWidth(fixedWidth); + } + + var instance = { + /** + *

    Only available on the instance returned from {@link #createInstance}, not on the singleton.

    + * Returns the size of the specified text based on the internal element's style and width properties + * @param {String} text The text to measure + * @return {Object} An object containing the text's size {width: (width), height: (height)} + */ + getSize : function(text){ + ml.update(text); + var s = ml.getSize(); + ml.update(''); + return s; + }, + + /** + *

    Only available on the instance returned from {@link #createInstance}, not on the singleton.

    + * Binds this TextMetrics instance to an element from which to copy existing CSS styles + * that can affect the size of the rendered text + * @param {String/HTMLElement} el The element, dom node or id + */ + bind : function(el){ + ml.setStyle( + Ext.fly(el).getStyles('font-size','font-style', 'font-weight', 'font-family','line-height', 'text-transform', 'letter-spacing') + ); + }, + + /** + *

    Only available on the instance returned from {@link #createInstance}, not on the singleton.

    + * Sets a fixed width on the internal measurement element. If the text will be multiline, you have + * to set a fixed width in order to accurately measure the text height. + * @param {Number} width The width to set on the element + */ + setFixedWidth : function(width){ + ml.setWidth(width); + }, + + /** + *

    Only available on the instance returned from {@link #createInstance}, not on the singleton.

    + * Returns the measured width of the specified text + * @param {String} text The text to measure + * @return {Number} width The width in pixels + */ + getWidth : function(text){ + ml.dom.style.width = 'auto'; + return this.getSize(text).width; + }, + + /** + *

    Only available on the instance returned from {@link #createInstance}, not on the singleton.

    + * Returns the measured height of the specified text. For multiline text, be sure to call + * {@link #setFixedWidth} if necessary. + * @param {String} text The text to measure + * @return {Number} height The height in pixels + */ + getHeight : function(text){ + return this.getSize(text).height; + } + }; + + instance.bind(bindTo); + + return instance; +}; + +Ext.Element.addMethods({ + /** + * Returns the width in pixels of the passed text, or the width of the text in this Element. + * @param {String} text The text to measure. Defaults to the innerHTML of the element. + * @param {Number} min (Optional) The minumum value to return. + * @param {Number} max (Optional) The maximum value to return. + * @return {Number} The text width in pixels. + * @member Ext.Element getTextWidth + */ + getTextWidth : function(text, min, max){ + return (Ext.util.TextMetrics.measure(this.dom, Ext.value(text, this.dom.innerHTML, true)).width).constrain(min || 0, max || 1000000); + } +}); +/** + * @class Ext.util.Cookies + * Utility class for managing and interacting with cookies. + * @singleton + */ +Ext.util.Cookies = { + /** + * Create a cookie with the specified name and value. Additional settings + * for the cookie may be optionally specified (for example: expiration, + * access restriction, SSL). + * @param {String} name The name of the cookie to set. + * @param {Mixed} value The value to set for the cookie. + * @param {Object} expires (Optional) Specify an expiration date the + * cookie is to persist until. Note that the specified Date object will + * be converted to Greenwich Mean Time (GMT). + * @param {String} path (Optional) Setting a path on the cookie restricts + * access to pages that match that path. Defaults to all pages ('/'). + * @param {String} domain (Optional) Setting a domain restricts access to + * pages on a given domain (typically used to allow cookie access across + * subdomains). For example, "extjs.com" will create a cookie that can be + * accessed from any subdomain of extjs.com, including www.extjs.com, + * support.extjs.com, etc. + * @param {Boolean} secure (Optional) Specify true to indicate that the cookie + * should only be accessible via SSL on a page using the HTTPS protocol. + * Defaults to false. Note that this will only work if the page + * calling this code uses the HTTPS protocol, otherwise the cookie will be + * created with default options. + */ + set : function(name, value){ + var argv = arguments; + var argc = arguments.length; + var expires = (argc > 2) ? argv[2] : null; + var path = (argc > 3) ? argv[3] : '/'; + var domain = (argc > 4) ? argv[4] : null; + var secure = (argc > 5) ? argv[5] : false; + document.cookie = name + "=" + escape(value) + ((expires === null) ? "" : ("; expires=" + expires.toGMTString())) + ((path === null) ? "" : ("; path=" + path)) + ((domain === null) ? "" : ("; domain=" + domain)) + ((secure === true) ? "; secure" : ""); + }, + + /** + * Retrieves cookies that are accessible by the current page. If a cookie + * does not exist, get() returns null. The following + * example retrieves the cookie called "valid" and stores the String value + * in the variable validStatus. + *
    
    +     * var validStatus = Ext.util.Cookies.get("valid");
    +     * 
    + * @param {String} name The name of the cookie to get + * @return {Mixed} Returns the cookie value for the specified name; + * null if the cookie name does not exist. + */ + get : function(name){ + var arg = name + "="; + var alen = arg.length; + var clen = document.cookie.length; + var i = 0; + var j = 0; + while(i < clen){ + j = i + alen; + if(document.cookie.substring(i, j) == arg){ + return Ext.util.Cookies.getCookieVal(j); + } + i = document.cookie.indexOf(" ", i) + 1; + if(i === 0){ + break; + } + } + return null; + }, + + /** + * Removes a cookie with the provided name from the browser + * if found by setting its expiration date to sometime in the past. + * @param {String} name The name of the cookie to remove + */ + clear : function(name){ + if(Ext.util.Cookies.get(name)){ + document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; + } + }, + /** + * @private + */ + getCookieVal : function(offset){ + var endstr = document.cookie.indexOf(";", offset); + if(endstr == -1){ + endstr = document.cookie.length; + } + return unescape(document.cookie.substring(offset, endstr)); + } +};/** + * Framework-wide error-handler. Developers can override this method to provide + * custom exception-handling. Framework errors will often extend from the base + * Ext.Error class. + * @param {Object/Error} e The thrown exception object. + */ +Ext.handleError = function(e) { + throw e; +}; + +/** + * @class Ext.Error + * @extends Error + *

    A base error class. Future implementations are intended to provide more + * robust error handling throughout the framework (in the debug build only) + * to check for common errors and problems. The messages issued by this class + * will aid error checking. Error checks will be automatically removed in the + * production build so that performance is not negatively impacted.

    + *

    Some sample messages currently implemented:

    +"DataProxy attempted to execute an API-action but found an undefined
    +url / function. Please review your Proxy url/api-configuration."
    + * 
    +"Could not locate your "root" property in your server response.
    +Please review your JsonReader config to ensure the config-property
    +"root" matches the property your server-response.  See the JsonReader
    +docs for additional assistance."
    + * 
    + *

    An example of the code used for generating error messages:

    
    +try {
    +    generateError({
    +        foo: 'bar'
    +    });
    +}
    +catch (e) {
    +    console.error(e);
    +}
    +function generateError(data) {
    +    throw new Ext.Error('foo-error', data);
    +}
    + * 
    + * @param {String} message + */ +Ext.Error = function(message) { + // Try to read the message from Ext.Error.lang + this.message = (this.lang[message]) ? this.lang[message] : message; +}; + +Ext.Error.prototype = new Error(); +Ext.apply(Ext.Error.prototype, { + // protected. Extensions place their error-strings here. + lang: {}, + + name: 'Ext.Error', + /** + * getName + * @return {String} + */ + getName : function() { + return this.name; + }, + /** + * getMessage + * @return {String} + */ + getMessage : function() { + return this.message; + }, + /** + * toJson + * @return {String} + */ + toJson : function() { + return Ext.encode(this); + } +}); +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.ComponentMgr + *

    Provides a registry of all Components (instances of {@link Ext.Component} or any subclass + * thereof) on a page so that they can be easily accessed by {@link Ext.Component component} + * {@link Ext.Component#id id} (see {@link #get}, or the convenience method {@link Ext#getCmp Ext.getCmp}).

    + *

    This object also provides a registry of available Component classes + * indexed by a mnemonic code known as the Component's {@link Ext.Component#xtype xtype}. + * The {@link Ext.Component#xtype xtype} provides a way to avoid instantiating child Components + * when creating a full, nested config object for a complete Ext page.

    + *

    A child Component may be specified simply as a config object + * as long as the correct {@link Ext.Component#xtype xtype} is specified so that if and when the Component + * needs rendering, the correct type can be looked up for lazy instantiation.

    + *

    For a list of all available {@link Ext.Component#xtype xtypes}, see {@link Ext.Component}.

    + * @singleton + */ +Ext.ComponentMgr = function(){ + var all = new Ext.util.MixedCollection(); + var types = {}; + var ptypes = {}; + + return { + /** + * Registers a component. + * @param {Ext.Component} c The component + */ + register : function(c){ + all.add(c); + }, + + /** + * Unregisters a component. + * @param {Ext.Component} c The component + */ + unregister : function(c){ + all.remove(c); + }, + + /** + * Returns a component by {@link Ext.Component#id id}. + * For additional details see {@link Ext.util.MixedCollection#get}. + * @param {String} id The component {@link Ext.Component#id id} + * @return Ext.Component The Component, undefined if not found, or null if a + * Class was found. + */ + get : function(id){ + return all.get(id); + }, + + /** + * Registers a function that will be called when a Component with the specified id is added to ComponentMgr. This will happen on instantiation. + * @param {String} id The component {@link Ext.Component#id id} + * @param {Function} fn The callback function + * @param {Object} scope The scope (this reference) in which the callback is executed. Defaults to the Component. + */ + onAvailable : function(id, fn, scope){ + all.on("add", function(index, o){ + if(o.id == id){ + fn.call(scope || o, o); + all.un("add", fn, scope); + } + }); + }, + + /** + * The MixedCollection used internally for the component cache. An example usage may be subscribing to + * events on the MixedCollection to monitor addition or removal. Read-only. + * @type {MixedCollection} + */ + all : all, + + /** + * The xtypes that have been registered with the component manager. + * @type {Object} + */ + types : types, + + /** + * The ptypes that have been registered with the component manager. + * @type {Object} + */ + ptypes: ptypes, + + /** + * Checks if a Component type is registered. + * @param {Ext.Component} xtype The mnemonic string by which the Component class may be looked up + * @return {Boolean} Whether the type is registered. + */ + isRegistered : function(xtype){ + return types[xtype] !== undefined; + }, + + /** + * Checks if a Plugin type is registered. + * @param {Ext.Component} ptype The mnemonic string by which the Plugin class may be looked up + * @return {Boolean} Whether the type is registered. + */ + isPluginRegistered : function(ptype){ + return ptypes[ptype] !== undefined; + }, + + /** + *

    Registers a new Component constructor, keyed by a new + * {@link Ext.Component#xtype}.

    + *

    Use this method (or its alias {@link Ext#reg Ext.reg}) to register new + * subclasses of {@link Ext.Component} so that lazy instantiation may be used when specifying + * child Components. + * see {@link Ext.Container#items}

    + * @param {String} xtype The mnemonic string by which the Component class may be looked up. + * @param {Constructor} cls The new Component class. + */ + registerType : function(xtype, cls){ + types[xtype] = cls; + cls.xtype = xtype; + }, + + /** + * Creates a new Component from the specified config object using the + * config object's {@link Ext.component#xtype xtype} to determine the class to instantiate. + * @param {Object} config A configuration object for the Component you wish to create. + * @param {Constructor} defaultType The constructor to provide the default Component type if + * the config object does not contain a xtype. (Optional if the config contains a xtype). + * @return {Ext.Component} The newly instantiated Component. + */ + create : function(config, defaultType){ + return config.render ? config : new types[config.xtype || defaultType](config); + }, + + /** + *

    Registers a new Plugin constructor, keyed by a new + * {@link Ext.Component#ptype}.

    + *

    Use this method (or its alias {@link Ext#preg Ext.preg}) to register new + * plugins for {@link Ext.Component}s so that lazy instantiation may be used when specifying + * Plugins.

    + * @param {String} ptype The mnemonic string by which the Plugin class may be looked up. + * @param {Constructor} cls The new Plugin class. + */ + registerPlugin : function(ptype, cls){ + ptypes[ptype] = cls; + cls.ptype = ptype; + }, + + /** + * Creates a new Plugin from the specified config object using the + * config object's {@link Ext.component#ptype ptype} to determine the class to instantiate. + * @param {Object} config A configuration object for the Plugin you wish to create. + * @param {Constructor} defaultType The constructor to provide the default Plugin type if + * the config object does not contain a ptype. (Optional if the config contains a ptype). + * @return {Ext.Component} The newly instantiated Plugin. + */ + createPlugin : function(config, defaultType){ + var PluginCls = ptypes[config.ptype || defaultType]; + if (PluginCls.init) { + return PluginCls; + } else { + return new PluginCls(config); + } + } + }; +}(); + +/** + * Shorthand for {@link Ext.ComponentMgr#registerType} + * @param {String} xtype The {@link Ext.component#xtype mnemonic string} by which the Component class + * may be looked up. + * @param {Constructor} cls The new Component class. + * @member Ext + * @method reg + */ +Ext.reg = Ext.ComponentMgr.registerType; // this will be called a lot internally, shorthand to keep the bytes down +/** + * Shorthand for {@link Ext.ComponentMgr#registerPlugin} + * @param {String} ptype The {@link Ext.component#ptype mnemonic string} by which the Plugin class + * may be looked up. + * @param {Constructor} cls The new Plugin class. + * @member Ext + * @method preg + */ +Ext.preg = Ext.ComponentMgr.registerPlugin; +/** + * Shorthand for {@link Ext.ComponentMgr#create} + * Creates a new Component from the specified config object using the + * config object's {@link Ext.component#xtype xtype} to determine the class to instantiate. + * @param {Object} config A configuration object for the Component you wish to create. + * @param {Constructor} defaultType The constructor to provide the default Component type if + * the config object does not contain a xtype. (Optional if the config contains a xtype). + * @return {Ext.Component} The newly instantiated Component. + * @member Ext + * @method create + */ +Ext.create = Ext.ComponentMgr.create;/** + * @class Ext.Component + * @extends Ext.util.Observable + *

    Base class for all Ext components. All subclasses of Component may participate in the automated + * Ext component lifecycle of creation, rendering and destruction which is provided by the {@link Ext.Container Container} class. + * Components may be added to a Container through the {@link Ext.Container#items items} config option at the time the Container is created, + * or they may be added dynamically via the {@link Ext.Container#add add} method.

    + *

    The Component base class has built-in support for basic hide/show and enable/disable behavior.

    + *

    All Components are registered with the {@link Ext.ComponentMgr} on construction so that they can be referenced at any time via + * {@link Ext#getCmp}, passing the {@link #id}.

    + *

    All user-developed visual widgets that are required to participate in automated lifecycle and size management should subclass Component (or + * {@link Ext.BoxComponent} if managed box model handling is required, ie height and width management).

    + *

    See the Creating new UI controls tutorial for details on how + * and to either extend or augment ExtJs base classes to create custom Components.

    + *

    Every component has a specific xtype, which is its Ext-specific type name, along with methods for checking the + * xtype like {@link #getXType} and {@link #isXType}. This is the list of all valid xtypes:

    + *
    +xtype            Class
    +-------------    ------------------
    +box              {@link Ext.BoxComponent}
    +button           {@link Ext.Button}
    +buttongroup      {@link Ext.ButtonGroup}
    +colorpalette     {@link Ext.ColorPalette}
    +component        {@link Ext.Component}
    +container        {@link Ext.Container}
    +cycle            {@link Ext.CycleButton}
    +dataview         {@link Ext.DataView}
    +datepicker       {@link Ext.DatePicker}
    +editor           {@link Ext.Editor}
    +editorgrid       {@link Ext.grid.EditorGridPanel}
    +flash            {@link Ext.FlashComponent}
    +grid             {@link Ext.grid.GridPanel}
    +listview         {@link Ext.ListView}
    +panel            {@link Ext.Panel}
    +progress         {@link Ext.ProgressBar}
    +propertygrid     {@link Ext.grid.PropertyGrid}
    +slider           {@link Ext.Slider}
    +spacer           {@link Ext.Spacer}
    +splitbutton      {@link Ext.SplitButton}
    +tabpanel         {@link Ext.TabPanel}
    +treepanel        {@link Ext.tree.TreePanel}
    +viewport         {@link Ext.ViewPort}
    +window           {@link Ext.Window}
    +
    +Toolbar components
    +---------------------------------------
    +paging           {@link Ext.PagingToolbar}
    +toolbar          {@link Ext.Toolbar}
    +tbbutton         {@link Ext.Toolbar.Button}        (deprecated; use button)
    +tbfill           {@link Ext.Toolbar.Fill}
    +tbitem           {@link Ext.Toolbar.Item}
    +tbseparator      {@link Ext.Toolbar.Separator}
    +tbspacer         {@link Ext.Toolbar.Spacer}
    +tbsplit          {@link Ext.Toolbar.SplitButton}   (deprecated; use splitbutton)
    +tbtext           {@link Ext.Toolbar.TextItem}
    +
    +Menu components
    +---------------------------------------
    +menu             {@link Ext.menu.Menu}
    +colormenu        {@link Ext.menu.ColorMenu}
    +datemenu         {@link Ext.menu.DateMenu}
    +menubaseitem     {@link Ext.menu.BaseItem}
    +menucheckitem    {@link Ext.menu.CheckItem}
    +menuitem         {@link Ext.menu.Item}
    +menuseparator    {@link Ext.menu.Separator}
    +menutextitem     {@link Ext.menu.TextItem}
    +
    +Form components
    +---------------------------------------
    +form             {@link Ext.form.FormPanel}
    +checkbox         {@link Ext.form.Checkbox}
    +checkboxgroup    {@link Ext.form.CheckboxGroup}
    +combo            {@link Ext.form.ComboBox}
    +datefield        {@link Ext.form.DateField}
    +displayfield     {@link Ext.form.DisplayField}
    +field            {@link Ext.form.Field}
    +fieldset         {@link Ext.form.FieldSet}
    +hidden           {@link Ext.form.Hidden}
    +htmleditor       {@link Ext.form.HtmlEditor}
    +label            {@link Ext.form.Label}
    +numberfield      {@link Ext.form.NumberField}
    +radio            {@link Ext.form.Radio}
    +radiogroup       {@link Ext.form.RadioGroup}
    +textarea         {@link Ext.form.TextArea}
    +textfield        {@link Ext.form.TextField}
    +timefield        {@link Ext.form.TimeField}
    +trigger          {@link Ext.form.TriggerField}
    +
    +Chart components
    +---------------------------------------
    +chart            {@link Ext.chart.Chart}
    +barchart         {@link Ext.chart.BarChart}
    +cartesianchart   {@link Ext.chart.CartesianChart}
    +columnchart      {@link Ext.chart.ColumnChart}
    +linechart        {@link Ext.chart.LineChart}
    +piechart         {@link Ext.chart.PieChart}
    +
    +Store xtypes
    +---------------------------------------
    +arraystore       {@link Ext.data.ArrayStore}
    +directstore      {@link Ext.data.DirectStore}
    +groupingstore    {@link Ext.data.GroupingStore}
    +jsonstore        {@link Ext.data.JsonStore}
    +simplestore      {@link Ext.data.SimpleStore}      (deprecated; use arraystore)
    +store            {@link Ext.data.Store}
    +xmlstore         {@link Ext.data.XmlStore}
    +
    + * @constructor + * @param {Ext.Element/String/Object} config The configuration options may be specified as either: + *
      + *
    • an element : + *

      it is set as the internal element and its id used as the component id

    • + *
    • a string : + *

      it is assumed to be the id of an existing element and is used as the component id

    • + *
    • anything else : + *

      it is assumed to be a standard config object and is applied to the component

    • + *
    + */ +Ext.Component = function(config){ + config = config || {}; + if(config.initialConfig){ + if(config.isAction){ // actions + this.baseAction = config; + } + config = config.initialConfig; // component cloning / action set up + }else if(config.tagName || config.dom || Ext.isString(config)){ // element object + config = {applyTo: config, id: config.id || config}; + } + + /** + * This Component's initial configuration specification. Read-only. + * @type Object + * @property initialConfig + */ + this.initialConfig = config; + + Ext.apply(this, config); + this.addEvents( + /** + * @event added + * Fires when a component is added to an Ext.Container + * @param {Ext.Component} this + * @param {Ext.Container} ownerCt Container which holds the component + * @param {number} index Position at which the component was added + */ + 'added', + /** + * @event disable + * Fires after the component is disabled. + * @param {Ext.Component} this + */ + 'disable', + /** + * @event enable + * Fires after the component is enabled. + * @param {Ext.Component} this + */ + 'enable', + /** + * @event beforeshow + * Fires before the component is shown by calling the {@link #show} method. + * Return false from an event handler to stop the show. + * @param {Ext.Component} this + */ + 'beforeshow', + /** + * @event show + * Fires after the component is shown when calling the {@link #show} method. + * @param {Ext.Component} this + */ + 'show', + /** + * @event beforehide + * Fires before the component is hidden by calling the {@link #hide} method. + * Return false from an event handler to stop the hide. + * @param {Ext.Component} this + */ + 'beforehide', + /** + * @event hide + * Fires after the component is hidden. + * Fires after the component is hidden when calling the {@link #hide} method. + * @param {Ext.Component} this + */ + 'hide', + /** + * @event removed + * Fires when a component is removed from an Ext.Container + * @param {Ext.Component} this + * @param {Ext.Container} ownerCt Container which holds the component + */ + 'removed', + /** + * @event beforerender + * Fires before the component is {@link #rendered}. Return false from an + * event handler to stop the {@link #render}. + * @param {Ext.Component} this + */ + 'beforerender', + /** + * @event render + * Fires after the component markup is {@link #rendered}. + * @param {Ext.Component} this + */ + 'render', + /** + * @event afterrender + *

    Fires after the component rendering is finished.

    + *

    The afterrender event is fired after this Component has been {@link #rendered}, been postprocesed + * by any afterRender method defined for the Component, and, if {@link #stateful}, after state + * has been restored.

    + * @param {Ext.Component} this + */ + 'afterrender', + /** + * @event beforedestroy + * Fires before the component is {@link #destroy}ed. Return false from an event handler to stop the {@link #destroy}. + * @param {Ext.Component} this + */ + 'beforedestroy', + /** + * @event destroy + * Fires after the component is {@link #destroy}ed. + * @param {Ext.Component} this + */ + 'destroy', + /** + * @event beforestaterestore + * Fires before the state of the component is restored. Return false from an event handler to stop the restore. + * @param {Ext.Component} this + * @param {Object} state The hash of state values returned from the StateProvider. If this + * event is not vetoed, then the state object is passed to applyState. By default, + * that simply copies property values into this Component. The method maybe overriden to + * provide custom state restoration. + */ + 'beforestaterestore', + /** + * @event staterestore + * Fires after the state of the component is restored. + * @param {Ext.Component} this + * @param {Object} state The hash of state values returned from the StateProvider. This is passed + * to applyState. By default, that simply copies property values into this + * Component. The method maybe overriden to provide custom state restoration. + */ + 'staterestore', + /** + * @event beforestatesave + * Fires before the state of the component is saved to the configured state provider. Return false to stop the save. + * @param {Ext.Component} this + * @param {Object} state The hash of state values. This is determined by calling + * getState() on the Component. This method must be provided by the + * developer to return whetever representation of state is required, by default, Ext.Component + * has a null implementation. + */ + 'beforestatesave', + /** + * @event statesave + * Fires after the state of the component is saved to the configured state provider. + * @param {Ext.Component} this + * @param {Object} state The hash of state values. This is determined by calling + * getState() on the Component. This method must be provided by the + * developer to return whetever representation of state is required, by default, Ext.Component + * has a null implementation. + */ + 'statesave' + ); + this.getId(); + Ext.ComponentMgr.register(this); + Ext.Component.superclass.constructor.call(this); + + if(this.baseAction){ + this.baseAction.addComponent(this); + } + + this.initComponent(); + + if(this.plugins){ + if(Ext.isArray(this.plugins)){ + for(var i = 0, len = this.plugins.length; i < len; i++){ + this.plugins[i] = this.initPlugin(this.plugins[i]); + } + }else{ + this.plugins = this.initPlugin(this.plugins); + } + } + + if(this.stateful !== false){ + this.initState(); + } + + if(this.applyTo){ + this.applyToMarkup(this.applyTo); + delete this.applyTo; + }else if(this.renderTo){ + this.render(this.renderTo); + delete this.renderTo; + } +}; + +// private +Ext.Component.AUTO_ID = 1000; + +Ext.extend(Ext.Component, Ext.util.Observable, { + // Configs below are used for all Components when rendered by FormLayout. + /** + * @cfg {String} fieldLabel

    The label text to display next to this Component (defaults to '').

    + *

    Note: this config is only used when this Component is rendered by a Container which + * has been configured to use the {@link Ext.layout.FormLayout FormLayout} layout manager (e.g. + * {@link Ext.form.FormPanel} or specifying layout:'form').


    + *

    Also see {@link #hideLabel} and + * {@link Ext.layout.FormLayout}.{@link Ext.layout.FormLayout#fieldTpl fieldTpl}.

    + * Example use:
    
    +new Ext.FormPanel({
    +    height: 100,
    +    renderTo: Ext.getBody(),
    +    items: [{
    +        xtype: 'textfield',
    +        fieldLabel: 'Name'
    +    }]
    +});
    +
    + */ + /** + * @cfg {String} labelStyle

    A CSS style specification string to apply directly to this field's + * label. Defaults to the container's labelStyle value if set (e.g., + * {@link Ext.layout.FormLayout#labelStyle} , or '').

    + *

    Note: see the note for {@link #clearCls}.


    + *

    Also see {@link #hideLabel} and + * {@link Ext.layout.FormLayout}.{@link Ext.layout.FormLayout#fieldTpl fieldTpl}.

    + * Example use:
    
    +new Ext.FormPanel({
    +    height: 100,
    +    renderTo: Ext.getBody(),
    +    items: [{
    +        xtype: 'textfield',
    +        fieldLabel: 'Name',
    +        labelStyle: 'font-weight:bold;'
    +    }]
    +});
    +
    + */ + /** + * @cfg {String} labelSeparator

    The separator to display after the text of each + * {@link #fieldLabel}. This property may be configured at various levels. + * The order of precedence is: + *

      + *
    • field / component level
    • + *
    • container level
    • + *
    • {@link Ext.layout.FormLayout#labelSeparator layout level} (defaults to colon ':')
    • + *
    + * To display no separator for this field's label specify empty string ''.

    + *

    Note: see the note for {@link #clearCls}.


    + *

    Also see {@link #hideLabel} and + * {@link Ext.layout.FormLayout}.{@link Ext.layout.FormLayout#fieldTpl fieldTpl}.

    + * Example use:
    
    +new Ext.FormPanel({
    +    height: 100,
    +    renderTo: Ext.getBody(),
    +    layoutConfig: {
    +        labelSeparator: '~'   // layout config has lowest priority (defaults to ':')
    +    },
    +    {@link Ext.layout.FormLayout#labelSeparator labelSeparator}: '>>',     // config at container level
    +    items: [{
    +        xtype: 'textfield',
    +        fieldLabel: 'Field 1',
    +        labelSeparator: '...' // field/component level config supersedes others
    +    },{
    +        xtype: 'textfield',
    +        fieldLabel: 'Field 2' // labelSeparator will be '='
    +    }]
    +});
    +
    + */ + /** + * @cfg {Boolean} hideLabel

    true to completely hide the label element + * ({@link #fieldLabel label} and {@link #labelSeparator separator}). Defaults to false. + * By default, even if you do not specify a {@link #fieldLabel} the space will still be + * reserved so that the field will line up with other fields that do have labels. + * Setting this to true will cause the field to not reserve that space.

    + *

    Note: see the note for {@link #clearCls}.


    + * Example use:
    
    +new Ext.FormPanel({
    +    height: 100,
    +    renderTo: Ext.getBody(),
    +    items: [{
    +        xtype: 'textfield'
    +        hideLabel: true
    +    }]
    +});
    +
    + */ + /** + * @cfg {String} clearCls

    The CSS class used to to apply to the special clearing div rendered + * directly after each form field wrapper to provide field clearing (defaults to + * 'x-form-clear-left').

    + *

    Note: this config is only used when this Component is rendered by a Container + * which has been configured to use the {@link Ext.layout.FormLayout FormLayout} layout + * manager (e.g. {@link Ext.form.FormPanel} or specifying layout:'form') and either a + * {@link #fieldLabel} is specified or isFormField=true is specified.


    + *

    See {@link Ext.layout.FormLayout}.{@link Ext.layout.FormLayout#fieldTpl fieldTpl} also.

    + */ + /** + * @cfg {String} itemCls + *

    Note: this config is only used when this Component is rendered by a Container which + * has been configured to use the {@link Ext.layout.FormLayout FormLayout} layout manager (e.g. + * {@link Ext.form.FormPanel} or specifying layout:'form').


    + *

    An additional CSS class to apply to the div wrapping the form item + * element of this field. If supplied, itemCls at the field level will override + * the default itemCls supplied at the container level. The value specified for + * itemCls will be added to the default class ('x-form-item').

    + *

    Since it is applied to the item wrapper (see + * {@link Ext.layout.FormLayout}.{@link Ext.layout.FormLayout#fieldTpl fieldTpl}), it allows + * you to write standard CSS rules that can apply to the field, the label (if specified), or + * any other element within the markup for the field.

    + *

    Note: see the note for {@link #fieldLabel}.


    + * Example use:
    
    +// Apply a style to the field's label:
    +<style>
    +    .required .x-form-item-label {font-weight:bold;color:red;}
    +</style>
    +
    +new Ext.FormPanel({
    +    height: 100,
    +    renderTo: Ext.getBody(),
    +    items: [{
    +        xtype: 'textfield',
    +        fieldLabel: 'Name',
    +        itemCls: 'required' //this label will be styled
    +    },{
    +        xtype: 'textfield',
    +        fieldLabel: 'Favorite Color'
    +    }]
    +});
    +
    + */ + + /** + * @cfg {String} id + *

    The unique id of this component (defaults to an {@link #getId auto-assigned id}). + * You should assign an id if you need to be able to access the component later and you do + * not have an object reference available (e.g., using {@link Ext}.{@link Ext#getCmp getCmp}).

    + *

    Note that this id will also be used as the element id for the containing HTML element + * that is rendered to the page for this component. This allows you to write id-based CSS + * rules to style the specific instance of this component uniquely, and also to select + * sub-elements using this component's id as the parent.

    + *

    Note: to avoid complications imposed by a unique id also see + * {@link #itemId} and {@link #ref}.

    + *

    Note: to access the container of an item see {@link #ownerCt}.

    + */ + /** + * @cfg {String} itemId + *

    An itemId can be used as an alternative way to get a reference to a component + * when no object reference is available. Instead of using an {@link #id} with + * {@link Ext}.{@link Ext#getCmp getCmp}, use itemId with + * {@link Ext.Container}.{@link Ext.Container#getComponent getComponent} which will retrieve + * itemId's or {@link #id}'s. Since itemId's are an index to the + * container's internal MixedCollection, the itemId is scoped locally to the container -- + * avoiding potential conflicts with {@link Ext.ComponentMgr} which requires a unique + * {@link #id}.

    + *
    
    +var c = new Ext.Panel({ //
    +    {@link Ext.BoxComponent#height height}: 300,
    +    {@link #renderTo}: document.body,
    +    {@link Ext.Container#layout layout}: 'auto',
    +    {@link Ext.Container#items items}: [
    +        {
    +            itemId: 'p1',
    +            {@link Ext.Panel#title title}: 'Panel 1',
    +            {@link Ext.BoxComponent#height height}: 150
    +        },
    +        {
    +            itemId: 'p2',
    +            {@link Ext.Panel#title title}: 'Panel 2',
    +            {@link Ext.BoxComponent#height height}: 150
    +        }
    +    ]
    +})
    +p1 = c.{@link Ext.Container#getComponent getComponent}('p1'); // not the same as {@link Ext#getCmp Ext.getCmp()}
    +p2 = p1.{@link #ownerCt}.{@link Ext.Container#getComponent getComponent}('p2'); // reference via a sibling
    +     * 
    + *

    Also see {@link #id} and {@link #ref}.

    + *

    Note: to access the container of an item see {@link #ownerCt}.

    + */ + /** + * @cfg {String} xtype + * The registered xtype to create. This config option is not used when passing + * a config object into a constructor. This config option is used only when + * lazy instantiation is being used, and a child item of a Container is being + * specified not as a fully instantiated Component, but as a Component config + * object. The xtype will be looked up at render time up to determine what + * type of child Component to create.

    + * The predefined xtypes are listed {@link Ext.Component here}. + *

    + * If you subclass Components to create your own Components, you may register + * them using {@link Ext.ComponentMgr#registerType} in order to be able to + * take advantage of lazy instantiation and rendering. + */ + /** + * @cfg {String} ptype + * The registered ptype to create. This config option is not used when passing + * a config object into a constructor. This config option is used only when + * lazy instantiation is being used, and a Plugin is being + * specified not as a fully instantiated Component, but as a Component config + * object. The ptype will be looked up at render time up to determine what + * type of Plugin to create.

    + * If you create your own Plugins, you may register them using + * {@link Ext.ComponentMgr#registerPlugin} in order to be able to + * take advantage of lazy instantiation and rendering. + */ + /** + * @cfg {String} cls + * An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be + * useful for adding customized styles to the component or any of its children using standard CSS rules. + */ + /** + * @cfg {String} overCls + * An optional extra CSS class that will be added to this component's Element when the mouse moves + * over the Element, and removed when the mouse moves out. (defaults to ''). This can be + * useful for adding customized 'active' or 'hover' styles to the component or any of its children using standard CSS rules. + */ + /** + * @cfg {String} style + * A custom style specification to be applied to this component's Element. Should be a valid argument to + * {@link Ext.Element#applyStyles}. + *
    
    +new Ext.Panel({
    +    title: 'Some Title',
    +    renderTo: Ext.getBody(),
    +    width: 400, height: 300,
    +    layout: 'form',
    +    items: [{
    +        xtype: 'textarea',
    +        style: {
    +            width: '95%',
    +            marginBottom: '10px'
    +        }
    +    },
    +        new Ext.Button({
    +            text: 'Send',
    +            minWidth: '100',
    +            style: {
    +                marginBottom: '10px'
    +            }
    +        })
    +    ]
    +});
    +     * 
    + */ + /** + * @cfg {String} ctCls + *

    An optional extra CSS class that will be added to this component's container. This can be useful for + * adding customized styles to the container or any of its children using standard CSS rules. See + * {@link Ext.layout.ContainerLayout}.{@link Ext.layout.ContainerLayout#extraCls extraCls} also.

    + *

    Note: ctCls defaults to '' except for the following class + * which assigns a value by default: + *

      + *
    • {@link Ext.layout.Box Box Layout} : 'x-box-layout-ct'
    • + *
    + * To configure the above Class with an extra CSS class append to the default. For example, + * for BoxLayout (Hbox and Vbox):
    
    +     * ctCls: 'x-box-layout-ct custom-class'
    +     * 
    + *

    + */ + /** + * @cfg {Boolean} disabled + * Render this component disabled (default is false). + */ + disabled : false, + /** + * @cfg {Boolean} hidden + * Render this component hidden (default is false). If true, the + * {@link #hide} method will be called internally. + */ + hidden : false, + /** + * @cfg {Object/Array} plugins + * An object or array of objects that will provide custom functionality for this component. The only + * requirement for a valid plugin is that it contain an init method that accepts a reference of type Ext.Component. + * When a component is created, if any plugins are available, the component will call the init method on each + * plugin, passing a reference to itself. Each plugin can then call methods or respond to events on the + * component as needed to provide its functionality. + */ + /** + * @cfg {Mixed} applyTo + *

    Specify the id of the element, a DOM element or an existing Element corresponding to a DIV + * that is already present in the document that specifies some structural markup for this + * component.

      + *
    • Description :
        + *
        When applyTo is used, constituent parts of the component can also be specified + * by id or CSS class name within the main element, and the component being created may attempt + * to create its subcomponents from that markup if applicable.
        + *
    • + *
    • Notes :
        + *
        When using this config, a call to render() is not required.
        + *
        If applyTo is specified, any value passed for {@link #renderTo} will be ignored and the target + * element's parent node will automatically be used as the component's container.
        + *
    • + *
    + */ + /** + * @cfg {Mixed} renderTo + *

    Specify the id of the element, a DOM element or an existing Element that this component + * will be rendered into.

      + *
    • Notes :
        + *
        Do not use this option if the Component is to be a child item of + * a {@link Ext.Container Container}. It is the responsibility of the + * {@link Ext.Container Container}'s {@link Ext.Container#layout layout manager} + * to render and manage its child items.
        + *
        When using this config, a call to render() is not required.
        + *
    • + *
    + *

    See {@link #render} also.

    + */ + /** + * @cfg {Boolean} stateful + *

    A flag which causes the Component to attempt to restore the state of + * internal properties from a saved state on startup. The component must have + * either a {@link #stateId} or {@link #id} assigned + * for state to be managed. Auto-generated ids are not guaranteed to be stable + * across page loads and cannot be relied upon to save and restore the same + * state for a component.

    + *

    For state saving to work, the state manager's provider must have been + * set to an implementation of {@link Ext.state.Provider} which overrides the + * {@link Ext.state.Provider#set set} and {@link Ext.state.Provider#get get} + * methods to save and recall name/value pairs. A built-in implementation, + * {@link Ext.state.CookieProvider} is available.

    + *

    To set the state provider for the current page:

    + *
    
    +Ext.state.Manager.setProvider(new Ext.state.CookieProvider({
    +    expires: new Date(new Date().getTime()+(1000*60*60*24*7)), //7 days from now
    +}));
    +     * 
    + *

    A stateful Component attempts to save state when one of the events + * listed in the {@link #stateEvents} configuration fires.

    + *

    To save state, a stateful Component first serializes its state by + * calling getState. By default, this function does + * nothing. The developer must provide an implementation which returns an + * object hash which represents the Component's restorable state.

    + *

    The value yielded by getState is passed to {@link Ext.state.Manager#set} + * which uses the configured {@link Ext.state.Provider} to save the object + * keyed by the Component's {@link stateId}, or, if that is not + * specified, its {@link #id}.

    + *

    During construction, a stateful Component attempts to restore + * its state by calling {@link Ext.state.Manager#get} passing the + * {@link #stateId}, or, if that is not specified, the + * {@link #id}.

    + *

    The resulting object is passed to applyState. + * The default implementation of applyState simply copies + * properties into the object, but a developer may override this to support + * more behaviour.

    + *

    You can perform extra processing on state save and restore by attaching + * handlers to the {@link #beforestaterestore}, {@link #staterestore}, + * {@link #beforestatesave} and {@link #statesave} events.

    + */ + /** + * @cfg {String} stateId + * The unique id for this component to use for state management purposes + * (defaults to the component id if one was set, otherwise null if the + * component is using a generated id). + *

    See {@link #stateful} for an explanation of saving and + * restoring Component state.

    + */ + /** + * @cfg {Array} stateEvents + *

    An array of events that, when fired, should trigger this component to + * save its state (defaults to none). stateEvents may be any type + * of event supported by this component, including browser or custom events + * (e.g., ['click', 'customerchange']).

    + *

    See {@link #stateful} for an explanation of saving and + * restoring Component state.

    + */ + /** + * @cfg {Mixed} autoEl + *

    A tag name or {@link Ext.DomHelper DomHelper} spec used to create the {@link #getEl Element} which will + * encapsulate this Component.

    + *

    You do not normally need to specify this. For the base classes {@link Ext.Component}, {@link Ext.BoxComponent}, + * and {@link Ext.Container}, this defaults to 'div'. The more complex Ext classes use a more complex + * DOM structure created by their own onRender methods.

    + *

    This is intended to allow the developer to create application-specific utility Components encapsulated by + * different DOM elements. Example usage:

    
    +{
    +    xtype: 'box',
    +    autoEl: {
    +        tag: 'img',
    +        src: 'http://www.example.com/example.jpg'
    +    }
    +}, {
    +    xtype: 'box',
    +    autoEl: {
    +        tag: 'blockquote',
    +        html: 'autoEl is cool!'
    +    }
    +}, {
    +    xtype: 'container',
    +    autoEl: 'ul',
    +    cls: 'ux-unordered-list',
    +    items: {
    +        xtype: 'box',
    +        autoEl: 'li',
    +        html: 'First list item'
    +    }
    +}
    +
    + */ + autoEl : 'div', + + /** + * @cfg {String} disabledClass + * CSS class added to the component when it is disabled (defaults to 'x-item-disabled'). + */ + disabledClass : 'x-item-disabled', + /** + * @cfg {Boolean} allowDomMove + * Whether the component can move the Dom node when rendering (defaults to true). + */ + allowDomMove : true, + /** + * @cfg {Boolean} autoShow + * True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove + * them on render (defaults to false). + */ + autoShow : false, + /** + * @cfg {String} hideMode + *

    How this component should be hidden. Supported values are 'visibility' + * (css visibility), 'offsets' (negative offset position) and 'display' + * (css display).

    + *

    Note: the default of 'display' is generally preferred + * since items are automatically laid out when they are first shown (no sizing + * is done while hidden).

    + */ + hideMode : 'display', + /** + * @cfg {Boolean} hideParent + * True to hide and show the component's container when hide/show is called on the component, false to hide + * and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide + * button on a window by setting hide:true on the button when adding it to its parent container. + */ + hideParent : false, + /** + *

    The {@link Ext.Element} which encapsulates this Component. Read-only.

    + *

    This will usually be a <DIV> element created by the class's onRender method, but + * that may be overridden using the {@link #autoEl} config.

    + *

    Note: this element will not be available until this Component has been rendered.


    + *

    To add listeners for DOM events to this Component (as opposed to listeners + * for this Component's own Observable events), see the {@link Ext.util.Observable#listeners listeners} + * config for a suggestion, or use a render listener directly:

    
    +new Ext.Panel({
    +    title: 'The Clickable Panel',
    +    listeners: {
    +        render: function(p) {
    +            // Append the Panel to the click handler's argument list.
    +            p.getEl().on('click', handlePanelClick.createDelegate(null, [p], true));
    +        },
    +        single: true  // Remove the listener after first invocation
    +    }
    +});
    +
    + *

    See also {@link #getEl getEl}

    + * @type Ext.Element + * @property el + */ + /** + * This Component's owner {@link Ext.Container Container} (defaults to undefined, and is set automatically when + * this Component is added to a Container). Read-only. + *

    Note: to access items within the Container see {@link #itemId}.

    + * @type Ext.Container + * @property ownerCt + */ + /** + * True if this component is hidden. Read-only. + * @type Boolean + * @property hidden + */ + /** + * True if this component is disabled. Read-only. + * @type Boolean + * @property disabled + */ + /** + * True if this component has been rendered. Read-only. + * @type Boolean + * @property rendered + */ + rendered : false, + + /** + * @cfg {String} contentEl + *

    Optional. Specify an existing HTML element, or the id of an existing HTML element to use as the content + * for this component.

    + *
      + *
    • Description : + *
      This config option is used to take an existing HTML element and place it in the layout element + * of a new component (it simply moves the specified DOM element after the Component is rendered to use as the content.
    • + *
    • Notes : + *
      The specified HTML element is appended to the layout element of the component after any configured + * {@link #html HTML} has been inserted, and so the document will not contain this element at the time the {@link #render} event is fired.
      + *
      The specified HTML element used will not participate in any {@link Ext.Container#layout layout} + * scheme that the Component may use. It is just HTML. Layouts operate on child {@link Ext.Container#items items}.
      + *
      Add either the x-hidden or the x-hide-display CSS class to + * prevent a brief flicker of the content before it is rendered to the panel.
    • + *
    + */ + /** + * @cfg {String/Object} html + * An HTML fragment, or a {@link Ext.DomHelper DomHelper} specification to use as the layout element + * content (defaults to ''). The HTML content is added after the component is rendered, + * so the document will not contain this HTML at the time the {@link #render} event is fired. + * This content is inserted into the body before any configured {@link #contentEl} is appended. + */ + + /** + * @cfg {Mixed} tpl + * An {@link Ext.Template}, {@link Ext.XTemplate} + * or an array of strings to form an Ext.XTemplate. + * Used in conjunction with the {@link #data} and + * {@link #tplWriteMode} configurations. + */ + + /** + * @cfg {String} tplWriteMode The Ext.(X)Template method to use when + * updating the content area of the Component. Defaults to 'overwrite' + * (see {@link Ext.XTemplate#overwrite}). + */ + tplWriteMode : 'overwrite', + + /** + * @cfg {Mixed} data + * The initial set of data to apply to the {@link #tpl} to + * update the content area of the Component. + */ + + /** + * @cfg {Array} bubbleEvents + *

    An array of events that, when fired, should be bubbled to any parent container. + * See {@link Ext.util.Observable#enableBubble}. + * Defaults to []. + */ + bubbleEvents: [], + + + // private + ctype : 'Ext.Component', + + // private + actionMode : 'el', + + // private + getActionEl : function(){ + return this[this.actionMode]; + }, + + initPlugin : function(p){ + if(p.ptype && !Ext.isFunction(p.init)){ + p = Ext.ComponentMgr.createPlugin(p); + }else if(Ext.isString(p)){ + p = Ext.ComponentMgr.createPlugin({ + ptype: p + }); + } + p.init(this); + return p; + }, + + /* // protected + * Function to be implemented by Component subclasses to be part of standard component initialization flow (it is empty by default). + *

    
    +// Traditional constructor:
    +Ext.Foo = function(config){
    +    // call superclass constructor:
    +    Ext.Foo.superclass.constructor.call(this, config);
    +
    +    this.addEvents({
    +        // add events
    +    });
    +};
    +Ext.extend(Ext.Foo, Ext.Bar, {
    +   // class body
    +}
    +
    +// initComponent replaces the constructor:
    +Ext.Foo = Ext.extend(Ext.Bar, {
    +    initComponent : function(){
    +        // call superclass initComponent
    +        Ext.Container.superclass.initComponent.call(this);
    +
    +        this.addEvents({
    +            // add events
    +        });
    +    }
    +}
    +
    + */ + initComponent : function(){ + /* + * this is double processing, however it allows people to be able to do + * Ext.apply(this, { + * listeners: { + * //here + * } + * }); + * MyClass.superclass.initComponent.call(this); + */ + if(this.listeners){ + this.on(this.listeners); + delete this.listeners; + } + this.enableBubble(this.bubbleEvents); + }, + + /** + *

    Render this Component into the passed HTML element.

    + *

    If you are using a {@link Ext.Container Container} object to house this Component, then + * do not use the render method.

    + *

    A Container's child Components are rendered by that Container's + * {@link Ext.Container#layout layout} manager when the Container is first rendered.

    + *

    Certain layout managers allow dynamic addition of child components. Those that do + * include {@link Ext.layout.CardLayout}, {@link Ext.layout.AnchorLayout}, + * {@link Ext.layout.FormLayout}, {@link Ext.layout.TableLayout}.

    + *

    If the Container is already rendered when a new child Component is added, you may need to call + * the Container's {@link Ext.Container#doLayout doLayout} to refresh the view which causes any + * unrendered child Components to be rendered. This is required so that you can add multiple + * child components if needed while only refreshing the layout once.

    + *

    When creating complex UIs, it is important to remember that sizing and positioning + * of child items is the responsibility of the Container's {@link Ext.Container#layout layout} manager. + * If you expect child items to be sized in response to user interactions, you must + * configure the Container with a layout manager which creates and manages the type of layout you + * have in mind.

    + *

    Omitting the Container's {@link Ext.Container#layout layout} config means that a basic + * layout manager is used which does nothing but render child components sequentially into the + * Container. No sizing or positioning will be performed in this situation.

    + * @param {Element/HTMLElement/String} container (optional) The element this Component should be + * rendered into. If it is being created from existing markup, this should be omitted. + * @param {String/Number} position (optional) The element ID or DOM node index within the container before + * which this component will be inserted (defaults to appending to the end of the container) + */ + render : function(container, position){ + if(!this.rendered && this.fireEvent('beforerender', this) !== false){ + if(!container && this.el){ + this.el = Ext.get(this.el); + container = this.el.dom.parentNode; + this.allowDomMove = false; + } + this.container = Ext.get(container); + if(this.ctCls){ + this.container.addClass(this.ctCls); + } + this.rendered = true; + if(position !== undefined){ + if(Ext.isNumber(position)){ + position = this.container.dom.childNodes[position]; + }else{ + position = Ext.getDom(position); + } + } + this.onRender(this.container, position || null); + if(this.autoShow){ + this.el.removeClass(['x-hidden','x-hide-' + this.hideMode]); + } + if(this.cls){ + this.el.addClass(this.cls); + delete this.cls; + } + if(this.style){ + this.el.applyStyles(this.style); + delete this.style; + } + if(this.overCls){ + this.el.addClassOnOver(this.overCls); + } + this.fireEvent('render', this); + + + // Populate content of the component with html, contentEl or + // a tpl. + var contentTarget = this.getContentTarget(); + if (this.html){ + contentTarget.update(Ext.DomHelper.markup(this.html)); + delete this.html; + } + if (this.contentEl){ + var ce = Ext.getDom(this.contentEl); + Ext.fly(ce).removeClass(['x-hidden', 'x-hide-display']); + contentTarget.appendChild(ce); + } + if (this.tpl) { + if (!this.tpl.compile) { + this.tpl = new Ext.XTemplate(this.tpl); + } + if (this.data) { + this.tpl[this.tplWriteMode](contentTarget, this.data); + delete this.data; + } + } + this.afterRender(this.container); + + + if(this.hidden){ + // call this so we don't fire initial hide events. + this.doHide(); + } + if(this.disabled){ + // pass silent so the event doesn't fire the first time. + this.disable(true); + } + + if(this.stateful !== false){ + this.initStateEvents(); + } + this.fireEvent('afterrender', this); + } + return this; + }, + + + /** + * Update the content area of a component. + * @param {Mixed} htmlOrData + * If this component has been configured with a template via the tpl config + * then it will use this argument as data to populate the template. + * If this component was not configured with a template, the components + * content area will be updated via Ext.Element update + * @param {Boolean} loadScripts + * (optional) Only legitimate when using the html configuration. Defaults to false + * @param {Function} callback + * (optional) Only legitimate when using the html configuration. Callback to execute when scripts have finished loading + */ + update: function(htmlOrData, loadScripts, cb) { + var contentTarget = this.getContentTarget(); + if (this.tpl && typeof htmlOrData !== "string") { + this.tpl[this.tplWriteMode](contentTarget, htmlOrData || {}); + } else { + var html = Ext.isObject(htmlOrData) ? Ext.DomHelper.markup(htmlOrData) : htmlOrData; + contentTarget.update(html, loadScripts, cb); + } + }, + + + /** + * @private + * Method to manage awareness of when components are added to their + * respective Container, firing an added event. + * References are established at add time rather than at render time. + * @param {Ext.Container} container Container which holds the component + * @param {number} pos Position at which the component was added + */ + onAdded : function(container, pos) { + this.ownerCt = container; + this.initRef(); + this.fireEvent('added', this, container, pos); + }, + + /** + * @private + * Method to manage awareness of when components are removed from their + * respective Container, firing an removed event. References are properly + * cleaned up after removing a component from its owning container. + */ + onRemoved : function() { + this.removeRef(); + this.fireEvent('removed', this, this.ownerCt); + delete this.ownerCt; + }, + + /** + * @private + * Method to establish a reference to a component. + */ + initRef : function() { + /** + * @cfg {String} ref + *

    A path specification, relative to the Component's {@link #ownerCt} + * specifying into which ancestor Container to place a named reference to this Component.

    + *

    The ancestor axis can be traversed by using '/' characters in the path. + * For example, to put a reference to a Toolbar Button into the Panel which owns the Toolbar:

    
    +var myGrid = new Ext.grid.EditorGridPanel({
    +    title: 'My EditorGridPanel',
    +    store: myStore,
    +    colModel: myColModel,
    +    tbar: [{
    +        text: 'Save',
    +        handler: saveChanges,
    +        disabled: true,
    +        ref: '../saveButton'
    +    }],
    +    listeners: {
    +        afteredit: function() {
    +//          The button reference is in the GridPanel
    +            myGrid.saveButton.enable();
    +        }
    +    }
    +});
    +
    + *

    In the code above, if the ref had been 'saveButton' + * the reference would have been placed into the Toolbar. Each '/' in the ref + * moves up one level from the Component's {@link #ownerCt}.

    + *

    Also see the {@link #added} and {@link #removed} events.

    + */ + if(this.ref && !this.refOwner){ + var levels = this.ref.split('/'), + last = levels.length, + i = 0, + t = this; + + while(t && i < last){ + t = t.ownerCt; + ++i; + } + if(t){ + t[this.refName = levels[--i]] = this; + /** + * @type Ext.Container + * @property refOwner + * The ancestor Container into which the {@link #ref} reference was inserted if this Component + * is a child of a Container, and has been configured with a ref. + */ + this.refOwner = t; + } + } + }, + + removeRef : function() { + if (this.refOwner && this.refName) { + delete this.refOwner[this.refName]; + delete this.refOwner; + } + }, + + // private + initState : function(){ + if(Ext.state.Manager){ + var id = this.getStateId(); + if(id){ + var state = Ext.state.Manager.get(id); + if(state){ + if(this.fireEvent('beforestaterestore', this, state) !== false){ + this.applyState(Ext.apply({}, state)); + this.fireEvent('staterestore', this, state); + } + } + } + } + }, + + // private + getStateId : function(){ + return this.stateId || ((/^(ext-comp-|ext-gen)/).test(String(this.id)) ? null : this.id); + }, + + // private + initStateEvents : function(){ + if(this.stateEvents){ + for(var i = 0, e; e = this.stateEvents[i]; i++){ + this.on(e, this.saveState, this, {delay:100}); + } + } + }, + + // private + applyState : function(state){ + if(state){ + Ext.apply(this, state); + } + }, + + // private + getState : function(){ + return null; + }, + + // private + saveState : function(){ + if(Ext.state.Manager && this.stateful !== false){ + var id = this.getStateId(); + if(id){ + var state = this.getState(); + if(this.fireEvent('beforestatesave', this, state) !== false){ + Ext.state.Manager.set(id, state); + this.fireEvent('statesave', this, state); + } + } + } + }, + + /** + * Apply this component to existing markup that is valid. With this function, no call to render() is required. + * @param {String/HTMLElement} el + */ + applyToMarkup : function(el){ + this.allowDomMove = false; + this.el = Ext.get(el); + this.render(this.el.dom.parentNode); + }, + + /** + * Adds a CSS class to the component's underlying element. + * @param {string} cls The CSS class name to add + * @return {Ext.Component} this + */ + addClass : function(cls){ + if(this.el){ + this.el.addClass(cls); + }else{ + this.cls = this.cls ? this.cls + ' ' + cls : cls; + } + return this; + }, + + /** + * Removes a CSS class from the component's underlying element. + * @param {string} cls The CSS class name to remove + * @return {Ext.Component} this + */ + removeClass : function(cls){ + if(this.el){ + this.el.removeClass(cls); + }else if(this.cls){ + this.cls = this.cls.split(' ').remove(cls).join(' '); + } + return this; + }, + + // private + // default function is not really useful + onRender : function(ct, position){ + if(!this.el && this.autoEl){ + if(Ext.isString(this.autoEl)){ + this.el = document.createElement(this.autoEl); + }else{ + var div = document.createElement('div'); + Ext.DomHelper.overwrite(div, this.autoEl); + this.el = div.firstChild; + } + if (!this.el.id) { + this.el.id = this.getId(); + } + } + if(this.el){ + this.el = Ext.get(this.el); + if(this.allowDomMove !== false){ + ct.dom.insertBefore(this.el.dom, position); + if (div) { + Ext.removeNode(div); + div = null; + } + } + } + }, + + // private + getAutoCreate : function(){ + var cfg = Ext.isObject(this.autoCreate) ? + this.autoCreate : Ext.apply({}, this.defaultAutoCreate); + if(this.id && !cfg.id){ + cfg.id = this.id; + } + return cfg; + }, + + // private + afterRender : Ext.emptyFn, + + /** + * Destroys this component by purging any event listeners, removing the component's element from the DOM, + * removing the component from its {@link Ext.Container} (if applicable) and unregistering it from + * {@link Ext.ComponentMgr}. Destruction is generally handled automatically by the framework and this method + * should usually not need to be called directly. + * + */ + destroy : function(){ + if(!this.isDestroyed){ + if(this.fireEvent('beforedestroy', this) !== false){ + this.destroying = true; + this.beforeDestroy(); + if(this.ownerCt && this.ownerCt.remove){ + this.ownerCt.remove(this, false); + } + if(this.rendered){ + this.el.remove(); + if(this.actionMode == 'container' || this.removeMode == 'container'){ + this.container.remove(); + } + } + // Stop any buffered tasks + if(this.focusTask && this.focusTask.cancel){ + this.focusTask.cancel(); + } + this.onDestroy(); + Ext.ComponentMgr.unregister(this); + this.fireEvent('destroy', this); + this.purgeListeners(); + this.destroying = false; + this.isDestroyed = true; + } + } + }, + + deleteMembers : function(){ + var args = arguments; + for(var i = 0, len = args.length; i < len; ++i){ + delete this[args[i]]; + } + }, + + // private + beforeDestroy : Ext.emptyFn, + + // private + onDestroy : Ext.emptyFn, + + /** + *

    Returns the {@link Ext.Element} which encapsulates this Component.

    + *

    This will usually be a <DIV> element created by the class's onRender method, but + * that may be overridden using the {@link #autoEl} config.

    + *

    Note: this element will not be available until this Component has been rendered.


    + *

    To add listeners for DOM events to this Component (as opposed to listeners + * for this Component's own Observable events), see the {@link #listeners} config for a suggestion, + * or use a render listener directly:

    
    +new Ext.Panel({
    +    title: 'The Clickable Panel',
    +    listeners: {
    +        render: function(p) {
    +            // Append the Panel to the click handler's argument list.
    +            p.getEl().on('click', handlePanelClick.createDelegate(null, [p], true));
    +        },
    +        single: true  // Remove the listener after first invocation
    +    }
    +});
    +
    + * @return {Ext.Element} The Element which encapsulates this Component. + */ + getEl : function(){ + return this.el; + }, + + // private + getContentTarget : function(){ + return this.el; + }, + + /** + * Returns the id of this component or automatically generates and + * returns an id if an id is not defined yet:
    
    +     * 'ext-comp-' + (++Ext.Component.AUTO_ID)
    +     * 
    + * @return {String} id + */ + getId : function(){ + return this.id || (this.id = 'ext-comp-' + (++Ext.Component.AUTO_ID)); + }, + + /** + * Returns the {@link #itemId} of this component. If an + * {@link #itemId} was not assigned through configuration the + * id is returned using {@link #getId}. + * @return {String} + */ + getItemId : function(){ + return this.itemId || this.getId(); + }, + + /** + * Try to focus this component. + * @param {Boolean} selectText (optional) If applicable, true to also select the text in this component + * @param {Boolean/Number} delay (optional) Delay the focus this number of milliseconds (true for 10 milliseconds) + * @return {Ext.Component} this + */ + focus : function(selectText, delay){ + if(delay){ + this.focusTask = new Ext.util.DelayedTask(this.focus, this, [selectText, false]); + this.focusTask.delay(Ext.isNumber(delay) ? delay : 10); + return; + } + if(this.rendered && !this.isDestroyed){ + this.el.focus(); + if(selectText === true){ + this.el.dom.select(); + } + } + return this; + }, + + // private + blur : function(){ + if(this.rendered){ + this.el.blur(); + } + return this; + }, + + /** + * Disable this component and fire the 'disable' event. + * @return {Ext.Component} this + */ + disable : function(/* private */ silent){ + if(this.rendered){ + this.onDisable(); + } + this.disabled = true; + if(silent !== true){ + this.fireEvent('disable', this); + } + return this; + }, + + // private + onDisable : function(){ + this.getActionEl().addClass(this.disabledClass); + this.el.dom.disabled = true; + }, + + /** + * Enable this component and fire the 'enable' event. + * @return {Ext.Component} this + */ + enable : function(){ + if(this.rendered){ + this.onEnable(); + } + this.disabled = false; + this.fireEvent('enable', this); + return this; + }, + + // private + onEnable : function(){ + this.getActionEl().removeClass(this.disabledClass); + this.el.dom.disabled = false; + }, + + /** + * Convenience function for setting disabled/enabled by boolean. + * @param {Boolean} disabled + * @return {Ext.Component} this + */ + setDisabled : function(disabled){ + return this[disabled ? 'disable' : 'enable'](); + }, + + /** + * Show this component. Listen to the '{@link #beforeshow}' event and return + * false to cancel showing the component. Fires the '{@link #show}' + * event after showing the component. + * @return {Ext.Component} this + */ + show : function(){ + if(this.fireEvent('beforeshow', this) !== false){ + this.hidden = false; + if(this.autoRender){ + this.render(Ext.isBoolean(this.autoRender) ? Ext.getBody() : this.autoRender); + } + if(this.rendered){ + this.onShow(); + } + this.fireEvent('show', this); + } + return this; + }, + + // private + onShow : function(){ + this.getVisibilityEl().removeClass('x-hide-' + this.hideMode); + }, + + /** + * Hide this component. Listen to the '{@link #beforehide}' event and return + * false to cancel hiding the component. Fires the '{@link #hide}' + * event after hiding the component. Note this method is called internally if + * the component is configured to be {@link #hidden}. + * @return {Ext.Component} this + */ + hide : function(){ + if(this.fireEvent('beforehide', this) !== false){ + this.doHide(); + this.fireEvent('hide', this); + } + return this; + }, + + // private + doHide: function(){ + this.hidden = true; + if(this.rendered){ + this.onHide(); + } + }, + + // private + onHide : function(){ + this.getVisibilityEl().addClass('x-hide-' + this.hideMode); + }, + + // private + getVisibilityEl : function(){ + return this.hideParent ? this.container : this.getActionEl(); + }, + + /** + * Convenience function to hide or show this component by boolean. + * @param {Boolean} visible True to show, false to hide + * @return {Ext.Component} this + */ + setVisible : function(visible){ + return this[visible ? 'show' : 'hide'](); + }, + + /** + * Returns true if this component is visible. + * @return {Boolean} True if this component is visible, false otherwise. + */ + isVisible : function(){ + return this.rendered && this.getVisibilityEl().isVisible(); + }, + + /** + * Clone the current component using the original config values passed into this instance by default. + * @param {Object} overrides A new config containing any properties to override in the cloned version. + * An id property can be passed on this object, otherwise one will be generated to avoid duplicates. + * @return {Ext.Component} clone The cloned copy of this component + */ + cloneConfig : function(overrides){ + overrides = overrides || {}; + var id = overrides.id || Ext.id(); + var cfg = Ext.applyIf(overrides, this.initialConfig); + cfg.id = id; // prevent dup id + return new this.constructor(cfg); + }, + + /** + * Gets the xtype for this component as registered with {@link Ext.ComponentMgr}. For a list of all + * available xtypes, see the {@link Ext.Component} header. Example usage: + *
    
    +var t = new Ext.form.TextField();
    +alert(t.getXType());  // alerts 'textfield'
    +
    + * @return {String} The xtype + */ + getXType : function(){ + return this.constructor.xtype; + }, + + /** + *

    Tests whether or not this Component is of a specific xtype. This can test whether this Component is descended + * from the xtype (default) or whether it is directly of the xtype specified (shallow = true).

    + *

    If using your own subclasses, be aware that a Component must register its own xtype + * to participate in determination of inherited xtypes.

    + *

    For a list of all available xtypes, see the {@link Ext.Component} header.

    + *

    Example usage:

    + *
    
    +var t = new Ext.form.TextField();
    +var isText = t.isXType('textfield');        // true
    +var isBoxSubclass = t.isXType('box');       // true, descended from BoxComponent
    +var isBoxInstance = t.isXType('box', true); // false, not a direct BoxComponent instance
    +
    + * @param {String} xtype The xtype to check for this Component + * @param {Boolean} shallow (optional) False to check whether this Component is descended from the xtype (this is + * the default), or true to check whether this Component is directly of the specified xtype. + * @return {Boolean} True if this component descends from the specified xtype, false otherwise. + */ + isXType : function(xtype, shallow){ + //assume a string by default + if (Ext.isFunction(xtype)){ + xtype = xtype.xtype; //handle being passed the class, e.g. Ext.Component + }else if (Ext.isObject(xtype)){ + xtype = xtype.constructor.xtype; //handle being passed an instance + } + + return !shallow ? ('/' + this.getXTypes() + '/').indexOf('/' + xtype + '/') != -1 : this.constructor.xtype == xtype; + }, + + /** + *

    Returns this Component's xtype hierarchy as a slash-delimited string. For a list of all + * available xtypes, see the {@link Ext.Component} header.

    + *

    If using your own subclasses, be aware that a Component must register its own xtype + * to participate in determination of inherited xtypes.

    + *

    Example usage:

    + *
    
    +var t = new Ext.form.TextField();
    +alert(t.getXTypes());  // alerts 'component/box/field/textfield'
    +
    + * @return {String} The xtype hierarchy string + */ + getXTypes : function(){ + var tc = this.constructor; + if(!tc.xtypes){ + var c = [], sc = this; + while(sc && sc.constructor.xtype){ + c.unshift(sc.constructor.xtype); + sc = sc.constructor.superclass; + } + tc.xtypeChain = c; + tc.xtypes = c.join('/'); + } + return tc.xtypes; + }, + + /** + * Find a container above this component at any level by a custom function. If the passed function returns + * true, the container will be returned. + * @param {Function} fn The custom function to call with the arguments (container, this component). + * @return {Ext.Container} The first Container for which the custom function returns true + */ + findParentBy : function(fn) { + for (var p = this.ownerCt; (p != null) && !fn(p, this); p = p.ownerCt); + return p || null; + }, + + /** + * Find a container above this component at any level by xtype or class + * @param {String/Class} xtype The xtype string for a component, or the class of the component directly + * @return {Ext.Container} The first Container which matches the given xtype or class + */ + findParentByType : function(xtype) { + return Ext.isFunction(xtype) ? + this.findParentBy(function(p){ + return p.constructor === xtype; + }) : + this.findParentBy(function(p){ + return p.constructor.xtype === xtype; + }); + }, + + // protected + getPositionEl : function(){ + return this.positionEl || this.el; + }, + + // private + purgeListeners : function(){ + Ext.Component.superclass.purgeListeners.call(this); + if(this.mons){ + this.on('beforedestroy', this.clearMons, this, {single: true}); + } + }, + + // private + clearMons : function(){ + Ext.each(this.mons, function(m){ + m.item.un(m.ename, m.fn, m.scope); + }, this); + this.mons = []; + }, + + // private + createMons: function(){ + if(!this.mons){ + this.mons = []; + this.on('beforedestroy', this.clearMons, this, {single: true}); + } + }, + + /** + *

    Adds listeners to any Observable object (or Elements) which are automatically removed when this Component + * is destroyed. Usage:

    +myGridPanel.mon(myGridPanel.getSelectionModel(), 'selectionchange', handleSelectionChange, null, {buffer: 50});
    +
    + *

    or:

    +myGridPanel.mon(myGridPanel.getSelectionModel(), {
    +    selectionchange: handleSelectionChange,
    +    buffer: 50
    +});
    +
    + * @param {Observable|Element} item The item to which to add a listener/listeners. + * @param {Object|String} ename The event name, or an object containing event name properties. + * @param {Function} fn Optional. If the ename parameter was an event name, this + * is the handler function. + * @param {Object} scope Optional. If the ename parameter was an event name, this + * is the scope (this reference) in which the handler function is executed. + * @param {Object} opt Optional. If the ename parameter was an event name, this + * is the {@link Ext.util.Observable#addListener addListener} options. + */ + mon : function(item, ename, fn, scope, opt){ + this.createMons(); + if(Ext.isObject(ename)){ + var propRe = /^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/; + + var o = ename; + for(var e in o){ + if(propRe.test(e)){ + continue; + } + if(Ext.isFunction(o[e])){ + // shared options + this.mons.push({ + item: item, ename: e, fn: o[e], scope: o.scope + }); + item.on(e, o[e], o.scope, o); + }else{ + // individual options + this.mons.push({ + item: item, ename: e, fn: o[e], scope: o.scope + }); + item.on(e, o[e]); + } + } + return; + } + + this.mons.push({ + item: item, ename: ename, fn: fn, scope: scope + }); + item.on(ename, fn, scope, opt); + }, + + /** + * Removes listeners that were added by the {@link #mon} method. + * @param {Observable|Element} item The item from which to remove a listener/listeners. + * @param {Object|String} ename The event name, or an object containing event name properties. + * @param {Function} fn Optional. If the ename parameter was an event name, this + * is the handler function. + * @param {Object} scope Optional. If the ename parameter was an event name, this + * is the scope (this reference) in which the handler function is executed. + */ + mun : function(item, ename, fn, scope){ + var found, mon; + this.createMons(); + for(var i = 0, len = this.mons.length; i < len; ++i){ + mon = this.mons[i]; + if(item === mon.item && ename == mon.ename && fn === mon.fn && scope === mon.scope){ + this.mons.splice(i, 1); + item.un(ename, fn, scope); + found = true; + break; + } + } + return found; + }, + + /** + * Returns the next component in the owning container + * @return Ext.Component + */ + nextSibling : function(){ + if(this.ownerCt){ + var index = this.ownerCt.items.indexOf(this); + if(index != -1 && index+1 < this.ownerCt.items.getCount()){ + return this.ownerCt.items.itemAt(index+1); + } + } + return null; + }, + + /** + * Returns the previous component in the owning container + * @return Ext.Component + */ + previousSibling : function(){ + if(this.ownerCt){ + var index = this.ownerCt.items.indexOf(this); + if(index > 0){ + return this.ownerCt.items.itemAt(index-1); + } + } + return null; + }, + + /** + * Provides the link for Observable's fireEvent method to bubble up the ownership hierarchy. + * @return {Ext.Container} the Container which owns this Component. + */ + getBubbleTarget : function(){ + return this.ownerCt; + } +}); + +Ext.reg('component', Ext.Component);/** + * @class Ext.Action + *

    An Action is a piece of reusable functionality that can be abstracted out of any particular component so that it + * can be usefully shared among multiple components. Actions let you share handlers, configuration options and UI + * updates across any components that support the Action interface (primarily {@link Ext.Toolbar}, {@link Ext.Button} + * and {@link Ext.menu.Menu} components).

    + *

    Aside from supporting the config object interface, any component that needs to use Actions must also support + * the following method list, as these will be called as needed by the Action class: setText(string), setIconCls(string), + * setDisabled(boolean), setVisible(boolean) and setHandler(function).

    + * Example usage:
    + *
    
    +// Define the shared action.  Each component below will have the same
    +// display text and icon, and will display the same message on click.
    +var action = new Ext.Action({
    +    {@link #text}: 'Do something',
    +    {@link #handler}: function(){
    +        Ext.Msg.alert('Click', 'You did something.');
    +    },
    +    {@link #iconCls}: 'do-something',
    +    {@link #itemId}: 'myAction'
    +});
    +
    +var panel = new Ext.Panel({
    +    title: 'Actions',
    +    width: 500,
    +    height: 300,
    +    tbar: [
    +        // Add the action directly to a toolbar as a menu button
    +        action,
    +        {
    +            text: 'Action Menu',
    +            // Add the action to a menu as a text item
    +            menu: [action]
    +        }
    +    ],
    +    items: [
    +        // Add the action to the panel body as a standard button
    +        new Ext.Button(action)
    +    ],
    +    renderTo: Ext.getBody()
    +});
    +
    +// Change the text for all components using the action
    +action.setText('Something else');
    +
    +// Reference an action through a container using the itemId
    +var btn = panel.getComponent('myAction');
    +var aRef = btn.baseAction;
    +aRef.setText('New text');
    +
    + * @constructor + * @param {Object} config The configuration options + */ +Ext.Action = Ext.extend(Object, { + /** + * @cfg {String} text The text to set for all components using this action (defaults to ''). + */ + /** + * @cfg {String} iconCls + * The CSS class selector that specifies a background image to be used as the header icon for + * all components using this action (defaults to ''). + *

    An example of specifying a custom icon class would be something like: + *

    
    +// specify the property in the config for the class:
    +     ...
    +     iconCls: 'do-something'
    +
    +// css class that specifies background image to be used as the icon image:
    +.do-something { background-image: url(../images/my-icon.gif) 0 6px no-repeat !important; }
    +
    + */ + /** + * @cfg {Boolean} disabled True to disable all components using this action, false to enable them (defaults to false). + */ + /** + * @cfg {Boolean} hidden True to hide all components using this action, false to show them (defaults to false). + */ + /** + * @cfg {Function} handler The function that will be invoked by each component tied to this action + * when the component's primary event is triggered (defaults to undefined). + */ + /** + * @cfg {String} itemId + * See {@link Ext.Component}.{@link Ext.Component#itemId itemId}. + */ + /** + * @cfg {Object} scope The scope (this reference) in which the + * {@link #handler} is executed. Defaults to this Button. + */ + + constructor : function(config){ + this.initialConfig = config; + this.itemId = config.itemId = (config.itemId || config.id || Ext.id()); + this.items = []; + }, + + // private + isAction : true, + + /** + * Sets the text to be displayed by all components using this action. + * @param {String} text The text to display + */ + setText : function(text){ + this.initialConfig.text = text; + this.callEach('setText', [text]); + }, + + /** + * Gets the text currently displayed by all components using this action. + */ + getText : function(){ + return this.initialConfig.text; + }, + + /** + * Sets the icon CSS class for all components using this action. The class should supply + * a background image that will be used as the icon image. + * @param {String} cls The CSS class supplying the icon image + */ + setIconClass : function(cls){ + this.initialConfig.iconCls = cls; + this.callEach('setIconClass', [cls]); + }, + + /** + * Gets the icon CSS class currently used by all components using this action. + */ + getIconClass : function(){ + return this.initialConfig.iconCls; + }, + + /** + * Sets the disabled state of all components using this action. Shortcut method + * for {@link #enable} and {@link #disable}. + * @param {Boolean} disabled True to disable the component, false to enable it + */ + setDisabled : function(v){ + this.initialConfig.disabled = v; + this.callEach('setDisabled', [v]); + }, + + /** + * Enables all components using this action. + */ + enable : function(){ + this.setDisabled(false); + }, + + /** + * Disables all components using this action. + */ + disable : function(){ + this.setDisabled(true); + }, + + /** + * Returns true if the components using this action are currently disabled, else returns false. + */ + isDisabled : function(){ + return this.initialConfig.disabled; + }, + + /** + * Sets the hidden state of all components using this action. Shortcut method + * for {@link #hide} and {@link #show}. + * @param {Boolean} hidden True to hide the component, false to show it + */ + setHidden : function(v){ + this.initialConfig.hidden = v; + this.callEach('setVisible', [!v]); + }, + + /** + * Shows all components using this action. + */ + show : function(){ + this.setHidden(false); + }, + + /** + * Hides all components using this action. + */ + hide : function(){ + this.setHidden(true); + }, + + /** + * Returns true if the components using this action are currently hidden, else returns false. + */ + isHidden : function(){ + return this.initialConfig.hidden; + }, + + /** + * Sets the function that will be called by each Component using this action when its primary event is triggered. + * @param {Function} fn The function that will be invoked by the action's components. The function + * will be called with no arguments. + * @param {Object} scope The scope (this reference) in which the function is executed. Defaults to the Component firing the event. + */ + setHandler : function(fn, scope){ + this.initialConfig.handler = fn; + this.initialConfig.scope = scope; + this.callEach('setHandler', [fn, scope]); + }, + + /** + * Executes the specified function once for each Component currently tied to this action. The function passed + * in should accept a single argument that will be an object that supports the basic Action config/method interface. + * @param {Function} fn The function to execute for each component + * @param {Object} scope The scope (this reference) in which the function is executed. Defaults to the Component. + */ + each : function(fn, scope){ + Ext.each(this.items, fn, scope); + }, + + // private + callEach : function(fnName, args){ + var cs = this.items; + for(var i = 0, len = cs.length; i < len; i++){ + cs[i][fnName].apply(cs[i], args); + } + }, + + // private + addComponent : function(comp){ + this.items.push(comp); + comp.on('destroy', this.removeComponent, this); + }, + + // private + removeComponent : function(comp){ + this.items.remove(comp); + }, + + /** + * Executes this action manually using the handler function specified in the original config object + * or the handler function set with {@link #setHandler}. Any arguments passed to this + * function will be passed on to the handler function. + * @param {Mixed} arg1 (optional) Variable number of arguments passed to the handler function + * @param {Mixed} arg2 (optional) + * @param {Mixed} etc... (optional) + */ + execute : function(){ + this.initialConfig.handler.apply(this.initialConfig.scope || window, arguments); + } +}); +/** + * @class Ext.Layer + * @extends Ext.Element + * An extended {@link Ext.Element} object that supports a shadow and shim, constrain to viewport and + * automatic maintaining of shadow/shim positions. + * @cfg {Boolean} shim False to disable the iframe shim in browsers which need one (defaults to true) + * @cfg {String/Boolean} shadow True to automatically create an {@link Ext.Shadow}, or a string indicating the + * shadow's display {@link Ext.Shadow#mode}. False to disable the shadow. (defaults to false) + * @cfg {Object} dh DomHelper object config to create element with (defaults to {tag: 'div', cls: 'x-layer'}). + * @cfg {Boolean} constrain False to disable constrain to viewport (defaults to true) + * @cfg {String} cls CSS class to add to the element + * @cfg {Number} zindex Starting z-index (defaults to 11000) + * @cfg {Number} shadowOffset Number of pixels to offset the shadow (defaults to 4) + * @cfg {Boolean} useDisplay + * Defaults to use css offsets to hide the Layer. Specify true + * to use css style 'display:none;' to hide the Layer. + * @constructor + * @param {Object} config An object with config options. + * @param {String/HTMLElement} existingEl (optional) Uses an existing DOM element. If the element is not found it creates it. + */ +(function(){ +Ext.Layer = function(config, existingEl){ + config = config || {}; + var dh = Ext.DomHelper; + var cp = config.parentEl, pel = cp ? Ext.getDom(cp) : document.body; + if(existingEl){ + this.dom = Ext.getDom(existingEl); + } + if(!this.dom){ + var o = config.dh || {tag: 'div', cls: 'x-layer'}; + this.dom = dh.append(pel, o); + } + if(config.cls){ + this.addClass(config.cls); + } + this.constrain = config.constrain !== false; + this.setVisibilityMode(Ext.Element.VISIBILITY); + if(config.id){ + this.id = this.dom.id = config.id; + }else{ + this.id = Ext.id(this.dom); + } + this.zindex = config.zindex || this.getZIndex(); + this.position('absolute', this.zindex); + if(config.shadow){ + this.shadowOffset = config.shadowOffset || 4; + this.shadow = new Ext.Shadow({ + offset : this.shadowOffset, + mode : config.shadow + }); + }else{ + this.shadowOffset = 0; + } + this.useShim = config.shim !== false && Ext.useShims; + this.useDisplay = config.useDisplay; + this.hide(); +}; + +var supr = Ext.Element.prototype; + +// shims are shared among layer to keep from having 100 iframes +var shims = []; + +Ext.extend(Ext.Layer, Ext.Element, { + + getZIndex : function(){ + return this.zindex || parseInt((this.getShim() || this).getStyle('z-index'), 10) || 11000; + }, + + getShim : function(){ + if(!this.useShim){ + return null; + } + if(this.shim){ + return this.shim; + } + var shim = shims.shift(); + if(!shim){ + shim = this.createShim(); + shim.enableDisplayMode('block'); + shim.dom.style.display = 'none'; + shim.dom.style.visibility = 'visible'; + } + var pn = this.dom.parentNode; + if(shim.dom.parentNode != pn){ + pn.insertBefore(shim.dom, this.dom); + } + shim.setStyle('z-index', this.getZIndex()-2); + this.shim = shim; + return shim; + }, + + hideShim : function(){ + if(this.shim){ + this.shim.setDisplayed(false); + shims.push(this.shim); + delete this.shim; + } + }, + + disableShadow : function(){ + if(this.shadow){ + this.shadowDisabled = true; + this.shadow.hide(); + this.lastShadowOffset = this.shadowOffset; + this.shadowOffset = 0; + } + }, + + enableShadow : function(show){ + if(this.shadow){ + this.shadowDisabled = false; + this.shadowOffset = this.lastShadowOffset; + delete this.lastShadowOffset; + if(show){ + this.sync(true); + } + } + }, + + // private + // this code can execute repeatedly in milliseconds (i.e. during a drag) so + // code size was sacrificed for effeciency (e.g. no getBox/setBox, no XY calls) + sync : function(doShow){ + var shadow = this.shadow; + if(!this.updating && this.isVisible() && (shadow || this.useShim)){ + var shim = this.getShim(), + w = this.getWidth(), + h = this.getHeight(), + l = this.getLeft(true), + t = this.getTop(true); + + if(shadow && !this.shadowDisabled){ + if(doShow && !shadow.isVisible()){ + shadow.show(this); + }else{ + shadow.realign(l, t, w, h); + } + if(shim){ + if(doShow){ + shim.show(); + } + // fit the shim behind the shadow, so it is shimmed too + var shadowAdj = shadow.el.getXY(), shimStyle = shim.dom.style, + shadowSize = shadow.el.getSize(); + shimStyle.left = (shadowAdj[0])+'px'; + shimStyle.top = (shadowAdj[1])+'px'; + shimStyle.width = (shadowSize.width)+'px'; + shimStyle.height = (shadowSize.height)+'px'; + } + }else if(shim){ + if(doShow){ + shim.show(); + } + shim.setSize(w, h); + shim.setLeftTop(l, t); + } + } + }, + + // private + destroy : function(){ + this.hideShim(); + if(this.shadow){ + this.shadow.hide(); + } + this.removeAllListeners(); + Ext.removeNode(this.dom); + delete this.dom; + }, + + remove : function(){ + this.destroy(); + }, + + // private + beginUpdate : function(){ + this.updating = true; + }, + + // private + endUpdate : function(){ + this.updating = false; + this.sync(true); + }, + + // private + hideUnders : function(negOffset){ + if(this.shadow){ + this.shadow.hide(); + } + this.hideShim(); + }, + + // private + constrainXY : function(){ + if(this.constrain){ + var vw = Ext.lib.Dom.getViewWidth(), + vh = Ext.lib.Dom.getViewHeight(); + var s = Ext.getDoc().getScroll(); + + var xy = this.getXY(); + var x = xy[0], y = xy[1]; + var so = this.shadowOffset; + var w = this.dom.offsetWidth+so, h = this.dom.offsetHeight+so; + // only move it if it needs it + var moved = false; + // first validate right/bottom + if((x + w) > vw+s.left){ + x = vw - w - so; + moved = true; + } + if((y + h) > vh+s.top){ + y = vh - h - so; + moved = true; + } + // then make sure top/left isn't negative + if(x < s.left){ + x = s.left; + moved = true; + } + if(y < s.top){ + y = s.top; + moved = true; + } + if(moved){ + if(this.avoidY){ + var ay = this.avoidY; + if(y <= ay && (y+h) >= ay){ + y = ay-h-5; + } + } + xy = [x, y]; + this.storeXY(xy); + supr.setXY.call(this, xy); + this.sync(); + } + } + return this; + }, + + isVisible : function(){ + return this.visible; + }, + + // private + showAction : function(){ + this.visible = true; // track visibility to prevent getStyle calls + if(this.useDisplay === true){ + this.setDisplayed(''); + }else if(this.lastXY){ + supr.setXY.call(this, this.lastXY); + }else if(this.lastLT){ + supr.setLeftTop.call(this, this.lastLT[0], this.lastLT[1]); + } + }, + + // private + hideAction : function(){ + this.visible = false; + if(this.useDisplay === true){ + this.setDisplayed(false); + }else{ + this.setLeftTop(-10000,-10000); + } + }, + + // overridden Element method + setVisible : function(v, a, d, c, e){ + if(v){ + this.showAction(); + } + if(a && v){ + var cb = function(){ + this.sync(true); + if(c){ + c(); + } + }.createDelegate(this); + supr.setVisible.call(this, true, true, d, cb, e); + }else{ + if(!v){ + this.hideUnders(true); + } + var cb = c; + if(a){ + cb = function(){ + this.hideAction(); + if(c){ + c(); + } + }.createDelegate(this); + } + supr.setVisible.call(this, v, a, d, cb, e); + if(v){ + this.sync(true); + }else if(!a){ + this.hideAction(); + } + } + return this; + }, + + storeXY : function(xy){ + delete this.lastLT; + this.lastXY = xy; + }, + + storeLeftTop : function(left, top){ + delete this.lastXY; + this.lastLT = [left, top]; + }, + + // private + beforeFx : function(){ + this.beforeAction(); + return Ext.Layer.superclass.beforeFx.apply(this, arguments); + }, + + // private + afterFx : function(){ + Ext.Layer.superclass.afterFx.apply(this, arguments); + this.sync(this.isVisible()); + }, + + // private + beforeAction : function(){ + if(!this.updating && this.shadow){ + this.shadow.hide(); + } + }, + + // overridden Element method + setLeft : function(left){ + this.storeLeftTop(left, this.getTop(true)); + supr.setLeft.apply(this, arguments); + this.sync(); + return this; + }, + + setTop : function(top){ + this.storeLeftTop(this.getLeft(true), top); + supr.setTop.apply(this, arguments); + this.sync(); + return this; + }, + + setLeftTop : function(left, top){ + this.storeLeftTop(left, top); + supr.setLeftTop.apply(this, arguments); + this.sync(); + return this; + }, + + setXY : function(xy, a, d, c, e){ + this.fixDisplay(); + this.beforeAction(); + this.storeXY(xy); + var cb = this.createCB(c); + supr.setXY.call(this, xy, a, d, cb, e); + if(!a){ + cb(); + } + return this; + }, + + // private + createCB : function(c){ + var el = this; + return function(){ + el.constrainXY(); + el.sync(true); + if(c){ + c(); + } + }; + }, + + // overridden Element method + setX : function(x, a, d, c, e){ + this.setXY([x, this.getY()], a, d, c, e); + return this; + }, + + // overridden Element method + setY : function(y, a, d, c, e){ + this.setXY([this.getX(), y], a, d, c, e); + return this; + }, + + // overridden Element method + setSize : function(w, h, a, d, c, e){ + this.beforeAction(); + var cb = this.createCB(c); + supr.setSize.call(this, w, h, a, d, cb, e); + if(!a){ + cb(); + } + return this; + }, + + // overridden Element method + setWidth : function(w, a, d, c, e){ + this.beforeAction(); + var cb = this.createCB(c); + supr.setWidth.call(this, w, a, d, cb, e); + if(!a){ + cb(); + } + return this; + }, + + // overridden Element method + setHeight : function(h, a, d, c, e){ + this.beforeAction(); + var cb = this.createCB(c); + supr.setHeight.call(this, h, a, d, cb, e); + if(!a){ + cb(); + } + return this; + }, + + // overridden Element method + setBounds : function(x, y, w, h, a, d, c, e){ + this.beforeAction(); + var cb = this.createCB(c); + if(!a){ + this.storeXY([x, y]); + supr.setXY.call(this, [x, y]); + supr.setSize.call(this, w, h, a, d, cb, e); + cb(); + }else{ + supr.setBounds.call(this, x, y, w, h, a, d, cb, e); + } + return this; + }, + + /** + * Sets the z-index of this layer and adjusts any shadow and shim z-indexes. The layer z-index is automatically + * incremented by two more than the value passed in so that it always shows above any shadow or shim (the shadow + * element, if any, will be assigned z-index + 1, and the shim element, if any, will be assigned the unmodified z-index). + * @param {Number} zindex The new z-index to set + * @return {this} The Layer + */ + setZIndex : function(zindex){ + this.zindex = zindex; + this.setStyle('z-index', zindex + 2); + if(this.shadow){ + this.shadow.setZIndex(zindex + 1); + } + if(this.shim){ + this.shim.setStyle('z-index', zindex); + } + return this; + } +}); +})(); +/** + * @class Ext.Shadow + * Simple class that can provide a shadow effect for any element. Note that the element MUST be absolutely positioned, + * and the shadow does not provide any shimming. This should be used only in simple cases -- for more advanced + * functionality that can also provide the same shadow effect, see the {@link Ext.Layer} class. + * @constructor + * Create a new Shadow + * @param {Object} config The config object + */ +Ext.Shadow = function(config){ + Ext.apply(this, config); + if(typeof this.mode != "string"){ + this.mode = this.defaultMode; + } + var o = this.offset, a = {h: 0}; + var rad = Math.floor(this.offset/2); + switch(this.mode.toLowerCase()){ // all this hideous nonsense calculates the various offsets for shadows + case "drop": + a.w = 0; + a.l = a.t = o; + a.t -= 1; + if(Ext.isIE){ + a.l -= this.offset + rad; + a.t -= this.offset + rad; + a.w -= rad; + a.h -= rad; + a.t += 1; + } + break; + case "sides": + a.w = (o*2); + a.l = -o; + a.t = o-1; + if(Ext.isIE){ + a.l -= (this.offset - rad); + a.t -= this.offset + rad; + a.l += 1; + a.w -= (this.offset - rad)*2; + a.w -= rad + 1; + a.h -= 1; + } + break; + case "frame": + a.w = a.h = (o*2); + a.l = a.t = -o; + a.t += 1; + a.h -= 2; + if(Ext.isIE){ + a.l -= (this.offset - rad); + a.t -= (this.offset - rad); + a.l += 1; + a.w -= (this.offset + rad + 1); + a.h -= (this.offset + rad); + a.h += 1; + } + break; + }; + + this.adjusts = a; +}; + +Ext.Shadow.prototype = { + /** + * @cfg {String} mode + * The shadow display mode. Supports the following options:
      + *
    • sides : Shadow displays on both sides and bottom only
    • + *
    • frame : Shadow displays equally on all four sides
    • + *
    • drop : Traditional bottom-right drop shadow
    • + *
    + */ + /** + * @cfg {String} offset + * The number of pixels to offset the shadow from the element (defaults to 4) + */ + offset: 4, + + // private + defaultMode: "drop", + + /** + * Displays the shadow under the target element + * @param {Mixed} targetEl The id or element under which the shadow should display + */ + show : function(target){ + target = Ext.get(target); + if(!this.el){ + this.el = Ext.Shadow.Pool.pull(); + if(this.el.dom.nextSibling != target.dom){ + this.el.insertBefore(target); + } + } + this.el.setStyle("z-index", this.zIndex || parseInt(target.getStyle("z-index"), 10)-1); + if(Ext.isIE){ + this.el.dom.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity=50) progid:DXImageTransform.Microsoft.Blur(pixelradius="+(this.offset)+")"; + } + this.realign( + target.getLeft(true), + target.getTop(true), + target.getWidth(), + target.getHeight() + ); + this.el.dom.style.display = "block"; + }, + + /** + * Returns true if the shadow is visible, else false + */ + isVisible : function(){ + return this.el ? true : false; + }, + + /** + * Direct alignment when values are already available. Show must be called at least once before + * calling this method to ensure it is initialized. + * @param {Number} left The target element left position + * @param {Number} top The target element top position + * @param {Number} width The target element width + * @param {Number} height The target element height + */ + realign : function(l, t, w, h){ + if(!this.el){ + return; + } + var a = this.adjusts, d = this.el.dom, s = d.style; + var iea = 0; + s.left = (l+a.l)+"px"; + s.top = (t+a.t)+"px"; + var sw = (w+a.w), sh = (h+a.h), sws = sw +"px", shs = sh + "px"; + if(s.width != sws || s.height != shs){ + s.width = sws; + s.height = shs; + if(!Ext.isIE){ + var cn = d.childNodes; + var sww = Math.max(0, (sw-12))+"px"; + cn[0].childNodes[1].style.width = sww; + cn[1].childNodes[1].style.width = sww; + cn[2].childNodes[1].style.width = sww; + cn[1].style.height = Math.max(0, (sh-12))+"px"; + } + } + }, + + /** + * Hides this shadow + */ + hide : function(){ + if(this.el){ + this.el.dom.style.display = "none"; + Ext.Shadow.Pool.push(this.el); + delete this.el; + } + }, + + /** + * Adjust the z-index of this shadow + * @param {Number} zindex The new z-index + */ + setZIndex : function(z){ + this.zIndex = z; + if(this.el){ + this.el.setStyle("z-index", z); + } + } +}; + +// Private utility class that manages the internal Shadow cache +Ext.Shadow.Pool = function(){ + var p = []; + var markup = Ext.isIE ? + '
    ' : + '
    '; + return { + pull : function(){ + var sh = p.shift(); + if(!sh){ + sh = Ext.get(Ext.DomHelper.insertHtml("beforeBegin", document.body.firstChild, markup)); + sh.autoBoxAdjust = false; + } + return sh; + }, + + push : function(sh){ + p.push(sh); + } + }; +}();/** + * @class Ext.BoxComponent + * @extends Ext.Component + *

    Base class for any {@link Ext.Component Component} that is to be sized as a box, using width and height.

    + *

    BoxComponent provides automatic box model adjustments for sizing and positioning and will work correctly + * within the Component rendering model.

    + *

    A BoxComponent may be created as a custom Component which encapsulates any HTML element, either a pre-existing + * element, or one that is created to your specifications at render time. Usually, to participate in layouts, + * a Component will need to be a BoxComponent in order to have its width and height managed.

    + *

    To use a pre-existing element as a BoxComponent, configure it so that you preset the el property to the + * element to reference:

    
    +var pageHeader = new Ext.BoxComponent({
    +    el: 'my-header-div'
    +});
    + * This may then be {@link Ext.Container#add added} to a {@link Ext.Container Container} as a child item.

    + *

    To create a BoxComponent based around a HTML element to be created at render time, use the + * {@link Ext.Component#autoEl autoEl} config option which takes the form of a + * {@link Ext.DomHelper DomHelper} specification:

    
    +var myImage = new Ext.BoxComponent({
    +    autoEl: {
    +        tag: 'img',
    +        src: '/images/my-image.jpg'
    +    }
    +});

    + * @constructor + * @param {Ext.Element/String/Object} config The configuration options. + * @xtype box + */ +Ext.BoxComponent = Ext.extend(Ext.Component, { + + // Configs below are used for all Components when rendered by BoxLayout. + /** + * @cfg {Number} flex + *

    Note: this config is only used when this Component is rendered + * by a Container which has been configured to use a {@link Ext.layout.BoxLayout BoxLayout}. + * Each child Component with a flex property will be flexed either vertically (by a VBoxLayout) + * or horizontally (by an HBoxLayout) according to the item's relative flex value + * compared to the sum of all Components with flex value specified. Any child items that have + * either a flex = 0 or flex = undefined will not be 'flexed' (the initial size will not be changed). + */ + // Configs below are used for all Components when rendered by AnchorLayout. + /** + * @cfg {String} anchor

    Note: this config is only used when this Component is rendered + * by a Container which has been configured to use an {@link Ext.layout.AnchorLayout AnchorLayout} (or subclass thereof). + * based layout manager, for example:

      + *
    • {@link Ext.form.FormPanel}
    • + *
    • specifying layout: 'anchor' // or 'form', or 'absolute'
    • + *

    + *

    See {@link Ext.layout.AnchorLayout}.{@link Ext.layout.AnchorLayout#anchor anchor} also.

    + */ + // tabTip config is used when a BoxComponent is a child of a TabPanel + /** + * @cfg {String} tabTip + *

    Note: this config is only used when this BoxComponent is a child item of a TabPanel.

    + * A string to be used as innerHTML (html tags are accepted) to show in a tooltip when mousing over + * the associated tab selector element. {@link Ext.QuickTips}.init() + * must be called in order for the tips to render. + */ + // Configs below are used for all Components when rendered by BorderLayout. + /** + * @cfg {String} region

    Note: this config is only used when this BoxComponent is rendered + * by a Container which has been configured to use the {@link Ext.layout.BorderLayout BorderLayout} + * layout manager (e.g. specifying layout:'border').


    + *

    See {@link Ext.layout.BorderLayout} also.

    + */ + // margins config is used when a BoxComponent is rendered by BorderLayout or BoxLayout. + /** + * @cfg {Object} margins

    Note: this config is only used when this BoxComponent is rendered + * by a Container which has been configured to use the {@link Ext.layout.BorderLayout BorderLayout} + * or one of the two {@link Ext.layout.BoxLayout BoxLayout} subclasses.

    + *

    An object containing margins to apply to this BoxComponent in the + * format:

    
    +{
    +    top: (top margin),
    +    right: (right margin),
    +    bottom: (bottom margin),
    +    left: (left margin)
    +}
    + *

    May also be a string containing space-separated, numeric margin values. The order of the + * sides associated with each value matches the way CSS processes margin values:

    + *

      + *
    • If there is only one value, it applies to all sides.
    • + *
    • If there are two values, the top and bottom borders are set to the first value and the + * right and left are set to the second.
    • + *
    • If there are three values, the top is set to the first value, the left and right are set + * to the second, and the bottom is set to the third.
    • + *
    • If there are four values, they apply to the top, right, bottom, and left, respectively.
    • + *

    + *

    Defaults to:

    
    +     * {top:0, right:0, bottom:0, left:0}
    +     * 
    + */ + /** + * @cfg {Number} x + * The local x (left) coordinate for this component if contained within a positioning container. + */ + /** + * @cfg {Number} y + * The local y (top) coordinate for this component if contained within a positioning container. + */ + /** + * @cfg {Number} pageX + * The page level x coordinate for this component if contained within a positioning container. + */ + /** + * @cfg {Number} pageY + * The page level y coordinate for this component if contained within a positioning container. + */ + /** + * @cfg {Number} height + * The height of this component in pixels (defaults to auto). + * Note to express this dimension as a percentage or offset see {@link Ext.Component#anchor}. + */ + /** + * @cfg {Number} width + * The width of this component in pixels (defaults to auto). + * Note to express this dimension as a percentage or offset see {@link Ext.Component#anchor}. + */ + /** + * @cfg {Number} boxMinHeight + *

    The minimum value in pixels which this BoxComponent will set its height to.

    + *

    Warning: This will override any size management applied by layout managers.

    + */ + /** + * @cfg {Number} boxMinWidth + *

    The minimum value in pixels which this BoxComponent will set its width to.

    + *

    Warning: This will override any size management applied by layout managers.

    + */ + /** + * @cfg {Number} boxMaxHeight + *

    The maximum value in pixels which this BoxComponent will set its height to.

    + *

    Warning: This will override any size management applied by layout managers.

    + */ + /** + * @cfg {Number} boxMaxWidth + *

    The maximum value in pixels which this BoxComponent will set its width to.

    + *

    Warning: This will override any size management applied by layout managers.

    + */ + /** + * @cfg {Boolean} autoHeight + *

    True to use height:'auto', false to use fixed height (or allow it to be managed by its parent + * Container's {@link Ext.Container#layout layout manager}. Defaults to false.

    + *

    Note: Although many components inherit this config option, not all will + * function as expected with a height of 'auto'. Setting autoHeight:true means that the + * browser will manage height based on the element's contents, and that Ext will not manage it at all.

    + *

    If the browser is managing the height, be aware that resizes performed by the browser in response + * to changes within the structure of the Component cannot be detected. Therefore changes to the height might + * result in elements needing to be synchronized with the new height. Example:

    
    +var w = new Ext.Window({
    +    title: 'Window',
    +    width: 600,
    +    autoHeight: true,
    +    items: {
    +        title: 'Collapse Me',
    +        height: 400,
    +        collapsible: true,
    +        border: false,
    +        listeners: {
    +            beforecollapse: function() {
    +                w.el.shadow.hide();
    +            },
    +            beforeexpand: function() {
    +                w.el.shadow.hide();
    +            },
    +            collapse: function() {
    +                w.syncShadow();
    +            },
    +            expand: function() {
    +                w.syncShadow();
    +            }
    +        }
    +    }
    +}).show();
    +
    + */ + /** + * @cfg {Boolean} autoWidth + *

    True to use width:'auto', false to use fixed width (or allow it to be managed by its parent + * Container's {@link Ext.Container#layout layout manager}. Defaults to false.

    + *

    Note: Although many components inherit this config option, not all will + * function as expected with a width of 'auto'. Setting autoWidth:true means that the + * browser will manage width based on the element's contents, and that Ext will not manage it at all.

    + *

    If the browser is managing the width, be aware that resizes performed by the browser in response + * to changes within the structure of the Component cannot be detected. Therefore changes to the width might + * result in elements needing to be synchronized with the new width. For example, where the target element is:

    
    +<div id='grid-container' style='margin-left:25%;width:50%'></div>
    +
    + * A Panel rendered into that target element must listen for browser window resize in order to relay its + * child items when the browser changes its width:
    
    +var myPanel = new Ext.Panel({
    +    renderTo: 'grid-container',
    +    monitorResize: true, // relay on browser resize
    +    title: 'Panel',
    +    height: 400,
    +    autoWidth: true,
    +    layout: 'hbox',
    +    layoutConfig: {
    +        align: 'stretch'
    +    },
    +    defaults: {
    +        flex: 1
    +    },
    +    items: [{
    +        title: 'Box 1',
    +    }, {
    +        title: 'Box 2'
    +    }, {
    +        title: 'Box 3'
    +    }],
    +});
    +
    + */ + /** + * @cfg {Boolean} autoScroll + * true to use overflow:'auto' on the components layout element and show scroll bars automatically when + * necessary, false to clip any overflowing content (defaults to false). + */ + + /* // private internal config + * {Boolean} deferHeight + * True to defer height calculations to an external component, false to allow this component to set its own + * height (defaults to false). + */ + + // private + initComponent : function(){ + Ext.BoxComponent.superclass.initComponent.call(this); + this.addEvents( + /** + * @event resize + * Fires after the component is resized. + * @param {Ext.Component} this + * @param {Number} adjWidth The box-adjusted width that was set + * @param {Number} adjHeight The box-adjusted height that was set + * @param {Number} rawWidth The width that was originally specified + * @param {Number} rawHeight The height that was originally specified + */ + 'resize', + /** + * @event move + * Fires after the component is moved. + * @param {Ext.Component} this + * @param {Number} x The new x position + * @param {Number} y The new y position + */ + 'move' + ); + }, + + // private, set in afterRender to signify that the component has been rendered + boxReady : false, + // private, used to defer height settings to subclasses + deferHeight: false, + + /** + * Sets the width and height of this BoxComponent. This method fires the {@link #resize} event. This method can accept + * either width and height as separate arguments, or you can pass a size object like {width:10, height:20}. + * @param {Mixed} width The new width to set. This may be one of:
      + *
    • A Number specifying the new width in the {@link #getEl Element}'s {@link Ext.Element#defaultUnit}s (by default, pixels).
    • + *
    • A String used to set the CSS width style.
    • + *
    • A size object in the format {width: widthValue, height: heightValue}.
    • + *
    • undefined to leave the width unchanged.
    • + *
    + * @param {Mixed} height The new height to set (not required if a size object is passed as the first arg). + * This may be one of:
      + *
    • A Number specifying the new height in the {@link #getEl Element}'s {@link Ext.Element#defaultUnit}s (by default, pixels).
    • + *
    • A String used to set the CSS height style. Animation may not be used.
    • + *
    • undefined to leave the height unchanged.
    • + *
    + * @return {Ext.BoxComponent} this + */ + setSize : function(w, h){ + + // support for standard size objects + if(typeof w == 'object'){ + h = w.height; + w = w.width; + } + if (Ext.isDefined(w) && Ext.isDefined(this.boxMinWidth) && (w < this.boxMinWidth)) { + w = this.boxMinWidth; + } + if (Ext.isDefined(h) && Ext.isDefined(this.boxMinHeight) && (h < this.boxMinHeight)) { + h = this.boxMinHeight; + } + if (Ext.isDefined(w) && Ext.isDefined(this.boxMaxWidth) && (w > this.boxMaxWidth)) { + w = this.boxMaxWidth; + } + if (Ext.isDefined(h) && Ext.isDefined(this.boxMaxHeight) && (h > this.boxMaxHeight)) { + h = this.boxMaxHeight; + } + // not rendered + if(!this.boxReady){ + this.width = w; + this.height = h; + return this; + } + + // prevent recalcs when not needed + if(this.cacheSizes !== false && this.lastSize && this.lastSize.width == w && this.lastSize.height == h){ + return this; + } + this.lastSize = {width: w, height: h}; + var adj = this.adjustSize(w, h), + aw = adj.width, + ah = adj.height, + rz; + if(aw !== undefined || ah !== undefined){ // this code is nasty but performs better with floaters + rz = this.getResizeEl(); + if(!this.deferHeight && aw !== undefined && ah !== undefined){ + rz.setSize(aw, ah); + }else if(!this.deferHeight && ah !== undefined){ + rz.setHeight(ah); + }else if(aw !== undefined){ + rz.setWidth(aw); + } + this.onResize(aw, ah, w, h); + this.fireEvent('resize', this, aw, ah, w, h); + } + return this; + }, + + /** + * Sets the width of the component. This method fires the {@link #resize} event. + * @param {Mixed} width The new width to set. This may be one of:
      + *
    • A Number specifying the new width in the {@link #getEl Element}'s {@link Ext.Element#defaultUnit defaultUnit}s (by default, pixels).
    • + *
    • A String used to set the CSS width style.
    • + *
    + * @return {Ext.BoxComponent} this + */ + setWidth : function(width){ + return this.setSize(width); + }, + + /** + * Sets the height of the component. This method fires the {@link #resize} event. + * @param {Mixed} height The new height to set. This may be one of:
      + *
    • A Number specifying the new height in the {@link #getEl Element}'s {@link Ext.Element#defaultUnit defaultUnit}s (by default, pixels).
    • + *
    • A String used to set the CSS height style.
    • + *
    • undefined to leave the height unchanged.
    • + *
    + * @return {Ext.BoxComponent} this + */ + setHeight : function(height){ + return this.setSize(undefined, height); + }, + + /** + * Gets the current size of the component's underlying element. + * @return {Object} An object containing the element's size {width: (element width), height: (element height)} + */ + getSize : function(){ + return this.getResizeEl().getSize(); + }, + + /** + * Gets the current width of the component's underlying element. + * @return {Number} + */ + getWidth : function(){ + return this.getResizeEl().getWidth(); + }, + + /** + * Gets the current height of the component's underlying element. + * @return {Number} + */ + getHeight : function(){ + return this.getResizeEl().getHeight(); + }, + + /** + * Gets the current size of the component's underlying element, including space taken by its margins. + * @return {Object} An object containing the element's size {width: (element width + left/right margins), height: (element height + top/bottom margins)} + */ + getOuterSize : function(){ + var el = this.getResizeEl(); + return {width: el.getWidth() + el.getMargins('lr'), + height: el.getHeight() + el.getMargins('tb')}; + }, + + /** + * Gets the current XY position of the component's underlying element. + * @param {Boolean} local (optional) If true the element's left and top are returned instead of page XY (defaults to false) + * @return {Array} The XY position of the element (e.g., [100, 200]) + */ + getPosition : function(local){ + var el = this.getPositionEl(); + if(local === true){ + return [el.getLeft(true), el.getTop(true)]; + } + return this.xy || el.getXY(); + }, + + /** + * Gets the current box measurements of the component's underlying element. + * @param {Boolean} local (optional) If true the element's left and top are returned instead of page XY (defaults to false) + * @return {Object} box An object in the format {x, y, width, height} + */ + getBox : function(local){ + var pos = this.getPosition(local); + var s = this.getSize(); + s.x = pos[0]; + s.y = pos[1]; + return s; + }, + + /** + * Sets the current box measurements of the component's underlying element. + * @param {Object} box An object in the format {x, y, width, height} + * @return {Ext.BoxComponent} this + */ + updateBox : function(box){ + this.setSize(box.width, box.height); + this.setPagePosition(box.x, box.y); + return this; + }, + + /** + *

    Returns the outermost Element of this Component which defines the Components overall size.

    + *

    Usually this will return the same Element as {@link #getEl}, + * but in some cases, a Component may have some more wrapping Elements around its main + * active Element.

    + *

    An example is a ComboBox. It is encased in a wrapping Element which + * contains both the <input> Element (which is what would be returned + * by its {@link #getEl} method, and the trigger button Element. + * This Element is returned as the resizeEl. + * @return {Ext.Element} The Element which is to be resized by size managing layouts. + */ + getResizeEl : function(){ + return this.resizeEl || this.el; + }, + + /** + * Sets the overflow on the content element of the component. + * @param {Boolean} scroll True to allow the Component to auto scroll. + * @return {Ext.BoxComponent} this + */ + setAutoScroll : function(scroll){ + if(this.rendered){ + this.getContentTarget().setOverflow(scroll ? 'auto' : ''); + } + this.autoScroll = scroll; + return this; + }, + + /** + * Sets the left and top of the component. To set the page XY position instead, use {@link #setPagePosition}. + * This method fires the {@link #move} event. + * @param {Number} left The new left + * @param {Number} top The new top + * @return {Ext.BoxComponent} this + */ + setPosition : function(x, y){ + if(x && typeof x[1] == 'number'){ + y = x[1]; + x = x[0]; + } + this.x = x; + this.y = y; + if(!this.boxReady){ + return this; + } + var adj = this.adjustPosition(x, y); + var ax = adj.x, ay = adj.y; + + var el = this.getPositionEl(); + if(ax !== undefined || ay !== undefined){ + if(ax !== undefined && ay !== undefined){ + el.setLeftTop(ax, ay); + }else if(ax !== undefined){ + el.setLeft(ax); + }else if(ay !== undefined){ + el.setTop(ay); + } + this.onPosition(ax, ay); + this.fireEvent('move', this, ax, ay); + } + return this; + }, + + /** + * Sets the page XY position of the component. To set the left and top instead, use {@link #setPosition}. + * This method fires the {@link #move} event. + * @param {Number} x The new x position + * @param {Number} y The new y position + * @return {Ext.BoxComponent} this + */ + setPagePosition : function(x, y){ + if(x && typeof x[1] == 'number'){ + y = x[1]; + x = x[0]; + } + this.pageX = x; + this.pageY = y; + if(!this.boxReady){ + return; + } + if(x === undefined || y === undefined){ // cannot translate undefined points + return; + } + var p = this.getPositionEl().translatePoints(x, y); + this.setPosition(p.left, p.top); + return this; + }, + + // private + afterRender : function(){ + Ext.BoxComponent.superclass.afterRender.call(this); + if(this.resizeEl){ + this.resizeEl = Ext.get(this.resizeEl); + } + if(this.positionEl){ + this.positionEl = Ext.get(this.positionEl); + } + this.boxReady = true; + Ext.isDefined(this.autoScroll) && this.setAutoScroll(this.autoScroll); + this.setSize(this.width, this.height); + if(this.x || this.y){ + this.setPosition(this.x, this.y); + }else if(this.pageX || this.pageY){ + this.setPagePosition(this.pageX, this.pageY); + } + }, + + /** + * Force the component's size to recalculate based on the underlying element's current height and width. + * @return {Ext.BoxComponent} this + */ + syncSize : function(){ + delete this.lastSize; + this.setSize(this.autoWidth ? undefined : this.getResizeEl().getWidth(), this.autoHeight ? undefined : this.getResizeEl().getHeight()); + return this; + }, + + /* // protected + * Called after the component is resized, this method is empty by default but can be implemented by any + * subclass that needs to perform custom logic after a resize occurs. + * @param {Number} adjWidth The box-adjusted width that was set + * @param {Number} adjHeight The box-adjusted height that was set + * @param {Number} rawWidth The width that was originally specified + * @param {Number} rawHeight The height that was originally specified + */ + onResize : function(adjWidth, adjHeight, rawWidth, rawHeight){ + }, + + /* // protected + * Called after the component is moved, this method is empty by default but can be implemented by any + * subclass that needs to perform custom logic after a move occurs. + * @param {Number} x The new x position + * @param {Number} y The new y position + */ + onPosition : function(x, y){ + + }, + + // private + adjustSize : function(w, h){ + if(this.autoWidth){ + w = 'auto'; + } + if(this.autoHeight){ + h = 'auto'; + } + return {width : w, height: h}; + }, + + // private + adjustPosition : function(x, y){ + return {x : x, y: y}; + } +}); +Ext.reg('box', Ext.BoxComponent); + + +/** + * @class Ext.Spacer + * @extends Ext.BoxComponent + *

    Used to provide a sizable space in a layout.

    + * @constructor + * @param {Object} config + */ +Ext.Spacer = Ext.extend(Ext.BoxComponent, { + autoEl:'div' +}); +Ext.reg('spacer', Ext.Spacer);/** + * @class Ext.SplitBar + * @extends Ext.util.Observable + * Creates draggable splitter bar functionality from two elements (element to be dragged and element to be resized). + *

    + * Usage: + *
    
    +var split = new Ext.SplitBar("elementToDrag", "elementToSize",
    +                   Ext.SplitBar.HORIZONTAL, Ext.SplitBar.LEFT);
    +split.setAdapter(new Ext.SplitBar.AbsoluteLayoutAdapter("container"));
    +split.minSize = 100;
    +split.maxSize = 600;
    +split.animate = true;
    +split.on('moved', splitterMoved);
    +
    + * @constructor + * Create a new SplitBar + * @param {Mixed} dragElement The element to be dragged and act as the SplitBar. + * @param {Mixed} resizingElement The element to be resized based on where the SplitBar element is dragged + * @param {Number} orientation (optional) Either Ext.SplitBar.HORIZONTAL or Ext.SplitBar.VERTICAL. (Defaults to HORIZONTAL) + * @param {Number} placement (optional) Either Ext.SplitBar.LEFT or Ext.SplitBar.RIGHT for horizontal or + Ext.SplitBar.TOP or Ext.SplitBar.BOTTOM for vertical. (By default, this is determined automatically by the initial + position of the SplitBar). + */ +Ext.SplitBar = function(dragElement, resizingElement, orientation, placement, existingProxy){ + + /** @private */ + this.el = Ext.get(dragElement, true); + this.el.dom.unselectable = "on"; + /** @private */ + this.resizingEl = Ext.get(resizingElement, true); + + /** + * @private + * The orientation of the split. Either Ext.SplitBar.HORIZONTAL or Ext.SplitBar.VERTICAL. (Defaults to HORIZONTAL) + * Note: If this is changed after creating the SplitBar, the placement property must be manually updated + * @type Number + */ + this.orientation = orientation || Ext.SplitBar.HORIZONTAL; + + /** + * The increment, in pixels by which to move this SplitBar. When undefined, the SplitBar moves smoothly. + * @type Number + * @property tickSize + */ + /** + * The minimum size of the resizing element. (Defaults to 0) + * @type Number + */ + this.minSize = 0; + + /** + * The maximum size of the resizing element. (Defaults to 2000) + * @type Number + */ + this.maxSize = 2000; + + /** + * Whether to animate the transition to the new size + * @type Boolean + */ + this.animate = false; + + /** + * Whether to create a transparent shim that overlays the page when dragging, enables dragging across iframes. + * @type Boolean + */ + this.useShim = false; + + /** @private */ + this.shim = null; + + if(!existingProxy){ + /** @private */ + this.proxy = Ext.SplitBar.createProxy(this.orientation); + }else{ + this.proxy = Ext.get(existingProxy).dom; + } + /** @private */ + this.dd = new Ext.dd.DDProxy(this.el.dom.id, "XSplitBars", {dragElId : this.proxy.id}); + + /** @private */ + this.dd.b4StartDrag = this.onStartProxyDrag.createDelegate(this); + + /** @private */ + this.dd.endDrag = this.onEndProxyDrag.createDelegate(this); + + /** @private */ + this.dragSpecs = {}; + + /** + * @private The adapter to use to positon and resize elements + */ + this.adapter = new Ext.SplitBar.BasicLayoutAdapter(); + this.adapter.init(this); + + if(this.orientation == Ext.SplitBar.HORIZONTAL){ + /** @private */ + this.placement = placement || (this.el.getX() > this.resizingEl.getX() ? Ext.SplitBar.LEFT : Ext.SplitBar.RIGHT); + this.el.addClass("x-splitbar-h"); + }else{ + /** @private */ + this.placement = placement || (this.el.getY() > this.resizingEl.getY() ? Ext.SplitBar.TOP : Ext.SplitBar.BOTTOM); + this.el.addClass("x-splitbar-v"); + } + + this.addEvents( + /** + * @event resize + * Fires when the splitter is moved (alias for {@link #moved}) + * @param {Ext.SplitBar} this + * @param {Number} newSize the new width or height + */ + "resize", + /** + * @event moved + * Fires when the splitter is moved + * @param {Ext.SplitBar} this + * @param {Number} newSize the new width or height + */ + "moved", + /** + * @event beforeresize + * Fires before the splitter is dragged + * @param {Ext.SplitBar} this + */ + "beforeresize", + + "beforeapply" + ); + + Ext.SplitBar.superclass.constructor.call(this); +}; + +Ext.extend(Ext.SplitBar, Ext.util.Observable, { + onStartProxyDrag : function(x, y){ + this.fireEvent("beforeresize", this); + this.overlay = Ext.DomHelper.append(document.body, {cls: "x-drag-overlay", html: " "}, true); + this.overlay.unselectable(); + this.overlay.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true)); + this.overlay.show(); + Ext.get(this.proxy).setDisplayed("block"); + var size = this.adapter.getElementSize(this); + this.activeMinSize = this.getMinimumSize(); + this.activeMaxSize = this.getMaximumSize(); + var c1 = size - this.activeMinSize; + var c2 = Math.max(this.activeMaxSize - size, 0); + if(this.orientation == Ext.SplitBar.HORIZONTAL){ + this.dd.resetConstraints(); + this.dd.setXConstraint( + this.placement == Ext.SplitBar.LEFT ? c1 : c2, + this.placement == Ext.SplitBar.LEFT ? c2 : c1, + this.tickSize + ); + this.dd.setYConstraint(0, 0); + }else{ + this.dd.resetConstraints(); + this.dd.setXConstraint(0, 0); + this.dd.setYConstraint( + this.placement == Ext.SplitBar.TOP ? c1 : c2, + this.placement == Ext.SplitBar.TOP ? c2 : c1, + this.tickSize + ); + } + this.dragSpecs.startSize = size; + this.dragSpecs.startPoint = [x, y]; + Ext.dd.DDProxy.prototype.b4StartDrag.call(this.dd, x, y); + }, + + /** + * @private Called after the drag operation by the DDProxy + */ + onEndProxyDrag : function(e){ + Ext.get(this.proxy).setDisplayed(false); + var endPoint = Ext.lib.Event.getXY(e); + if(this.overlay){ + Ext.destroy(this.overlay); + delete this.overlay; + } + var newSize; + if(this.orientation == Ext.SplitBar.HORIZONTAL){ + newSize = this.dragSpecs.startSize + + (this.placement == Ext.SplitBar.LEFT ? + endPoint[0] - this.dragSpecs.startPoint[0] : + this.dragSpecs.startPoint[0] - endPoint[0] + ); + }else{ + newSize = this.dragSpecs.startSize + + (this.placement == Ext.SplitBar.TOP ? + endPoint[1] - this.dragSpecs.startPoint[1] : + this.dragSpecs.startPoint[1] - endPoint[1] + ); + } + newSize = Math.min(Math.max(newSize, this.activeMinSize), this.activeMaxSize); + if(newSize != this.dragSpecs.startSize){ + if(this.fireEvent('beforeapply', this, newSize) !== false){ + this.adapter.setElementSize(this, newSize); + this.fireEvent("moved", this, newSize); + this.fireEvent("resize", this, newSize); + } + } + }, + + /** + * Get the adapter this SplitBar uses + * @return The adapter object + */ + getAdapter : function(){ + return this.adapter; + }, + + /** + * Set the adapter this SplitBar uses + * @param {Object} adapter A SplitBar adapter object + */ + setAdapter : function(adapter){ + this.adapter = adapter; + this.adapter.init(this); + }, + + /** + * Gets the minimum size for the resizing element + * @return {Number} The minimum size + */ + getMinimumSize : function(){ + return this.minSize; + }, + + /** + * Sets the minimum size for the resizing element + * @param {Number} minSize The minimum size + */ + setMinimumSize : function(minSize){ + this.minSize = minSize; + }, + + /** + * Gets the maximum size for the resizing element + * @return {Number} The maximum size + */ + getMaximumSize : function(){ + return this.maxSize; + }, + + /** + * Sets the maximum size for the resizing element + * @param {Number} maxSize The maximum size + */ + setMaximumSize : function(maxSize){ + this.maxSize = maxSize; + }, + + /** + * Sets the initialize size for the resizing element + * @param {Number} size The initial size + */ + setCurrentSize : function(size){ + var oldAnimate = this.animate; + this.animate = false; + this.adapter.setElementSize(this, size); + this.animate = oldAnimate; + }, + + /** + * Destroy this splitbar. + * @param {Boolean} removeEl True to remove the element + */ + destroy : function(removeEl){ + Ext.destroy(this.shim, Ext.get(this.proxy)); + this.dd.unreg(); + if(removeEl){ + this.el.remove(); + } + this.purgeListeners(); + } +}); + +/** + * @private static Create our own proxy element element. So it will be the same same size on all browsers, we won't use borders. Instead we use a background color. + */ +Ext.SplitBar.createProxy = function(dir){ + var proxy = new Ext.Element(document.createElement("div")); + document.body.appendChild(proxy.dom); + proxy.unselectable(); + var cls = 'x-splitbar-proxy'; + proxy.addClass(cls + ' ' + (dir == Ext.SplitBar.HORIZONTAL ? cls +'-h' : cls + '-v')); + return proxy.dom; +}; + +/** + * @class Ext.SplitBar.BasicLayoutAdapter + * Default Adapter. It assumes the splitter and resizing element are not positioned + * elements and only gets/sets the width of the element. Generally used for table based layouts. + */ +Ext.SplitBar.BasicLayoutAdapter = function(){ +}; + +Ext.SplitBar.BasicLayoutAdapter.prototype = { + // do nothing for now + init : function(s){ + + }, + /** + * Called before drag operations to get the current size of the resizing element. + * @param {Ext.SplitBar} s The SplitBar using this adapter + */ + getElementSize : function(s){ + if(s.orientation == Ext.SplitBar.HORIZONTAL){ + return s.resizingEl.getWidth(); + }else{ + return s.resizingEl.getHeight(); + } + }, + + /** + * Called after drag operations to set the size of the resizing element. + * @param {Ext.SplitBar} s The SplitBar using this adapter + * @param {Number} newSize The new size to set + * @param {Function} onComplete A function to be invoked when resizing is complete + */ + setElementSize : function(s, newSize, onComplete){ + if(s.orientation == Ext.SplitBar.HORIZONTAL){ + if(!s.animate){ + s.resizingEl.setWidth(newSize); + if(onComplete){ + onComplete(s, newSize); + } + }else{ + s.resizingEl.setWidth(newSize, true, .1, onComplete, 'easeOut'); + } + }else{ + + if(!s.animate){ + s.resizingEl.setHeight(newSize); + if(onComplete){ + onComplete(s, newSize); + } + }else{ + s.resizingEl.setHeight(newSize, true, .1, onComplete, 'easeOut'); + } + } + } +}; + +/** + *@class Ext.SplitBar.AbsoluteLayoutAdapter + * @extends Ext.SplitBar.BasicLayoutAdapter + * Adapter that moves the splitter element to align with the resized sizing element. + * Used with an absolute positioned SplitBar. + * @param {Mixed} container The container that wraps around the absolute positioned content. If it's + * document.body, make sure you assign an id to the body element. + */ +Ext.SplitBar.AbsoluteLayoutAdapter = function(container){ + this.basic = new Ext.SplitBar.BasicLayoutAdapter(); + this.container = Ext.get(container); +}; + +Ext.SplitBar.AbsoluteLayoutAdapter.prototype = { + init : function(s){ + this.basic.init(s); + }, + + getElementSize : function(s){ + return this.basic.getElementSize(s); + }, + + setElementSize : function(s, newSize, onComplete){ + this.basic.setElementSize(s, newSize, this.moveSplitter.createDelegate(this, [s])); + }, + + moveSplitter : function(s){ + var yes = Ext.SplitBar; + switch(s.placement){ + case yes.LEFT: + s.el.setX(s.resizingEl.getRight()); + break; + case yes.RIGHT: + s.el.setStyle("right", (this.container.getWidth() - s.resizingEl.getLeft()) + "px"); + break; + case yes.TOP: + s.el.setY(s.resizingEl.getBottom()); + break; + case yes.BOTTOM: + s.el.setY(s.resizingEl.getTop() - s.el.getHeight()); + break; + } + } +}; + +/** + * Orientation constant - Create a vertical SplitBar + * @static + * @type Number + */ +Ext.SplitBar.VERTICAL = 1; + +/** + * Orientation constant - Create a horizontal SplitBar + * @static + * @type Number + */ +Ext.SplitBar.HORIZONTAL = 2; + +/** + * Placement constant - The resizing element is to the left of the splitter element + * @static + * @type Number + */ +Ext.SplitBar.LEFT = 1; + +/** + * Placement constant - The resizing element is to the right of the splitter element + * @static + * @type Number + */ +Ext.SplitBar.RIGHT = 2; + +/** + * Placement constant - The resizing element is positioned above the splitter element + * @static + * @type Number + */ +Ext.SplitBar.TOP = 3; + +/** + * Placement constant - The resizing element is positioned under splitter element + * @static + * @type Number + */ +Ext.SplitBar.BOTTOM = 4; +/** + * @class Ext.Container + * @extends Ext.BoxComponent + *

    Base class for any {@link Ext.BoxComponent} that may contain other Components. Containers handle the + * basic behavior of containing items, namely adding, inserting and removing items.

    + * + *

    The most commonly used Container classes are {@link Ext.Panel}, {@link Ext.Window} and {@link Ext.TabPanel}. + * If you do not need the capabilities offered by the aforementioned classes you can create a lightweight + * Container to be encapsulated by an HTML element to your specifications by using the + * {@link Ext.Component#autoEl autoEl} config option. This is a useful technique when creating + * embedded {@link Ext.layout.ColumnLayout column} layouts inside {@link Ext.form.FormPanel FormPanels} + * for example.

    + * + *

    The code below illustrates both how to explicitly create a Container, and how to implicitly + * create one using the 'container' xtype:

    
    +// explicitly create a Container
    +var embeddedColumns = new Ext.Container({
    +    autoEl: 'div',  // This is the default
    +    layout: 'column',
    +    defaults: {
    +        // implicitly create Container by specifying xtype
    +        xtype: 'container',
    +        autoEl: 'div', // This is the default.
    +        layout: 'form',
    +        columnWidth: 0.5,
    +        style: {
    +            padding: '10px'
    +        }
    +    },
    +//  The two items below will be Ext.Containers, each encapsulated by a <DIV> element.
    +    items: [{
    +        items: {
    +            xtype: 'datefield',
    +            name: 'startDate',
    +            fieldLabel: 'Start date'
    +        }
    +    }, {
    +        items: {
    +            xtype: 'datefield',
    +            name: 'endDate',
    +            fieldLabel: 'End date'
    +        }
    +    }]
    +});

    + * + *

    Layout

    + *

    Container classes delegate the rendering of child Components to a layout + * manager class which must be configured into the Container using the + * {@link #layout} configuration property.

    + *

    When either specifying child {@link #items} of a Container, + * or dynamically {@link #add adding} Components to a Container, remember to + * consider how you wish the Container to arrange those child elements, and + * whether those child elements need to be sized using one of Ext's built-in + * {@link #layout} schemes. By default, Containers use the + * {@link Ext.layout.ContainerLayout ContainerLayout} scheme which only + * renders child components, appending them one after the other inside the + * Container, and does not apply any sizing at all.

    + *

    A common mistake is when a developer neglects to specify a + * {@link #layout} (e.g. widgets like GridPanels or + * TreePanels are added to Containers for which no {@link #layout} + * has been specified). If a Container is left to use the default + * {@link Ext.layout.ContainerLayout ContainerLayout} scheme, none of its + * child components will be resized, or changed in any way when the Container + * is resized.

    + *

    Certain layout managers allow dynamic addition of child components. + * Those that do include {@link Ext.layout.CardLayout}, + * {@link Ext.layout.AnchorLayout}, {@link Ext.layout.FormLayout}, and + * {@link Ext.layout.TableLayout}. For example:

    
    +//  Create the GridPanel.
    +var myNewGrid = new Ext.grid.GridPanel({
    +    store: myStore,
    +    columns: myColumnModel,
    +    title: 'Results', // the title becomes the title of the tab
    +});
    +
    +myTabPanel.add(myNewGrid); // {@link Ext.TabPanel} implicitly uses {@link Ext.layout.CardLayout CardLayout}
    +myTabPanel.{@link Ext.TabPanel#setActiveTab setActiveTab}(myNewGrid);
    + * 

    + *

    The example above adds a newly created GridPanel to a TabPanel. Note that + * a TabPanel uses {@link Ext.layout.CardLayout} as its layout manager which + * means all its child items are sized to {@link Ext.layout.FitLayout fit} + * exactly into its client area. + *

    Overnesting is a common problem. + * An example of overnesting occurs when a GridPanel is added to a TabPanel + * by wrapping the GridPanel inside a wrapping Panel (that has no + * {@link #layout} specified) and then add that wrapping Panel + * to the TabPanel. The point to realize is that a GridPanel is a + * Component which can be added directly to a Container. If the wrapping Panel + * has no {@link #layout} configuration, then the overnested + * GridPanel will not be sized as expected.

    + * + *

    Adding via remote configuration

    + * + *

    A server side script can be used to add Components which are generated dynamically on the server. + * An example of adding a GridPanel to a TabPanel where the GridPanel is generated by the server + * based on certain parameters: + *

    
    +// execute an Ajax request to invoke server side script:
    +Ext.Ajax.request({
    +    url: 'gen-invoice-grid.php',
    +    // send additional parameters to instruct server script
    +    params: {
    +        startDate: Ext.getCmp('start-date').getValue(),
    +        endDate: Ext.getCmp('end-date').getValue()
    +    },
    +    // process the response object to add it to the TabPanel:
    +    success: function(xhr) {
    +        var newComponent = eval(xhr.responseText); // see discussion below
    +        myTabPanel.add(newComponent); // add the component to the TabPanel
    +        myTabPanel.setActiveTab(newComponent);
    +    },
    +    failure: function() {
    +        Ext.Msg.alert("Grid create failed", "Server communication failure");
    +    }
    +});
    +
    + *

    The server script needs to return an executable Javascript statement which, when processed + * using eval(), will return either a config object with an {@link Ext.Component#xtype xtype}, + * or an instantiated Component. The server might return this for example:

    
    +(function() {
    +    function formatDate(value){
    +        return value ? value.dateFormat('M d, Y') : '';
    +    };
    +
    +    var store = new Ext.data.Store({
    +        url: 'get-invoice-data.php',
    +        baseParams: {
    +            startDate: '01/01/2008',
    +            endDate: '01/31/2008'
    +        },
    +        reader: new Ext.data.JsonReader({
    +            record: 'transaction',
    +            idProperty: 'id',
    +            totalRecords: 'total'
    +        }, [
    +           'customer',
    +           'invNo',
    +           {name: 'date', type: 'date', dateFormat: 'm/d/Y'},
    +           {name: 'value', type: 'float'}
    +        ])
    +    });
    +
    +    var grid = new Ext.grid.GridPanel({
    +        title: 'Invoice Report',
    +        bbar: new Ext.PagingToolbar(store),
    +        store: store,
    +        columns: [
    +            {header: "Customer", width: 250, dataIndex: 'customer', sortable: true},
    +            {header: "Invoice Number", width: 120, dataIndex: 'invNo', sortable: true},
    +            {header: "Invoice Date", width: 100, dataIndex: 'date', renderer: formatDate, sortable: true},
    +            {header: "Value", width: 120, dataIndex: 'value', renderer: 'usMoney', sortable: true}
    +        ],
    +    });
    +    store.load();
    +    return grid;  // return instantiated component
    +})();
    +
    + *

    When the above code fragment is passed through the eval function in the success handler + * of the Ajax request, the code is executed by the Javascript processor, and the anonymous function + * runs, and returns the instantiated grid component.

    + *

    Note: since the code above is generated by a server script, the baseParams for + * the Store, the metadata to allow generation of the Record layout, and the ColumnModel + * can all be generated into the code since these are all known on the server.

    + * + * @xtype container + */ +Ext.Container = Ext.extend(Ext.BoxComponent, { + /** + * @cfg {Boolean} monitorResize + * True to automatically monitor window resize events to handle anything that is sensitive to the current size + * of the viewport. This value is typically managed by the chosen {@link #layout} and should not need + * to be set manually. + */ + /** + * @cfg {String/Object} layout + *

    *Important: In order for child items to be correctly sized and + * positioned, typically a layout manager must be specified through + * the layout configuration option.

    + *

    The sizing and positioning of child {@link items} is the responsibility of + * the Container's layout manager which creates and manages the type of layout + * you have in mind. For example:

    
    +new Ext.Window({
    +    width:300, height: 300,
    +    layout: 'fit', // explicitly set layout manager: override the default (layout:'auto')
    +    items: [{
    +        title: 'Panel inside a Window'
    +    }]
    +}).show();
    +     * 
    + *

    If the {@link #layout} configuration is not explicitly specified for + * a general purpose container (e.g. Container or Panel) the + * {@link Ext.layout.ContainerLayout default layout manager} will be used + * which does nothing but render child components sequentially into the + * Container (no sizing or positioning will be performed in this situation). + * Some container classes implicitly specify a default layout + * (e.g. FormPanel specifies layout:'form'). Other specific + * purpose classes internally specify/manage their internal layout (e.g. + * GridPanel, TabPanel, TreePanel, Toolbar, Menu, etc.).

    + *

    layout may be specified as either as an Object or + * as a String:

      + * + *
    • Specify as an Object
    • + *
        + *
      • Example usage:
      • +
        
        +layout: {
        +    type: 'vbox',
        +    padding: '5',
        +    align: 'left'
        +}
        +
        + * + *
      • type
      • + *

        The layout type to be used for this container. If not specified, + * a default {@link Ext.layout.ContainerLayout} will be created and used.

        + *

        Valid layout type values are:

        + *
          + *
        • {@link Ext.layout.AbsoluteLayout absolute}
        • + *
        • {@link Ext.layout.AccordionLayout accordion}
        • + *
        • {@link Ext.layout.AnchorLayout anchor}
        • + *
        • {@link Ext.layout.ContainerLayout auto}     Default
        • + *
        • {@link Ext.layout.BorderLayout border}
        • + *
        • {@link Ext.layout.CardLayout card}
        • + *
        • {@link Ext.layout.ColumnLayout column}
        • + *
        • {@link Ext.layout.FitLayout fit}
        • + *
        • {@link Ext.layout.FormLayout form}
        • + *
        • {@link Ext.layout.HBoxLayout hbox}
        • + *
        • {@link Ext.layout.MenuLayout menu}
        • + *
        • {@link Ext.layout.TableLayout table}
        • + *
        • {@link Ext.layout.ToolbarLayout toolbar}
        • + *
        • {@link Ext.layout.VBoxLayout vbox}
        • + *
        + * + *
      • Layout specific configuration properties
      • + *

        Additional layout specific configuration properties may also be + * specified. For complete details regarding the valid config options for + * each layout type, see the layout class corresponding to the type + * specified.

        + * + *
      + * + *
    • Specify as a String
    • + *
        + *
      • Example usage:
      • +
        
        +layout: 'vbox',
        +layoutConfig: {
        +    padding: '5',
        +    align: 'left'
        +}
        +
        + *
      • layout
      • + *

        The layout type to be used for this container (see list + * of valid layout type values above).


        + *
      • {@link #layoutConfig}
      • + *

        Additional layout specific configuration properties. For complete + * details regarding the valid config options for each layout type, see the + * layout class corresponding to the layout specified.

        + *
    + */ + /** + * @cfg {Object} layoutConfig + * This is a config object containing properties specific to the chosen + * {@link #layout} if {@link #layout} + * has been specified as a string.

    + */ + /** + * @cfg {Boolean/Number} bufferResize + * When set to true (50 milliseconds) or a number of milliseconds, the layout assigned for this container will buffer + * the frequency it calculates and does a re-layout of components. This is useful for heavy containers or containers + * with a large quantity of sub-components for which frequent layout calls would be expensive. Defaults to 50. + */ + bufferResize: 50, + + /** + * @cfg {String/Number} activeItem + * A string component id or the numeric index of the component that should be initially activated within the + * container's layout on render. For example, activeItem: 'item-1' or activeItem: 0 (index 0 = the first + * item in the container's collection). activeItem only applies to layout styles that can display + * items one at a time (like {@link Ext.layout.AccordionLayout}, {@link Ext.layout.CardLayout} and + * {@link Ext.layout.FitLayout}). Related to {@link Ext.layout.ContainerLayout#activeItem}. + */ + /** + * @cfg {Object/Array} items + *
    ** IMPORTANT: be sure to {@link #layout specify a layout} if needed ! **
    + *

    A single item, or an array of child Components to be added to this container, + * for example:

    + *
    
    +// specifying a single item
    +items: {...},
    +layout: 'fit',    // specify a layout!
    +
    +// specifying multiple items
    +items: [{...}, {...}],
    +layout: 'anchor', // specify a layout!
    +     * 
    + *

    Each item may be:

    + *
      + *
    • any type of object based on {@link Ext.Component}
    • + *
    • a fully instanciated object or
    • + *
    • an object literal that:
    • + *
        + *
      • has a specified {@link Ext.Component#xtype xtype}
      • + *
      • the {@link Ext.Component#xtype} specified is associated with the Component + * desired and should be chosen from one of the available xtypes as listed + * in {@link Ext.Component}.
      • + *
      • If an {@link Ext.Component#xtype xtype} is not explicitly + * specified, the {@link #defaultType} for that Container is used.
      • + *
      • will be "lazily instanciated", avoiding the overhead of constructing a fully + * instanciated Component object
      • + *
    + *

    Notes:

    + *
      + *
    • Ext uses lazy rendering. Child Components will only be rendered + * should it become necessary. Items are automatically laid out when they are first + * shown (no sizing is done while hidden), or in response to a {@link #doLayout} call.
    • + *
    • Do not specify {@link Ext.Panel#contentEl contentEl}/ + * {@link Ext.Panel#html html} with items.
    • + *
    + */ + /** + * @cfg {Object|Function} defaults + *

    This option is a means of applying default settings to all added items whether added through the {@link #items} + * config or via the {@link #add} or {@link #insert} methods.

    + *

    If an added item is a config object, and not an instantiated Component, then the default properties are + * unconditionally applied. If the added item is an instantiated Component, then the default properties are + * applied conditionally so as not to override existing properties in the item.

    + *

    If the defaults option is specified as a function, then the function will be called using this Container as the + * scope (this reference) and passing the added item as the first parameter. Any resulting object + * from that call is then applied to the item as default properties.

    + *

    For example, to automatically apply padding to the body of each of a set of + * contained {@link Ext.Panel} items, you could pass: defaults: {bodyStyle:'padding:15px'}.

    + *

    Usage:

    
    +defaults: {               // defaults are applied to items, not the container
    +    autoScroll:true
    +},
    +items: [
    +    {
    +        xtype: 'panel',   // defaults do not have precedence over
    +        id: 'panel1',     // options in config objects, so the defaults
    +        autoScroll: false // will not be applied here, panel1 will be autoScroll:false
    +    },
    +    new Ext.Panel({       // defaults do have precedence over options
    +        id: 'panel2',     // options in components, so the defaults
    +        autoScroll: false // will be applied here, panel2 will be autoScroll:true.
    +    })
    +]
    +     * 
    + */ + + + /** @cfg {Boolean} autoDestroy + * If true the container will automatically destroy any contained component that is removed from it, else + * destruction must be handled manually (defaults to true). + */ + autoDestroy : true, + + /** @cfg {Boolean} forceLayout + * If true the container will force a layout initially even if hidden or collapsed. This option + * is useful for forcing forms to render in collapsed or hidden containers. (defaults to false). + */ + forceLayout: false, + + /** @cfg {Boolean} hideBorders + * True to hide the borders of each contained component, false to defer to the component's existing + * border settings (defaults to false). + */ + /** @cfg {String} defaultType + *

    The default {@link Ext.Component xtype} of child Components to create in this Container when + * a child item is specified as a raw configuration object, rather than as an instantiated Component.

    + *

    Defaults to 'panel', except {@link Ext.menu.Menu} which defaults to 'menuitem', + * and {@link Ext.Toolbar} and {@link Ext.ButtonGroup} which default to 'button'.

    + */ + defaultType : 'panel', + + /** @cfg {String} resizeEvent + * The event to listen to for resizing in layouts. Defaults to 'resize'. + */ + resizeEvent: 'resize', + + /** + * @cfg {Array} bubbleEvents + *

    An array of events that, when fired, should be bubbled to any parent container. + * See {@link Ext.util.Observable#enableBubble}. + * Defaults to ['add', 'remove']. + */ + bubbleEvents: ['add', 'remove'], + + // private + initComponent : function(){ + Ext.Container.superclass.initComponent.call(this); + + this.addEvents( + /** + * @event afterlayout + * Fires when the components in this container are arranged by the associated layout manager. + * @param {Ext.Container} this + * @param {ContainerLayout} layout The ContainerLayout implementation for this container + */ + 'afterlayout', + /** + * @event beforeadd + * Fires before any {@link Ext.Component} is added or inserted into the container. + * A handler can return false to cancel the add. + * @param {Ext.Container} this + * @param {Ext.Component} component The component being added + * @param {Number} index The index at which the component will be added to the container's items collection + */ + 'beforeadd', + /** + * @event beforeremove + * Fires before any {@link Ext.Component} is removed from the container. A handler can return + * false to cancel the remove. + * @param {Ext.Container} this + * @param {Ext.Component} component The component being removed + */ + 'beforeremove', + /** + * @event add + * @bubbles + * Fires after any {@link Ext.Component} is added or inserted into the container. + * @param {Ext.Container} this + * @param {Ext.Component} component The component that was added + * @param {Number} index The index at which the component was added to the container's items collection + */ + 'add', + /** + * @event remove + * @bubbles + * Fires after any {@link Ext.Component} is removed from the container. + * @param {Ext.Container} this + * @param {Ext.Component} component The component that was removed + */ + 'remove' + ); + + /** + * The collection of components in this container as a {@link Ext.util.MixedCollection} + * @type MixedCollection + * @property items + */ + var items = this.items; + if(items){ + delete this.items; + this.add(items); + } + }, + + // private + initItems : function(){ + if(!this.items){ + this.items = new Ext.util.MixedCollection(false, this.getComponentId); + this.getLayout(); // initialize the layout + } + }, + + // private + setLayout : function(layout){ + if(this.layout && this.layout != layout){ + this.layout.setContainer(null); + } + this.layout = layout; + this.initItems(); + layout.setContainer(this); + }, + + afterRender: function(){ + // Render this Container, this should be done before setLayout is called which + // will hook onResize + Ext.Container.superclass.afterRender.call(this); + if(!this.layout){ + this.layout = 'auto'; + } + if(Ext.isObject(this.layout) && !this.layout.layout){ + this.layoutConfig = this.layout; + this.layout = this.layoutConfig.type; + } + if(Ext.isString(this.layout)){ + this.layout = new Ext.Container.LAYOUTS[this.layout.toLowerCase()](this.layoutConfig); + } + this.setLayout(this.layout); + + // If a CardLayout, the active item set + if(this.activeItem !== undefined){ + var item = this.activeItem; + delete this.activeItem; + this.layout.setActiveItem(item); + } + + // If we have no ownerCt, render and size all children + if(!this.ownerCt){ + this.doLayout(false, true); + } + + // This is a manually configured flag set by users in conjunction with renderTo. + // Not to be confused with the flag by the same name used in Layouts. + if(this.monitorResize === true){ + Ext.EventManager.onWindowResize(this.doLayout, this, [false]); + } + }, + + /** + *

    Returns the Element to be used to contain the child Components of this Container.

    + *

    An implementation is provided which returns the Container's {@link #getEl Element}, but + * if there is a more complex structure to a Container, this may be overridden to return + * the element into which the {@link #layout layout} renders child Components.

    + * @return {Ext.Element} The Element to render child Components into. + */ + getLayoutTarget : function(){ + return this.el; + }, + + // private - used as the key lookup function for the items collection + getComponentId : function(comp){ + return comp.getItemId(); + }, + + /** + *

    Adds {@link Ext.Component Component}(s) to this Container.

    + *

    Description : + *

      + *
    • Fires the {@link #beforeadd} event before adding
    • + *
    • The Container's {@link #defaults default config values} will be applied + * accordingly (see {@link #defaults} for details).
    • + *
    • Fires the {@link #add} event after the component has been added.
    • + *
    + *

    Notes : + *

      + *
    • If the Container is already rendered when add + * is called, you may need to call {@link #doLayout} to refresh the view which causes + * any unrendered child Components to be rendered. This is required so that you can + * add multiple child components if needed while only refreshing the layout + * once. For example:
      
      +var tb = new {@link Ext.Toolbar}();
      +tb.render(document.body);  // toolbar is rendered
      +tb.add({text:'Button 1'}); // add multiple items ({@link #defaultType} for {@link Ext.Toolbar Toolbar} is 'button')
      +tb.add({text:'Button 2'});
      +tb.{@link #doLayout}();             // refresh the layout
      +     * 
    • + *
    • Warning: Containers directly managed by the BorderLayout layout manager + * may not be removed or added. See the Notes for {@link Ext.layout.BorderLayout BorderLayout} + * for more details.
    • + *
    + * @param {...Object/Array} component + *

    Either one or more Components to add or an Array of Components to add. See + * {@link #items} for additional information.

    + * @return {Ext.Component/Array} The Components that were added. + */ + add : function(comp){ + this.initItems(); + var args = arguments.length > 1; + if(args || Ext.isArray(comp)){ + var result = []; + Ext.each(args ? arguments : comp, function(c){ + result.push(this.add(c)); + }, this); + return result; + } + var c = this.lookupComponent(this.applyDefaults(comp)); + var index = this.items.length; + if(this.fireEvent('beforeadd', this, c, index) !== false && this.onBeforeAdd(c) !== false){ + this.items.add(c); + // *onAdded + c.onAdded(this, index); + this.onAdd(c); + this.fireEvent('add', this, c, index); + } + return c; + }, + + onAdd : function(c){ + // Empty template method + }, + + // private + onAdded : function(container, pos) { + //overridden here so we can cascade down, not worth creating a template method. + this.ownerCt = container; + this.initRef(); + //initialize references for child items + this.cascade(function(c){ + c.initRef(); + }); + this.fireEvent('added', this, container, pos); + }, + + /** + * Inserts a Component into this Container at a specified index. Fires the + * {@link #beforeadd} event before inserting, then fires the {@link #add} event after the + * Component has been inserted. + * @param {Number} index The index at which the Component will be inserted + * into the Container's items collection + * @param {Ext.Component} component The child Component to insert.

    + * Ext uses lazy rendering, and will only render the inserted Component should + * it become necessary.

    + * A Component config object may be passed in order to avoid the overhead of + * constructing a real Component object if lazy rendering might mean that the + * inserted Component will not be rendered immediately. To take advantage of + * this 'lazy instantiation', set the {@link Ext.Component#xtype} config + * property to the registered type of the Component wanted.

    + * For a list of all available xtypes, see {@link Ext.Component}. + * @return {Ext.Component} component The Component (or config object) that was + * inserted with the Container's default config values applied. + */ + insert : function(index, comp){ + this.initItems(); + var a = arguments, len = a.length; + if(len > 2){ + var result = []; + for(var i = len-1; i >= 1; --i) { + result.push(this.insert(index, a[i])); + } + return result; + } + var c = this.lookupComponent(this.applyDefaults(comp)); + index = Math.min(index, this.items.length); + if(this.fireEvent('beforeadd', this, c, index) !== false && this.onBeforeAdd(c) !== false){ + if(c.ownerCt == this){ + this.items.remove(c); + } + this.items.insert(index, c); + c.onAdded(this, index); + this.onAdd(c); + this.fireEvent('add', this, c, index); + } + return c; + }, + + // private + applyDefaults : function(c){ + var d = this.defaults; + if(d){ + if(Ext.isFunction(d)){ + d = d.call(this, c); + } + if(Ext.isString(c)){ + c = Ext.ComponentMgr.get(c); + Ext.apply(c, d); + }else if(!c.events){ + Ext.applyIf(c, d); + }else{ + Ext.apply(c, d); + } + } + return c; + }, + + // private + onBeforeAdd : function(item){ + if(item.ownerCt){ + item.ownerCt.remove(item, false); + } + if(this.hideBorders === true){ + item.border = (item.border === true); + } + }, + + /** + * Removes a component from this container. Fires the {@link #beforeremove} event before removing, then fires + * the {@link #remove} event after the component has been removed. + * @param {Component/String} component The component reference or id to remove. + * @param {Boolean} autoDestroy (optional) True to automatically invoke the removed Component's {@link Ext.Component#destroy} function. + * Defaults to the value of this Container's {@link #autoDestroy} config. + * @return {Ext.Component} component The Component that was removed. + */ + remove : function(comp, autoDestroy){ + this.initItems(); + var c = this.getComponent(comp); + if(c && this.fireEvent('beforeremove', this, c) !== false){ + this.doRemove(c, autoDestroy); + this.fireEvent('remove', this, c); + } + return c; + }, + + onRemove: function(c){ + // Empty template method + }, + + // private + doRemove: function(c, autoDestroy){ + var l = this.layout, + hasLayout = l && this.rendered; + + if(hasLayout){ + l.onRemove(c); + } + this.items.remove(c); + c.onRemoved(); + this.onRemove(c); + if(autoDestroy === true || (autoDestroy !== false && this.autoDestroy)){ + c.destroy(); + } + if(hasLayout){ + l.afterRemove(c); + } + }, + + /** + * Removes all components from this container. + * @param {Boolean} autoDestroy (optional) True to automatically invoke the removed Component's {@link Ext.Component#destroy} function. + * Defaults to the value of this Container's {@link #autoDestroy} config. + * @return {Array} Array of the destroyed components + */ + removeAll: function(autoDestroy){ + this.initItems(); + var item, rem = [], items = []; + this.items.each(function(i){ + rem.push(i); + }); + for (var i = 0, len = rem.length; i < len; ++i){ + item = rem[i]; + this.remove(item, autoDestroy); + if(item.ownerCt !== this){ + items.push(item); + } + } + return items; + }, + + /** + * Examines this container's {@link #items} property + * and gets a direct child component of this container. + * @param {String/Number} comp This parameter may be any of the following: + *
      + *
    • a String : representing the {@link Ext.Component#itemId itemId} + * or {@link Ext.Component#id id} of the child component
    • + *
    • a Number : representing the position of the child component + * within the {@link #items} property
    • + *
    + *

    For additional information see {@link Ext.util.MixedCollection#get}. + * @return Ext.Component The component (if found). + */ + getComponent : function(comp){ + if(Ext.isObject(comp)){ + comp = comp.getItemId(); + } + return this.items.get(comp); + }, + + // private + lookupComponent : function(comp){ + if(Ext.isString(comp)){ + return Ext.ComponentMgr.get(comp); + }else if(!comp.events){ + return this.createComponent(comp); + } + return comp; + }, + + // private + createComponent : function(config, defaultType){ + if (config.render) { + return config; + } + // add in ownerCt at creation time but then immediately + // remove so that onBeforeAdd can handle it + var c = Ext.create(Ext.apply({ + ownerCt: this + }, config), defaultType || this.defaultType); + delete c.initialConfig.ownerCt; + delete c.ownerCt; + return c; + }, + + /** + * @private + * We can only lay out if there is a view area in which to layout. + * display:none on the layout target, *or any of its parent elements* will mean it has no view area. + */ + canLayout : function() { + var el = this.getVisibilityEl(); + return el && el.dom && !el.isStyle("display", "none"); + }, + + /** + * Force this container's layout to be recalculated. A call to this function is required after adding a new component + * to an already rendered container, or possibly after changing sizing/position properties of child components. + * @param {Boolean} shallow (optional) True to only calc the layout of this component, and let child components auto + * calc layouts as required (defaults to false, which calls doLayout recursively for each subcontainer) + * @param {Boolean} force (optional) True to force a layout to occur, even if the item is hidden. + * @return {Ext.Container} this + */ + + doLayout : function(shallow, force){ + var rendered = this.rendered, + forceLayout = force || this.forceLayout; + + if(this.collapsed || !this.canLayout()){ + this.deferLayout = this.deferLayout || !shallow; + if(!forceLayout){ + return; + } + shallow = shallow && !this.deferLayout; + } else { + delete this.deferLayout; + } + if(rendered && this.layout){ + this.layout.layout(); + } + if(shallow !== true && this.items){ + var cs = this.items.items; + for(var i = 0, len = cs.length; i < len; i++){ + var c = cs[i]; + if(c.doLayout){ + c.doLayout(false, forceLayout); + } + } + } + if(rendered){ + this.onLayout(shallow, forceLayout); + } + // Initial layout completed + this.hasLayout = true; + delete this.forceLayout; + }, + + onLayout : Ext.emptyFn, + + // private + shouldBufferLayout: function(){ + /* + * Returns true if the container should buffer a layout. + * This is true only if the container has previously been laid out + * and has a parent container that is pending a layout. + */ + var hl = this.hasLayout; + if(this.ownerCt){ + // Only ever buffer if we've laid out the first time and we have one pending. + return hl ? !this.hasLayoutPending() : false; + } + // Never buffer initial layout + return hl; + }, + + // private + hasLayoutPending: function(){ + // Traverse hierarchy to see if any parent container has a pending layout. + var pending = false; + this.ownerCt.bubble(function(c){ + if(c.layoutPending){ + pending = true; + return false; + } + }); + return pending; + }, + + onShow : function(){ + // removes css classes that were added to hide + Ext.Container.superclass.onShow.call(this); + // If we were sized during the time we were hidden, layout. + if(Ext.isDefined(this.deferLayout)){ + delete this.deferLayout; + this.doLayout(true); + } + }, + + /** + * Returns the layout currently in use by the container. If the container does not currently have a layout + * set, a default {@link Ext.layout.ContainerLayout} will be created and set as the container's layout. + * @return {ContainerLayout} layout The container's layout + */ + getLayout : function(){ + if(!this.layout){ + var layout = new Ext.layout.AutoLayout(this.layoutConfig); + this.setLayout(layout); + } + return this.layout; + }, + + // private + beforeDestroy : function(){ + var c; + if(this.items){ + while(c = this.items.first()){ + this.doRemove(c, true); + } + } + if(this.monitorResize){ + Ext.EventManager.removeResizeListener(this.doLayout, this); + } + Ext.destroy(this.layout); + Ext.Container.superclass.beforeDestroy.call(this); + }, + + /** + * Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of + * function call will be the scope provided or the current component. The arguments to the function + * will be the args provided or the current component. If the function returns false at any point, + * the bubble is stopped. + * @param {Function} fn The function to call + * @param {Object} scope (optional) The scope of the function (defaults to current node) + * @param {Array} args (optional) The args to call the function with (default to passing the current component) + * @return {Ext.Container} this + */ + bubble : function(fn, scope, args){ + var p = this; + while(p){ + if(fn.apply(scope || p, args || [p]) === false){ + break; + } + p = p.ownerCt; + } + return this; + }, + + /** + * Cascades down the component/container heirarchy from this component (called first), calling the specified function with + * each component. The scope (this) of + * function call will be the scope provided or the current component. The arguments to the function + * will be the args provided or the current component. If the function returns false at any point, + * the cascade is stopped on that branch. + * @param {Function} fn The function to call + * @param {Object} scope (optional) The scope of the function (defaults to current component) + * @param {Array} args (optional) The args to call the function with (defaults to passing the current component) + * @return {Ext.Container} this + */ + cascade : function(fn, scope, args){ + if(fn.apply(scope || this, args || [this]) !== false){ + if(this.items){ + var cs = this.items.items; + for(var i = 0, len = cs.length; i < len; i++){ + if(cs[i].cascade){ + cs[i].cascade(fn, scope, args); + }else{ + fn.apply(scope || cs[i], args || [cs[i]]); + } + } + } + } + return this; + }, + + /** + * Find a component under this container at any level by id + * @param {String} id + * @return Ext.Component + */ + findById : function(id){ + var m, ct = this; + this.cascade(function(c){ + if(ct != c && c.id === id){ + m = c; + return false; + } + }); + return m || null; + }, + + /** + * Find a component under this container at any level by xtype or class + * @param {String/Class} xtype The xtype string for a component, or the class of the component directly + * @param {Boolean} shallow (optional) False to check whether this Component is descended from the xtype (this is + * the default), or true to check whether this Component is directly of the specified xtype. + * @return {Array} Array of Ext.Components + */ + findByType : function(xtype, shallow){ + return this.findBy(function(c){ + return c.isXType(xtype, shallow); + }); + }, + + /** + * Find a component under this container at any level by property + * @param {String} prop + * @param {String} value + * @return {Array} Array of Ext.Components + */ + find : function(prop, value){ + return this.findBy(function(c){ + return c[prop] === value; + }); + }, + + /** + * Find a component under this container at any level by a custom function. If the passed function returns + * true, the component will be included in the results. The passed function is called with the arguments (component, this container). + * @param {Function} fn The function to call + * @param {Object} scope (optional) + * @return {Array} Array of Ext.Components + */ + findBy : function(fn, scope){ + var m = [], ct = this; + this.cascade(function(c){ + if(ct != c && fn.call(scope || c, c, ct) === true){ + m.push(c); + } + }); + return m; + }, + + /** + * Get a component contained by this container (alias for items.get(key)) + * @param {String/Number} key The index or id of the component + * @return {Ext.Component} Ext.Component + */ + get : function(key){ + return this.items.get(key); + } +}); + +Ext.Container.LAYOUTS = {}; +Ext.reg('container', Ext.Container); +/** + * @class Ext.layout.ContainerLayout + *

    This class is intended to be extended or created via the {@link Ext.Container#layout layout} + * configuration property. See {@link Ext.Container#layout} for additional details.

    + */ +Ext.layout.ContainerLayout = Ext.extend(Object, { + /** + * @cfg {String} extraCls + *

    An optional extra CSS class that will be added to the container. This can be useful for adding + * customized styles to the container or any of its children using standard CSS rules. See + * {@link Ext.Component}.{@link Ext.Component#ctCls ctCls} also.

    + *

    Note: extraCls defaults to '' except for the following classes + * which assign a value by default: + *

      + *
    • {@link Ext.layout.AbsoluteLayout Absolute Layout} : 'x-abs-layout-item'
    • + *
    • {@link Ext.layout.Box Box Layout} : 'x-box-item'
    • + *
    • {@link Ext.layout.ColumnLayout Column Layout} : 'x-column'
    • + *
    + * To configure the above Classes with an extra CSS class append to the default. For example, + * for ColumnLayout:
    
    +     * extraCls: 'x-column custom-class'
    +     * 
    + *

    + */ + /** + * @cfg {Boolean} renderHidden + * True to hide each contained item on render (defaults to false). + */ + + /** + * A reference to the {@link Ext.Component} that is active. For example,
    
    +     * if(myPanel.layout.activeItem.id == 'item-1') { ... }
    +     * 
    + * activeItem only applies to layout styles that can display items one at a time + * (like {@link Ext.layout.AccordionLayout}, {@link Ext.layout.CardLayout} + * and {@link Ext.layout.FitLayout}). Read-only. Related to {@link Ext.Container#activeItem}. + * @type {Ext.Component} + * @property activeItem + */ + + // private + monitorResize:false, + // private + activeItem : null, + + constructor : function(config){ + this.id = Ext.id(null, 'ext-layout-'); + Ext.apply(this, config); + }, + + type: 'container', + + /* Workaround for how IE measures autoWidth elements. It prefers bottom-up measurements + whereas other browser prefer top-down. We will hide all target child elements before we measure and + put them back to get an accurate measurement. + */ + IEMeasureHack : function(target, viewFlag) { + var tChildren = target.dom.childNodes, tLen = tChildren.length, c, d = [], e, i, ret; + for (i = 0 ; i < tLen ; i++) { + c = tChildren[i]; + e = Ext.get(c); + if (e) { + d[i] = e.getStyle('display'); + e.setStyle({display: 'none'}); + } + } + ret = target ? target.getViewSize(viewFlag) : {}; + for (i = 0 ; i < tLen ; i++) { + c = tChildren[i]; + e = Ext.get(c); + if (e) { + e.setStyle({display: d[i]}); + } + } + return ret; + }, + + // Placeholder for the derived layouts + getLayoutTargetSize : Ext.EmptyFn, + + // private + layout : function(){ + var ct = this.container, target = ct.getLayoutTarget(); + if(!(this.hasLayout || Ext.isEmpty(this.targetCls))){ + target.addClass(this.targetCls); + } + this.onLayout(ct, target); + ct.fireEvent('afterlayout', ct, this); + }, + + // private + onLayout : function(ct, target){ + this.renderAll(ct, target); + }, + + // private + isValidParent : function(c, target){ + return target && c.getPositionEl().dom.parentNode == (target.dom || target); + }, + + // private + renderAll : function(ct, target){ + var items = ct.items.items, i, c, len = items.length; + for(i = 0; i < len; i++) { + c = items[i]; + if(c && (!c.rendered || !this.isValidParent(c, target))){ + this.renderItem(c, i, target); + } + } + }, + + /** + * @private + * Renders the given Component into the target Element. If the Component is already rendered, + * it is moved to the provided target instead. + * @param {Ext.Component} c The Component to render + * @param {Number} position The position within the target to render the item to + * @param {Ext.Element} target The target Element + */ + renderItem : function(c, position, target){ + if (c) { + if (!c.rendered) { + c.render(target, position); + this.configureItem(c, position); + } else if (!this.isValidParent(c, target)) { + if (Ext.isNumber(position)) { + position = target.dom.childNodes[position]; + } + + target.dom.insertBefore(c.getPositionEl().dom, position || null); + c.container = target; + this.configureItem(c, position); + } + } + }, + + // private. + // Get all rendered items to lay out. + getRenderedItems: function(ct){ + var t = ct.getLayoutTarget(), cti = ct.items.items, len = cti.length, i, c, items = []; + for (i = 0; i < len; i++) { + if((c = cti[i]).rendered && this.isValidParent(c, t)){ + items.push(c); + } + }; + return items; + }, + + /** + * @private + * Applies extraCls and hides the item if renderHidden is true + */ + configureItem: function(c, position){ + if (this.extraCls) { + var t = c.getPositionEl ? c.getPositionEl() : c; + t.addClass(this.extraCls); + } + + // If we are forcing a layout, do so *before* we hide so elements have height/width + if (c.doLayout && this.forceLayout) { + c.doLayout(); + } + if (this.renderHidden && c != this.activeItem) { + c.hide(); + } + }, + + onRemove: function(c){ + if(this.activeItem == c){ + delete this.activeItem; + } + if(c.rendered && this.extraCls){ + var t = c.getPositionEl ? c.getPositionEl() : c; + t.removeClass(this.extraCls); + } + }, + + afterRemove: function(c){ + if(c.removeRestore){ + c.removeMode = 'container'; + delete c.removeRestore; + } + }, + + // private + onResize: function(){ + var ct = this.container, + b; + if(ct.collapsed){ + return; + } + if(b = ct.bufferResize && ct.shouldBufferLayout()){ + if(!this.resizeTask){ + this.resizeTask = new Ext.util.DelayedTask(this.runLayout, this); + this.resizeBuffer = Ext.isNumber(b) ? b : 50; + } + ct.layoutPending = true; + this.resizeTask.delay(this.resizeBuffer); + }else{ + this.runLayout(); + } + }, + + runLayout: function(){ + var ct = this.container; + this.layout(); + ct.onLayout(); + delete ct.layoutPending; + }, + + // private + setContainer : function(ct){ + /** + * This monitorResize flag will be renamed soon as to avoid confusion + * with the Container version which hooks onWindowResize to doLayout + * + * monitorResize flag in this context attaches the resize event between + * a container and it's layout + */ + if(this.monitorResize && ct != this.container){ + var old = this.container; + if(old){ + old.un(old.resizeEvent, this.onResize, this); + } + if(ct){ + ct.on(ct.resizeEvent, this.onResize, this); + } + } + this.container = ct; + }, + + /** + * Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations + * (e.g. 10, "10", "10 10", "10 10 10" and "10 10 10 10" are all valid options and would return the same result) + * @param {Number|String} v The encoded margins + * @return {Object} An object with margin sizes for top, right, bottom and left + */ + parseMargins : function(v){ + if (Ext.isNumber(v)) { + v = v.toString(); + } + var ms = v.split(' '), + len = ms.length; + + if (len == 1) { + ms[1] = ms[2] = ms[3] = ms[0]; + } else if(len == 2) { + ms[2] = ms[0]; + ms[3] = ms[1]; + } else if(len == 3) { + ms[3] = ms[1]; + } + + return { + top :parseInt(ms[0], 10) || 0, + right :parseInt(ms[1], 10) || 0, + bottom:parseInt(ms[2], 10) || 0, + left :parseInt(ms[3], 10) || 0 + }; + }, + + /** + * The {@link Ext.Template Ext.Template} used by Field rendering layout classes (such as + * {@link Ext.layout.FormLayout}) to create the DOM structure of a fully wrapped, + * labeled and styled form Field. A default Template is supplied, but this may be + * overriden to create custom field structures. The template processes values returned from + * {@link Ext.layout.FormLayout#getTemplateArgs}. + * @property fieldTpl + * @type Ext.Template + */ + fieldTpl: (function() { + var t = new Ext.Template( + '
    ', + '', + '
    ', + '
    ', + '
    ' + ); + t.disableFormats = true; + return t.compile(); + })(), + + /* + * Destroys this layout. This is a template method that is empty by default, but should be implemented + * by subclasses that require explicit destruction to purge event handlers or remove DOM nodes. + * @protected + */ + destroy : function(){ + // Stop any buffered layout tasks + if(this.resizeTask && this.resizeTask.cancel){ + this.resizeTask.cancel(); + } + if(!Ext.isEmpty(this.targetCls)){ + var target = this.container.getLayoutTarget(); + if(target){ + target.removeClass(this.targetCls); + } + } + } +});/** + * @class Ext.layout.AutoLayout + *

    The AutoLayout is the default layout manager delegated by {@link Ext.Container} to + * render any child Components when no {@link Ext.Container#layout layout} is configured into + * a {@link Ext.Container Container}.. AutoLayout provides only a passthrough of any layout calls + * to any child containers.

    + */ +Ext.layout.AutoLayout = Ext.extend(Ext.layout.ContainerLayout, { + type: 'auto', + + monitorResize: true, + + onLayout : function(ct, target){ + Ext.layout.AutoLayout.superclass.onLayout.call(this, ct, target); + var cs = this.getRenderedItems(ct), len = cs.length, i, c; + for(i = 0; i < len; i++){ + c = cs[i]; + if (c.doLayout){ + // Shallow layout children + c.doLayout(true); + } + } + } +}); + +Ext.Container.LAYOUTS['auto'] = Ext.layout.AutoLayout; +/** + * @class Ext.layout.FitLayout + * @extends Ext.layout.ContainerLayout + *

    This is a base class for layouts that contain a single item that automatically expands to fill the layout's + * container. This class is intended to be extended or created via the layout:'fit' {@link Ext.Container#layout} + * config, and should generally not need to be created directly via the new keyword.

    + *

    FitLayout does not have any direct config options (other than inherited ones). To fit a panel to a container + * using FitLayout, simply set layout:'fit' on the container and add a single panel to it. If the container has + * multiple panels, only the first one will be displayed. Example usage:

    + *
    
    +var p = new Ext.Panel({
    +    title: 'Fit Layout',
    +    layout:'fit',
    +    items: {
    +        title: 'Inner Panel',
    +        html: '<p>This is the inner panel content</p>',
    +        border: false
    +    }
    +});
    +
    + */ +Ext.layout.FitLayout = Ext.extend(Ext.layout.ContainerLayout, { + // private + monitorResize:true, + + type: 'fit', + + getLayoutTargetSize : function() { + var target = this.container.getLayoutTarget(); + if (!target) { + return {}; + } + // Style Sized (scrollbars not included) + return target.getStyleSize(); + }, + + // private + onLayout : function(ct, target){ + Ext.layout.FitLayout.superclass.onLayout.call(this, ct, target); + if(!ct.collapsed){ + this.setItemSize(this.activeItem || ct.items.itemAt(0), this.getLayoutTargetSize()); + } + }, + + // private + setItemSize : function(item, size){ + if(item && size.height > 0){ // display none? + item.setSize(size); + } + } +}); +Ext.Container.LAYOUTS['fit'] = Ext.layout.FitLayout;/** + * @class Ext.layout.CardLayout + * @extends Ext.layout.FitLayout + *

    This layout manages multiple child Components, each fitted to the Container, where only a single child Component can be + * visible at any given time. This layout style is most commonly used for wizards, tab implementations, etc. + * This class is intended to be extended or created via the layout:'card' {@link Ext.Container#layout} config, + * and should generally not need to be created directly via the new keyword.

    + *

    The CardLayout's focal method is {@link #setActiveItem}. Since only one panel is displayed at a time, + * the only way to move from one Component to the next is by calling setActiveItem, passing the id or index of + * the next panel to display. The layout itself does not provide a user interface for handling this navigation, + * so that functionality must be provided by the developer.

    + *

    In the following example, a simplistic wizard setup is demonstrated. A button bar is added + * to the footer of the containing panel to provide navigation buttons. The buttons will be handled by a + * common navigation routine -- for this example, the implementation of that routine has been ommitted since + * it can be any type of custom logic. Note that other uses of a CardLayout (like a tab control) would require a + * completely different implementation. For serious implementations, a better approach would be to extend + * CardLayout to provide the custom functionality needed. Example usage:

    + *
    
    +var navHandler = function(direction){
    +    // This routine could contain business logic required to manage the navigation steps.
    +    // It would call setActiveItem as needed, manage navigation button state, handle any
    +    // branching logic that might be required, handle alternate actions like cancellation
    +    // or finalization, etc.  A complete wizard implementation could get pretty
    +    // sophisticated depending on the complexity required, and should probably be
    +    // done as a subclass of CardLayout in a real-world implementation.
    +};
    +
    +var card = new Ext.Panel({
    +    title: 'Example Wizard',
    +    layout:'card',
    +    activeItem: 0, // make sure the active item is set on the container config!
    +    bodyStyle: 'padding:15px',
    +    defaults: {
    +        // applied to each contained panel
    +        border:false
    +    },
    +    // just an example of one possible navigation scheme, using buttons
    +    bbar: [
    +        {
    +            id: 'move-prev',
    +            text: 'Back',
    +            handler: navHandler.createDelegate(this, [-1]),
    +            disabled: true
    +        },
    +        '->', // greedy spacer so that the buttons are aligned to each side
    +        {
    +            id: 'move-next',
    +            text: 'Next',
    +            handler: navHandler.createDelegate(this, [1])
    +        }
    +    ],
    +    // the panels (or "cards") within the layout
    +    items: [{
    +        id: 'card-0',
    +        html: '<h1>Welcome to the Wizard!</h1><p>Step 1 of 3</p>'
    +    },{
    +        id: 'card-1',
    +        html: '<p>Step 2 of 3</p>'
    +    },{
    +        id: 'card-2',
    +        html: '<h1>Congratulations!</h1><p>Step 3 of 3 - Complete</p>'
    +    }]
    +});
    +
    + */ +Ext.layout.CardLayout = Ext.extend(Ext.layout.FitLayout, { + /** + * @cfg {Boolean} deferredRender + * True to render each contained item at the time it becomes active, false to render all contained items + * as soon as the layout is rendered (defaults to false). If there is a significant amount of content or + * a lot of heavy controls being rendered into panels that are not displayed by default, setting this to + * true might improve performance. + */ + deferredRender : false, + + /** + * @cfg {Boolean} layoutOnCardChange + * True to force a layout of the active item when the active card is changed. Defaults to false. + */ + layoutOnCardChange : false, + + /** + * @cfg {Boolean} renderHidden @hide + */ + // private + renderHidden : true, + + type: 'card', + + /** + * Sets the active (visible) item in the layout. + * @param {String/Number} item The string component id or numeric index of the item to activate + */ + setActiveItem : function(item){ + var ai = this.activeItem, + ct = this.container; + item = ct.getComponent(item); + + // Is this a valid, different card? + if(item && ai != item){ + + // Changing cards, hide the current one + if(ai){ + ai.hide(); + if (ai.hidden !== true) { + return false; + } + ai.fireEvent('deactivate', ai); + } + + var layout = item.doLayout && (this.layoutOnCardChange || !item.rendered); + + // Change activeItem reference + this.activeItem = item; + + // The container is about to get a recursive layout, remove any deferLayout reference + // because it will trigger a redundant layout. + delete item.deferLayout; + + // Show the new component + item.show(); + + this.layout(); + + if(layout){ + item.doLayout(); + } + item.fireEvent('activate', item); + } + }, + + // private + renderAll : function(ct, target){ + if(this.deferredRender){ + this.renderItem(this.activeItem, undefined, target); + }else{ + Ext.layout.CardLayout.superclass.renderAll.call(this, ct, target); + } + } +}); +Ext.Container.LAYOUTS['card'] = Ext.layout.CardLayout; +/** + * @class Ext.layout.AnchorLayout + * @extends Ext.layout.ContainerLayout + *

    This is a layout that enables anchoring of contained elements relative to the container's dimensions. + * If the container is resized, all anchored items are automatically rerendered according to their + * {@link #anchor} rules.

    + *

    This class is intended to be extended or created via the layout:'anchor' {@link Ext.Container#layout} + * config, and should generally not need to be created directly via the new keyword.

    + *

    AnchorLayout does not have any direct config options (other than inherited ones). By default, + * AnchorLayout will calculate anchor measurements based on the size of the container itself. However, the + * container using the AnchorLayout can supply an anchoring-specific config property of anchorSize. + * If anchorSize is specifed, the layout will use it as a virtual container for the purposes of calculating + * anchor measurements based on it instead, allowing the container to be sized independently of the anchoring + * logic if necessary. For example:

    + *
    
    +var viewport = new Ext.Viewport({
    +    layout:'anchor',
    +    anchorSize: {width:800, height:600},
    +    items:[{
    +        title:'Item 1',
    +        html:'Content 1',
    +        width:800,
    +        anchor:'right 20%'
    +    },{
    +        title:'Item 2',
    +        html:'Content 2',
    +        width:300,
    +        anchor:'50% 30%'
    +    },{
    +        title:'Item 3',
    +        html:'Content 3',
    +        width:600,
    +        anchor:'-100 50%'
    +    }]
    +});
    + * 
    + */ +Ext.layout.AnchorLayout = Ext.extend(Ext.layout.ContainerLayout, { + /** + * @cfg {String} anchor + *

    This configuation option is to be applied to child items of a container managed by + * this layout (ie. configured with layout:'anchor').


    + * + *

    This value is what tells the layout how an item should be anchored to the container. items + * added to an AnchorLayout accept an anchoring-specific config property of anchor which is a string + * containing two values: the horizontal anchor value and the vertical anchor value (for example, '100% 50%'). + * The following types of anchor values are supported:

      + * + *
    • Percentage : Any value between 1 and 100, expressed as a percentage.
      + * The first anchor is the percentage width that the item should take up within the container, and the + * second is the percentage height. For example:
      
      +// two values specified
      +anchor: '100% 50%' // render item complete width of the container and
      +                   // 1/2 height of the container
      +// one value specified
      +anchor: '100%'     // the width value; the height will default to auto
      +     * 
    • + * + *
    • Offsets : Any positive or negative integer value.
      + * This is a raw adjustment where the first anchor is the offset from the right edge of the container, + * and the second is the offset from the bottom edge. For example:
      
      +// two values specified
      +anchor: '-50 -100' // render item the complete width of the container
      +                   // minus 50 pixels and
      +                   // the complete height minus 100 pixels.
      +// one value specified
      +anchor: '-50'      // anchor value is assumed to be the right offset value
      +                   // bottom offset will default to 0
      +     * 
    • + * + *
    • Sides : Valid values are 'right' (or 'r') and 'bottom' + * (or 'b').
      + * Either the container must have a fixed size or an anchorSize config value defined at render time in + * order for these to have any effect.
    • + * + *
    • Mixed :
      + * Anchor values can also be mixed as needed. For example, to render the width offset from the container + * right edge by 50 pixels and 75% of the container's height use: + *
      
      +anchor: '-50 75%'
      +     * 
    • + * + * + *
    + */ + + // private + monitorResize : true, + + type : 'anchor', + + /** + * @cfg {String} defaultAnchor + * + * default anchor for all child container items applied if no anchor or specific width is set on the child item. Defaults to '100%'. + * + */ + defaultAnchor : '100%', + + parseAnchorRE : /^(r|right|b|bottom)$/i, + + getLayoutTargetSize : function() { + var target = this.container.getLayoutTarget(); + if (!target) { + return {}; + } + // Style Sized (scrollbars not included) + return target.getStyleSize(); + }, + + // private + onLayout : function(ct, target){ + Ext.layout.AnchorLayout.superclass.onLayout.call(this, ct, target); + var size = this.getLayoutTargetSize(); + + var w = size.width, h = size.height; + + if(w < 20 && h < 20){ + return; + } + + // find the container anchoring size + var aw, ah; + if(ct.anchorSize){ + if(typeof ct.anchorSize == 'number'){ + aw = ct.anchorSize; + }else{ + aw = ct.anchorSize.width; + ah = ct.anchorSize.height; + } + }else{ + aw = ct.initialConfig.width; + ah = ct.initialConfig.height; + } + + var cs = this.getRenderedItems(ct), len = cs.length, i, c, a, cw, ch, el, vs, boxes = []; + for(i = 0; i < len; i++){ + c = cs[i]; + el = c.getPositionEl(); + + // If a child container item has no anchor and no specific width, set the child to the default anchor size + if (!c.anchor && c.items && !Ext.isNumber(c.width) && !(Ext.isIE6 && Ext.isStrict)){ + c.anchor = this.defaultAnchor; + } + + if(c.anchor){ + a = c.anchorSpec; + if(!a){ // cache all anchor values + vs = c.anchor.split(' '); + c.anchorSpec = a = { + right: this.parseAnchor(vs[0], c.initialConfig.width, aw), + bottom: this.parseAnchor(vs[1], c.initialConfig.height, ah) + }; + } + cw = a.right ? this.adjustWidthAnchor(a.right(w) - el.getMargins('lr'), c) : undefined; + ch = a.bottom ? this.adjustHeightAnchor(a.bottom(h) - el.getMargins('tb'), c) : undefined; + + if(cw || ch){ + boxes.push({ + comp: c, + width: cw || undefined, + height: ch || undefined + }); + } + } + } + for (i = 0, len = boxes.length; i < len; i++) { + c = boxes[i]; + c.comp.setSize(c.width, c.height); + } + }, + + // private + parseAnchor : function(a, start, cstart){ + if(a && a != 'none'){ + var last; + // standard anchor + if(this.parseAnchorRE.test(a)){ + var diff = cstart - start; + return function(v){ + if(v !== last){ + last = v; + return v - diff; + } + } + // percentage + }else if(a.indexOf('%') != -1){ + var ratio = parseFloat(a.replace('%', ''))*.01; + return function(v){ + if(v !== last){ + last = v; + return Math.floor(v*ratio); + } + } + // simple offset adjustment + }else{ + a = parseInt(a, 10); + if(!isNaN(a)){ + return function(v){ + if(v !== last){ + last = v; + return v + a; + } + } + } + } + } + return false; + }, + + // private + adjustWidthAnchor : function(value, comp){ + return value; + }, + + // private + adjustHeightAnchor : function(value, comp){ + return value; + } + + /** + * @property activeItem + * @hide + */ +}); +Ext.Container.LAYOUTS['anchor'] = Ext.layout.AnchorLayout; +/** + * @class Ext.layout.ColumnLayout + * @extends Ext.layout.ContainerLayout + *

    This is the layout style of choice for creating structural layouts in a multi-column format where the width of + * each column can be specified as a percentage or fixed width, but the height is allowed to vary based on the content. + * This class is intended to be extended or created via the layout:'column' {@link Ext.Container#layout} config, + * and should generally not need to be created directly via the new keyword.

    + *

    ColumnLayout does not have any direct config options (other than inherited ones), but it does support a + * specific config property of columnWidth that can be included in the config of any panel added to it. The + * layout will use the columnWidth (if present) or width of each panel during layout to determine how to size each panel. + * If width or columnWidth is not specified for a given panel, its width will default to the panel's width (or auto).

    + *

    The width property is always evaluated as pixels, and must be a number greater than or equal to 1. + * The columnWidth property is always evaluated as a percentage, and must be a decimal value greater than 0 and + * less than 1 (e.g., .25).

    + *

    The basic rules for specifying column widths are pretty simple. The logic makes two passes through the + * set of contained panels. During the first layout pass, all panels that either have a fixed width or none + * specified (auto) are skipped, but their widths are subtracted from the overall container width. During the second + * pass, all panels with columnWidths are assigned pixel widths in proportion to their percentages based on + * the total remaining container width. In other words, percentage width panels are designed to fill the space + * left over by all the fixed-width and/or auto-width panels. Because of this, while you can specify any number of columns + * with different percentages, the columnWidths must always add up to 1 (or 100%) when added together, otherwise your + * layout may not render as expected. Example usage:

    + *
    
    +// All columns are percentages -- they must add up to 1
    +var p = new Ext.Panel({
    +    title: 'Column Layout - Percentage Only',
    +    layout:'column',
    +    items: [{
    +        title: 'Column 1',
    +        columnWidth: .25
    +    },{
    +        title: 'Column 2',
    +        columnWidth: .6
    +    },{
    +        title: 'Column 3',
    +        columnWidth: .15
    +    }]
    +});
    +
    +// Mix of width and columnWidth -- all columnWidth values must add up
    +// to 1. The first column will take up exactly 120px, and the last two
    +// columns will fill the remaining container width.
    +var p = new Ext.Panel({
    +    title: 'Column Layout - Mixed',
    +    layout:'column',
    +    items: [{
    +        title: 'Column 1',
    +        width: 120
    +    },{
    +        title: 'Column 2',
    +        columnWidth: .8
    +    },{
    +        title: 'Column 3',
    +        columnWidth: .2
    +    }]
    +});
    +
    + */ +Ext.layout.ColumnLayout = Ext.extend(Ext.layout.ContainerLayout, { + // private + monitorResize:true, + + type: 'column', + + extraCls: 'x-column', + + scrollOffset : 0, + + // private + + targetCls: 'x-column-layout-ct', + + isValidParent : function(c, target){ + return this.innerCt && c.getPositionEl().dom.parentNode == this.innerCt.dom; + }, + + getLayoutTargetSize : function() { + var target = this.container.getLayoutTarget(), ret; + if (target) { + ret = target.getViewSize(); + + // IE in strict mode will return a width of 0 on the 1st pass of getViewSize. + // Use getStyleSize to verify the 0 width, the adjustment pass will then work properly + // with getViewSize + if (Ext.isIE && Ext.isStrict && ret.width == 0){ + ret = target.getStyleSize(); + } + + ret.width -= target.getPadding('lr'); + ret.height -= target.getPadding('tb'); + } + return ret; + }, + + renderAll : function(ct, target) { + if(!this.innerCt){ + // the innerCt prevents wrapping and shuffling while + // the container is resizing + this.innerCt = target.createChild({cls:'x-column-inner'}); + this.innerCt.createChild({cls:'x-clear'}); + } + Ext.layout.ColumnLayout.superclass.renderAll.call(this, ct, this.innerCt); + }, + + // private + onLayout : function(ct, target){ + var cs = ct.items.items, + len = cs.length, + c, + i, + m, + margins = []; + + this.renderAll(ct, target); + + var size = this.getLayoutTargetSize(); + + if(size.width < 1 && size.height < 1){ // display none? + return; + } + + var w = size.width - this.scrollOffset, + h = size.height, + pw = w; + + this.innerCt.setWidth(w); + + // some columns can be percentages while others are fixed + // so we need to make 2 passes + + for(i = 0; i < len; i++){ + c = cs[i]; + m = c.getPositionEl().getMargins('lr'); + margins[i] = m; + if(!c.columnWidth){ + pw -= (c.getWidth() + m); + } + } + + pw = pw < 0 ? 0 : pw; + + for(i = 0; i < len; i++){ + c = cs[i]; + m = margins[i]; + if(c.columnWidth){ + c.setSize(Math.floor(c.columnWidth * pw) - m); + } + } + + // Browsers differ as to when they account for scrollbars. We need to re-measure to see if the scrollbar + // spaces were accounted for properly. If not, re-layout. + if (Ext.isIE) { + if (i = target.getStyle('overflow') && i != 'hidden' && !this.adjustmentPass) { + var ts = this.getLayoutTargetSize(); + if (ts.width != size.width){ + this.adjustmentPass = true; + this.onLayout(ct, target); + } + } + } + delete this.adjustmentPass; + } + + /** + * @property activeItem + * @hide + */ +}); + +Ext.Container.LAYOUTS['column'] = Ext.layout.ColumnLayout; +/** + * @class Ext.layout.BorderLayout + * @extends Ext.layout.ContainerLayout + *

    This is a multi-pane, application-oriented UI layout style that supports multiple + * nested panels, automatic {@link Ext.layout.BorderLayout.Region#split split} bars between + * {@link Ext.layout.BorderLayout.Region#BorderLayout.Region regions} and built-in + * {@link Ext.layout.BorderLayout.Region#collapsible expanding and collapsing} of regions.

    + *

    This class is intended to be extended or created via the layout:'border' + * {@link Ext.Container#layout} config, and should generally not need to be created directly + * via the new keyword.

    + *

    BorderLayout does not have any direct config options (other than inherited ones). + * All configuration options available for customizing the BorderLayout are at the + * {@link Ext.layout.BorderLayout.Region} and {@link Ext.layout.BorderLayout.SplitRegion} + * levels.

    + *

    Example usage:

    + *
    
    +var myBorderPanel = new Ext.Panel({
    +    {@link Ext.Component#renderTo renderTo}: document.body,
    +    {@link Ext.BoxComponent#width width}: 700,
    +    {@link Ext.BoxComponent#height height}: 500,
    +    {@link Ext.Panel#title title}: 'Border Layout',
    +    {@link Ext.Container#layout layout}: 'border',
    +    {@link Ext.Container#items items}: [{
    +        {@link Ext.Panel#title title}: 'South Region is resizable',
    +        {@link Ext.layout.BorderLayout.Region#BorderLayout.Region region}: 'south',     // position for region
    +        {@link Ext.BoxComponent#height height}: 100,
    +        {@link Ext.layout.BorderLayout.Region#split split}: true,         // enable resizing
    +        {@link Ext.SplitBar#minSize minSize}: 75,         // defaults to {@link Ext.layout.BorderLayout.Region#minHeight 50}
    +        {@link Ext.SplitBar#maxSize maxSize}: 150,
    +        {@link Ext.layout.BorderLayout.Region#margins margins}: '0 5 5 5'
    +    },{
    +        // xtype: 'panel' implied by default
    +        {@link Ext.Panel#title title}: 'West Region is collapsible',
    +        {@link Ext.layout.BorderLayout.Region#BorderLayout.Region region}:'west',
    +        {@link Ext.layout.BorderLayout.Region#margins margins}: '5 0 0 5',
    +        {@link Ext.BoxComponent#width width}: 200,
    +        {@link Ext.layout.BorderLayout.Region#collapsible collapsible}: true,   // make collapsible
    +        {@link Ext.layout.BorderLayout.Region#cmargins cmargins}: '5 5 0 5', // adjust top margin when collapsed
    +        {@link Ext.Component#id id}: 'west-region-container',
    +        {@link Ext.Container#layout layout}: 'fit',
    +        {@link Ext.Panel#unstyled unstyled}: true
    +    },{
    +        {@link Ext.Panel#title title}: 'Center Region',
    +        {@link Ext.layout.BorderLayout.Region#BorderLayout.Region region}: 'center',     // center region is required, no width/height specified
    +        {@link Ext.Component#xtype xtype}: 'container',
    +        {@link Ext.Container#layout layout}: 'fit',
    +        {@link Ext.layout.BorderLayout.Region#margins margins}: '5 5 0 0'
    +    }]
    +});
    +
    + *

    Notes:

      + *
    • Any container using the BorderLayout must have a child item with region:'center'. + * The child item in the center region will always be resized to fill the remaining space not used by + * the other regions in the layout.
    • + *
    • Any child items with a region of west or east must have width defined + * (an integer representing the number of pixels that the region should take up).
    • + *
    • Any child items with a region of north or south must have height defined.
    • + *
    • The regions of a BorderLayout are fixed at render time and thereafter, its child Components may not be removed or added. To add/remove + * Components within a BorderLayout, have them wrapped by an additional Container which is directly + * managed by the BorderLayout. If the region is to be collapsible, the Container used directly + * by the BorderLayout manager should be a Panel. In the following example a Container (an Ext.Panel) + * is added to the west region: + *
      
      +wrc = {@link Ext#getCmp Ext.getCmp}('west-region-container');
      +wrc.{@link Ext.Panel#removeAll removeAll}();
      +wrc.{@link Ext.Container#add add}({
      +    title: 'Added Panel',
      +    html: 'Some content'
      +});
      +wrc.{@link Ext.Container#doLayout doLayout}();
      + * 
      + *
    • + *
    • To reference a {@link Ext.layout.BorderLayout.Region Region}: + *
      
      +wr = myBorderPanel.layout.west;
      + * 
      + *
    • + *
    + */ +Ext.layout.BorderLayout = Ext.extend(Ext.layout.ContainerLayout, { + // private + monitorResize:true, + // private + rendered : false, + + type: 'border', + + targetCls: 'x-border-layout-ct', + + getLayoutTargetSize : function() { + var target = this.container.getLayoutTarget(); + return target ? target.getViewSize() : {}; + }, + + // private + onLayout : function(ct, target){ + var collapsed, i, c, pos, items = ct.items.items, len = items.length; + if(!this.rendered){ + collapsed = []; + for(i = 0; i < len; i++) { + c = items[i]; + pos = c.region; + if(c.collapsed){ + collapsed.push(c); + } + c.collapsed = false; + if(!c.rendered){ + c.render(target, i); + c.getPositionEl().addClass('x-border-panel'); + } + this[pos] = pos != 'center' && c.split ? + new Ext.layout.BorderLayout.SplitRegion(this, c.initialConfig, pos) : + new Ext.layout.BorderLayout.Region(this, c.initialConfig, pos); + this[pos].render(target, c); + } + this.rendered = true; + } + + var size = this.getLayoutTargetSize(); + if(size.width < 20 || size.height < 20){ // display none? + if(collapsed){ + this.restoreCollapsed = collapsed; + } + return; + }else if(this.restoreCollapsed){ + collapsed = this.restoreCollapsed; + delete this.restoreCollapsed; + } + + var w = size.width, h = size.height, + centerW = w, centerH = h, centerY = 0, centerX = 0, + n = this.north, s = this.south, west = this.west, e = this.east, c = this.center, + b, m, totalWidth, totalHeight; + if(!c && Ext.layout.BorderLayout.WARN !== false){ + throw 'No center region defined in BorderLayout ' + ct.id; + } + + if(n && n.isVisible()){ + b = n.getSize(); + m = n.getMargins(); + b.width = w - (m.left+m.right); + b.x = m.left; + b.y = m.top; + centerY = b.height + b.y + m.bottom; + centerH -= centerY; + n.applyLayout(b); + } + if(s && s.isVisible()){ + b = s.getSize(); + m = s.getMargins(); + b.width = w - (m.left+m.right); + b.x = m.left; + totalHeight = (b.height + m.top + m.bottom); + b.y = h - totalHeight + m.top; + centerH -= totalHeight; + s.applyLayout(b); + } + if(west && west.isVisible()){ + b = west.getSize(); + m = west.getMargins(); + b.height = centerH - (m.top+m.bottom); + b.x = m.left; + b.y = centerY + m.top; + totalWidth = (b.width + m.left + m.right); + centerX += totalWidth; + centerW -= totalWidth; + west.applyLayout(b); + } + if(e && e.isVisible()){ + b = e.getSize(); + m = e.getMargins(); + b.height = centerH - (m.top+m.bottom); + totalWidth = (b.width + m.left + m.right); + b.x = w - totalWidth + m.left; + b.y = centerY + m.top; + centerW -= totalWidth; + e.applyLayout(b); + } + if(c){ + m = c.getMargins(); + var centerBox = { + x: centerX + m.left, + y: centerY + m.top, + width: centerW - (m.left+m.right), + height: centerH - (m.top+m.bottom) + }; + c.applyLayout(centerBox); + } + if(collapsed){ + for(i = 0, len = collapsed.length; i < len; i++){ + collapsed[i].collapse(false); + } + } + if(Ext.isIE && Ext.isStrict){ // workaround IE strict repainting issue + target.repaint(); + } + // Putting a border layout into an overflowed container is NOT correct and will make a second layout pass necessary. + if (i = target.getStyle('overflow') && i != 'hidden' && !this.adjustmentPass) { + var ts = this.getLayoutTargetSize(); + if (ts.width != size.width || ts.height != size.height){ + this.adjustmentPass = true; + this.onLayout(ct, target); + } + } + delete this.adjustmentPass; + }, + + destroy: function() { + var r = ['north', 'south', 'east', 'west'], i, region; + for (i = 0; i < r.length; i++) { + region = this[r[i]]; + if(region){ + if(region.destroy){ + region.destroy(); + }else if (region.split){ + region.split.destroy(true); + } + } + } + Ext.layout.BorderLayout.superclass.destroy.call(this); + } + + /** + * @property activeItem + * @hide + */ +}); + +/** + * @class Ext.layout.BorderLayout.Region + *

    This is a region of a {@link Ext.layout.BorderLayout BorderLayout} that acts as a subcontainer + * within the layout. Each region has its own {@link Ext.layout.ContainerLayout layout} that is + * independent of other regions and the containing BorderLayout, and can be any of the + * {@link Ext.layout.ContainerLayout valid Ext layout types}.

    + *

    Region size is managed automatically and cannot be changed by the user -- for + * {@link #split resizable regions}, see {@link Ext.layout.BorderLayout.SplitRegion}.

    + * @constructor + * Create a new Region. + * @param {Layout} layout The {@link Ext.layout.BorderLayout BorderLayout} instance that is managing this Region. + * @param {Object} config The configuration options + * @param {String} position The region position. Valid values are: north, south, + * east, west and center. Every {@link Ext.layout.BorderLayout BorderLayout} + * must have a center region for the primary content -- all other regions are optional. + */ +Ext.layout.BorderLayout.Region = function(layout, config, pos){ + Ext.apply(this, config); + this.layout = layout; + this.position = pos; + this.state = {}; + if(typeof this.margins == 'string'){ + this.margins = this.layout.parseMargins(this.margins); + } + this.margins = Ext.applyIf(this.margins || {}, this.defaultMargins); + if(this.collapsible){ + if(typeof this.cmargins == 'string'){ + this.cmargins = this.layout.parseMargins(this.cmargins); + } + if(this.collapseMode == 'mini' && !this.cmargins){ + this.cmargins = {left:0,top:0,right:0,bottom:0}; + }else{ + this.cmargins = Ext.applyIf(this.cmargins || {}, + pos == 'north' || pos == 'south' ? this.defaultNSCMargins : this.defaultEWCMargins); + } + } +}; + +Ext.layout.BorderLayout.Region.prototype = { + /** + * @cfg {Boolean} animFloat + * When a collapsed region's bar is clicked, the region's panel will be displayed as a floated + * panel that will close again once the user mouses out of that panel (or clicks out if + * {@link #autoHide} = false). Setting {@link #animFloat} = false will + * prevent the open and close of these floated panels from being animated (defaults to true). + */ + /** + * @cfg {Boolean} autoHide + * When a collapsed region's bar is clicked, the region's panel will be displayed as a floated + * panel. If autoHide = true, the panel will automatically hide after the user mouses + * out of the panel. If autoHide = false, the panel will continue to display until the + * user clicks outside of the panel (defaults to true). + */ + /** + * @cfg {String} collapseMode + * collapseMode supports two configuration values:
      + *
    • undefined (default)
      By default, {@link #collapsible} + * regions are collapsed by clicking the expand/collapse tool button that renders into the region's + * title bar.
    • + *
    • 'mini'
      Optionally, when collapseMode is set to + * 'mini' the region's split bar will also display a small collapse button in the center of + * the bar. In 'mini' mode the region will collapse to a thinner bar than in normal mode. + *
    • + *

    + *

    Note: if a collapsible region does not have a title bar, then set collapseMode = + * 'mini' and {@link #split} = true in order for the region to be {@link #collapsible} + * by the user as the expand/collapse tool button (that would go in the title bar) will not be rendered.

    + *

    See also {@link #cmargins}.

    + */ + /** + * @cfg {Object} margins + * An object containing margins to apply to the region when in the expanded state in the + * format:
    
    +{
    +    top: (top margin),
    +    right: (right margin),
    +    bottom: (bottom margin),
    +    left: (left margin)
    +}
    + *

    May also be a string containing space-separated, numeric margin values. The order of the + * sides associated with each value matches the way CSS processes margin values:

    + *

      + *
    • If there is only one value, it applies to all sides.
    • + *
    • If there are two values, the top and bottom borders are set to the first value and the + * right and left are set to the second.
    • + *
    • If there are three values, the top is set to the first value, the left and right are set + * to the second, and the bottom is set to the third.
    • + *
    • If there are four values, they apply to the top, right, bottom, and left, respectively.
    • + *

    + *

    Defaults to:

    
    +     * {top:0, right:0, bottom:0, left:0}
    +     * 
    + */ + /** + * @cfg {Object} cmargins + * An object containing margins to apply to the region when in the collapsed state in the + * format:
    
    +{
    +    top: (top margin),
    +    right: (right margin),
    +    bottom: (bottom margin),
    +    left: (left margin)
    +}
    + *

    May also be a string containing space-separated, numeric margin values. The order of the + * sides associated with each value matches the way CSS processes margin values.

    + *

      + *
    • If there is only one value, it applies to all sides.
    • + *
    • If there are two values, the top and bottom borders are set to the first value and the + * right and left are set to the second.
    • + *
    • If there are three values, the top is set to the first value, the left and right are set + * to the second, and the bottom is set to the third.
    • + *
    • If there are four values, they apply to the top, right, bottom, and left, respectively.
    • + *

    + */ + /** + * @cfg {Boolean} collapsible + *

    true to allow the user to collapse this region (defaults to false). If + * true, an expand/collapse tool button will automatically be rendered into the title + * bar of the region, otherwise the button will not be shown.

    + *

    Note: that a title bar is required to display the collapse/expand toggle button -- if + * no title is specified for the region's panel, the region will only be collapsible if + * {@link #collapseMode} = 'mini' and {@link #split} = true. + */ + collapsible : false, + /** + * @cfg {Boolean} split + *

    true to create a {@link Ext.layout.BorderLayout.SplitRegion SplitRegion} and + * display a 5px wide {@link Ext.SplitBar} between this region and its neighbor, allowing the user to + * resize the regions dynamically. Defaults to false creating a + * {@link Ext.layout.BorderLayout.Region Region}.


    + *

    Notes:

      + *
    • this configuration option is ignored if region='center'
    • + *
    • when split == true, it is common to specify a + * {@link Ext.SplitBar#minSize minSize} and {@link Ext.SplitBar#maxSize maxSize} + * for the {@link Ext.BoxComponent BoxComponent} representing the region. These are not native + * configs of {@link Ext.BoxComponent BoxComponent}, and are used only by this class.
    • + *
    • if {@link #collapseMode} = 'mini' requires split = true to reserve space + * for the collapse tool
    • + *
    + */ + split:false, + /** + * @cfg {Boolean} floatable + * true to allow clicking a collapsed region's bar to display the region's panel floated + * above the layout, false to force the user to fully expand a collapsed region by + * clicking the expand button to see it again (defaults to true). + */ + floatable: true, + /** + * @cfg {Number} minWidth + *

    The minimum allowable width in pixels for this region (defaults to 50). + * maxWidth may also be specified.


    + *

    Note: setting the {@link Ext.SplitBar#minSize minSize} / + * {@link Ext.SplitBar#maxSize maxSize} supersedes any specified + * minWidth / maxWidth.

    + */ + minWidth:50, + /** + * @cfg {Number} minHeight + * The minimum allowable height in pixels for this region (defaults to 50) + * maxHeight may also be specified.


    + *

    Note: setting the {@link Ext.SplitBar#minSize minSize} / + * {@link Ext.SplitBar#maxSize maxSize} supersedes any specified + * minHeight / maxHeight.

    + */ + minHeight:50, + + // private + defaultMargins : {left:0,top:0,right:0,bottom:0}, + // private + defaultNSCMargins : {left:5,top:5,right:5,bottom:5}, + // private + defaultEWCMargins : {left:5,top:0,right:5,bottom:0}, + floatingZIndex: 100, + + /** + * True if this region is collapsed. Read-only. + * @type Boolean + * @property + */ + isCollapsed : false, + + /** + * This region's panel. Read-only. + * @type Ext.Panel + * @property panel + */ + /** + * This region's layout. Read-only. + * @type Layout + * @property layout + */ + /** + * This region's layout position (north, south, east, west or center). Read-only. + * @type String + * @property position + */ + + // private + render : function(ct, p){ + this.panel = p; + p.el.enableDisplayMode(); + this.targetEl = ct; + this.el = p.el; + + var gs = p.getState, ps = this.position; + p.getState = function(){ + return Ext.apply(gs.call(p) || {}, this.state); + }.createDelegate(this); + + if(ps != 'center'){ + p.allowQueuedExpand = false; + p.on({ + beforecollapse: this.beforeCollapse, + collapse: this.onCollapse, + beforeexpand: this.beforeExpand, + expand: this.onExpand, + hide: this.onHide, + show: this.onShow, + scope: this + }); + if(this.collapsible || this.floatable){ + p.collapseEl = 'el'; + p.slideAnchor = this.getSlideAnchor(); + } + if(p.tools && p.tools.toggle){ + p.tools.toggle.addClass('x-tool-collapse-'+ps); + p.tools.toggle.addClassOnOver('x-tool-collapse-'+ps+'-over'); + } + } + }, + + // private + getCollapsedEl : function(){ + if(!this.collapsedEl){ + if(!this.toolTemplate){ + var tt = new Ext.Template( + '
     
    ' + ); + tt.disableFormats = true; + tt.compile(); + Ext.layout.BorderLayout.Region.prototype.toolTemplate = tt; + } + this.collapsedEl = this.targetEl.createChild({ + cls: "x-layout-collapsed x-layout-collapsed-"+this.position, + id: this.panel.id + '-xcollapsed' + }); + this.collapsedEl.enableDisplayMode('block'); + + if(this.collapseMode == 'mini'){ + this.collapsedEl.addClass('x-layout-cmini-'+this.position); + this.miniCollapsedEl = this.collapsedEl.createChild({ + cls: "x-layout-mini x-layout-mini-"+this.position, html: " " + }); + this.miniCollapsedEl.addClassOnOver('x-layout-mini-over'); + this.collapsedEl.addClassOnOver("x-layout-collapsed-over"); + this.collapsedEl.on('click', this.onExpandClick, this, {stopEvent:true}); + }else { + if(this.collapsible !== false && !this.hideCollapseTool) { + var t = this.toolTemplate.append( + this.collapsedEl.dom, + {id:'expand-'+this.position}, true); + t.addClassOnOver('x-tool-expand-'+this.position+'-over'); + t.on('click', this.onExpandClick, this, {stopEvent:true}); + } + if(this.floatable !== false || this.titleCollapse){ + this.collapsedEl.addClassOnOver("x-layout-collapsed-over"); + this.collapsedEl.on("click", this[this.floatable ? 'collapseClick' : 'onExpandClick'], this); + } + } + } + return this.collapsedEl; + }, + + // private + onExpandClick : function(e){ + if(this.isSlid){ + this.panel.expand(false); + }else{ + this.panel.expand(); + } + }, + + // private + onCollapseClick : function(e){ + this.panel.collapse(); + }, + + // private + beforeCollapse : function(p, animate){ + this.lastAnim = animate; + if(this.splitEl){ + this.splitEl.hide(); + } + this.getCollapsedEl().show(); + var el = this.panel.getEl(); + this.originalZIndex = el.getStyle('z-index'); + el.setStyle('z-index', 100); + this.isCollapsed = true; + this.layout.layout(); + }, + + // private + onCollapse : function(animate){ + this.panel.el.setStyle('z-index', 1); + if(this.lastAnim === false || this.panel.animCollapse === false){ + this.getCollapsedEl().dom.style.visibility = 'visible'; + }else{ + this.getCollapsedEl().slideIn(this.panel.slideAnchor, {duration:.2}); + } + this.state.collapsed = true; + this.panel.saveState(); + }, + + // private + beforeExpand : function(animate){ + if(this.isSlid){ + this.afterSlideIn(); + } + var c = this.getCollapsedEl(); + this.el.show(); + if(this.position == 'east' || this.position == 'west'){ + this.panel.setSize(undefined, c.getHeight()); + }else{ + this.panel.setSize(c.getWidth(), undefined); + } + c.hide(); + c.dom.style.visibility = 'hidden'; + this.panel.el.setStyle('z-index', this.floatingZIndex); + }, + + // private + onExpand : function(){ + this.isCollapsed = false; + if(this.splitEl){ + this.splitEl.show(); + } + this.layout.layout(); + this.panel.el.setStyle('z-index', this.originalZIndex); + this.state.collapsed = false; + this.panel.saveState(); + }, + + // private + collapseClick : function(e){ + if(this.isSlid){ + e.stopPropagation(); + this.slideIn(); + }else{ + e.stopPropagation(); + this.slideOut(); + } + }, + + // private + onHide : function(){ + if(this.isCollapsed){ + this.getCollapsedEl().hide(); + }else if(this.splitEl){ + this.splitEl.hide(); + } + }, + + // private + onShow : function(){ + if(this.isCollapsed){ + this.getCollapsedEl().show(); + }else if(this.splitEl){ + this.splitEl.show(); + } + }, + + /** + * True if this region is currently visible, else false. + * @return {Boolean} + */ + isVisible : function(){ + return !this.panel.hidden; + }, + + /** + * Returns the current margins for this region. If the region is collapsed, the + * {@link #cmargins} (collapsed margins) value will be returned, otherwise the + * {@link #margins} value will be returned. + * @return {Object} An object containing the element's margins: {left: (left + * margin), top: (top margin), right: (right margin), bottom: (bottom margin)} + */ + getMargins : function(){ + return this.isCollapsed && this.cmargins ? this.cmargins : this.margins; + }, + + /** + * Returns the current size of this region. If the region is collapsed, the size of the + * collapsedEl will be returned, otherwise the size of the region's panel will be returned. + * @return {Object} An object containing the element's size: {width: (element width), + * height: (element height)} + */ + getSize : function(){ + return this.isCollapsed ? this.getCollapsedEl().getSize() : this.panel.getSize(); + }, + + /** + * Sets the specified panel as the container element for this region. + * @param {Ext.Panel} panel The new panel + */ + setPanel : function(panel){ + this.panel = panel; + }, + + /** + * Returns the minimum allowable width for this region. + * @return {Number} The minimum width + */ + getMinWidth: function(){ + return this.minWidth; + }, + + /** + * Returns the minimum allowable height for this region. + * @return {Number} The minimum height + */ + getMinHeight: function(){ + return this.minHeight; + }, + + // private + applyLayoutCollapsed : function(box){ + var ce = this.getCollapsedEl(); + ce.setLeftTop(box.x, box.y); + ce.setSize(box.width, box.height); + }, + + // private + applyLayout : function(box){ + if(this.isCollapsed){ + this.applyLayoutCollapsed(box); + }else{ + this.panel.setPosition(box.x, box.y); + this.panel.setSize(box.width, box.height); + } + }, + + // private + beforeSlide: function(){ + this.panel.beforeEffect(); + }, + + // private + afterSlide : function(){ + this.panel.afterEffect(); + }, + + // private + initAutoHide : function(){ + if(this.autoHide !== false){ + if(!this.autoHideHd){ + this.autoHideSlideTask = new Ext.util.DelayedTask(this.slideIn, this); + this.autoHideHd = { + "mouseout": function(e){ + if(!e.within(this.el, true)){ + this.autoHideSlideTask.delay(500); + } + }, + "mouseover" : function(e){ + this.autoHideSlideTask.cancel(); + }, + scope : this + }; + } + this.el.on(this.autoHideHd); + this.collapsedEl.on(this.autoHideHd); + } + }, + + // private + clearAutoHide : function(){ + if(this.autoHide !== false){ + this.el.un("mouseout", this.autoHideHd.mouseout); + this.el.un("mouseover", this.autoHideHd.mouseover); + this.collapsedEl.un("mouseout", this.autoHideHd.mouseout); + this.collapsedEl.un("mouseover", this.autoHideHd.mouseover); + } + }, + + // private + clearMonitor : function(){ + Ext.getDoc().un("click", this.slideInIf, this); + }, + + /** + * If this Region is {@link #floatable}, this method slides this Region into full visibility over the top + * of the center Region where it floats until either {@link #slideIn} is called, or other regions of the layout + * are clicked, or the mouse exits the Region. + */ + slideOut : function(){ + if(this.isSlid || this.el.hasActiveFx()){ + return; + } + this.isSlid = true; + var ts = this.panel.tools, dh, pc; + if(ts && ts.toggle){ + ts.toggle.hide(); + } + this.el.show(); + + // Temporarily clear the collapsed flag so we can onResize the panel on the slide + pc = this.panel.collapsed; + this.panel.collapsed = false; + + if(this.position == 'east' || this.position == 'west'){ + // Temporarily clear the deferHeight flag so we can size the height on the slide + dh = this.panel.deferHeight; + this.panel.deferHeight = false; + + this.panel.setSize(undefined, this.collapsedEl.getHeight()); + + // Put the deferHeight flag back after setSize + this.panel.deferHeight = dh; + }else{ + this.panel.setSize(this.collapsedEl.getWidth(), undefined); + } + + // Put the collapsed flag back after onResize + this.panel.collapsed = pc; + + this.restoreLT = [this.el.dom.style.left, this.el.dom.style.top]; + this.el.alignTo(this.collapsedEl, this.getCollapseAnchor()); + this.el.setStyle("z-index", this.floatingZIndex+2); + this.panel.el.replaceClass('x-panel-collapsed', 'x-panel-floating'); + if(this.animFloat !== false){ + this.beforeSlide(); + this.el.slideIn(this.getSlideAnchor(), { + callback: function(){ + this.afterSlide(); + this.initAutoHide(); + Ext.getDoc().on("click", this.slideInIf, this); + }, + scope: this, + block: true + }); + }else{ + this.initAutoHide(); + Ext.getDoc().on("click", this.slideInIf, this); + } + }, + + // private + afterSlideIn : function(){ + this.clearAutoHide(); + this.isSlid = false; + this.clearMonitor(); + this.el.setStyle("z-index", ""); + this.panel.el.replaceClass('x-panel-floating', 'x-panel-collapsed'); + this.el.dom.style.left = this.restoreLT[0]; + this.el.dom.style.top = this.restoreLT[1]; + + var ts = this.panel.tools; + if(ts && ts.toggle){ + ts.toggle.show(); + } + }, + + /** + * If this Region is {@link #floatable}, and this Region has been slid into floating visibility, then this method slides + * this region back into its collapsed state. + */ + slideIn : function(cb){ + if(!this.isSlid || this.el.hasActiveFx()){ + Ext.callback(cb); + return; + } + this.isSlid = false; + if(this.animFloat !== false){ + this.beforeSlide(); + this.el.slideOut(this.getSlideAnchor(), { + callback: function(){ + this.el.hide(); + this.afterSlide(); + this.afterSlideIn(); + Ext.callback(cb); + }, + scope: this, + block: true + }); + }else{ + this.el.hide(); + this.afterSlideIn(); + } + }, + + // private + slideInIf : function(e){ + if(!e.within(this.el)){ + this.slideIn(); + } + }, + + // private + anchors : { + "west" : "left", + "east" : "right", + "north" : "top", + "south" : "bottom" + }, + + // private + sanchors : { + "west" : "l", + "east" : "r", + "north" : "t", + "south" : "b" + }, + + // private + canchors : { + "west" : "tl-tr", + "east" : "tr-tl", + "north" : "tl-bl", + "south" : "bl-tl" + }, + + // private + getAnchor : function(){ + return this.anchors[this.position]; + }, + + // private + getCollapseAnchor : function(){ + return this.canchors[this.position]; + }, + + // private + getSlideAnchor : function(){ + return this.sanchors[this.position]; + }, + + // private + getAlignAdj : function(){ + var cm = this.cmargins; + switch(this.position){ + case "west": + return [0, 0]; + break; + case "east": + return [0, 0]; + break; + case "north": + return [0, 0]; + break; + case "south": + return [0, 0]; + break; + } + }, + + // private + getExpandAdj : function(){ + var c = this.collapsedEl, cm = this.cmargins; + switch(this.position){ + case "west": + return [-(cm.right+c.getWidth()+cm.left), 0]; + break; + case "east": + return [cm.right+c.getWidth()+cm.left, 0]; + break; + case "north": + return [0, -(cm.top+cm.bottom+c.getHeight())]; + break; + case "south": + return [0, cm.top+cm.bottom+c.getHeight()]; + break; + } + }, + + destroy : function(){ + if (this.autoHideSlideTask && this.autoHideSlideTask.cancel){ + this.autoHideSlideTask.cancel(); + } + Ext.destroy(this.miniCollapsedEl, this.collapsedEl); + } +}; + +/** + * @class Ext.layout.BorderLayout.SplitRegion + * @extends Ext.layout.BorderLayout.Region + *

    This is a specialized type of {@link Ext.layout.BorderLayout.Region BorderLayout region} that + * has a built-in {@link Ext.SplitBar} for user resizing of regions. The movement of the split bar + * is configurable to move either {@link #tickSize smooth or incrementally}.

    + * @constructor + * Create a new SplitRegion. + * @param {Layout} layout The {@link Ext.layout.BorderLayout BorderLayout} instance that is managing this Region. + * @param {Object} config The configuration options + * @param {String} position The region position. Valid values are: north, south, east, west and center. Every + * BorderLayout must have a center region for the primary content -- all other regions are optional. + */ +Ext.layout.BorderLayout.SplitRegion = function(layout, config, pos){ + Ext.layout.BorderLayout.SplitRegion.superclass.constructor.call(this, layout, config, pos); + // prevent switch + this.applyLayout = this.applyFns[pos]; +}; + +Ext.extend(Ext.layout.BorderLayout.SplitRegion, Ext.layout.BorderLayout.Region, { + /** + * @cfg {Number} tickSize + * The increment, in pixels by which to move this Region's {@link Ext.SplitBar SplitBar}. + * By default, the {@link Ext.SplitBar SplitBar} moves smoothly. + */ + /** + * @cfg {String} splitTip + * The tooltip to display when the user hovers over a + * {@link Ext.layout.BorderLayout.Region#collapsible non-collapsible} region's split bar + * (defaults to "Drag to resize."). Only applies if + * {@link #useSplitTips} = true. + */ + splitTip : "Drag to resize.", + /** + * @cfg {String} collapsibleSplitTip + * The tooltip to display when the user hovers over a + * {@link Ext.layout.BorderLayout.Region#collapsible collapsible} region's split bar + * (defaults to "Drag to resize. Double click to hide."). Only applies if + * {@link #useSplitTips} = true. + */ + collapsibleSplitTip : "Drag to resize. Double click to hide.", + /** + * @cfg {Boolean} useSplitTips + * true to display a tooltip when the user hovers over a region's split bar + * (defaults to false). The tooltip text will be the value of either + * {@link #splitTip} or {@link #collapsibleSplitTip} as appropriate. + */ + useSplitTips : false, + + // private + splitSettings : { + north : { + orientation: Ext.SplitBar.VERTICAL, + placement: Ext.SplitBar.TOP, + maxFn : 'getVMaxSize', + minProp: 'minHeight', + maxProp: 'maxHeight' + }, + south : { + orientation: Ext.SplitBar.VERTICAL, + placement: Ext.SplitBar.BOTTOM, + maxFn : 'getVMaxSize', + minProp: 'minHeight', + maxProp: 'maxHeight' + }, + east : { + orientation: Ext.SplitBar.HORIZONTAL, + placement: Ext.SplitBar.RIGHT, + maxFn : 'getHMaxSize', + minProp: 'minWidth', + maxProp: 'maxWidth' + }, + west : { + orientation: Ext.SplitBar.HORIZONTAL, + placement: Ext.SplitBar.LEFT, + maxFn : 'getHMaxSize', + minProp: 'minWidth', + maxProp: 'maxWidth' + } + }, + + // private + applyFns : { + west : function(box){ + if(this.isCollapsed){ + return this.applyLayoutCollapsed(box); + } + var sd = this.splitEl.dom, s = sd.style; + this.panel.setPosition(box.x, box.y); + var sw = sd.offsetWidth; + s.left = (box.x+box.width-sw)+'px'; + s.top = (box.y)+'px'; + s.height = Math.max(0, box.height)+'px'; + this.panel.setSize(box.width-sw, box.height); + }, + east : function(box){ + if(this.isCollapsed){ + return this.applyLayoutCollapsed(box); + } + var sd = this.splitEl.dom, s = sd.style; + var sw = sd.offsetWidth; + this.panel.setPosition(box.x+sw, box.y); + s.left = (box.x)+'px'; + s.top = (box.y)+'px'; + s.height = Math.max(0, box.height)+'px'; + this.panel.setSize(box.width-sw, box.height); + }, + north : function(box){ + if(this.isCollapsed){ + return this.applyLayoutCollapsed(box); + } + var sd = this.splitEl.dom, s = sd.style; + var sh = sd.offsetHeight; + this.panel.setPosition(box.x, box.y); + s.left = (box.x)+'px'; + s.top = (box.y+box.height-sh)+'px'; + s.width = Math.max(0, box.width)+'px'; + this.panel.setSize(box.width, box.height-sh); + }, + south : function(box){ + if(this.isCollapsed){ + return this.applyLayoutCollapsed(box); + } + var sd = this.splitEl.dom, s = sd.style; + var sh = sd.offsetHeight; + this.panel.setPosition(box.x, box.y+sh); + s.left = (box.x)+'px'; + s.top = (box.y)+'px'; + s.width = Math.max(0, box.width)+'px'; + this.panel.setSize(box.width, box.height-sh); + } + }, + + // private + render : function(ct, p){ + Ext.layout.BorderLayout.SplitRegion.superclass.render.call(this, ct, p); + + var ps = this.position; + + this.splitEl = ct.createChild({ + cls: "x-layout-split x-layout-split-"+ps, html: " ", + id: this.panel.id + '-xsplit' + }); + + if(this.collapseMode == 'mini'){ + this.miniSplitEl = this.splitEl.createChild({ + cls: "x-layout-mini x-layout-mini-"+ps, html: " " + }); + this.miniSplitEl.addClassOnOver('x-layout-mini-over'); + this.miniSplitEl.on('click', this.onCollapseClick, this, {stopEvent:true}); + } + + var s = this.splitSettings[ps]; + + this.split = new Ext.SplitBar(this.splitEl.dom, p.el, s.orientation); + this.split.tickSize = this.tickSize; + this.split.placement = s.placement; + this.split.getMaximumSize = this[s.maxFn].createDelegate(this); + this.split.minSize = this.minSize || this[s.minProp]; + this.split.on("beforeapply", this.onSplitMove, this); + this.split.useShim = this.useShim === true; + this.maxSize = this.maxSize || this[s.maxProp]; + + if(p.hidden){ + this.splitEl.hide(); + } + + if(this.useSplitTips){ + this.splitEl.dom.title = this.collapsible ? this.collapsibleSplitTip : this.splitTip; + } + if(this.collapsible){ + this.splitEl.on("dblclick", this.onCollapseClick, this); + } + }, + + //docs inherit from superclass + getSize : function(){ + if(this.isCollapsed){ + return this.collapsedEl.getSize(); + } + var s = this.panel.getSize(); + if(this.position == 'north' || this.position == 'south'){ + s.height += this.splitEl.dom.offsetHeight; + }else{ + s.width += this.splitEl.dom.offsetWidth; + } + return s; + }, + + // private + getHMaxSize : function(){ + var cmax = this.maxSize || 10000; + var center = this.layout.center; + return Math.min(cmax, (this.el.getWidth()+center.el.getWidth())-center.getMinWidth()); + }, + + // private + getVMaxSize : function(){ + var cmax = this.maxSize || 10000; + var center = this.layout.center; + return Math.min(cmax, (this.el.getHeight()+center.el.getHeight())-center.getMinHeight()); + }, + + // private + onSplitMove : function(split, newSize){ + var s = this.panel.getSize(); + this.lastSplitSize = newSize; + if(this.position == 'north' || this.position == 'south'){ + this.panel.setSize(s.width, newSize); + this.state.height = newSize; + }else{ + this.panel.setSize(newSize, s.height); + this.state.width = newSize; + } + this.layout.layout(); + this.panel.saveState(); + return false; + }, + + /** + * Returns a reference to the split bar in use by this region. + * @return {Ext.SplitBar} The split bar + */ + getSplitBar : function(){ + return this.split; + }, + + // inherit docs + destroy : function() { + Ext.destroy(this.miniSplitEl, this.split, this.splitEl); + Ext.layout.BorderLayout.SplitRegion.superclass.destroy.call(this); + } +}); + +Ext.Container.LAYOUTS['border'] = Ext.layout.BorderLayout;/** + * @class Ext.layout.FormLayout + * @extends Ext.layout.AnchorLayout + *

    This layout manager is specifically designed for rendering and managing child Components of + * {@link Ext.form.FormPanel forms}. It is responsible for rendering the labels of + * {@link Ext.form.Field Field}s.

    + * + *

    This layout manager is used when a Container is configured with the layout:'form' + * {@link Ext.Container#layout layout} config option, and should generally not need to be created directly + * via the new keyword. See {@link Ext.Container#layout} for additional details.

    + * + *

    In an application, it will usually be preferrable to use a {@link Ext.form.FormPanel FormPanel} + * (which is configured with FormLayout as its layout class by default) since it also provides built-in + * functionality for {@link Ext.form.BasicForm#doAction loading, validating and submitting} the form.

    + * + *

    A {@link Ext.Container Container} using the FormLayout layout manager (e.g. + * {@link Ext.form.FormPanel} or specifying layout:'form') can also accept the following + * layout-specific config properties:

      + *
    • {@link Ext.form.FormPanel#hideLabels hideLabels}
    • + *
    • {@link Ext.form.FormPanel#labelAlign labelAlign}
    • + *
    • {@link Ext.form.FormPanel#labelPad labelPad}
    • + *
    • {@link Ext.form.FormPanel#labelSeparator labelSeparator}
    • + *
    • {@link Ext.form.FormPanel#labelWidth labelWidth}
    • + *

    + * + *

    Any Component (including Fields) managed by FormLayout accepts the following as a config option: + *

      + *
    • {@link Ext.Component#anchor anchor}
    • + *

    + * + *

    Any Component managed by FormLayout may be rendered as a form field (with an associated label) by + * configuring it with a non-null {@link Ext.Component#fieldLabel fieldLabel}. Components configured + * in this way may be configured with the following options which affect the way the FormLayout renders them: + *

      + *
    • {@link Ext.Component#clearCls clearCls}
    • + *
    • {@link Ext.Component#fieldLabel fieldLabel}
    • + *
    • {@link Ext.Component#hideLabel hideLabel}
    • + *
    • {@link Ext.Component#itemCls itemCls}
    • + *
    • {@link Ext.Component#labelSeparator labelSeparator}
    • + *
    • {@link Ext.Component#labelStyle labelStyle}
    • + *

    + * + *

    Example usage:

    + *
    
    +// Required if showing validation messages
    +Ext.QuickTips.init();
    +
    +// While you can create a basic Panel with layout:'form', practically
    +// you should usually use a FormPanel to also get its form functionality
    +// since it already creates a FormLayout internally.
    +var form = new Ext.form.FormPanel({
    +    title: 'Form Layout',
    +    bodyStyle: 'padding:15px',
    +    width: 350,
    +    defaultType: 'textfield',
    +    defaults: {
    +        // applied to each contained item
    +        width: 230,
    +        msgTarget: 'side'
    +    },
    +    items: [{
    +            fieldLabel: 'First Name',
    +            name: 'first',
    +            allowBlank: false,
    +            {@link Ext.Component#labelSeparator labelSeparator}: ':' // override labelSeparator layout config
    +        },{
    +            fieldLabel: 'Last Name',
    +            name: 'last'
    +        },{
    +            fieldLabel: 'Email',
    +            name: 'email',
    +            vtype:'email'
    +        }, {
    +            xtype: 'textarea',
    +            hideLabel: true,     // override hideLabels layout config
    +            name: 'msg',
    +            anchor: '100% -53'
    +        }
    +    ],
    +    buttons: [
    +        {text: 'Save'},
    +        {text: 'Cancel'}
    +    ],
    +    layoutConfig: {
    +        {@link #labelSeparator}: '~' // superseded by assignment below
    +    },
    +    // config options applicable to container when layout='form':
    +    hideLabels: false,
    +    labelAlign: 'left',   // or 'right' or 'top'
    +    {@link Ext.form.FormPanel#labelSeparator labelSeparator}: '>>', // takes precedence over layoutConfig value
    +    labelWidth: 65,       // defaults to 100
    +    labelPad: 8           // defaults to 5, must specify labelWidth to be honored
    +});
    +
    + */ +Ext.layout.FormLayout = Ext.extend(Ext.layout.AnchorLayout, { + + /** + * @cfg {String} labelSeparator + * See {@link Ext.form.FormPanel}.{@link Ext.form.FormPanel#labelSeparator labelSeparator}. Configuration + * of this property at the container level takes precedence. + */ + labelSeparator : ':', + + /** + * Read only. The CSS style specification string added to field labels in this layout if not + * otherwise {@link Ext.Component#labelStyle specified by each contained field}. + * @type String + * @property labelStyle + */ + + /** + * @cfg {Boolean} trackLabels + * True to show/hide the field label when the field is hidden. Defaults to false. + */ + trackLabels: false, + + type: 'form', + + onRemove: function(c){ + Ext.layout.FormLayout.superclass.onRemove.call(this, c); + if(this.trackLabels){ + c.un('show', this.onFieldShow, this); + c.un('hide', this.onFieldHide, this); + } + // check for itemCt, since we may be removing a fieldset or something similar + var el = c.getPositionEl(), + ct = c.getItemCt && c.getItemCt(); + if (c.rendered && ct) { + if (el && el.dom) { + el.insertAfter(ct); + } + Ext.destroy(ct); + Ext.destroyMembers(c, 'label', 'itemCt'); + if (c.customItemCt) { + Ext.destroyMembers(c, 'getItemCt', 'customItemCt'); + } + } + }, + + // private + setContainer : function(ct){ + Ext.layout.FormLayout.superclass.setContainer.call(this, ct); + if(ct.labelAlign){ + ct.addClass('x-form-label-'+ct.labelAlign); + } + + if(ct.hideLabels){ + Ext.apply(this, { + labelStyle: 'display:none', + elementStyle: 'padding-left:0;', + labelAdjust: 0 + }); + }else{ + this.labelSeparator = ct.labelSeparator || this.labelSeparator; + ct.labelWidth = ct.labelWidth || 100; + if(Ext.isNumber(ct.labelWidth)){ + var pad = Ext.isNumber(ct.labelPad) ? ct.labelPad : 5; + Ext.apply(this, { + labelAdjust: ct.labelWidth + pad, + labelStyle: 'width:' + ct.labelWidth + 'px;', + elementStyle: 'padding-left:' + (ct.labelWidth + pad) + 'px' + }); + } + if(ct.labelAlign == 'top'){ + Ext.apply(this, { + labelStyle: 'width:auto;', + labelAdjust: 0, + elementStyle: 'padding-left:0;' + }); + } + } + }, + + // private + isHide: function(c){ + return c.hideLabel || this.container.hideLabels; + }, + + onFieldShow: function(c){ + c.getItemCt().removeClass('x-hide-' + c.hideMode); + + // Composite fields will need to layout after the container is made visible + if (c.isComposite) { + c.doLayout(); + } + }, + + onFieldHide: function(c){ + c.getItemCt().addClass('x-hide-' + c.hideMode); + }, + + //private + getLabelStyle: function(s){ + var ls = '', items = [this.labelStyle, s]; + for (var i = 0, len = items.length; i < len; ++i){ + if (items[i]){ + ls += items[i]; + if (ls.substr(-1, 1) != ';'){ + ls += ';'; + } + } + } + return ls; + }, + + /** + * @cfg {Ext.Template} fieldTpl + * A {@link Ext.Template#compile compile}d {@link Ext.Template} for rendering + * the fully wrapped, labeled and styled form Field. Defaults to:

    
    +new Ext.Template(
    +    '<div class="x-form-item {itemCls}" tabIndex="-1">',
    +        '<label for="{id}" style="{labelStyle}" class="x-form-item-label">{label}{labelSeparator}</label>',
    +        '<div class="x-form-element" id="x-form-el-{id}" style="{elementStyle}">',
    +        '</div><div class="{clearCls}"></div>',
    +    '</div>'
    +);
    +
    + *

    This may be specified to produce a different DOM structure when rendering form Fields.

    + *

    A description of the properties within the template follows:

      + *
    • itemCls : String
      The CSS class applied to the outermost div wrapper + * that contains this field label and field element (the default class is 'x-form-item' and itemCls + * will be added to that). If supplied, itemCls at the field level will override the default itemCls + * supplied at the container level.
    • + *
    • id : String
      The id of the Field
    • + *
    • {@link #labelStyle} : String
      + * A CSS style specification string to add to the field label for this field (defaults to '' or the + * {@link #labelStyle layout's value for labelStyle}).
    • + *
    • label : String
      The text to display as the label for this + * field (defaults to '')
    • + *
    • {@link #labelSeparator} : String
      The separator to display after + * the text of the label for this field (defaults to a colon ':' or the + * {@link #labelSeparator layout's value for labelSeparator}). To hide the separator use empty string ''.
    • + *
    • elementStyle : String
      The styles text for the input element's wrapper.
    • + *
    • clearCls : String
      The CSS class to apply to the special clearing div + * rendered directly after each form field wrapper (defaults to 'x-form-clear-left')
    • + *
    + *

    Also see {@link #getTemplateArgs}

    + */ + + /** + * @private + * + */ + renderItem : function(c, position, target){ + if(c && (c.isFormField || c.fieldLabel) && c.inputType != 'hidden'){ + var args = this.getTemplateArgs(c); + if(Ext.isNumber(position)){ + position = target.dom.childNodes[position] || null; + } + if(position){ + c.itemCt = this.fieldTpl.insertBefore(position, args, true); + }else{ + c.itemCt = this.fieldTpl.append(target, args, true); + } + if(!c.getItemCt){ + // Non form fields don't have getItemCt, apply it here + // This will get cleaned up in onRemove + Ext.apply(c, { + getItemCt: function(){ + return c.itemCt; + }, + customItemCt: true + }); + } + c.label = c.getItemCt().child('label.x-form-item-label'); + if(!c.rendered){ + c.render('x-form-el-' + c.id); + }else if(!this.isValidParent(c, target)){ + Ext.fly('x-form-el-' + c.id).appendChild(c.getPositionEl()); + } + if(this.trackLabels){ + if(c.hidden){ + this.onFieldHide(c); + } + c.on({ + scope: this, + show: this.onFieldShow, + hide: this.onFieldHide + }); + } + this.configureItem(c); + }else { + Ext.layout.FormLayout.superclass.renderItem.apply(this, arguments); + } + }, + + /** + *

    Provides template arguments for rendering the fully wrapped, labeled and styled form Field.

    + *

    This method returns an object hash containing properties used by the layout's {@link #fieldTpl} + * to create a correctly wrapped, labeled and styled form Field. This may be overriden to + * create custom layouts. The properties which must be returned are:

      + *
    • itemCls : String
      The CSS class applied to the outermost div wrapper + * that contains this field label and field element (the default class is 'x-form-item' and itemCls + * will be added to that). If supplied, itemCls at the field level will override the default itemCls + * supplied at the container level.
    • + *
    • id : String
      The id of the Field
    • + *
    • {@link #labelStyle} : String
      + * A CSS style specification string to add to the field label for this field (defaults to '' or the + * {@link #labelStyle layout's value for labelStyle}).
    • + *
    • label : String
      The text to display as the label for this + * field (defaults to the field's configured fieldLabel property)
    • + *
    • {@link #labelSeparator} : String
      The separator to display after + * the text of the label for this field (defaults to a colon ':' or the + * {@link #labelSeparator layout's value for labelSeparator}). To hide the separator use empty string ''.
    • + *
    • elementStyle : String
      The styles text for the input element's wrapper.
    • + *
    • clearCls : String
      The CSS class to apply to the special clearing div + * rendered directly after each form field wrapper (defaults to 'x-form-clear-left')
    • + *
    + * @param (Ext.form.Field} field The {@link Ext.form.Field Field} being rendered. + * @return {Object} An object hash containing the properties required to render the Field. + */ + getTemplateArgs: function(field) { + var noLabelSep = !field.fieldLabel || field.hideLabel; + + return { + id : field.id, + label : field.fieldLabel, + itemCls : (field.itemCls || this.container.itemCls || '') + (field.hideLabel ? ' x-hide-label' : ''), + clearCls : field.clearCls || 'x-form-clear-left', + labelStyle : this.getLabelStyle(field.labelStyle), + elementStyle : this.elementStyle || '', + labelSeparator: noLabelSep ? '' : (Ext.isDefined(field.labelSeparator) ? field.labelSeparator : this.labelSeparator) + }; + }, + + // private + adjustWidthAnchor: function(value, c){ + if(c.label && !this.isHide(c) && (this.container.labelAlign != 'top')){ + var adjust = Ext.isIE6 || (Ext.isIE && !Ext.isStrict); + return value - this.labelAdjust + (adjust ? -3 : 0); + } + return value; + }, + + adjustHeightAnchor : function(value, c){ + if(c.label && !this.isHide(c) && (this.container.labelAlign == 'top')){ + return value - c.label.getHeight(); + } + return value; + }, + + // private + isValidParent : function(c, target){ + return target && this.container.getEl().contains(c.getPositionEl()); + } + + /** + * @property activeItem + * @hide + */ +}); + +Ext.Container.LAYOUTS['form'] = Ext.layout.FormLayout; +/** + * @class Ext.layout.AccordionLayout + * @extends Ext.layout.FitLayout + *

    This is a layout that manages multiple Panels in an expandable accordion style such that only + * one Panel can be expanded at any given time. Each Panel has built-in support for expanding and collapsing.

    + *

    Note: Only Ext.Panels and all subclasses of Ext.Panel may be used in an accordion layout Container.

    + *

    This class is intended to be extended or created via the {@link Ext.Container#layout layout} + * configuration property. See {@link Ext.Container#layout} for additional details.

    + *

    Example usage:

    + *
    
    +var accordion = new Ext.Panel({
    +    title: 'Accordion Layout',
    +    layout:'accordion',
    +    defaults: {
    +        // applied to each contained panel
    +        bodyStyle: 'padding:15px'
    +    },
    +    layoutConfig: {
    +        // layout-specific configs go here
    +        titleCollapse: false,
    +        animate: true,
    +        activeOnTop: true
    +    },
    +    items: [{
    +        title: 'Panel 1',
    +        html: '<p>Panel content!</p>'
    +    },{
    +        title: 'Panel 2',
    +        html: '<p>Panel content!</p>'
    +    },{
    +        title: 'Panel 3',
    +        html: '<p>Panel content!</p>'
    +    }]
    +});
    +
    + */ +Ext.layout.AccordionLayout = Ext.extend(Ext.layout.FitLayout, { + /** + * @cfg {Boolean} fill + * True to adjust the active item's height to fill the available space in the container, false to use the + * item's current height, or auto height if not explicitly set (defaults to true). + */ + fill : true, + /** + * @cfg {Boolean} autoWidth + * True to set each contained item's width to 'auto', false to use the item's current width (defaults to true). + * Note that some components, in particular the {@link Ext.grid.GridPanel grid}, will not function properly within + * layouts if they have auto width, so in such cases this config should be set to false. + */ + autoWidth : true, + /** + * @cfg {Boolean} titleCollapse + * True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow + * expand/collapse only when the toggle tool button is clicked (defaults to true). When set to false, + * {@link #hideCollapseTool} should be false also. + */ + titleCollapse : true, + /** + * @cfg {Boolean} hideCollapseTool + * True to hide the contained panels' collapse/expand toggle buttons, false to display them (defaults to false). + * When set to true, {@link #titleCollapse} should be true also. + */ + hideCollapseTool : false, + /** + * @cfg {Boolean} collapseFirst + * True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools + * in the contained panels' title bars, false to render it last (defaults to false). + */ + collapseFirst : false, + /** + * @cfg {Boolean} animate + * True to slide the contained panels open and closed during expand/collapse using animation, false to open and + * close directly with no animation (defaults to false). Note: to defer to the specific config setting of each + * contained panel for this property, set this to undefined at the layout level. + */ + animate : false, + /** + * @cfg {Boolean} sequence + * Experimental. If animate is set to true, this will result in each animation running in sequence. + */ + sequence : false, + /** + * @cfg {Boolean} activeOnTop + * True to swap the position of each panel as it is expanded so that it becomes the first item in the container, + * false to keep the panels in the rendered order. This is NOT compatible with "animate:true" (defaults to false). + */ + activeOnTop : false, + + type: 'accordion', + + renderItem : function(c){ + if(this.animate === false){ + c.animCollapse = false; + } + c.collapsible = true; + if(this.autoWidth){ + c.autoWidth = true; + } + if(this.titleCollapse){ + c.titleCollapse = true; + } + if(this.hideCollapseTool){ + c.hideCollapseTool = true; + } + if(this.collapseFirst !== undefined){ + c.collapseFirst = this.collapseFirst; + } + if(!this.activeItem && !c.collapsed){ + this.setActiveItem(c, true); + }else if(this.activeItem && this.activeItem != c){ + c.collapsed = true; + } + Ext.layout.AccordionLayout.superclass.renderItem.apply(this, arguments); + c.header.addClass('x-accordion-hd'); + c.on('beforeexpand', this.beforeExpand, this); + }, + + onRemove: function(c){ + Ext.layout.AccordionLayout.superclass.onRemove.call(this, c); + if(c.rendered){ + c.header.removeClass('x-accordion-hd'); + } + c.un('beforeexpand', this.beforeExpand, this); + }, + + // private + beforeExpand : function(p, anim){ + var ai = this.activeItem; + if(ai){ + if(this.sequence){ + delete this.activeItem; + if (!ai.collapsed){ + ai.collapse({callback:function(){ + p.expand(anim || true); + }, scope: this}); + return false; + } + }else{ + ai.collapse(this.animate); + } + } + this.setActive(p); + if(this.activeOnTop){ + p.el.dom.parentNode.insertBefore(p.el.dom, p.el.dom.parentNode.firstChild); + } + // Items have been hidden an possibly rearranged, we need to get the container size again. + this.layout(); + }, + + // private + setItemSize : function(item, size){ + if(this.fill && item){ + var hh = 0, i, ct = this.getRenderedItems(this.container), len = ct.length, p; + // Add up all the header heights + for (i = 0; i < len; i++) { + if((p = ct[i]) != item && !p.hidden){ + hh += p.header.getHeight(); + } + }; + // Subtract the header heights from the container size + size.height -= hh; + // Call setSize on the container to set the correct height. For Panels, deferedHeight + // will simply store this size for when the expansion is done. + item.setSize(size); + } + }, + + /** + * Sets the active (expanded) item in the layout. + * @param {String/Number} item The string component id or numeric index of the item to activate + */ + setActiveItem : function(item){ + this.setActive(item, true); + }, + + // private + setActive : function(item, expand){ + var ai = this.activeItem; + item = this.container.getComponent(item); + if(ai != item){ + if(item.rendered && item.collapsed && expand){ + item.expand(); + }else{ + if(ai){ + ai.fireEvent('deactivate', ai); + } + this.activeItem = item; + item.fireEvent('activate', item); + } + } + } +}); +Ext.Container.LAYOUTS.accordion = Ext.layout.AccordionLayout; + +//backwards compat +Ext.layout.Accordion = Ext.layout.AccordionLayout;/** + * @class Ext.layout.TableLayout + * @extends Ext.layout.ContainerLayout + *

    This layout allows you to easily render content into an HTML table. The total number of columns can be + * specified, and rowspan and colspan can be used to create complex layouts within the table. + * This class is intended to be extended or created via the layout:'table' {@link Ext.Container#layout} config, + * and should generally not need to be created directly via the new keyword.

    + *

    Note that when creating a layout via config, the layout-specific config properties must be passed in via + * the {@link Ext.Container#layoutConfig} object which will then be applied internally to the layout. In the + * case of TableLayout, the only valid layout config property is {@link #columns}. However, the items added to a + * TableLayout can supply the following table-specific config properties:

    + *
      + *
    • rowspan Applied to the table cell containing the item.
    • + *
    • colspan Applied to the table cell containing the item.
    • + *
    • cellId An id applied to the table cell containing the item.
    • + *
    • cellCls A CSS class name added to the table cell containing the item.
    • + *
    + *

    The basic concept of building up a TableLayout is conceptually very similar to building up a standard + * HTML table. You simply add each panel (or "cell") that you want to include along with any span attributes + * specified as the special config properties of rowspan and colspan which work exactly like their HTML counterparts. + * Rather than explicitly creating and nesting rows and columns as you would in HTML, you simply specify the + * total column count in the layoutConfig and start adding panels in their natural order from left to right, + * top to bottom. The layout will automatically figure out, based on the column count, rowspans and colspans, + * how to position each panel within the table. Just like with HTML tables, your rowspans and colspans must add + * up correctly in your overall layout or you'll end up with missing and/or extra cells! Example usage:

    + *
    
    +// This code will generate a layout table that is 3 columns by 2 rows
    +// with some spanning included.  The basic layout will be:
    +// +--------+-----------------+
    +// |   A    |   B             |
    +// |        |--------+--------|
    +// |        |   C    |   D    |
    +// +--------+--------+--------+
    +var table = new Ext.Panel({
    +    title: 'Table Layout',
    +    layout:'table',
    +    defaults: {
    +        // applied to each contained panel
    +        bodyStyle:'padding:20px'
    +    },
    +    layoutConfig: {
    +        // The total column count must be specified here
    +        columns: 3
    +    },
    +    items: [{
    +        html: '<p>Cell A content</p>',
    +        rowspan: 2
    +    },{
    +        html: '<p>Cell B content</p>',
    +        colspan: 2
    +    },{
    +        html: '<p>Cell C content</p>',
    +        cellCls: 'highlight'
    +    },{
    +        html: '<p>Cell D content</p>'
    +    }]
    +});
    +
    + */ +Ext.layout.TableLayout = Ext.extend(Ext.layout.ContainerLayout, { + /** + * @cfg {Number} columns + * The total number of columns to create in the table for this layout. If not specified, all Components added to + * this layout will be rendered into a single row using one column per Component. + */ + + // private + monitorResize:false, + + type: 'table', + + targetCls: 'x-table-layout-ct', + + /** + * @cfg {Object} tableAttrs + *

    An object containing properties which are added to the {@link Ext.DomHelper DomHelper} specification + * used to create the layout's <table> element. Example:

    
    +{
    +    xtype: 'panel',
    +    layout: 'table',
    +    layoutConfig: {
    +        tableAttrs: {
    +            style: {
    +                width: '100%'
    +            }
    +        },
    +        columns: 3
    +    }
    +}
    + */ + tableAttrs:null, + + // private + setContainer : function(ct){ + Ext.layout.TableLayout.superclass.setContainer.call(this, ct); + + this.currentRow = 0; + this.currentColumn = 0; + this.cells = []; + }, + + // private + onLayout : function(ct, target){ + var cs = ct.items.items, len = cs.length, c, i; + + if(!this.table){ + target.addClass('x-table-layout-ct'); + + this.table = target.createChild( + Ext.apply({tag:'table', cls:'x-table-layout', cellspacing: 0, cn: {tag: 'tbody'}}, this.tableAttrs), null, true); + } + this.renderAll(ct, target); + }, + + // private + getRow : function(index){ + var row = this.table.tBodies[0].childNodes[index]; + if(!row){ + row = document.createElement('tr'); + this.table.tBodies[0].appendChild(row); + } + return row; + }, + + // private + getNextCell : function(c){ + var cell = this.getNextNonSpan(this.currentColumn, this.currentRow); + var curCol = this.currentColumn = cell[0], curRow = this.currentRow = cell[1]; + for(var rowIndex = curRow; rowIndex < curRow + (c.rowspan || 1); rowIndex++){ + if(!this.cells[rowIndex]){ + this.cells[rowIndex] = []; + } + for(var colIndex = curCol; colIndex < curCol + (c.colspan || 1); colIndex++){ + this.cells[rowIndex][colIndex] = true; + } + } + var td = document.createElement('td'); + if(c.cellId){ + td.id = c.cellId; + } + var cls = 'x-table-layout-cell'; + if(c.cellCls){ + cls += ' ' + c.cellCls; + } + td.className = cls; + if(c.colspan){ + td.colSpan = c.colspan; + } + if(c.rowspan){ + td.rowSpan = c.rowspan; + } + this.getRow(curRow).appendChild(td); + return td; + }, + + // private + getNextNonSpan: function(colIndex, rowIndex){ + var cols = this.columns; + while((cols && colIndex >= cols) || (this.cells[rowIndex] && this.cells[rowIndex][colIndex])) { + if(cols && colIndex >= cols){ + rowIndex++; + colIndex = 0; + }else{ + colIndex++; + } + } + return [colIndex, rowIndex]; + }, + + // private + renderItem : function(c, position, target){ + // Ensure we have our inner table to get cells to render into. + if(!this.table){ + this.table = target.createChild( + Ext.apply({tag:'table', cls:'x-table-layout', cellspacing: 0, cn: {tag: 'tbody'}}, this.tableAttrs), null, true); + } + if(c && !c.rendered){ + c.render(this.getNextCell(c)); + this.configureItem(c, position); + }else if(c && !this.isValidParent(c, target)){ + var container = this.getNextCell(c); + container.insertBefore(c.getPositionEl().dom, null); + c.container = Ext.get(container); + this.configureItem(c, position); + } + }, + + // private + isValidParent : function(c, target){ + return c.getPositionEl().up('table', 5).dom.parentNode === (target.dom || target); + } + + /** + * @property activeItem + * @hide + */ +}); + +Ext.Container.LAYOUTS['table'] = Ext.layout.TableLayout;/** + * @class Ext.layout.AbsoluteLayout + * @extends Ext.layout.AnchorLayout + *

    This is a layout that inherits the anchoring of {@link Ext.layout.AnchorLayout} and adds the + * ability for x/y positioning using the standard x and y component config options.

    + *

    This class is intended to be extended or created via the {@link Ext.Container#layout layout} + * configuration property. See {@link Ext.Container#layout} for additional details.

    + *

    Example usage:

    + *
    
    +var form = new Ext.form.FormPanel({
    +    title: 'Absolute Layout',
    +    layout:'absolute',
    +    layoutConfig: {
    +        // layout-specific configs go here
    +        extraCls: 'x-abs-layout-item',
    +    },
    +    baseCls: 'x-plain',
    +    url:'save-form.php',
    +    defaultType: 'textfield',
    +    items: [{
    +        x: 0,
    +        y: 5,
    +        xtype:'label',
    +        text: 'Send To:'
    +    },{
    +        x: 60,
    +        y: 0,
    +        name: 'to',
    +        anchor:'100%'  // anchor width by percentage
    +    },{
    +        x: 0,
    +        y: 35,
    +        xtype:'label',
    +        text: 'Subject:'
    +    },{
    +        x: 60,
    +        y: 30,
    +        name: 'subject',
    +        anchor: '100%'  // anchor width by percentage
    +    },{
    +        x:0,
    +        y: 60,
    +        xtype: 'textarea',
    +        name: 'msg',
    +        anchor: '100% 100%'  // anchor width and height
    +    }]
    +});
    +
    + */ +Ext.layout.AbsoluteLayout = Ext.extend(Ext.layout.AnchorLayout, { + + extraCls: 'x-abs-layout-item', + + type: 'absolute', + + onLayout : function(ct, target){ + target.position(); + this.paddingLeft = target.getPadding('l'); + this.paddingTop = target.getPadding('t'); + Ext.layout.AbsoluteLayout.superclass.onLayout.call(this, ct, target); + }, + + // private + adjustWidthAnchor : function(value, comp){ + return value ? value - comp.getPosition(true)[0] + this.paddingLeft : value; + }, + + // private + adjustHeightAnchor : function(value, comp){ + return value ? value - comp.getPosition(true)[1] + this.paddingTop : value; + } + /** + * @property activeItem + * @hide + */ +}); +Ext.Container.LAYOUTS['absolute'] = Ext.layout.AbsoluteLayout; +/** + * @class Ext.layout.BoxLayout + * @extends Ext.layout.ContainerLayout + *

    Base Class for HBoxLayout and VBoxLayout Classes. Generally it should not need to be used directly.

    + */ +Ext.layout.BoxLayout = Ext.extend(Ext.layout.ContainerLayout, { + /** + * @cfg {Object} defaultMargins + *

    If the individual contained items do not have a margins + * property specified, the default margins from this property will be + * applied to each item.

    + *

    This property may be specified as an object containing margins + * to apply in the format:

    
    +{
    +    top: (top margin),
    +    right: (right margin),
    +    bottom: (bottom margin),
    +    left: (left margin)
    +}
    + *

    This property may also be specified as a string containing + * space-separated, numeric margin values. The order of the sides associated + * with each value matches the way CSS processes margin values:

    + *
      + *
    • If there is only one value, it applies to all sides.
    • + *
    • If there are two values, the top and bottom borders are set to the + * first value and the right and left are set to the second.
    • + *
    • If there are three values, the top is set to the first value, the left + * and right are set to the second, and the bottom is set to the third.
    • + *
    • If there are four values, they apply to the top, right, bottom, and + * left, respectively.
    • + *
    + *

    Defaults to:

    
    +     * {top:0, right:0, bottom:0, left:0}
    +     * 
    + */ + defaultMargins : {left:0,top:0,right:0,bottom:0}, + /** + * @cfg {String} padding + *

    Sets the padding to be applied to all child items managed by this layout.

    + *

    This property must be specified as a string containing + * space-separated, numeric padding values. The order of the sides associated + * with each value matches the way CSS processes padding values:

    + *
      + *
    • If there is only one value, it applies to all sides.
    • + *
    • If there are two values, the top and bottom borders are set to the + * first value and the right and left are set to the second.
    • + *
    • If there are three values, the top is set to the first value, the left + * and right are set to the second, and the bottom is set to the third.
    • + *
    • If there are four values, they apply to the top, right, bottom, and + * left, respectively.
    • + *
    + *

    Defaults to: "0"

    + */ + padding : '0', + // documented in subclasses + pack : 'start', + + // private + monitorResize : true, + type: 'box', + scrollOffset : 0, + extraCls : 'x-box-item', + targetCls : 'x-box-layout-ct', + innerCls : 'x-box-inner', + + constructor : function(config){ + Ext.layout.BoxLayout.superclass.constructor.call(this, config); + + if (Ext.isString(this.defaultMargins)) { + this.defaultMargins = this.parseMargins(this.defaultMargins); + } + }, + + /** + * @private + * Runs the child box calculations and caches them in childBoxCache. Subclasses can used these cached values + * when laying out + */ + onLayout: function(container, target) { + Ext.layout.BoxLayout.superclass.onLayout.call(this, container, target); + + var items = this.getVisibleItems(container), + tSize = this.getLayoutTargetSize(); + + /** + * @private + * @property layoutTargetLastSize + * @type Object + * Private cache of the last measured size of the layout target. This should never be used except by + * BoxLayout subclasses during their onLayout run. + */ + this.layoutTargetLastSize = tSize; + + /** + * @private + * @property childBoxCache + * @type Array + * Array of the last calculated height, width, top and left positions of each visible rendered component + * within the Box layout. + */ + this.childBoxCache = this.calculateChildBoxes(items, tSize); + + this.updateInnerCtSize(tSize, this.childBoxCache); + this.updateChildBoxes(this.childBoxCache.boxes); + + // Putting a box layout into an overflowed container is NOT correct and will make a second layout pass necessary. + this.handleTargetOverflow(tSize, container, target); + }, + + /** + * Resizes and repositions each child component + * @param {Array} boxes The box measurements + */ + updateChildBoxes: function(boxes) { + for (var i = 0, length = boxes.length; i < length; i++) { + var box = boxes[i], + comp = box.component; + + if (box.dirtySize) { + comp.setSize(box.width, box.height); + } + // Don't set positions to NaN + if (isNaN(box.left) || isNaN(box.top)) { + continue; + } + comp.setPosition(box.left, box.top); + } + }, + + /** + * @private + * Called by onRender just before the child components are sized and positioned. This resizes the innerCt + * to make sure all child items fit within it. We call this before sizing the children because if our child + * items are larger than the previous innerCt size the browser will insert scrollbars and then remove them + * again immediately afterwards, giving a performance hit. + * Subclasses should provide an implementation. + * @param {Object} currentSize The current height and width of the innerCt + * @param {Array} calculations The new box calculations of all items to be laid out + */ + updateInnerCtSize: Ext.emptyFn, + + /** + * @private + * This should be called after onLayout of any BoxLayout subclass. If the target's overflow is not set to 'hidden', + * we need to lay out a second time because the scrollbars may have modified the height and width of the layout + * target. Having a Box layout inside such a target is therefore not recommended. + * @param {Object} previousTargetSize The size and height of the layout target before we just laid out + * @param {Ext.Container} container The container + * @param {Ext.Element} target The target element + */ + handleTargetOverflow: function(previousTargetSize, container, target) { + var overflow = target.getStyle('overflow'); + + if (overflow && overflow != 'hidden' &&!this.adjustmentPass) { + var newTargetSize = this.getLayoutTargetSize(); + if (newTargetSize.width != previousTargetSize.width || newTargetSize.height != previousTargetSize.height){ + this.adjustmentPass = true; + this.onLayout(container, target); + } + } + + delete this.adjustmentPass; + }, + + // private + isValidParent : function(c, target){ + return this.innerCt && c.getPositionEl().dom.parentNode == this.innerCt.dom; + }, + + /** + * @private + * Returns all items that are both rendered and visible + * @return {Array} All matching items + */ + getVisibleItems: function(ct) { + var ct = ct || this.container, + t = ct.getLayoutTarget(), + cti = ct.items.items, + len = cti.length, + + i, c, items = []; + + for (i = 0; i < len; i++) { + if((c = cti[i]).rendered && this.isValidParent(c, t) && c.hidden !== true && c.collapsed !== true){ + items.push(c); + } + } + + return items; + }, + + // private + renderAll : function(ct, target){ + if(!this.innerCt){ + // the innerCt prevents wrapping and shuffling while + // the container is resizing + this.innerCt = target.createChild({cls:this.innerCls}); + this.padding = this.parseMargins(this.padding); + } + Ext.layout.BoxLayout.superclass.renderAll.call(this, ct, this.innerCt); + }, + + getLayoutTargetSize : function(){ + var target = this.container.getLayoutTarget(), ret; + if (target) { + ret = target.getViewSize(); + + // IE in strict mode will return a width of 0 on the 1st pass of getViewSize. + // Use getStyleSize to verify the 0 width, the adjustment pass will then work properly + // with getViewSize + if (Ext.isIE && Ext.isStrict && ret.width == 0){ + ret = target.getStyleSize(); + } + + ret.width -= target.getPadding('lr'); + ret.height -= target.getPadding('tb'); + } + return ret; + }, + + // private + renderItem : function(c){ + if(Ext.isString(c.margins)){ + c.margins = this.parseMargins(c.margins); + }else if(!c.margins){ + c.margins = this.defaultMargins; + } + Ext.layout.BoxLayout.superclass.renderItem.apply(this, arguments); + } +}); + +/** + * @class Ext.layout.VBoxLayout + * @extends Ext.layout.BoxLayout + *

    A layout that arranges items vertically down a Container. This layout optionally divides available vertical + * space between child items containing a numeric flex configuration.

    + * This layout may also be used to set the widths of child items by configuring it with the {@link #align} option. + */ +Ext.layout.VBoxLayout = Ext.extend(Ext.layout.BoxLayout, { + /** + * @cfg {String} align + * Controls how the child items of the container are aligned. Acceptable configuration values for this + * property are: + *
      + *
    • left : Default
      child items are aligned horizontally + * at the left side of the container
    • + *
    • center :
      child items are aligned horizontally at the + * mid-width of the container
    • + *
    • stretch :
      child items are stretched horizontally to fill + * the width of the container
    • + *
    • stretchmax :
      child items are stretched horizontally to + * the size of the largest item.
    • + *
    + */ + align : 'left', // left, center, stretch, strechmax + type: 'vbox', + + /** + * @cfg {String} pack + * Controls how the child items of the container are packed together. Acceptable configuration values + * for this property are: + *
      + *
    • start : Default
      child items are packed together at + * top side of container
    • + *
    • center :
      child items are packed together at + * mid-height of container
    • + *
    • end :
      child items are packed together at bottom + * side of container
    • + *
    + */ + + /** + * @cfg {Number} flex + * This configuation option is to be applied to child items of the container managed + * by this layout. Each child item with a flex property will be flexed vertically + * according to each item's relative flex value compared to the sum of all items with + * a flex value specified. Any child items that have either a flex = 0 or + * flex = undefined will not be 'flexed' (the initial size will not be changed). + */ + + /** + * @private + * See parent documentation + */ + updateInnerCtSize: function(tSize, calcs) { + var innerCtHeight = tSize.height, + innerCtWidth = calcs.meta.maxWidth + this.padding.left + this.padding.right; + + if (this.align == 'stretch') { + innerCtWidth = tSize.width; + } else if (this.align == 'center') { + innerCtWidth = Math.max(tSize.width, innerCtWidth); + } + + //we set the innerCt size first because if our child items are larger than the previous innerCt size + //the browser will insert scrollbars and then remove them again immediately afterwards + this.innerCt.setSize(innerCtWidth || undefined, innerCtHeight || undefined); + }, + + /** + * @private + * Calculates the size and positioning of each item in the VBox. This iterates over all of the rendered, + * visible items and returns a height, width, top and left for each, as well as a reference to each. Also + * returns meta data such as maxHeight which are useful when resizing layout wrappers such as this.innerCt. + * @param {Array} visibleItems The array of all rendered, visible items to be calculated for + * @param {Object} targetSize Object containing target size and height + * @return {Object} Object containing box measurements for each child, plus meta data + */ + calculateChildBoxes: function(visibleItems, targetSize) { + var visibleCount = visibleItems.length, + + padding = this.padding, + topOffset = padding.top, + leftOffset = padding.left, + paddingVert = topOffset + padding.bottom, + paddingHoriz = leftOffset + padding.right, + + width = targetSize.width - this.scrollOffset, + height = targetSize.height, + availWidth = Math.max(0, width - paddingHoriz), + + isStart = this.pack == 'start', + isCenter = this.pack == 'center', + isEnd = this.pack == 'end', + + nonFlexHeight= 0, + maxWidth = 0, + totalFlex = 0, + + //used to cache the calculated size and position values for each child item + boxes = [], + + //used in the for loops below, just declared here for brevity + child, childWidth, childHeight, childSize, childMargins, canLayout, i, calcs, flexedHeight, horizMargins, stretchWidth; + + //gather the total flex of all flexed items and the width taken up by fixed width items + for (i = 0; i < visibleCount; i++) { + child = visibleItems[i]; + childHeight = child.height; + childWidth = child.width; + canLayout = !child.hasLayout && Ext.isFunction(child.doLayout); + + + // Static height (numeric) requires no calcs + if (!Ext.isNumber(childHeight)) { + + // flex and not 'auto' height + if (child.flex && !childHeight) { + totalFlex += child.flex; + + // Not flexed or 'auto' height or undefined height + } else { + //Render and layout sub-containers without a flex or width defined, as otherwise we + //don't know how wide the sub-container should be and cannot calculate flexed widths + if (!childHeight && canLayout) { + child.doLayout(); + } + + childSize = child.getSize(); + childWidth = childSize.width; + childHeight = childSize.height; + } + } + + childMargins = child.margins; + + nonFlexHeight += (childHeight || 0) + childMargins.top + childMargins.bottom; + + // Max width for align - force layout of non-layed out subcontainers without a numeric width + if (!Ext.isNumber(childWidth)) { + if (canLayout) { + child.doLayout(); + } + childWidth = child.getWidth(); + } + + maxWidth = Math.max(maxWidth, childWidth + childMargins.left + childMargins.right); + + //cache the size of each child component + boxes.push({ + component: child, + height : childHeight || undefined, + width : childWidth || undefined + }); + } + + //the height available to the flexed items + var availableHeight = Math.max(0, (height - nonFlexHeight - paddingVert)); + + if (isCenter) { + topOffset += availableHeight / 2; + } else if (isEnd) { + topOffset += availableHeight; + } + + //temporary variables used in the flex height calculations below + var remainingHeight = availableHeight, + remainingFlex = totalFlex; + + //calculate the height of each flexed item, and the left + top positions of every item + for (i = 0; i < visibleCount; i++) { + child = visibleItems[i]; + calcs = boxes[i]; + + childMargins = child.margins; + horizMargins = childMargins.left + childMargins.right; + + topOffset += childMargins.top; + + if (isStart && child.flex && !child.height) { + flexedHeight = Math.ceil((child.flex / remainingFlex) * remainingHeight); + remainingHeight -= flexedHeight; + remainingFlex -= child.flex; + + calcs.height = flexedHeight; + calcs.dirtySize = true; + } + + calcs.left = leftOffset + childMargins.left; + calcs.top = topOffset; + + switch (this.align) { + case 'stretch': + stretchWidth = availWidth - horizMargins; + calcs.width = stretchWidth.constrain(child.minWidth || 0, child.maxWidth || 1000000); + calcs.dirtySize = true; + break; + case 'stretchmax': + stretchWidth = maxWidth - horizMargins; + calcs.width = stretchWidth.constrain(child.minWidth || 0, child.maxWidth || 1000000); + calcs.dirtySize = true; + break; + case 'center': + var diff = availWidth - calcs.width - horizMargins; + if (diff > 0) { + calcs.left = leftOffset + horizMargins + (diff / 2); + } + } + + topOffset += calcs.height + childMargins.bottom; + } + + return { + boxes: boxes, + meta : { + maxWidth: maxWidth + } + }; + } +}); + +Ext.Container.LAYOUTS.vbox = Ext.layout.VBoxLayout; + +/** + * @class Ext.layout.HBoxLayout + * @extends Ext.layout.BoxLayout + *

    A layout that arranges items horizontally across a Container. This layout optionally divides available horizontal + * space between child items containing a numeric flex configuration.

    + * This layout may also be used to set the heights of child items by configuring it with the {@link #align} option. + */ +Ext.layout.HBoxLayout = Ext.extend(Ext.layout.BoxLayout, { + /** + * @cfg {String} align + * Controls how the child items of the container are aligned. Acceptable configuration values for this + * property are: + *
      + *
    • top : Default
      child items are aligned vertically + * at the top of the container
    • + *
    • middle :
      child items are aligned vertically in the + * middle of the container
    • + *
    • stretch :
      child items are stretched vertically to fill + * the height of the container
    • + *
    • stretchmax :
      child items are stretched vertically to + * the height of the largest item.
    • + */ + align: 'top', // top, middle, stretch, strechmax + + type : 'hbox', + + /** + * @private + * See parent documentation + */ + updateInnerCtSize: function(tSize, calcs) { + var innerCtWidth = tSize.width, + innerCtHeight = calcs.meta.maxHeight + this.padding.top + this.padding.bottom; + + if (this.align == 'stretch') { + innerCtHeight = tSize.height; + } else if (this.align == 'middle') { + innerCtHeight = Math.max(tSize.height, innerCtHeight); + } + + this.innerCt.setSize(innerCtWidth || undefined, innerCtHeight || undefined); + }, + + /** + * @cfg {String} pack + * Controls how the child items of the container are packed together. Acceptable configuration values + * for this property are: + *
        + *
      • start : Default
        child items are packed together at + * left side of container
      • + *
      • center :
        child items are packed together at + * mid-width of container
      • + *
      • end :
        child items are packed together at right + * side of container
      • + *
      + */ + /** + * @cfg {Number} flex + * This configuation option is to be applied to child items of the container managed + * by this layout. Each child item with a flex property will be flexed horizontally + * according to each item's relative flex value compared to the sum of all items with + * a flex value specified. Any child items that have either a flex = 0 or + * flex = undefined will not be 'flexed' (the initial size will not be changed). + */ + + /** + * @private + * Calculates the size and positioning of each item in the HBox. This iterates over all of the rendered, + * visible items and returns a height, width, top and left for each, as well as a reference to each. Also + * returns meta data such as maxHeight which are useful when resizing layout wrappers such as this.innerCt. + * @param {Array} visibleItems The array of all rendered, visible items to be calculated for + * @param {Object} targetSize Object containing target size and height + * @return {Object} Object containing box measurements for each child, plus meta data + */ + calculateChildBoxes: function(visibleItems, targetSize) { + var visibleCount = visibleItems.length, + + padding = this.padding, + topOffset = padding.top, + leftOffset = padding.left, + paddingVert = topOffset + padding.bottom, + paddingHoriz = leftOffset + padding.right, + + width = targetSize.width - this.scrollOffset, + height = targetSize.height, + availHeight = Math.max(0, height - paddingVert), + + isStart = this.pack == 'start', + isCenter = this.pack == 'center', + isEnd = this.pack == 'end', + // isRestore = ['stretch', 'stretchmax'].indexOf(this.align) == -1, + + nonFlexWidth = 0, + maxHeight = 0, + totalFlex = 0, + + //used to cache the calculated size and position values for each child item + boxes = [], + + //used in the for loops below, just declared here for brevity + child, childWidth, childHeight, childSize, childMargins, canLayout, i, calcs, flexedWidth, vertMargins, stretchHeight; + + //gather the total flex of all flexed items and the width taken up by fixed width items + for (i = 0; i < visibleCount; i++) { + child = visibleItems[i]; + childHeight = child.height; + childWidth = child.width; + canLayout = !child.hasLayout && Ext.isFunction(child.doLayout); + + // Static width (numeric) requires no calcs + if (!Ext.isNumber(childWidth)) { + + // flex and not 'auto' width + if (child.flex && !childWidth) { + totalFlex += child.flex; + + // Not flexed or 'auto' width or undefined width + } else { + //Render and layout sub-containers without a flex or width defined, as otherwise we + //don't know how wide the sub-container should be and cannot calculate flexed widths + if (!childWidth && canLayout) { + child.doLayout(); + } + + childSize = child.getSize(); + childWidth = childSize.width; + childHeight = childSize.height; + } + } + + childMargins = child.margins; + + nonFlexWidth += (childWidth || 0) + childMargins.left + childMargins.right; + + // Max height for align - force layout of non-layed out subcontainers without a numeric height + if (!Ext.isNumber(childHeight)) { + if (canLayout) { + child.doLayout(); + } + childHeight = child.getHeight(); + } + + maxHeight = Math.max(maxHeight, childHeight + childMargins.top + childMargins.bottom); + + //cache the size of each child component + boxes.push({ + component: child, + height : childHeight || undefined, + width : childWidth || undefined + }); + } + + //the width available to the flexed items + var availableWidth = Math.max(0, (width - nonFlexWidth - paddingHoriz)); + + if (isCenter) { + leftOffset += availableWidth / 2; + } else if (isEnd) { + leftOffset += availableWidth; + } + + //temporary variables used in the flex width calculations below + var remainingWidth = availableWidth, + remainingFlex = totalFlex; + + //calculate the widths of each flexed item, and the left + top positions of every item + for (i = 0; i < visibleCount; i++) { + child = visibleItems[i]; + calcs = boxes[i]; + + childMargins = child.margins; + vertMargins = childMargins.top + childMargins.bottom; + + leftOffset += childMargins.left; + + if (isStart && child.flex && !child.width) { + flexedWidth = Math.ceil((child.flex / remainingFlex) * remainingWidth); + remainingWidth -= flexedWidth; + remainingFlex -= child.flex; + + calcs.width = flexedWidth; + calcs.dirtySize = true; + } + + calcs.left = leftOffset; + calcs.top = topOffset + childMargins.top; + + switch (this.align) { + case 'stretch': + stretchHeight = availHeight - vertMargins; + calcs.height = stretchHeight.constrain(child.minHeight || 0, child.maxHeight || 1000000); + calcs.dirtySize = true; + break; + case 'stretchmax': + stretchHeight = maxHeight - vertMargins; + calcs.height = stretchHeight.constrain(child.minHeight || 0, child.maxHeight || 1000000); + calcs.dirtySize = true; + break; + case 'middle': + var diff = availHeight - calcs.height - vertMargins; + if (diff > 0) { + calcs.top = topOffset + vertMargins + (diff / 2); + } + } + leftOffset += calcs.width + childMargins.right; + } + + return { + boxes: boxes, + meta : { + maxHeight: maxHeight + } + }; + } +}); + +Ext.Container.LAYOUTS.hbox = Ext.layout.HBoxLayout; +/** + * @class Ext.layout.ToolbarLayout + * @extends Ext.layout.ContainerLayout + * Layout manager used by Ext.Toolbar. This is highly specialised for use by Toolbars and would not + * usually be used by any other class. + */ +Ext.layout.ToolbarLayout = Ext.extend(Ext.layout.ContainerLayout, { + monitorResize : true, + + type: 'toolbar', + + /** + * @property triggerWidth + * @type Number + * The width allocated for the menu trigger at the extreme right end of the Toolbar + */ + triggerWidth: 18, + + /** + * @property noItemsMenuText + * @type String + * HTML fragment to render into the toolbar overflow menu if there are no items to display + */ + noItemsMenuText : '
      (None)
      ', + + /** + * @private + * @property lastOverflow + * @type Boolean + * Used internally to record whether the last layout caused an overflow or not + */ + lastOverflow: false, + + /** + * @private + * @property tableHTML + * @type String + * String used to build the HTML injected to support the Toolbar's layout. The align property is + * injected into this string inside the td.x-toolbar-left element during onLayout. + */ + tableHTML: [ + '', + '', + '', + '', + '', + '', + '', + '
      ', + '', + '', + '', + '', + '
      ', + '
      ', + '', + '', + '', + '', + '', + '', + '', + '
      ', + '', + '', + '', + '', + '
      ', + '
      ', + '', + '', + '', + '', + '
      ', + '
      ', + '
      ' + ].join(""), + + /** + * @private + * Create the wrapping Toolbar HTML and render/move all the items into the correct places + */ + onLayout : function(ct, target) { + //render the Toolbar HTML if it's not already present + if (!this.leftTr) { + var align = ct.buttonAlign == 'center' ? 'center' : 'left'; + + target.addClass('x-toolbar-layout-ct'); + target.insertHtml('beforeEnd', String.format(this.tableHTML, align)); + + this.leftTr = target.child('tr.x-toolbar-left-row', true); + this.rightTr = target.child('tr.x-toolbar-right-row', true); + this.extrasTr = target.child('tr.x-toolbar-extras-row', true); + + if (this.hiddenItem == undefined) { + /** + * @property hiddenItems + * @type Array + * Holds all items that are currently hidden due to there not being enough space to render them + * These items will appear on the expand menu. + */ + this.hiddenItems = []; + } + } + + var side = ct.buttonAlign == 'right' ? this.rightTr : this.leftTr, + items = ct.items.items, + position = 0; + + //render each item if not already rendered, place it into the correct (left or right) target + for (var i = 0, len = items.length, c; i < len; i++, position++) { + c = items[i]; + + if (c.isFill) { + side = this.rightTr; + position = -1; + } else if (!c.rendered) { + c.render(this.insertCell(c, side, position)); + } else { + if (!c.xtbHidden && !this.isValidParent(c, side.childNodes[position])) { + var td = this.insertCell(c, side, position); + td.appendChild(c.getPositionEl().dom); + c.container = Ext.get(td); + } + } + } + + //strip extra empty cells + this.cleanup(this.leftTr); + this.cleanup(this.rightTr); + this.cleanup(this.extrasTr); + this.fitToSize(target); + }, + + /** + * @private + * Removes any empty nodes from the given element + * @param {Ext.Element} el The element to clean up + */ + cleanup : function(el) { + var cn = el.childNodes, i, c; + + for (i = cn.length-1; i >= 0 && (c = cn[i]); i--) { + if (!c.firstChild) { + el.removeChild(c); + } + } + }, + + /** + * @private + * Inserts the given Toolbar item into the given element + * @param {Ext.Component} c The component to add + * @param {Ext.Element} target The target to add the component to + * @param {Number} position The position to add the component at + */ + insertCell : function(c, target, position) { + var td = document.createElement('td'); + td.className = 'x-toolbar-cell'; + + target.insertBefore(td, target.childNodes[position] || null); + + return td; + }, + + /** + * @private + * Hides an item because it will not fit in the available width. The item will be unhidden again + * if the Toolbar is resized to be large enough to show it + * @param {Ext.Component} item The item to hide + */ + hideItem : function(item) { + this.hiddenItems.push(item); + + item.xtbHidden = true; + item.xtbWidth = item.getPositionEl().dom.parentNode.offsetWidth; + item.hide(); + }, + + /** + * @private + * Unhides an item that was previously hidden due to there not being enough space left on the Toolbar + * @param {Ext.Component} item The item to show + */ + unhideItem : function(item) { + item.show(); + item.xtbHidden = false; + this.hiddenItems.remove(item); + }, + + /** + * @private + * Returns the width of the given toolbar item. If the item is currently hidden because there + * is not enough room to render it, its previous width is returned + * @param {Ext.Component} c The component to measure + * @return {Number} The width of the item + */ + getItemWidth : function(c) { + return c.hidden ? (c.xtbWidth || 0) : c.getPositionEl().dom.parentNode.offsetWidth; + }, + + /** + * @private + * Called at the end of onLayout. At this point the Toolbar has already been resized, so we need + * to fit the items into the available width. We add up the width required by all of the items in + * the toolbar - if we don't have enough space we hide the extra items and render the expand menu + * trigger. + * @param {Ext.Element} target The Element the Toolbar is currently laid out within + */ + fitToSize : function(target) { + if (this.container.enableOverflow === false) { + return; + } + + var width = target.dom.clientWidth, + tableWidth = target.dom.firstChild.offsetWidth, + clipWidth = width - this.triggerWidth, + lastWidth = this.lastWidth || 0, + + hiddenItems = this.hiddenItems, + hasHiddens = hiddenItems.length != 0, + isLarger = width >= lastWidth; + + this.lastWidth = width; + + if (tableWidth > width || (hasHiddens && isLarger)) { + var items = this.container.items.items, + len = items.length, + loopWidth = 0, + item; + + for (var i = 0; i < len; i++) { + item = items[i]; + + if (!item.isFill) { + loopWidth += this.getItemWidth(item); + if (loopWidth > clipWidth) { + if (!(item.hidden || item.xtbHidden)) { + this.hideItem(item); + } + } else if (item.xtbHidden) { + this.unhideItem(item); + } + } + } + } + + //test for number of hidden items again here because they may have changed above + hasHiddens = hiddenItems.length != 0; + + if (hasHiddens) { + this.initMore(); + + if (!this.lastOverflow) { + this.container.fireEvent('overflowchange', this.container, true); + this.lastOverflow = true; + } + } else if (this.more) { + this.clearMenu(); + this.more.destroy(); + delete this.more; + + if (this.lastOverflow) { + this.container.fireEvent('overflowchange', this.container, false); + this.lastOverflow = false; + } + } + }, + + /** + * @private + * Returns a menu config for a given component. This config is used to create a menu item + * to be added to the expander menu + * @param {Ext.Component} component The component to create the config for + * @param {Boolean} hideOnClick Passed through to the menu item + */ + createMenuConfig : function(component, hideOnClick){ + var config = Ext.apply({}, component.initialConfig), + group = component.toggleGroup; + + Ext.copyTo(config, component, [ + 'iconCls', 'icon', 'itemId', 'disabled', 'handler', 'scope', 'menu' + ]); + + Ext.apply(config, { + text : component.overflowText || component.text, + hideOnClick: hideOnClick + }); + + if (group || component.enableToggle) { + Ext.apply(config, { + group : group, + checked: component.pressed, + listeners: { + checkchange: function(item, checked){ + component.toggle(checked); + } + } + }); + } + + delete config.ownerCt; + delete config.xtype; + delete config.id; + + return config; + }, + + /** + * @private + * Adds the given Toolbar item to the given menu. Buttons inside a buttongroup are added individually. + * @param {Ext.menu.Menu} menu The menu to add to + * @param {Ext.Component} component The component to add + */ + addComponentToMenu : function(menu, component) { + if (component instanceof Ext.Toolbar.Separator) { + menu.add('-'); + + } else if (Ext.isFunction(component.isXType)) { + if (component.isXType('splitbutton')) { + menu.add(this.createMenuConfig(component, true)); + + } else if (component.isXType('button')) { + menu.add(this.createMenuConfig(component, !component.menu)); + + } else if (component.isXType('buttongroup')) { + component.items.each(function(item){ + this.addComponentToMenu(menu, item); + }, this); + } + } + }, + + /** + * @private + * Deletes the sub-menu of each item in the expander menu. Submenus are created for items such as + * splitbuttons and buttongroups, where the Toolbar item cannot be represented by a single menu item + */ + clearMenu : function(){ + var menu = this.moreMenu; + if (menu && menu.items) { + menu.items.each(function(item){ + delete item.menu; + }); + } + }, + + /** + * @private + * Called before the expand menu is shown, this rebuilds the menu since it was last shown because + * it is possible that the items hidden due to space limitations on the Toolbar have changed since. + * @param {Ext.menu.Menu} m The menu + */ + beforeMoreShow : function(menu) { + var items = this.container.items.items, + len = items.length, + item, + prev; + + var needsSep = function(group, item){ + return group.isXType('buttongroup') && !(item instanceof Ext.Toolbar.Separator); + }; + + this.clearMenu(); + menu.removeAll(); + for (var i = 0; i < len; i++) { + item = items[i]; + if (item.xtbHidden) { + if (prev && (needsSep(item, prev) || needsSep(prev, item))) { + menu.add('-'); + } + this.addComponentToMenu(menu, item); + prev = item; + } + } + + // put something so the menu isn't empty if no compatible items found + if (menu.items.length < 1) { + menu.add(this.noItemsMenuText); + } + }, + + /** + * @private + * Creates the expand trigger and menu, adding them to the at the extreme right of the + * Toolbar table + */ + initMore : function(){ + if (!this.more) { + /** + * @private + * @property moreMenu + * @type Ext.menu.Menu + * The expand menu - holds items for every Toolbar item that cannot be shown + * because the Toolbar is currently not wide enough. + */ + this.moreMenu = new Ext.menu.Menu({ + ownerCt : this.container, + listeners: { + beforeshow: this.beforeMoreShow, + scope: this + } + }); + + /** + * @private + * @property more + * @type Ext.Button + * The expand button which triggers the overflow menu to be shown + */ + this.more = new Ext.Button({ + iconCls: 'x-toolbar-more-icon', + cls : 'x-toolbar-more', + menu : this.moreMenu, + ownerCt: this.container + }); + + var td = this.insertCell(this.more, this.extrasTr, 100); + this.more.render(td); + } + }, + + destroy : function(){ + Ext.destroy(this.more, this.moreMenu); + delete this.leftTr; + delete this.rightTr; + delete this.extrasTr; + Ext.layout.ToolbarLayout.superclass.destroy.call(this); + } +}); + +Ext.Container.LAYOUTS.toolbar = Ext.layout.ToolbarLayout; +/** + * @class Ext.layout.MenuLayout + * @extends Ext.layout.ContainerLayout + *

      Layout manager used by {@link Ext.menu.Menu}. Generally this class should not need to be used directly.

      + */ + Ext.layout.MenuLayout = Ext.extend(Ext.layout.ContainerLayout, { + monitorResize : true, + + type: 'menu', + + setContainer : function(ct){ + this.monitorResize = !ct.floating; + // This event is only fired by the menu in IE, used so we don't couple + // the menu with the layout. + ct.on('autosize', this.doAutoSize, this); + Ext.layout.MenuLayout.superclass.setContainer.call(this, ct); + }, + + renderItem : function(c, position, target){ + if (!this.itemTpl) { + this.itemTpl = Ext.layout.MenuLayout.prototype.itemTpl = new Ext.XTemplate( + '
    • ', + '', + '', + '', + '
    • ' + ); + } + + if(c && !c.rendered){ + if(Ext.isNumber(position)){ + position = target.dom.childNodes[position]; + } + var a = this.getItemArgs(c); + +// The Component's positionEl is the
    • it is rendered into + c.render(c.positionEl = position ? + this.itemTpl.insertBefore(position, a, true) : + this.itemTpl.append(target, a, true)); + +// Link the containing
    • to the item. + c.positionEl.menuItemId = c.getItemId(); + +// If rendering a regular Component, and it needs an icon, +// move the Component rightwards. + if (!a.isMenuItem && a.needsIcon) { + c.positionEl.addClass('x-menu-list-item-indent'); + } + this.configureItem(c, position); + }else if(c && !this.isValidParent(c, target)){ + if(Ext.isNumber(position)){ + position = target.dom.childNodes[position]; + } + target.dom.insertBefore(c.getActionEl().dom, position || null); + } + }, + + getItemArgs : function(c) { + var isMenuItem = c instanceof Ext.menu.Item; + return { + isMenuItem: isMenuItem, + needsIcon: !isMenuItem && (c.icon || c.iconCls), + icon: c.icon || Ext.BLANK_IMAGE_URL, + iconCls: 'x-menu-item-icon ' + (c.iconCls || ''), + itemId: 'x-menu-el-' + c.id, + itemCls: 'x-menu-list-item ' + }; + }, + + // Valid if the Component is in a
    • which is part of our target
        + isValidParent : function(c, target) { + return c.el.up('li.x-menu-list-item', 5).dom.parentNode === (target.dom || target); + }, + + onLayout : function(ct, target){ + Ext.layout.MenuLayout.superclass.onLayout.call(this, ct, target); + this.doAutoSize(); + }, + + doAutoSize : function(){ + var ct = this.container, w = ct.width; + if(ct.floating){ + if(w){ + ct.setWidth(w); + }else if(Ext.isIE){ + ct.setWidth(Ext.isStrict && (Ext.isIE7 || Ext.isIE8) ? 'auto' : ct.minWidth); + var el = ct.getEl(), t = el.dom.offsetWidth; // force recalc + ct.setWidth(ct.getLayoutTarget().getWidth() + el.getFrameWidth('lr')); + } + } + } +}); +Ext.Container.LAYOUTS['menu'] = Ext.layout.MenuLayout; +/** + * @class Ext.Viewport + * @extends Ext.Container + *

        A specialized container representing the viewable application area (the browser viewport).

        + *

        The Viewport renders itself to the document body, and automatically sizes itself to the size of + * the browser viewport and manages window resizing. There may only be one Viewport created + * in a page. Inner layouts are available by virtue of the fact that all {@link Ext.Panel Panel}s + * added to the Viewport, either through its {@link #items}, or through the items, or the {@link #add} + * method of any of its child Panels may themselves have a layout.

        + *

        The Viewport does not provide scrolling, so child Panels within the Viewport should provide + * for scrolling if needed using the {@link #autoScroll} config.

        + *

        An example showing a classic application border layout:

        
        +new Ext.Viewport({
        +    layout: 'border',
        +    items: [{
        +        region: 'north',
        +        html: '<h1 class="x-panel-header">Page Title</h1>',
        +        autoHeight: true,
        +        border: false,
        +        margins: '0 0 5 0'
        +    }, {
        +        region: 'west',
        +        collapsible: true,
        +        title: 'Navigation',
        +        width: 200
        +        // the west region might typically utilize a {@link Ext.tree.TreePanel TreePanel} or a Panel with {@link Ext.layout.AccordionLayout Accordion layout}
        +    }, {
        +        region: 'south',
        +        title: 'Title for Panel',
        +        collapsible: true,
        +        html: 'Information goes here',
        +        split: true,
        +        height: 100,
        +        minHeight: 100
        +    }, {
        +        region: 'east',
        +        title: 'Title for the Grid Panel',
        +        collapsible: true,
        +        split: true,
        +        width: 200,
        +        xtype: 'grid',
        +        // remaining grid configuration not shown ...
        +        // notice that the GridPanel is added directly as the region
        +        // it is not "overnested" inside another Panel
        +    }, {
        +        region: 'center',
        +        xtype: 'tabpanel', // TabPanel itself has no title
        +        items: {
        +            title: 'Default Tab',
        +            html: 'The first tab\'s content. Others may be added dynamically'
        +        }
        +    }]
        +});
        +
        + * @constructor + * Create a new Viewport + * @param {Object} config The config object + * @xtype viewport + */ +Ext.Viewport = Ext.extend(Ext.Container, { + /* + * Privatize config options which, if used, would interfere with the + * correct operation of the Viewport as the sole manager of the + * layout of the document body. + */ + /** + * @cfg {Mixed} applyTo @hide + */ + /** + * @cfg {Boolean} allowDomMove @hide + */ + /** + * @cfg {Boolean} hideParent @hide + */ + /** + * @cfg {Mixed} renderTo @hide + */ + /** + * @cfg {Boolean} hideParent @hide + */ + /** + * @cfg {Number} height @hide + */ + /** + * @cfg {Number} width @hide + */ + /** + * @cfg {Boolean} autoHeight @hide + */ + /** + * @cfg {Boolean} autoWidth @hide + */ + /** + * @cfg {Boolean} deferHeight @hide + */ + /** + * @cfg {Boolean} monitorResize @hide + */ + + initComponent : function() { + Ext.Viewport.superclass.initComponent.call(this); + document.getElementsByTagName('html')[0].className += ' x-viewport'; + this.el = Ext.getBody(); + this.el.setHeight = Ext.emptyFn; + this.el.setWidth = Ext.emptyFn; + this.el.setSize = Ext.emptyFn; + this.el.dom.scroll = 'no'; + this.allowDomMove = false; + this.autoWidth = true; + this.autoHeight = true; + Ext.EventManager.onWindowResize(this.fireResize, this); + this.renderTo = this.el; + }, + + fireResize : function(w, h){ + this.fireEvent('resize', this, w, h, w, h); + } +}); +Ext.reg('viewport', Ext.Viewport); +/** + * @class Ext.Panel + * @extends Ext.Container + *

        Panel is a container that has specific functionality and structural components that make + * it the perfect building block for application-oriented user interfaces.

        + *

        Panels are, by virtue of their inheritance from {@link Ext.Container}, capable + * of being configured with a {@link Ext.Container#layout layout}, and containing child Components.

        + *

        When either specifying child {@link Ext.Component#items items} of a Panel, or dynamically {@link Ext.Container#add adding} Components + * to a Panel, remember to consider how you wish the Panel to arrange those child elements, and whether + * those child elements need to be sized using one of Ext's built-in {@link Ext.Container#layout layout} schemes. By + * default, Panels use the {@link Ext.layout.ContainerLayout ContainerLayout} scheme. This simply renders + * child components, appending them one after the other inside the Container, and does not apply any sizing + * at all.

        + *

        A Panel may also contain {@link #bbar bottom} and {@link #tbar top} toolbars, along with separate + * {@link #header}, {@link #footer} and {@link #body} sections (see {@link #frame} for additional + * information).

        + *

        Panel also provides built-in {@link #collapsible expandable and collapsible behavior}, along with + * a variety of {@link #tools prebuilt tool buttons} that can be wired up to provide other customized + * behavior. Panels can be easily dropped into any {@link Ext.Container Container} or layout, and the + * layout and rendering pipeline is {@link Ext.Container#add completely managed by the framework}.

        + * @constructor + * @param {Object} config The config object + * @xtype panel + */ +Ext.Panel = Ext.extend(Ext.Container, { + /** + * The Panel's header {@link Ext.Element Element}. Read-only. + *

        This Element is used to house the {@link #title} and {@link #tools}

        + *

        Note: see the Note for {@link Ext.Component#el el} also.

        + * @type Ext.Element + * @property header + */ + /** + * The Panel's body {@link Ext.Element Element} which may be used to contain HTML content. + * The content may be specified in the {@link #html} config, or it may be loaded using the + * {@link autoLoad} config, or through the Panel's {@link #getUpdater Updater}. Read-only. + *

        If this is used to load visible HTML elements in either way, then + * the Panel may not be used as a Layout for hosting nested Panels.

        + *

        If this Panel is intended to be used as the host of a Layout (See {@link #layout} + * then the body Element must not be loaded or changed - it is under the control + * of the Panel's Layout. + *

        Note: see the Note for {@link Ext.Component#el el} also.

        + * @type Ext.Element + * @property body + */ + /** + * The Panel's bwrap {@link Ext.Element Element} used to contain other Panel elements + * (tbar, body, bbar, footer). See {@link #bodyCfg}. Read-only. + * @type Ext.Element + * @property bwrap + */ + /** + * True if this panel is collapsed. Read-only. + * @type Boolean + * @property collapsed + */ + /** + * @cfg {Object} bodyCfg + *

        A {@link Ext.DomHelper DomHelper} element specification object may be specified for any + * Panel Element.

        + *

        By default, the Default element in the table below will be used for the html markup to + * create a child element with the commensurate Default class name (baseCls will be + * replaced by {@link #baseCls}):

        + *
        +     * Panel      Default  Default             Custom      Additional       Additional
        +     * Element    element  class               element     class            style
        +     * ========   ==========================   =========   ==============   ===========
        +     * {@link #header}     div      {@link #baseCls}+'-header'   {@link #headerCfg}   headerCssClass   headerStyle
        +     * {@link #bwrap}      div      {@link #baseCls}+'-bwrap'     {@link #bwrapCfg}    bwrapCssClass    bwrapStyle
        +     * + tbar     div      {@link #baseCls}+'-tbar'       {@link #tbarCfg}     tbarCssClass     tbarStyle
        +     * + {@link #body}     div      {@link #baseCls}+'-body'       {@link #bodyCfg}     {@link #bodyCssClass}     {@link #bodyStyle}
        +     * + bbar     div      {@link #baseCls}+'-bbar'       {@link #bbarCfg}     bbarCssClass     bbarStyle
        +     * + {@link #footer}   div      {@link #baseCls}+'-footer'   {@link #footerCfg}   footerCssClass   footerStyle
        +     * 
        + *

        Configuring a Custom element may be used, for example, to force the {@link #body} Element + * to use a different form of markup than is created by default. An example of this might be + * to {@link Ext.Element#createChild create a child} Panel containing a custom content, such as + * a header, or forcing centering of all Panel content by having the body be a <center> + * element:

        + *
        
        +new Ext.Panel({
        +    title: 'Message Title',
        +    renderTo: Ext.getBody(),
        +    width: 200, height: 130,
        +    bodyCfg: {
        +        tag: 'center',
        +        cls: 'x-panel-body',  // Default class not applied if Custom element specified
        +        html: 'Message'
        +    },
        +    footerCfg: {
        +        tag: 'h2',
        +        cls: 'x-panel-footer'        // same as the Default class
        +        html: 'footer html'
        +    },
        +    footerCssClass: 'custom-footer', // additional css class, see {@link Ext.element#addClass addClass}
        +    footerStyle:    'background-color:red' // see {@link #bodyStyle}
        +});
        +     * 
        + *

        The example above also explicitly creates a {@link #footer} with custom markup and + * styling applied.

        + */ + /** + * @cfg {Object} headerCfg + *

        A {@link Ext.DomHelper DomHelper} element specification object specifying the element structure + * of this Panel's {@link #header} Element. See {@link #bodyCfg} also.

        + */ + /** + * @cfg {Object} bwrapCfg + *

        A {@link Ext.DomHelper DomHelper} element specification object specifying the element structure + * of this Panel's {@link #bwrap} Element. See {@link #bodyCfg} also.

        + */ + /** + * @cfg {Object} tbarCfg + *

        A {@link Ext.DomHelper DomHelper} element specification object specifying the element structure + * of this Panel's {@link #tbar} Element. See {@link #bodyCfg} also.

        + */ + /** + * @cfg {Object} bbarCfg + *

        A {@link Ext.DomHelper DomHelper} element specification object specifying the element structure + * of this Panel's {@link #bbar} Element. See {@link #bodyCfg} also.

        + */ + /** + * @cfg {Object} footerCfg + *

        A {@link Ext.DomHelper DomHelper} element specification object specifying the element structure + * of this Panel's {@link #footer} Element. See {@link #bodyCfg} also.

        + */ + /** + * @cfg {Boolean} closable + * Panels themselves do not directly support being closed, but some Panel subclasses do (like + * {@link Ext.Window}) or a Panel Class within an {@link Ext.TabPanel}. Specify true + * to enable closing in such situations. Defaults to false. + */ + /** + * The Panel's footer {@link Ext.Element Element}. Read-only. + *

        This Element is used to house the Panel's {@link #buttons} or {@link #fbar}.

        + *

        Note: see the Note for {@link Ext.Component#el el} also.

        + * @type Ext.Element + * @property footer + */ + /** + * @cfg {Mixed} applyTo + *

        The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in + * the document that specifies some panel-specific structural markup. When applyTo is used, + * constituent parts of the panel can be specified by CSS class name within the main element, and the panel + * will automatically create those components from that markup. Any required components not specified in the + * markup will be autogenerated if necessary.

        + *

        The following class names are supported (baseCls will be replaced by {@link #baseCls}):

        + *
        • baseCls + '-header'
        • + *
        • baseCls + '-header-text'
        • + *
        • baseCls + '-bwrap'
        • + *
        • baseCls + '-tbar'
        • + *
        • baseCls + '-body'
        • + *
        • baseCls + '-bbar'
        • + *
        • baseCls + '-footer'
        + *

        Using this config, a call to render() is not required. If applyTo is specified, any value passed for + * {@link #renderTo} will be ignored and the target element's parent node will automatically be used as the + * panel's container.

        + */ + /** + * @cfg {Object/Array} tbar + *

        The top toolbar of the panel. This can be a {@link Ext.Toolbar} object, a toolbar config, or an array of + * buttons/button configs to be added to the toolbar. Note that this is not available as a property after render. + * To access the top toolbar after render, use {@link #getTopToolbar}.

        + *

        Note: Although a Toolbar may contain Field components, these will not be updated by a load + * of an ancestor FormPanel. A Panel's toolbars are not part of the standard Container->Component hierarchy, and + * so are not scanned to collect form items. However, the values will be submitted because form + * submission parameters are collected from the DOM tree.

        + */ + /** + * @cfg {Object/Array} bbar + *

        The bottom toolbar of the panel. This can be a {@link Ext.Toolbar} object, a toolbar config, or an array of + * buttons/button configs to be added to the toolbar. Note that this is not available as a property after render. + * To access the bottom toolbar after render, use {@link #getBottomToolbar}.

        + *

        Note: Although a Toolbar may contain Field components, these will not be updated by a load + * of an ancestor FormPanel. A Panel's toolbars are not part of the standard Container->Component hierarchy, and + * so are not scanned to collect form items. However, the values will be submitted because form + * submission parameters are collected from the DOM tree.

        + */ + /** @cfg {Object/Array} fbar + *

        A {@link Ext.Toolbar Toolbar} object, a Toolbar config, or an array of + * {@link Ext.Button Button}s/{@link Ext.Button Button} configs, describing a {@link Ext.Toolbar Toolbar} to be rendered into this Panel's footer element.

        + *

        After render, the fbar property will be an {@link Ext.Toolbar Toolbar} instance.

        + *

        If {@link #buttons} are specified, they will supersede the fbar configuration property.

        + * The Panel's {@link #buttonAlign} configuration affects the layout of these items, for example: + *
        
        +var w = new Ext.Window({
        +    height: 250,
        +    width: 500,
        +    bbar: new Ext.Toolbar({
        +        items: [{
        +            text: 'bbar Left'
        +        },'->',{
        +            text: 'bbar Right'
        +        }]
        +    }),
        +    {@link #buttonAlign}: 'left', // anything but 'center' or 'right' and you can use '-', and '->'
        +                                  // to control the alignment of fbar items
        +    fbar: [{
        +        text: 'fbar Left'
        +    },'->',{
        +        text: 'fbar Right'
        +    }]
        +}).show();
        +     * 
        + *

        Note: Although a Toolbar may contain Field components, these will not be updated by a load + * of an ancestor FormPanel. A Panel's toolbars are not part of the standard Container->Component hierarchy, and + * so are not scanned to collect form items. However, the values will be submitted because form + * submission parameters are collected from the DOM tree.

        + */ + /** + * @cfg {Boolean} header + * true to create the Panel's header element explicitly, false to skip creating + * it. If a {@link #title} is set the header will be created automatically, otherwise it will not. + * If a {@link #title} is set but header is explicitly set to false, the header + * will not be rendered. + */ + /** + * @cfg {Boolean} footer + * true to create the footer element explicitly, false to skip creating it. The footer + * will be created automatically if {@link #buttons} or a {@link #fbar} have + * been configured. See {@link #bodyCfg} for an example. + */ + /** + * @cfg {String} title + * The title text to be used as innerHTML (html tags are accepted) to display in the panel + * {@link #header} (defaults to ''). When a title is specified the + * {@link #header} element will automatically be created and displayed unless + * {@link #header} is explicitly set to false. If you do not want to specify a + * title at config time, but you may want one later, you must either specify a non-empty + * title (a blank space ' ' will do) or header:true so that the container + * element will get created. + */ + /** + * @cfg {Array} buttons + * buttons will be used as {@link Ext.Container#items items} for the toolbar in + * the footer ({@link #fbar}). Typically the value of this configuration property will be + * an array of {@link Ext.Button}s or {@link Ext.Button} configuration objects. + * If an item is configured with minWidth or the Panel is configured with minButtonWidth, + * that width will be applied to the item. + */ + /** + * @cfg {Object/String/Function} autoLoad + * A valid url spec according to the Updater {@link Ext.Updater#update} method. + * If autoLoad is not null, the panel will attempt to load its contents + * immediately upon render.

        + * The URL will become the default URL for this panel's {@link #body} element, + * so it may be {@link Ext.Element#refresh refresh}ed at any time.

        + */ + /** + * @cfg {Boolean} frame + * false by default to render with plain 1px square borders. true to render with + * 9 elements, complete with custom rounded corners (also see {@link Ext.Element#boxWrap}). + *

        The template generated for each condition is depicted below:

        
        +     *
        +// frame = false
        +<div id="developer-specified-id-goes-here" class="x-panel">
        +
        +    <div class="x-panel-header"><span class="x-panel-header-text">Title: (frame:false)</span></div>
        +
        +    <div class="x-panel-bwrap">
        +        <div class="x-panel-body"><p>html value goes here</p></div>
        +    </div>
        +</div>
        +
        +// frame = true (create 9 elements)
        +<div id="developer-specified-id-goes-here" class="x-panel">
        +    <div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc">
        +        <div class="x-panel-header"><span class="x-panel-header-text">Title: (frame:true)</span></div>
        +    </div></div></div>
        +
        +    <div class="x-panel-bwrap">
        +        <div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc">
        +            <div class="x-panel-body"><p>html value goes here</p></div>
        +        </div></div></div>
        +
        +        <div class="x-panel-bl"><div class="x-panel-br"><div class="x-panel-bc"/>
        +        </div></div></div>
        +</div>
        +     * 
        + */ + /** + * @cfg {Boolean} border + * True to display the borders of the panel's body element, false to hide them (defaults to true). By default, + * the border is a 2px wide inset border, but this can be further altered by setting {@link #bodyBorder} to false. + */ + /** + * @cfg {Boolean} bodyBorder + * True to display an interior border on the body element of the panel, false to hide it (defaults to true). + * This only applies when {@link #border} == true. If border == true and bodyBorder == false, the border will display + * as a 1px wide inset border, giving the entire body element an inset appearance. + */ + /** + * @cfg {String/Object/Function} bodyCssClass + * Additional css class selector to be applied to the {@link #body} element in the format expected by + * {@link Ext.Element#addClass} (defaults to null). See {@link #bodyCfg}. + */ + /** + * @cfg {String/Object/Function} bodyStyle + * Custom CSS styles to be applied to the {@link #body} element in the format expected by + * {@link Ext.Element#applyStyles} (defaults to null). See {@link #bodyCfg}. + */ + /** + * @cfg {String} iconCls + * The CSS class selector that specifies a background image to be used as the header icon (defaults to ''). + *

        An example of specifying a custom icon class would be something like: + *

        
        +// specify the property in the config for the class:
        +     ...
        +     iconCls: 'my-icon'
        +
        +// css class that specifies background image to be used as the icon image:
        +.my-icon { background-image: url(../images/my-icon.gif) 0 6px no-repeat !important; }
        +
        + */ + /** + * @cfg {Boolean} collapsible + * True to make the panel collapsible and have the expand/collapse toggle button automatically rendered into + * the header tool button area, false to keep the panel statically sized with no button (defaults to false). + */ + /** + * @cfg {Array} tools + * An array of tool button configs to be added to the header tool area. When rendered, each tool is + * stored as an {@link Ext.Element Element} referenced by a public property called tools.<tool-type> + *

        Each tool config may contain the following properties: + *

          + *
        • id : String
          Required. The type + * of tool to create. By default, this assigns a CSS class of the form x-tool-<tool-type> to the + * resulting tool Element. Ext provides CSS rules, and an icon sprite containing images for the tool types listed below. + * The developer may implement custom tools by supplying alternate CSS rules and background images: + *
            + *
            toggle (Created by default when {@link #collapsible} is true)
            + *
            close
            + *
            minimize
            + *
            maximize
            + *
            restore
            + *
            gear
            + *
            pin
            + *
            unpin
            + *
            right
            + *
            left
            + *
            up
            + *
            down
            + *
            refresh
            + *
            minus
            + *
            plus
            + *
            help
            + *
            search
            + *
            save
            + *
            print
            + *
        • + *
        • handler : Function
          Required. The function to + * call when clicked. Arguments passed are:
            + *
          • event : Ext.EventObject
            The click event.
          • + *
          • toolEl : Ext.Element
            The tool Element.
          • + *
          • panel : Ext.Panel
            The host Panel
          • + *
          • tc : Object
            The tool configuration object
          • + *
        • + *
        • stopEvent : Boolean
          Defaults to true. Specify as false to allow click event to propagate.
        • + *
        • scope : Object
          The scope in which to call the handler.
        • + *
        • qtip : String/Object
          A tip string, or + * a config argument to {@link Ext.QuickTip#register}
        • + *
        • hidden : Boolean
          True to initially render hidden.
        • + *
        • on : Object
          A listener config object specifiying + * event listeners in the format of an argument to {@link #addListener}
        • + *
        + *

        Note that, apart from the toggle tool which is provided when a panel is collapsible, these + * tools only provide the visual button. Any required functionality must be provided by adding + * handlers that implement the necessary behavior.

        + *

        Example usage:

        + *
        
        +tools:[{
        +    id:'refresh',
        +    qtip: 'Refresh form Data',
        +    // hidden:true,
        +    handler: function(event, toolEl, panel){
        +        // refresh logic
        +    }
        +},
        +{
        +    id:'help',
        +    qtip: 'Get Help',
        +    handler: function(event, toolEl, panel){
        +        // whatever
        +    }
        +}]
        +
        + *

        For the custom id of 'help' define two relevant css classes with a link to + * a 15x15 image:

        + *
        
        +.x-tool-help {background-image: url(images/help.png);}
        +.x-tool-help-over {background-image: url(images/help_over.png);}
        +// if using an image sprite:
        +.x-tool-help {background-image: url(images/help.png) no-repeat 0 0;}
        +.x-tool-help-over {background-position:-15px 0;}
        +
        + */ + /** + * @cfg {Ext.Template/Ext.XTemplate} toolTemplate + *

        A Template used to create {@link #tools} in the {@link #header} Element. Defaults to:

        
        +new Ext.Template('<div class="x-tool x-tool-{id}">&#160;</div>')
        + *

        This may may be overridden to provide a custom DOM structure for tools based upon a more + * complex XTemplate. The template's data is a single tool configuration object (Not the entire Array) + * as specified in {@link #tools}. In the following example an <a> tag is used to provide a + * visual indication when hovering over the tool:

        
        +var win = new Ext.Window({
        +    tools: [{
        +        id: 'download',
        +        href: '/MyPdfDoc.pdf'
        +    }],
        +    toolTemplate: new Ext.XTemplate(
        +        '<tpl if="id==\'download\'">',
        +            '<a class="x-tool x-tool-pdf" href="{href}"></a>',
        +        '</tpl>',
        +        '<tpl if="id!=\'download\'">',
        +            '<div class="x-tool x-tool-{id}">&#160;</div>',
        +        '</tpl>'
        +    ),
        +    width:500,
        +    height:300,
        +    closeAction:'hide'
        +});
        + *

        Note that the CSS class 'x-tool-pdf' should have an associated style rule which provides an + * appropriate background image, something like:

        +
        
        +    a.x-tool-pdf {background-image: url(../shared/extjs/images/pdf.gif)!important;}
        +    
        + */ + /** + * @cfg {Boolean} hideCollapseTool + * true to hide the expand/collapse toggle button when {@link #collapsible} == true, + * false to display it (defaults to false). + */ + /** + * @cfg {Boolean} titleCollapse + * true to allow expanding and collapsing the panel (when {@link #collapsible} = true) + * by clicking anywhere in the header bar, false) to allow it only by clicking to tool button + * (defaults to false)). If this panel is a child item of a border layout also see the + * {@link Ext.layout.BorderLayout.Region BorderLayout.Region} + * {@link Ext.layout.BorderLayout.Region#floatable floatable} config option. + */ + + /** + * @cfg {Mixed} floating + *

        This property is used to configure the underlying {@link Ext.Layer}. Acceptable values for this + * configuration property are:

          + *
        • false : Default.
          Display the panel inline where it is + * rendered.
        • + *
        • true :
          Float the panel (absolute position it with automatic + * shimming and shadow).
            + *
            Setting floating to true will create an Ext.Layer for this panel and display the + * panel at negative offsets so that it is hidden.
            + *
            Since the panel will be absolute positioned, the position must be set explicitly + * after render (e.g., myPanel.setPosition(100,100);).
            + *
            Note: when floating a panel you should always assign a fixed width, + * otherwise it will be auto width and will expand to fill to the right edge of the viewport.
            + *
        • + *
        • {@link Ext.Layer object} :
          The specified object will be used + * as the configuration object for the {@link Ext.Layer} that will be created.
        • + *
        + */ + /** + * @cfg {Boolean/String} shadow + * true (or a valid Ext.Shadow {@link Ext.Shadow#mode} value) to display a shadow behind the + * panel, false to display no shadow (defaults to 'sides'). Note that this option + * only applies when {@link #floating} = true. + */ + /** + * @cfg {Number} shadowOffset + * The number of pixels to offset the shadow if displayed (defaults to 4). Note that this + * option only applies when {@link #floating} = true. + */ + /** + * @cfg {Boolean} shim + * false to disable the iframe shim in browsers which need one (defaults to true). + * Note that this option only applies when {@link #floating} = true. + */ + /** + * @cfg {Object/Array} keys + * A {@link Ext.KeyMap} config object (in the format expected by {@link Ext.KeyMap#addBinding} + * used to assign custom key handling to this panel (defaults to null). + */ + /** + * @cfg {Boolean/Object} draggable + *

        true to enable dragging of this Panel (defaults to false).

        + *

        For custom drag/drop implementations, an Ext.Panel.DD config could also be passed + * in this config instead of true. Ext.Panel.DD is an internal, undocumented class which + * moves a proxy Element around in place of the Panel's element, but provides no other behaviour + * during dragging or on drop. It is a subclass of {@link Ext.dd.DragSource}, so behaviour may be + * added by implementing the interface methods of {@link Ext.dd.DragDrop} e.g.: + *

        
        +new Ext.Panel({
        +    title: 'Drag me',
        +    x: 100,
        +    y: 100,
        +    renderTo: Ext.getBody(),
        +    floating: true,
        +    frame: true,
        +    width: 400,
        +    height: 200,
        +    draggable: {
        +//      Config option of Ext.Panel.DD class.
        +//      It's a floating Panel, so do not show a placeholder proxy in the original position.
        +        insertProxy: false,
        +
        +//      Called for each mousemove event while dragging the DD object.
        +        onDrag : function(e){
        +//          Record the x,y position of the drag proxy so that we can
        +//          position the Panel at end of drag.
        +            var pel = this.proxy.getEl();
        +            this.x = pel.getLeft(true);
        +            this.y = pel.getTop(true);
        +
        +//          Keep the Shadow aligned if there is one.
        +            var s = this.panel.getEl().shadow;
        +            if (s) {
        +                s.realign(this.x, this.y, pel.getWidth(), pel.getHeight());
        +            }
        +        },
        +
        +//      Called on the mouseup event.
        +        endDrag : function(e){
        +            this.panel.setPosition(this.x, this.y);
        +        }
        +    }
        +}).show();
        +
        + */ + /** + * @cfg {Boolean} disabled + * Render this panel disabled (default is false). An important note when using the disabled + * config on panels is that IE will often fail to initialize the disabled mask element correectly if + * the panel's layout has not yet completed by the time the Panel is disabled during the render process. + * If you experience this issue, you may need to instead use the {@link #afterlayout} event to initialize + * the disabled state: + *
        
        +new Ext.Panel({
        +    ...
        +    listeners: {
        +        'afterlayout': {
        +            fn: function(p){
        +                p.disable();
        +            },
        +            single: true // important, as many layouts can occur
        +        }
        +    }
        +});
        +
        + */ + /** + * @cfg {Boolean} autoHeight + * true to use height:'auto', false to use fixed height (defaults to false). + * Note: Setting autoHeight: true means that the browser will manage the panel's height + * based on its contents, and that Ext will not manage it at all. If the panel is within a layout that + * manages dimensions (fit, border, etc.) then setting autoHeight: true + * can cause issues with scrolling and will not generally work as expected since the panel will take + * on the height of its contents rather than the height required by the Ext layout. + */ + + + /** + * @cfg {String} baseCls + * The base CSS class to apply to this panel's element (defaults to 'x-panel'). + *

        Another option available by default is to specify 'x-plain' which strips all styling + * except for required attributes for Ext layouts to function (e.g. overflow:hidden). + * See {@link #unstyled} also.

        + */ + baseCls : 'x-panel', + /** + * @cfg {String} collapsedCls + * A CSS class to add to the panel's element after it has been collapsed (defaults to + * 'x-panel-collapsed'). + */ + collapsedCls : 'x-panel-collapsed', + /** + * @cfg {Boolean} maskDisabled + * true to mask the panel when it is {@link #disabled}, false to not mask it (defaults + * to true). Either way, the panel will always tell its contained elements to disable themselves + * when it is disabled, but masking the panel can provide an additional visual cue that the panel is + * disabled. + */ + maskDisabled : true, + /** + * @cfg {Boolean} animCollapse + * true to animate the transition when the panel is collapsed, false to skip the + * animation (defaults to true if the {@link Ext.Fx} class is available, otherwise false). + */ + animCollapse : Ext.enableFx, + /** + * @cfg {Boolean} headerAsText + * true to display the panel {@link #title} in the {@link #header}, + * false to hide it (defaults to true). + */ + headerAsText : true, + /** + * @cfg {String} buttonAlign + * The alignment of any {@link #buttons} added to this panel. Valid values are 'right', + * 'left' and 'center' (defaults to 'right'). + */ + buttonAlign : 'right', + /** + * @cfg {Boolean} collapsed + * true to render the panel collapsed, false to render it expanded (defaults to + * false). + */ + collapsed : false, + /** + * @cfg {Boolean} collapseFirst + * true to make sure the collapse/expand toggle button always renders first (to the left of) + * any other tools in the panel's title bar, false to render it last (defaults to true). + */ + collapseFirst : true, + /** + * @cfg {Number} minButtonWidth + * Minimum width in pixels of all {@link #buttons} in this panel (defaults to 75) + */ + minButtonWidth : 75, + /** + * @cfg {Boolean} unstyled + * Overrides the {@link #baseCls} setting to {@link #baseCls} = 'x-plain' which renders + * the panel unstyled except for required attributes for Ext layouts to function (e.g. overflow:hidden). + */ + /** + * @cfg {String} elements + * A comma-delimited list of panel elements to initialize when the panel is rendered. Normally, this list will be + * generated automatically based on the items added to the panel at config time, but sometimes it might be useful to + * make sure a structural element is rendered even if not specified at config time (for example, you may want + * to add a button or toolbar dynamically after the panel has been rendered). Adding those elements to this + * list will allocate the required placeholders in the panel when it is rendered. Valid values are
          + *
        • header
        • + *
        • tbar (top bar)
        • + *
        • body
        • + *
        • bbar (bottom bar)
        • + *
        • footer
        • + *
        + * Defaults to 'body'. + */ + elements : 'body', + /** + * @cfg {Boolean} preventBodyReset + * Defaults to false. When set to true, an extra css class 'x-panel-normal' + * will be added to the panel's element, effectively applying css styles suggested by the W3C + * (see http://www.w3.org/TR/CSS21/sample.html) to the Panel's body element (not the header, + * footer, etc.). + */ + preventBodyReset : false, + + /** + * @cfg {Number/String} padding + * A shortcut for setting a padding style on the body element. The value can either be + * a number to be applied to all sides, or a normal css string describing padding. + * Defaults to undefined. + * + */ + padding: undefined, + + /** @cfg {String} resizeEvent + * The event to listen to for resizing in layouts. Defaults to 'bodyresize'. + */ + resizeEvent: 'bodyresize', + + // protected - these could be used to customize the behavior of the window, + // but changing them would not be useful without further mofifications and + // could lead to unexpected or undesirable results. + toolTarget : 'header', + collapseEl : 'bwrap', + slideAnchor : 't', + disabledClass : '', + + // private, notify box this class will handle heights + deferHeight : true, + // private + expandDefaults: { + duration : 0.25 + }, + // private + collapseDefaults : { + duration : 0.25 + }, + + // private + initComponent : function(){ + Ext.Panel.superclass.initComponent.call(this); + + this.addEvents( + /** + * @event bodyresize + * Fires after the Panel has been resized. + * @param {Ext.Panel} p the Panel which has been resized. + * @param {Number} width The Panel body's new width. + * @param {Number} height The Panel body's new height. + */ + 'bodyresize', + /** + * @event titlechange + * Fires after the Panel title has been {@link #title set} or {@link #setTitle changed}. + * @param {Ext.Panel} p the Panel which has had its title changed. + * @param {String} The new title. + */ + 'titlechange', + /** + * @event iconchange + * Fires after the Panel icon class has been {@link #iconCls set} or {@link #setIconClass changed}. + * @param {Ext.Panel} p the Panel which has had its {@link #iconCls icon class} changed. + * @param {String} The new icon class. + * @param {String} The old icon class. + */ + 'iconchange', + /** + * @event collapse + * Fires after the Panel has been collapsed. + * @param {Ext.Panel} p the Panel that has been collapsed. + */ + 'collapse', + /** + * @event expand + * Fires after the Panel has been expanded. + * @param {Ext.Panel} p The Panel that has been expanded. + */ + 'expand', + /** + * @event beforecollapse + * Fires before the Panel is collapsed. A handler can return false to cancel the collapse. + * @param {Ext.Panel} p the Panel being collapsed. + * @param {Boolean} animate True if the collapse is animated, else false. + */ + 'beforecollapse', + /** + * @event beforeexpand + * Fires before the Panel is expanded. A handler can return false to cancel the expand. + * @param {Ext.Panel} p The Panel being expanded. + * @param {Boolean} animate True if the expand is animated, else false. + */ + 'beforeexpand', + /** + * @event beforeclose + * Fires before the Panel is closed. Note that Panels do not directly support being closed, but some + * Panel subclasses do (like {@link Ext.Window}) or a Panel within a Ext.TabPanel. This event only + * applies to such subclasses. + * A handler can return false to cancel the close. + * @param {Ext.Panel} p The Panel being closed. + */ + 'beforeclose', + /** + * @event close + * Fires after the Panel is closed. Note that Panels do not directly support being closed, but some + * Panel subclasses do (like {@link Ext.Window}) or a Panel within a Ext.TabPanel. + * @param {Ext.Panel} p The Panel that has been closed. + */ + 'close', + /** + * @event activate + * Fires after the Panel has been visually activated. + * Note that Panels do not directly support being activated, but some Panel subclasses + * do (like {@link Ext.Window}). Panels which are child Components of a TabPanel fire the + * activate and deactivate events under the control of the TabPanel. + * @param {Ext.Panel} p The Panel that has been activated. + */ + 'activate', + /** + * @event deactivate + * Fires after the Panel has been visually deactivated. + * Note that Panels do not directly support being deactivated, but some Panel subclasses + * do (like {@link Ext.Window}). Panels which are child Components of a TabPanel fire the + * activate and deactivate events under the control of the TabPanel. + * @param {Ext.Panel} p The Panel that has been deactivated. + */ + 'deactivate' + ); + + if(this.unstyled){ + this.baseCls = 'x-plain'; + } + + + this.toolbars = []; + // shortcuts + if(this.tbar){ + this.elements += ',tbar'; + this.topToolbar = this.createToolbar(this.tbar); + this.tbar = null; + + } + if(this.bbar){ + this.elements += ',bbar'; + this.bottomToolbar = this.createToolbar(this.bbar); + this.bbar = null; + } + + if(this.header === true){ + this.elements += ',header'; + this.header = null; + }else if(this.headerCfg || (this.title && this.header !== false)){ + this.elements += ',header'; + } + + if(this.footerCfg || this.footer === true){ + this.elements += ',footer'; + this.footer = null; + } + + if(this.buttons){ + this.fbar = this.buttons; + this.buttons = null; + } + if(this.fbar){ + this.createFbar(this.fbar); + } + if(this.autoLoad){ + this.on('render', this.doAutoLoad, this, {delay:10}); + } + }, + + // private + createFbar : function(fbar){ + var min = this.minButtonWidth; + this.elements += ',footer'; + this.fbar = this.createToolbar(fbar, { + buttonAlign: this.buttonAlign, + toolbarCls: 'x-panel-fbar', + enableOverflow: false, + defaults: function(c){ + return { + minWidth: c.minWidth || min + }; + } + }); + // @compat addButton and buttons could possibly be removed + // @target 4.0 + /** + * This Panel's Array of buttons as created from the {@link #buttons} + * config property. Read only. + * @type Array + * @property buttons + */ + this.fbar.items.each(function(c){ + c.minWidth = c.minWidth || this.minButtonWidth; + }, this); + this.buttons = this.fbar.items.items; + }, + + // private + createToolbar: function(tb, options){ + var result; + // Convert array to proper toolbar config + if(Ext.isArray(tb)){ + tb = { + items: tb + }; + } + result = tb.events ? Ext.apply(tb, options) : this.createComponent(Ext.apply({}, tb, options), 'toolbar'); + this.toolbars.push(result); + return result; + }, + + // private + createElement : function(name, pnode){ + if(this[name]){ + pnode.appendChild(this[name].dom); + return; + } + + if(name === 'bwrap' || this.elements.indexOf(name) != -1){ + if(this[name+'Cfg']){ + this[name] = Ext.fly(pnode).createChild(this[name+'Cfg']); + }else{ + var el = document.createElement('div'); + el.className = this[name+'Cls']; + this[name] = Ext.get(pnode.appendChild(el)); + } + if(this[name+'CssClass']){ + this[name].addClass(this[name+'CssClass']); + } + if(this[name+'Style']){ + this[name].applyStyles(this[name+'Style']); + } + } + }, + + // private + onRender : function(ct, position){ + Ext.Panel.superclass.onRender.call(this, ct, position); + this.createClasses(); + + var el = this.el, + d = el.dom, + bw, + ts; + + + if(this.collapsible && !this.hideCollapseTool){ + this.tools = this.tools ? this.tools.slice(0) : []; + this.tools[this.collapseFirst?'unshift':'push']({ + id: 'toggle', + handler : this.toggleCollapse, + scope: this + }); + } + + if(this.tools){ + ts = this.tools; + this.elements += (this.header !== false) ? ',header' : ''; + } + this.tools = {}; + + el.addClass(this.baseCls); + if(d.firstChild){ // existing markup + this.header = el.down('.'+this.headerCls); + this.bwrap = el.down('.'+this.bwrapCls); + var cp = this.bwrap ? this.bwrap : el; + this.tbar = cp.down('.'+this.tbarCls); + this.body = cp.down('.'+this.bodyCls); + this.bbar = cp.down('.'+this.bbarCls); + this.footer = cp.down('.'+this.footerCls); + this.fromMarkup = true; + } + if (this.preventBodyReset === true) { + el.addClass('x-panel-reset'); + } + if(this.cls){ + el.addClass(this.cls); + } + + if(this.buttons){ + this.elements += ',footer'; + } + + // This block allows for maximum flexibility and performance when using existing markup + + // framing requires special markup + if(this.frame){ + el.insertHtml('afterBegin', String.format(Ext.Element.boxMarkup, this.baseCls)); + + this.createElement('header', d.firstChild.firstChild.firstChild); + this.createElement('bwrap', d); + + // append the mid and bottom frame to the bwrap + bw = this.bwrap.dom; + var ml = d.childNodes[1], bl = d.childNodes[2]; + bw.appendChild(ml); + bw.appendChild(bl); + + var mc = bw.firstChild.firstChild.firstChild; + this.createElement('tbar', mc); + this.createElement('body', mc); + this.createElement('bbar', mc); + this.createElement('footer', bw.lastChild.firstChild.firstChild); + + if(!this.footer){ + this.bwrap.dom.lastChild.className += ' x-panel-nofooter'; + } + /* + * Store a reference to this element so: + * a) We aren't looking it up all the time + * b) The last element is reported incorrectly when using a loadmask + */ + this.ft = Ext.get(this.bwrap.dom.lastChild); + this.mc = Ext.get(mc); + }else{ + this.createElement('header', d); + this.createElement('bwrap', d); + + // append the mid and bottom frame to the bwrap + bw = this.bwrap.dom; + this.createElement('tbar', bw); + this.createElement('body', bw); + this.createElement('bbar', bw); + this.createElement('footer', bw); + + if(!this.header){ + this.body.addClass(this.bodyCls + '-noheader'); + if(this.tbar){ + this.tbar.addClass(this.tbarCls + '-noheader'); + } + } + } + + if(Ext.isDefined(this.padding)){ + this.body.setStyle('padding', this.body.addUnits(this.padding)); + } + + if(this.border === false){ + this.el.addClass(this.baseCls + '-noborder'); + this.body.addClass(this.bodyCls + '-noborder'); + if(this.header){ + this.header.addClass(this.headerCls + '-noborder'); + } + if(this.footer){ + this.footer.addClass(this.footerCls + '-noborder'); + } + if(this.tbar){ + this.tbar.addClass(this.tbarCls + '-noborder'); + } + if(this.bbar){ + this.bbar.addClass(this.bbarCls + '-noborder'); + } + } + + if(this.bodyBorder === false){ + this.body.addClass(this.bodyCls + '-noborder'); + } + + this.bwrap.enableDisplayMode('block'); + + if(this.header){ + this.header.unselectable(); + + // for tools, we need to wrap any existing header markup + if(this.headerAsText){ + this.header.dom.innerHTML = + ''+this.header.dom.innerHTML+''; + + if(this.iconCls){ + this.setIconClass(this.iconCls); + } + } + } + + if(this.floating){ + this.makeFloating(this.floating); + } + + if(this.collapsible && this.titleCollapse && this.header){ + this.mon(this.header, 'click', this.toggleCollapse, this); + this.header.setStyle('cursor', 'pointer'); + } + if(ts){ + this.addTool.apply(this, ts); + } + + // Render Toolbars. + if(this.fbar){ + this.footer.addClass('x-panel-btns'); + this.fbar.ownerCt = this; + this.fbar.render(this.footer); + this.footer.createChild({cls:'x-clear'}); + } + if(this.tbar && this.topToolbar){ + this.topToolbar.ownerCt = this; + this.topToolbar.render(this.tbar); + } + if(this.bbar && this.bottomToolbar){ + this.bottomToolbar.ownerCt = this; + this.bottomToolbar.render(this.bbar); + } + }, + + /** + * Sets the CSS class that provides the icon image for this panel. This method will replace any existing + * icon class if one has already been set and fire the {@link #iconchange} event after completion. + * @param {String} cls The new CSS class name + */ + setIconClass : function(cls){ + var old = this.iconCls; + this.iconCls = cls; + if(this.rendered && this.header){ + if(this.frame){ + this.header.addClass('x-panel-icon'); + this.header.replaceClass(old, this.iconCls); + }else{ + var hd = this.header, + img = hd.child('img.x-panel-inline-icon'); + if(img){ + Ext.fly(img).replaceClass(old, this.iconCls); + }else{ + var hdspan = hd.child('span.' + this.headerTextCls); + if (hdspan) { + Ext.DomHelper.insertBefore(hdspan.dom, { + tag:'img', src: Ext.BLANK_IMAGE_URL, cls:'x-panel-inline-icon '+this.iconCls + }); + } + } + } + } + this.fireEvent('iconchange', this, cls, old); + }, + + // private + makeFloating : function(cfg){ + this.floating = true; + this.el = new Ext.Layer(Ext.apply({}, cfg, { + shadow: Ext.isDefined(this.shadow) ? this.shadow : 'sides', + shadowOffset: this.shadowOffset, + constrain:false, + shim: this.shim === false ? false : undefined + }), this.el); + }, + + /** + * Returns the {@link Ext.Toolbar toolbar} from the top ({@link #tbar}) section of the panel. + * @return {Ext.Toolbar} The toolbar + */ + getTopToolbar : function(){ + return this.topToolbar; + }, + + /** + * Returns the {@link Ext.Toolbar toolbar} from the bottom ({@link #bbar}) section of the panel. + * @return {Ext.Toolbar} The toolbar + */ + getBottomToolbar : function(){ + return this.bottomToolbar; + }, + + /** + * Returns the {@link Ext.Toolbar toolbar} from the footer ({@link #fbar}) section of the panel. + * @return {Ext.Toolbar} The toolbar + */ + getFooterToolbar : function() { + return this.fbar; + }, + + /** + * Adds a button to this panel. Note that this method must be called prior to rendering. The preferred + * approach is to add buttons via the {@link #buttons} config. + * @param {String/Object} config A valid {@link Ext.Button} config. A string will become the text for a default + * button config, an object will be treated as a button config object. + * @param {Function} handler The function to be called on button {@link Ext.Button#click} + * @param {Object} scope The scope (this reference) in which the button handler function is executed. Defaults to the Button. + * @return {Ext.Button} The button that was added + */ + addButton : function(config, handler, scope){ + if(!this.fbar){ + this.createFbar([]); + } + if(handler){ + if(Ext.isString(config)){ + config = {text: config}; + } + config = Ext.apply({ + handler: handler, + scope: scope + }, config); + } + return this.fbar.add(config); + }, + + // private + addTool : function(){ + if(!this.rendered){ + if(!this.tools){ + this.tools = []; + } + Ext.each(arguments, function(arg){ + this.tools.push(arg); + }, this); + return; + } + // nowhere to render tools! + if(!this[this.toolTarget]){ + return; + } + if(!this.toolTemplate){ + // initialize the global tool template on first use + var tt = new Ext.Template( + '
         
        ' + ); + tt.disableFormats = true; + tt.compile(); + Ext.Panel.prototype.toolTemplate = tt; + } + for(var i = 0, a = arguments, len = a.length; i < len; i++) { + var tc = a[i]; + if(!this.tools[tc.id]){ + var overCls = 'x-tool-'+tc.id+'-over'; + var t = this.toolTemplate.insertFirst(this[this.toolTarget], tc, true); + this.tools[tc.id] = t; + t.enableDisplayMode('block'); + this.mon(t, 'click', this.createToolHandler(t, tc, overCls, this)); + if(tc.on){ + this.mon(t, tc.on); + } + if(tc.hidden){ + t.hide(); + } + if(tc.qtip){ + if(Ext.isObject(tc.qtip)){ + Ext.QuickTips.register(Ext.apply({ + target: t.id + }, tc.qtip)); + } else { + t.dom.qtip = tc.qtip; + } + } + t.addClassOnOver(overCls); + } + } + }, + + onLayout : function(shallow, force){ + Ext.Panel.superclass.onLayout.apply(this, arguments); + if(this.hasLayout && this.toolbars.length > 0){ + Ext.each(this.toolbars, function(tb){ + tb.doLayout(undefined, force); + }); + this.syncHeight(); + } + }, + + syncHeight : function(){ + var h = this.toolbarHeight, + bd = this.body, + lsh = this.lastSize.height, + sz; + + if(this.autoHeight || !Ext.isDefined(lsh) || lsh == 'auto'){ + return; + } + + + if(h != this.getToolbarHeight()){ + h = Math.max(0, lsh - this.getFrameHeight()); + bd.setHeight(h); + sz = bd.getSize(); + this.toolbarHeight = this.getToolbarHeight(); + this.onBodyResize(sz.width, sz.height); + } + }, + + // private + onShow : function(){ + if(this.floating){ + return this.el.show(); + } + Ext.Panel.superclass.onShow.call(this); + }, + + // private + onHide : function(){ + if(this.floating){ + return this.el.hide(); + } + Ext.Panel.superclass.onHide.call(this); + }, + + // private + createToolHandler : function(t, tc, overCls, panel){ + return function(e){ + t.removeClass(overCls); + if(tc.stopEvent !== false){ + e.stopEvent(); + } + if(tc.handler){ + tc.handler.call(tc.scope || t, e, t, panel, tc); + } + }; + }, + + // private + afterRender : function(){ + if(this.floating && !this.hidden){ + this.el.show(); + } + if(this.title){ + this.setTitle(this.title); + } + Ext.Panel.superclass.afterRender.call(this); // do sizing calcs last + if (this.collapsed) { + this.collapsed = false; + this.collapse(false); + } + this.initEvents(); + }, + + // private + getKeyMap : function(){ + if(!this.keyMap){ + this.keyMap = new Ext.KeyMap(this.el, this.keys); + } + return this.keyMap; + }, + + // private + initEvents : function(){ + if(this.keys){ + this.getKeyMap(); + } + if(this.draggable){ + this.initDraggable(); + } + if(this.toolbars.length > 0){ + Ext.each(this.toolbars, function(tb){ + tb.doLayout(); + tb.on({ + scope: this, + afterlayout: this.syncHeight, + remove: this.syncHeight + }); + }, this); + this.syncHeight(); + } + + }, + + // private + initDraggable : function(){ + /** + *

        If this Panel is configured {@link #draggable}, this property will contain + * an instance of {@link Ext.dd.DragSource} which handles dragging the Panel.

        + * The developer must provide implementations of the abstract methods of {@link Ext.dd.DragSource} + * in order to supply behaviour for each stage of the drag/drop process. See {@link #draggable}. + * @type Ext.dd.DragSource. + * @property dd + */ + this.dd = new Ext.Panel.DD(this, Ext.isBoolean(this.draggable) ? null : this.draggable); + }, + + // private + beforeEffect : function(anim){ + if(this.floating){ + this.el.beforeAction(); + } + if(anim !== false){ + this.el.addClass('x-panel-animated'); + } + }, + + // private + afterEffect : function(anim){ + this.syncShadow(); + this.el.removeClass('x-panel-animated'); + }, + + // private - wraps up an animation param with internal callbacks + createEffect : function(a, cb, scope){ + var o = { + scope:scope, + block:true + }; + if(a === true){ + o.callback = cb; + return o; + }else if(!a.callback){ + o.callback = cb; + }else { // wrap it up + o.callback = function(){ + cb.call(scope); + Ext.callback(a.callback, a.scope); + }; + } + return Ext.applyIf(o, a); + }, + + /** + * Collapses the panel body so that it becomes hidden. Fires the {@link #beforecollapse} event which will + * cancel the collapse action if it returns false. + * @param {Boolean} animate True to animate the transition, else false (defaults to the value of the + * {@link #animCollapse} panel config) + * @return {Ext.Panel} this + */ + collapse : function(animate){ + if(this.collapsed || this.el.hasFxBlock() || this.fireEvent('beforecollapse', this, animate) === false){ + return; + } + var doAnim = animate === true || (animate !== false && this.animCollapse); + this.beforeEffect(doAnim); + this.onCollapse(doAnim, animate); + return this; + }, + + // private + onCollapse : function(doAnim, animArg){ + if(doAnim){ + this[this.collapseEl].slideOut(this.slideAnchor, + Ext.apply(this.createEffect(animArg||true, this.afterCollapse, this), + this.collapseDefaults)); + }else{ + this[this.collapseEl].hide(this.hideMode); + this.afterCollapse(false); + } + }, + + // private + afterCollapse : function(anim){ + this.collapsed = true; + this.el.addClass(this.collapsedCls); + if(anim !== false){ + this[this.collapseEl].hide(this.hideMode); + } + this.afterEffect(anim); + + // Reset lastSize of all sub-components so they KNOW they are in a collapsed container + this.cascade(function(c) { + if (c.lastSize) { + c.lastSize = { width: undefined, height: undefined }; + } + }); + this.fireEvent('collapse', this); + }, + + /** + * Expands the panel body so that it becomes visible. Fires the {@link #beforeexpand} event which will + * cancel the expand action if it returns false. + * @param {Boolean} animate True to animate the transition, else false (defaults to the value of the + * {@link #animCollapse} panel config) + * @return {Ext.Panel} this + */ + expand : function(animate){ + if(!this.collapsed || this.el.hasFxBlock() || this.fireEvent('beforeexpand', this, animate) === false){ + return; + } + var doAnim = animate === true || (animate !== false && this.animCollapse); + this.el.removeClass(this.collapsedCls); + this.beforeEffect(doAnim); + this.onExpand(doAnim, animate); + return this; + }, + + // private + onExpand : function(doAnim, animArg){ + if(doAnim){ + this[this.collapseEl].slideIn(this.slideAnchor, + Ext.apply(this.createEffect(animArg||true, this.afterExpand, this), + this.expandDefaults)); + }else{ + this[this.collapseEl].show(this.hideMode); + this.afterExpand(false); + } + }, + + // private + afterExpand : function(anim){ + this.collapsed = false; + if(anim !== false){ + this[this.collapseEl].show(this.hideMode); + } + this.afterEffect(anim); + if (this.deferLayout) { + delete this.deferLayout; + this.doLayout(true); + } + this.fireEvent('expand', this); + }, + + /** + * Shortcut for performing an {@link #expand} or {@link #collapse} based on the current state of the panel. + * @param {Boolean} animate True to animate the transition, else false (defaults to the value of the + * {@link #animCollapse} panel config) + * @return {Ext.Panel} this + */ + toggleCollapse : function(animate){ + this[this.collapsed ? 'expand' : 'collapse'](animate); + return this; + }, + + // private + onDisable : function(){ + if(this.rendered && this.maskDisabled){ + this.el.mask(); + } + Ext.Panel.superclass.onDisable.call(this); + }, + + // private + onEnable : function(){ + if(this.rendered && this.maskDisabled){ + this.el.unmask(); + } + Ext.Panel.superclass.onEnable.call(this); + }, + + // private + onResize : function(adjWidth, adjHeight, rawWidth, rawHeight){ + var w = adjWidth, + h = adjHeight; + + if(Ext.isDefined(w) || Ext.isDefined(h)){ + if(!this.collapsed){ + // First, set the the Panel's body width. + // If we have auto-widthed it, get the resulting full offset width so we can size the Toolbars to match + // The Toolbars must not buffer this resize operation because we need to know their heights. + + if(Ext.isNumber(w)){ + this.body.setWidth(w = this.adjustBodyWidth(w - this.getFrameWidth())); + } else if (w == 'auto') { + w = this.body.setWidth('auto').dom.offsetWidth; + } else { + w = this.body.dom.offsetWidth; + } + + if(this.tbar){ + this.tbar.setWidth(w); + if(this.topToolbar){ + this.topToolbar.setSize(w); + } + } + if(this.bbar){ + this.bbar.setWidth(w); + if(this.bottomToolbar){ + this.bottomToolbar.setSize(w); + // The bbar does not move on resize without this. + if (Ext.isIE) { + this.bbar.setStyle('position', 'static'); + this.bbar.setStyle('position', ''); + } + } + } + if(this.footer){ + this.footer.setWidth(w); + if(this.fbar){ + this.fbar.setSize(Ext.isIE ? (w - this.footer.getFrameWidth('lr')) : 'auto'); + } + } + + // At this point, the Toolbars must be layed out for getFrameHeight to find a result. + if(Ext.isNumber(h)){ + h = Math.max(0, h - this.getFrameHeight()); + //h = Math.max(0, h - (this.getHeight() - this.body.getHeight())); + this.body.setHeight(h); + }else if(h == 'auto'){ + this.body.setHeight(h); + } + + if(this.disabled && this.el._mask){ + this.el._mask.setSize(this.el.dom.clientWidth, this.el.getHeight()); + } + }else{ + // Adds an event to set the correct height afterExpand. This accounts for the deferHeight flag in panel + this.queuedBodySize = {width: w, height: h}; + if(!this.queuedExpand && this.allowQueuedExpand !== false){ + this.queuedExpand = true; + this.on('expand', function(){ + delete this.queuedExpand; + this.onResize(this.queuedBodySize.width, this.queuedBodySize.height); + }, this, {single:true}); + } + } + this.onBodyResize(w, h); + } + this.syncShadow(); + Ext.Panel.superclass.onResize.call(this, adjWidth, adjHeight, rawWidth, rawHeight); + + }, + + // private + onBodyResize: function(w, h){ + this.fireEvent('bodyresize', this, w, h); + }, + + // private + getToolbarHeight: function(){ + var h = 0; + if(this.rendered){ + Ext.each(this.toolbars, function(tb){ + h += tb.getHeight(); + }, this); + } + return h; + }, + + // deprecate + adjustBodyHeight : function(h){ + return h; + }, + + // private + adjustBodyWidth : function(w){ + return w; + }, + + // private + onPosition : function(){ + this.syncShadow(); + }, + + /** + * Returns the width in pixels of the framing elements of this panel (not including the body width). To + * retrieve the body width see {@link #getInnerWidth}. + * @return {Number} The frame width + */ + getFrameWidth : function(){ + var w = this.el.getFrameWidth('lr') + this.bwrap.getFrameWidth('lr'); + + if(this.frame){ + var l = this.bwrap.dom.firstChild; + w += (Ext.fly(l).getFrameWidth('l') + Ext.fly(l.firstChild).getFrameWidth('r')); + w += this.mc.getFrameWidth('lr'); + } + return w; + }, + + /** + * Returns the height in pixels of the framing elements of this panel (including any top and bottom bars and + * header and footer elements, but not including the body height). To retrieve the body height see {@link #getInnerHeight}. + * @return {Number} The frame height + */ + getFrameHeight : function() { + var h = Math.max(0, this.getHeight() - this.body.getHeight()); + + if (isNaN(h)) { + h = 0; + } + return h; + + /* Deprecate + var h = this.el.getFrameWidth('tb') + this.bwrap.getFrameWidth('tb'); + h += (this.tbar ? this.tbar.getHeight() : 0) + + (this.bbar ? this.bbar.getHeight() : 0); + + if(this.frame){ + h += this.el.dom.firstChild.offsetHeight + this.ft.dom.offsetHeight + this.mc.getFrameWidth('tb'); + }else{ + h += (this.header ? this.header.getHeight() : 0) + + (this.footer ? this.footer.getHeight() : 0); + } + return h; + */ + }, + + /** + * Returns the width in pixels of the body element (not including the width of any framing elements). + * For the frame width see {@link #getFrameWidth}. + * @return {Number} The body width + */ + getInnerWidth : function(){ + return this.getSize().width - this.getFrameWidth(); + }, + + /** + * Returns the height in pixels of the body element (not including the height of any framing elements). + * For the frame height see {@link #getFrameHeight}. + * @return {Number} The body height + */ + getInnerHeight : function(){ + return this.body.getHeight(); + /* Deprecate + return this.getSize().height - this.getFrameHeight(); + */ + }, + + // private + syncShadow : function(){ + if(this.floating){ + this.el.sync(true); + } + }, + + // private + getLayoutTarget : function(){ + return this.body; + }, + + // private + getContentTarget : function(){ + return this.body; + }, + + /** + *

        Sets the title text for the panel and optionally the {@link #iconCls icon class}.

        + *

        In order to be able to set the title, a header element must have been created + * for the Panel. This is triggered either by configuring the Panel with a non-blank {@link #title}, + * or configuring it with {@link #header}: true.

        + * @param {String} title The title text to set + * @param {String} iconCls (optional) {@link #iconCls iconCls} A user-defined CSS class that provides the icon image for this panel + */ + setTitle : function(title, iconCls){ + this.title = title; + if(this.header && this.headerAsText){ + this.header.child('span').update(title); + } + if(iconCls){ + this.setIconClass(iconCls); + } + this.fireEvent('titlechange', this, title); + return this; + }, + + /** + * Get the {@link Ext.Updater} for this panel. Enables you to perform Ajax updates of this panel's body. + * @return {Ext.Updater} The Updater + */ + getUpdater : function(){ + return this.body.getUpdater(); + }, + + /** + * Loads this content panel immediately with content returned from an XHR call. + * @param {Object/String/Function} config A config object containing any of the following options: +
        
        +panel.load({
        +    url: 'your-url.php',
        +    params: {param1: 'foo', param2: 'bar'}, // or a URL encoded string
        +    callback: yourFunction,
        +    scope: yourObject, // optional scope for the callback
        +    discardUrl: false,
        +    nocache: false,
        +    text: 'Loading...',
        +    timeout: 30,
        +    scripts: false
        +});
        +
        + * The only required property is url. The optional properties nocache, text and scripts + * are shorthand for disableCaching, indicatorText and loadScripts and are used to set their + * associated property on this panel Updater instance. + * @return {Ext.Panel} this + */ + load : function(){ + var um = this.body.getUpdater(); + um.update.apply(um, arguments); + return this; + }, + + // private + beforeDestroy : function(){ + Ext.Panel.superclass.beforeDestroy.call(this); + if(this.header){ + this.header.removeAllListeners(); + } + if(this.tools){ + for(var k in this.tools){ + Ext.destroy(this.tools[k]); + } + } + if(this.toolbars.length > 0){ + Ext.each(this.toolbars, function(tb){ + tb.un('afterlayout', this.syncHeight, this); + tb.un('remove', this.syncHeight, this); + }, this); + } + if(Ext.isArray(this.buttons)){ + while(this.buttons.length) { + Ext.destroy(this.buttons[0]); + } + } + if(this.rendered){ + Ext.destroy( + this.ft, + this.header, + this.footer, + this.tbar, + this.bbar, + this.body, + this.mc, + this.bwrap, + this.dd + ); + if (this.fbar) { + Ext.destroy( + this.fbar, + this.fbar.el + ); + } + } + Ext.destroy(this.toolbars); + }, + + // private + createClasses : function(){ + this.headerCls = this.baseCls + '-header'; + this.headerTextCls = this.baseCls + '-header-text'; + this.bwrapCls = this.baseCls + '-bwrap'; + this.tbarCls = this.baseCls + '-tbar'; + this.bodyCls = this.baseCls + '-body'; + this.bbarCls = this.baseCls + '-bbar'; + this.footerCls = this.baseCls + '-footer'; + }, + + // private + createGhost : function(cls, useShim, appendTo){ + var el = document.createElement('div'); + el.className = 'x-panel-ghost ' + (cls ? cls : ''); + if(this.header){ + el.appendChild(this.el.dom.firstChild.cloneNode(true)); + } + Ext.fly(el.appendChild(document.createElement('ul'))).setHeight(this.bwrap.getHeight()); + el.style.width = this.el.dom.offsetWidth + 'px';; + if(!appendTo){ + this.container.dom.appendChild(el); + }else{ + Ext.getDom(appendTo).appendChild(el); + } + if(useShim !== false && this.el.useShim !== false){ + var layer = new Ext.Layer({shadow:false, useDisplay:true, constrain:false}, el); + layer.show(); + return layer; + }else{ + return new Ext.Element(el); + } + }, + + // private + doAutoLoad : function(){ + var u = this.body.getUpdater(); + if(this.renderer){ + u.setRenderer(this.renderer); + } + u.update(Ext.isObject(this.autoLoad) ? this.autoLoad : {url: this.autoLoad}); + }, + + /** + * Retrieve a tool by id. + * @param {String} id + * @return {Object} tool + */ + getTool : function(id) { + return this.tools[id]; + } + +/** + * @cfg {String} autoEl @hide + */ +}); +Ext.reg('panel', Ext.Panel); +/** + * @class Ext.Editor + * @extends Ext.Component + * A base editor field that handles displaying/hiding on demand and has some built-in sizing and event handling logic. + * @constructor + * Create a new Editor + * @param {Object} config The config object + * @xtype editor + */ +Ext.Editor = function(field, config){ + if(field.field){ + this.field = Ext.create(field.field, 'textfield'); + config = Ext.apply({}, field); // copy so we don't disturb original config + delete config.field; + }else{ + this.field = field; + } + Ext.Editor.superclass.constructor.call(this, config); +}; + +Ext.extend(Ext.Editor, Ext.Component, { + /** + * @cfg {Ext.form.Field} field + * The Field object (or descendant) or config object for field + */ + /** + * @cfg {Boolean} allowBlur + * True to {@link #completeEdit complete the editing process} if in edit mode when the + * field is blurred. Defaults to true. + */ + allowBlur: true, + /** + * @cfg {Boolean/String} autoSize + * True for the editor to automatically adopt the size of the underlying field, "width" to adopt the width only, + * or "height" to adopt the height only, "none" to always use the field dimensions. (defaults to false) + */ + /** + * @cfg {Boolean} revertInvalid + * True to automatically revert the field value and cancel the edit when the user completes an edit and the field + * validation fails (defaults to true) + */ + /** + * @cfg {Boolean} ignoreNoChange + * True to skip the edit completion process (no save, no events fired) if the user completes an edit and + * the value has not changed (defaults to false). Applies only to string values - edits for other data types + * will never be ignored. + */ + /** + * @cfg {Boolean} hideEl + * False to keep the bound element visible while the editor is displayed (defaults to true) + */ + /** + * @cfg {Mixed} value + * The data value of the underlying field (defaults to "") + */ + value : "", + /** + * @cfg {String} alignment + * The position to align to (see {@link Ext.Element#alignTo} for more details, defaults to "c-c?"). + */ + alignment: "c-c?", + /** + * @cfg {Array} offsets + * The offsets to use when aligning (see {@link Ext.Element#alignTo} for more details. Defaults to [0, 0]. + */ + offsets: [0, 0], + /** + * @cfg {Boolean/String} shadow "sides" for sides/bottom only, "frame" for 4-way shadow, and "drop" + * for bottom-right shadow (defaults to "frame") + */ + shadow : "frame", + /** + * @cfg {Boolean} constrain True to constrain the editor to the viewport + */ + constrain : false, + /** + * @cfg {Boolean} swallowKeys Handle the keydown/keypress events so they don't propagate (defaults to true) + */ + swallowKeys : true, + /** + * @cfg {Boolean} completeOnEnter True to complete the edit when the enter key is pressed. Defaults to true. + */ + completeOnEnter : true, + /** + * @cfg {Boolean} cancelOnEsc True to cancel the edit when the escape key is pressed. Defaults to true. + */ + cancelOnEsc : true, + /** + * @cfg {Boolean} updateEl True to update the innerHTML of the bound element when the update completes (defaults to false) + */ + updateEl : false, + + initComponent : function(){ + Ext.Editor.superclass.initComponent.call(this); + this.addEvents( + /** + * @event beforestartedit + * Fires when editing is initiated, but before the value changes. Editing can be canceled by returning + * false from the handler of this event. + * @param {Editor} this + * @param {Ext.Element} boundEl The underlying element bound to this editor + * @param {Mixed} value The field value being set + */ + "beforestartedit", + /** + * @event startedit + * Fires when this editor is displayed + * @param {Ext.Element} boundEl The underlying element bound to this editor + * @param {Mixed} value The starting field value + */ + "startedit", + /** + * @event beforecomplete + * Fires after a change has been made to the field, but before the change is reflected in the underlying + * field. Saving the change to the field can be canceled by returning false from the handler of this event. + * Note that if the value has not changed and ignoreNoChange = true, the editing will still end but this + * event will not fire since no edit actually occurred. + * @param {Editor} this + * @param {Mixed} value The current field value + * @param {Mixed} startValue The original field value + */ + "beforecomplete", + /** + * @event complete + * Fires after editing is complete and any changed value has been written to the underlying field. + * @param {Editor} this + * @param {Mixed} value The current field value + * @param {Mixed} startValue The original field value + */ + "complete", + /** + * @event canceledit + * Fires after editing has been canceled and the editor's value has been reset. + * @param {Editor} this + * @param {Mixed} value The user-entered field value that was discarded + * @param {Mixed} startValue The original field value that was set back into the editor after cancel + */ + "canceledit", + /** + * @event specialkey + * Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check + * {@link Ext.EventObject#getKey} to determine which key was pressed. + * @param {Ext.form.Field} this + * @param {Ext.EventObject} e The event object + */ + "specialkey" + ); + }, + + // private + onRender : function(ct, position){ + this.el = new Ext.Layer({ + shadow: this.shadow, + cls: "x-editor", + parentEl : ct, + shim : this.shim, + shadowOffset: this.shadowOffset || 4, + id: this.id, + constrain: this.constrain + }); + if(this.zIndex){ + this.el.setZIndex(this.zIndex); + } + this.el.setStyle("overflow", Ext.isGecko ? "auto" : "hidden"); + if(this.field.msgTarget != 'title'){ + this.field.msgTarget = 'qtip'; + } + this.field.inEditor = true; + this.mon(this.field, { + scope: this, + blur: this.onBlur, + specialkey: this.onSpecialKey + }); + if(this.field.grow){ + this.mon(this.field, "autosize", this.el.sync, this.el, {delay:1}); + } + this.field.render(this.el).show(); + this.field.getEl().dom.name = ''; + if(this.swallowKeys){ + this.field.el.swallowEvent([ + 'keypress', // *** Opera + 'keydown' // *** all other browsers + ]); + } + }, + + // private + onSpecialKey : function(field, e){ + var key = e.getKey(), + complete = this.completeOnEnter && key == e.ENTER, + cancel = this.cancelOnEsc && key == e.ESC; + if(complete || cancel){ + e.stopEvent(); + if(complete){ + this.completeEdit(); + }else{ + this.cancelEdit(); + } + if(field.triggerBlur){ + field.triggerBlur(); + } + } + this.fireEvent('specialkey', field, e); + }, + + /** + * Starts the editing process and shows the editor. + * @param {Mixed} el The element to edit + * @param {String} value (optional) A value to initialize the editor with. If a value is not provided, it defaults + * to the innerHTML of el. + */ + startEdit : function(el, value){ + if(this.editing){ + this.completeEdit(); + } + this.boundEl = Ext.get(el); + var v = value !== undefined ? value : this.boundEl.dom.innerHTML; + if(!this.rendered){ + this.render(this.parentEl || document.body); + } + if(this.fireEvent("beforestartedit", this, this.boundEl, v) !== false){ + this.startValue = v; + this.field.reset(); + this.field.setValue(v); + this.realign(true); + this.editing = true; + this.show(); + } + }, + + // private + doAutoSize : function(){ + if(this.autoSize){ + var sz = this.boundEl.getSize(), + fs = this.field.getSize(); + + switch(this.autoSize){ + case "width": + this.setSize(sz.width, fs.height); + break; + case "height": + this.setSize(fs.width, sz.height); + break; + case "none": + this.setSize(fs.width, fs.height); + break; + default: + this.setSize(sz.width, sz.height); + } + } + }, + + /** + * Sets the height and width of this editor. + * @param {Number} width The new width + * @param {Number} height The new height + */ + setSize : function(w, h){ + delete this.field.lastSize; + this.field.setSize(w, h); + if(this.el){ + if(Ext.isGecko2 || Ext.isOpera){ + // prevent layer scrollbars + this.el.setSize(w, h); + } + this.el.sync(); + } + }, + + /** + * Realigns the editor to the bound field based on the current alignment config value. + * @param {Boolean} autoSize (optional) True to size the field to the dimensions of the bound element. + */ + realign : function(autoSize){ + if(autoSize === true){ + this.doAutoSize(); + } + this.el.alignTo(this.boundEl, this.alignment, this.offsets); + }, + + /** + * Ends the editing process, persists the changed value to the underlying field, and hides the editor. + * @param {Boolean} remainVisible Override the default behavior and keep the editor visible after edit (defaults to false) + */ + completeEdit : function(remainVisible){ + if(!this.editing){ + return; + } + // Assert combo values first + if (this.field.assertValue) { + this.field.assertValue(); + } + var v = this.getValue(); + if(!this.field.isValid()){ + if(this.revertInvalid !== false){ + this.cancelEdit(remainVisible); + } + return; + } + if(String(v) === String(this.startValue) && this.ignoreNoChange){ + this.hideEdit(remainVisible); + return; + } + if(this.fireEvent("beforecomplete", this, v, this.startValue) !== false){ + v = this.getValue(); + if(this.updateEl && this.boundEl){ + this.boundEl.update(v); + } + this.hideEdit(remainVisible); + this.fireEvent("complete", this, v, this.startValue); + } + }, + + // private + onShow : function(){ + this.el.show(); + if(this.hideEl !== false){ + this.boundEl.hide(); + } + this.field.show().focus(false, true); + this.fireEvent("startedit", this.boundEl, this.startValue); + }, + + /** + * Cancels the editing process and hides the editor without persisting any changes. The field value will be + * reverted to the original starting value. + * @param {Boolean} remainVisible Override the default behavior and keep the editor visible after + * cancel (defaults to false) + */ + cancelEdit : function(remainVisible){ + if(this.editing){ + var v = this.getValue(); + this.setValue(this.startValue); + this.hideEdit(remainVisible); + this.fireEvent("canceledit", this, v, this.startValue); + } + }, + + // private + hideEdit: function(remainVisible){ + if(remainVisible !== true){ + this.editing = false; + this.hide(); + } + }, + + // private + onBlur : function(){ + // selectSameEditor flag allows the same editor to be started without onBlur firing on itself + if(this.allowBlur === true && this.editing && this.selectSameEditor !== true){ + this.completeEdit(); + } + }, + + // private + onHide : function(){ + if(this.editing){ + this.completeEdit(); + return; + } + this.field.blur(); + if(this.field.collapse){ + this.field.collapse(); + } + this.el.hide(); + if(this.hideEl !== false){ + this.boundEl.show(); + } + }, + + /** + * Sets the data value of the editor + * @param {Mixed} value Any valid value supported by the underlying field + */ + setValue : function(v){ + this.field.setValue(v); + }, + + /** + * Gets the data value of the editor + * @return {Mixed} The data value + */ + getValue : function(){ + return this.field.getValue(); + }, + + beforeDestroy : function(){ + Ext.destroyMembers(this, 'field'); + + delete this.parentEl; + delete this.boundEl; + } +}); +Ext.reg('editor', Ext.Editor); +/** + * @class Ext.ColorPalette + * @extends Ext.Component + * Simple color palette class for choosing colors. The palette can be rendered to any container.
        + * Here's an example of typical usage: + *
        
        +var cp = new Ext.ColorPalette({value:'993300'});  // initial selected color
        +cp.render('my-div');
        +
        +cp.on('select', function(palette, selColor){
        +    // do something with selColor
        +});
        +
        + * @constructor + * Create a new ColorPalette + * @param {Object} config The config object + * @xtype colorpalette + */ +Ext.ColorPalette = Ext.extend(Ext.Component, { + /** + * @cfg {String} tpl An existing XTemplate instance to be used in place of the default template for rendering the component. + */ + /** + * @cfg {String} itemCls + * The CSS class to apply to the containing element (defaults to 'x-color-palette') + */ + itemCls : 'x-color-palette', + /** + * @cfg {String} value + * The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). Note that + * the hex codes are case-sensitive. + */ + value : null, + /** + * @cfg {String} clickEvent + * The DOM event that will cause a color to be selected. This can be any valid event name (dblclick, contextmenu). + * Defaults to 'click'. + */ + clickEvent :'click', + // private + ctype : 'Ext.ColorPalette', + + /** + * @cfg {Boolean} allowReselect If set to true then reselecting a color that is already selected fires the {@link #select} event + */ + allowReselect : false, + + /** + *

        An array of 6-digit color hex code strings (without the # symbol). This array can contain any number + * of colors, and each hex code should be unique. The width of the palette is controlled via CSS by adjusting + * the width property of the 'x-color-palette' class (or assigning a custom class), so you can balance the number + * of colors with the width setting until the box is symmetrical.

        + *

        You can override individual colors if needed:

        + *
        
        +var cp = new Ext.ColorPalette();
        +cp.colors[0] = 'FF0000';  // change the first box to red
        +
        + +Or you can provide a custom array of your own for complete control: +
        
        +var cp = new Ext.ColorPalette();
        +cp.colors = ['000000', '993300', '333300'];
        +
        + * @type Array + */ + colors : [ + '000000', '993300', '333300', '003300', '003366', '000080', '333399', '333333', + '800000', 'FF6600', '808000', '008000', '008080', '0000FF', '666699', '808080', + 'FF0000', 'FF9900', '99CC00', '339966', '33CCCC', '3366FF', '800080', '969696', + 'FF00FF', 'FFCC00', 'FFFF00', '00FF00', '00FFFF', '00CCFF', '993366', 'C0C0C0', + 'FF99CC', 'FFCC99', 'FFFF99', 'CCFFCC', 'CCFFFF', '99CCFF', 'CC99FF', 'FFFFFF' + ], + + /** + * @cfg {Function} handler + * Optional. A function that will handle the select event of this palette. + * The handler is passed the following parameters:
          + *
        • palette : ColorPalette
          The {@link #palette Ext.ColorPalette}.
        • + *
        • color : String
          The 6-digit color hex code (without the # symbol).
        • + *
        + */ + /** + * @cfg {Object} scope + * The scope (this reference) in which the {@link #handler} + * function will be called. Defaults to this ColorPalette instance. + */ + + // private + initComponent : function(){ + Ext.ColorPalette.superclass.initComponent.call(this); + this.addEvents( + /** + * @event select + * Fires when a color is selected + * @param {ColorPalette} this + * @param {String} color The 6-digit color hex code (without the # symbol) + */ + 'select' + ); + + if(this.handler){ + this.on('select', this.handler, this.scope, true); + } + }, + + // private + onRender : function(container, position){ + this.autoEl = { + tag: 'div', + cls: this.itemCls + }; + Ext.ColorPalette.superclass.onRender.call(this, container, position); + var t = this.tpl || new Ext.XTemplate( + ' ' + ); + t.overwrite(this.el, this.colors); + this.mon(this.el, this.clickEvent, this.handleClick, this, {delegate: 'a'}); + if(this.clickEvent != 'click'){ + this.mon(this.el, 'click', Ext.emptyFn, this, {delegate: 'a', preventDefault: true}); + } + }, + + // private + afterRender : function(){ + Ext.ColorPalette.superclass.afterRender.call(this); + if(this.value){ + var s = this.value; + this.value = null; + this.select(s, true); + } + }, + + // private + handleClick : function(e, t){ + e.preventDefault(); + if(!this.disabled){ + var c = t.className.match(/(?:^|\s)color-(.{6})(?:\s|$)/)[1]; + this.select(c.toUpperCase()); + } + }, + + /** + * Selects the specified color in the palette (fires the {@link #select} event) + * @param {String} color A valid 6-digit color hex code (# will be stripped if included) + * @param {Boolean} suppressEvent (optional) True to stop the select event from firing. Defaults to false. + */ + select : function(color, suppressEvent){ + color = color.replace('#', ''); + if(color != this.value || this.allowReselect){ + var el = this.el; + if(this.value){ + el.child('a.color-'+this.value).removeClass('x-color-palette-sel'); + } + el.child('a.color-'+color).addClass('x-color-palette-sel'); + this.value = color; + if(suppressEvent !== true){ + this.fireEvent('select', this, color); + } + } + } + + /** + * @cfg {String} autoEl @hide + */ +}); +Ext.reg('colorpalette', Ext.ColorPalette);/** + * @class Ext.DatePicker + * @extends Ext.Component + *

        A popup date picker. This class is used by the {@link Ext.form.DateField DateField} class + * to allow browsing and selection of valid dates.

        + *

        All the string values documented below may be overridden by including an Ext locale file in + * your page.

        + * @constructor + * Create a new DatePicker + * @param {Object} config The config object + * @xtype datepicker + */ +Ext.DatePicker = Ext.extend(Ext.BoxComponent, { + /** + * @cfg {String} todayText + * The text to display on the button that selects the current date (defaults to 'Today') + */ + todayText : 'Today', + /** + * @cfg {String} okText + * The text to display on the ok button (defaults to ' OK ' to give the user extra clicking room) + */ + okText : ' OK ', + /** + * @cfg {String} cancelText + * The text to display on the cancel button (defaults to 'Cancel') + */ + cancelText : 'Cancel', + /** + * @cfg {Function} handler + * Optional. A function that will handle the select event of this picker. + * The handler is passed the following parameters:
          + *
        • picker : DatePicker
          This DatePicker.
        • + *
        • date : Date
          The selected date.
        • + *
        + */ + /** + * @cfg {Object} scope + * The scope (this reference) in which the {@link #handler} + * function will be called. Defaults to this DatePicker instance. + */ + /** + * @cfg {String} todayTip + * A string used to format the message for displaying in a tooltip over the button that + * selects the current date. Defaults to '{0} (Spacebar)' where + * the {0} token is replaced by today's date. + */ + todayTip : '{0} (Spacebar)', + /** + * @cfg {String} minText + * The error text to display if the minDate validation fails (defaults to 'This date is before the minimum date') + */ + minText : 'This date is before the minimum date', + /** + * @cfg {String} maxText + * The error text to display if the maxDate validation fails (defaults to 'This date is after the maximum date') + */ + maxText : 'This date is after the maximum date', + /** + * @cfg {String} format + * The default date format string which can be overriden for localization support. The format must be + * valid according to {@link Date#parseDate} (defaults to 'm/d/y'). + */ + format : 'm/d/y', + /** + * @cfg {String} disabledDaysText + * The tooltip to display when the date falls on a disabled day (defaults to 'Disabled') + */ + disabledDaysText : 'Disabled', + /** + * @cfg {String} disabledDatesText + * The tooltip text to display when the date falls on a disabled date (defaults to 'Disabled') + */ + disabledDatesText : 'Disabled', + /** + * @cfg {Array} monthNames + * An array of textual month names which can be overriden for localization support (defaults to Date.monthNames) + */ + monthNames : Date.monthNames, + /** + * @cfg {Array} dayNames + * An array of textual day names which can be overriden for localization support (defaults to Date.dayNames) + */ + dayNames : Date.dayNames, + /** + * @cfg {String} nextText + * The next month navigation button tooltip (defaults to 'Next Month (Control+Right)') + */ + nextText : 'Next Month (Control+Right)', + /** + * @cfg {String} prevText + * The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)') + */ + prevText : 'Previous Month (Control+Left)', + /** + * @cfg {String} monthYearText + * The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)') + */ + monthYearText : 'Choose a month (Control+Up/Down to move years)', + /** + * @cfg {Number} startDay + * Day index at which the week should begin, 0-based (defaults to 0, which is Sunday) + */ + startDay : 0, + /** + * @cfg {Boolean} showToday + * False to hide the footer area containing the Today button and disable the keyboard handler for spacebar + * that selects the current date (defaults to true). + */ + showToday : true, + /** + * @cfg {Date} minDate + * Minimum allowable date (JavaScript date object, defaults to null) + */ + /** + * @cfg {Date} maxDate + * Maximum allowable date (JavaScript date object, defaults to null) + */ + /** + * @cfg {Array} disabledDays + * An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null). + */ + /** + * @cfg {RegExp} disabledDatesRE + * JavaScript regular expression used to disable a pattern of dates (defaults to null). The {@link #disabledDates} + * config will generate this regex internally, but if you specify disabledDatesRE it will take precedence over the + * disabledDates value. + */ + /** + * @cfg {Array} disabledDates + * An array of 'dates' to disable, as strings. These strings will be used to build a dynamic regular + * expression so they are very powerful. Some examples: + *
          + *
        • ['03/08/2003', '09/16/2003'] would disable those exact dates
        • + *
        • ['03/08', '09/16'] would disable those days for every year
        • + *
        • ['^03/08'] would only match the beginning (useful if you are using short years)
        • + *
        • ['03/../2006'] would disable every day in March 2006
        • + *
        • ['^03'] would disable every day in every March
        • + *
        + * Note that the format of the dates included in the array should exactly match the {@link #format} config. + * In order to support regular expressions, if you are using a date format that has '.' in it, you will have to + * escape the dot when restricting dates. For example: ['03\\.08\\.03']. + */ + + // private + // Set by other components to stop the picker focus being updated when the value changes. + focusOnSelect: true, + + // default value used to initialise each date in the DatePicker + // (note: 12 noon was chosen because it steers well clear of all DST timezone changes) + initHour: 12, // 24-hour format + + // private + initComponent : function(){ + Ext.DatePicker.superclass.initComponent.call(this); + + this.value = this.value ? + this.value.clearTime(true) : new Date().clearTime(); + + this.addEvents( + /** + * @event select + * Fires when a date is selected + * @param {DatePicker} this DatePicker + * @param {Date} date The selected date + */ + 'select' + ); + + if(this.handler){ + this.on('select', this.handler, this.scope || this); + } + + this.initDisabledDays(); + }, + + // private + initDisabledDays : function(){ + if(!this.disabledDatesRE && this.disabledDates){ + var dd = this.disabledDates, + len = dd.length - 1, + re = '(?:'; + + Ext.each(dd, function(d, i){ + re += Ext.isDate(d) ? '^' + Ext.escapeRe(d.dateFormat(this.format)) + '$' : dd[i]; + if(i != len){ + re += '|'; + } + }, this); + this.disabledDatesRE = new RegExp(re + ')'); + } + }, + + /** + * Replaces any existing disabled dates with new values and refreshes the DatePicker. + * @param {Array/RegExp} disabledDates An array of date strings (see the {@link #disabledDates} config + * for details on supported values), or a JavaScript regular expression used to disable a pattern of dates. + */ + setDisabledDates : function(dd){ + if(Ext.isArray(dd)){ + this.disabledDates = dd; + this.disabledDatesRE = null; + }else{ + this.disabledDatesRE = dd; + } + this.initDisabledDays(); + this.update(this.value, true); + }, + + /** + * Replaces any existing disabled days (by index, 0-6) with new values and refreshes the DatePicker. + * @param {Array} disabledDays An array of disabled day indexes. See the {@link #disabledDays} config + * for details on supported values. + */ + setDisabledDays : function(dd){ + this.disabledDays = dd; + this.update(this.value, true); + }, + + /** + * Replaces any existing {@link #minDate} with the new value and refreshes the DatePicker. + * @param {Date} value The minimum date that can be selected + */ + setMinDate : function(dt){ + this.minDate = dt; + this.update(this.value, true); + }, + + /** + * Replaces any existing {@link #maxDate} with the new value and refreshes the DatePicker. + * @param {Date} value The maximum date that can be selected + */ + setMaxDate : function(dt){ + this.maxDate = dt; + this.update(this.value, true); + }, + + /** + * Sets the value of the date field + * @param {Date} value The date to set + */ + setValue : function(value){ + this.value = value.clearTime(true); + this.update(this.value); + }, + + /** + * Gets the current selected value of the date field + * @return {Date} The selected date + */ + getValue : function(){ + return this.value; + }, + + // private + focus : function(){ + this.update(this.activeDate); + }, + + // private + onEnable: function(initial){ + Ext.DatePicker.superclass.onEnable.call(this); + this.doDisabled(false); + this.update(initial ? this.value : this.activeDate); + if(Ext.isIE){ + this.el.repaint(); + } + + }, + + // private + onDisable : function(){ + Ext.DatePicker.superclass.onDisable.call(this); + this.doDisabled(true); + if(Ext.isIE && !Ext.isIE8){ + /* Really strange problem in IE6/7, when disabled, have to explicitly + * repaint each of the nodes to get them to display correctly, simply + * calling repaint on the main element doesn't appear to be enough. + */ + Ext.each([].concat(this.textNodes, this.el.query('th span')), function(el){ + Ext.fly(el).repaint(); + }); + } + }, + + // private + doDisabled : function(disabled){ + this.keyNav.setDisabled(disabled); + this.prevRepeater.setDisabled(disabled); + this.nextRepeater.setDisabled(disabled); + if(this.showToday){ + this.todayKeyListener.setDisabled(disabled); + this.todayBtn.setDisabled(disabled); + } + }, + + // private + onRender : function(container, position){ + var m = [ + '
    • ', + '', + '', + this.showToday ? '' : '', + '
        
      '], + dn = this.dayNames, + i; + for(i = 0; i < 7; i++){ + var d = this.startDay+i; + if(d > 6){ + d = d-7; + } + m.push(''); + } + m[m.length] = ''; + for(i = 0; i < 42; i++) { + if(i % 7 === 0 && i !== 0){ + m[m.length] = ''; + } + m[m.length] = ''; + } + m.push('
      ', dn[d].substr(0,1), '
      '); + + var el = document.createElement('div'); + el.className = 'x-date-picker'; + el.innerHTML = m.join(''); + + container.dom.insertBefore(el, position); + + this.el = Ext.get(el); + this.eventEl = Ext.get(el.firstChild); + + this.prevRepeater = new Ext.util.ClickRepeater(this.el.child('td.x-date-left a'), { + handler: this.showPrevMonth, + scope: this, + preventDefault:true, + stopDefault:true + }); + + this.nextRepeater = new Ext.util.ClickRepeater(this.el.child('td.x-date-right a'), { + handler: this.showNextMonth, + scope: this, + preventDefault:true, + stopDefault:true + }); + + this.monthPicker = this.el.down('div.x-date-mp'); + this.monthPicker.enableDisplayMode('block'); + + this.keyNav = new Ext.KeyNav(this.eventEl, { + 'left' : function(e){ + if(e.ctrlKey){ + this.showPrevMonth(); + }else{ + this.update(this.activeDate.add('d', -1)); + } + }, + + 'right' : function(e){ + if(e.ctrlKey){ + this.showNextMonth(); + }else{ + this.update(this.activeDate.add('d', 1)); + } + }, + + 'up' : function(e){ + if(e.ctrlKey){ + this.showNextYear(); + }else{ + this.update(this.activeDate.add('d', -7)); + } + }, + + 'down' : function(e){ + if(e.ctrlKey){ + this.showPrevYear(); + }else{ + this.update(this.activeDate.add('d', 7)); + } + }, + + 'pageUp' : function(e){ + this.showNextMonth(); + }, + + 'pageDown' : function(e){ + this.showPrevMonth(); + }, + + 'enter' : function(e){ + e.stopPropagation(); + return true; + }, + + scope : this + }); + + this.el.unselectable(); + + this.cells = this.el.select('table.x-date-inner tbody td'); + this.textNodes = this.el.query('table.x-date-inner tbody span'); + + this.mbtn = new Ext.Button({ + text: ' ', + tooltip: this.monthYearText, + renderTo: this.el.child('td.x-date-middle', true) + }); + this.mbtn.el.child('em').addClass('x-btn-arrow'); + + if(this.showToday){ + this.todayKeyListener = this.eventEl.addKeyListener(Ext.EventObject.SPACE, this.selectToday, this); + var today = (new Date()).dateFormat(this.format); + this.todayBtn = new Ext.Button({ + renderTo: this.el.child('td.x-date-bottom', true), + text: String.format(this.todayText, today), + tooltip: String.format(this.todayTip, today), + handler: this.selectToday, + scope: this + }); + } + this.mon(this.eventEl, 'mousewheel', this.handleMouseWheel, this); + this.mon(this.eventEl, 'click', this.handleDateClick, this, {delegate: 'a.x-date-date'}); + this.mon(this.mbtn, 'click', this.showMonthPicker, this); + this.onEnable(true); + }, + + // private + createMonthPicker : function(){ + if(!this.monthPicker.dom.firstChild){ + var buf = ['']; + for(var i = 0; i < 6; i++){ + buf.push( + '', + '', + i === 0 ? + '' : + '' + ); + } + buf.push( + '', + '
      ', Date.getShortMonthName(i), '', Date.getShortMonthName(i + 6), '
      ' + ); + this.monthPicker.update(buf.join('')); + + this.mon(this.monthPicker, 'click', this.onMonthClick, this); + this.mon(this.monthPicker, 'dblclick', this.onMonthDblClick, this); + + this.mpMonths = this.monthPicker.select('td.x-date-mp-month'); + this.mpYears = this.monthPicker.select('td.x-date-mp-year'); + + this.mpMonths.each(function(m, a, i){ + i += 1; + if((i%2) === 0){ + m.dom.xmonth = 5 + Math.round(i * 0.5); + }else{ + m.dom.xmonth = Math.round((i-1) * 0.5); + } + }); + } + }, + + // private + showMonthPicker : function(){ + if(!this.disabled){ + this.createMonthPicker(); + var size = this.el.getSize(); + this.monthPicker.setSize(size); + this.monthPicker.child('table').setSize(size); + + this.mpSelMonth = (this.activeDate || this.value).getMonth(); + this.updateMPMonth(this.mpSelMonth); + this.mpSelYear = (this.activeDate || this.value).getFullYear(); + this.updateMPYear(this.mpSelYear); + + this.monthPicker.slideIn('t', {duration:0.2}); + } + }, + + // private + updateMPYear : function(y){ + this.mpyear = y; + var ys = this.mpYears.elements; + for(var i = 1; i <= 10; i++){ + var td = ys[i-1], y2; + if((i%2) === 0){ + y2 = y + Math.round(i * 0.5); + td.firstChild.innerHTML = y2; + td.xyear = y2; + }else{ + y2 = y - (5-Math.round(i * 0.5)); + td.firstChild.innerHTML = y2; + td.xyear = y2; + } + this.mpYears.item(i-1)[y2 == this.mpSelYear ? 'addClass' : 'removeClass']('x-date-mp-sel'); + } + }, + + // private + updateMPMonth : function(sm){ + this.mpMonths.each(function(m, a, i){ + m[m.dom.xmonth == sm ? 'addClass' : 'removeClass']('x-date-mp-sel'); + }); + }, + + // private + selectMPMonth : function(m){ + + }, + + // private + onMonthClick : function(e, t){ + e.stopEvent(); + var el = new Ext.Element(t), pn; + if(el.is('button.x-date-mp-cancel')){ + this.hideMonthPicker(); + } + else if(el.is('button.x-date-mp-ok')){ + var d = new Date(this.mpSelYear, this.mpSelMonth, (this.activeDate || this.value).getDate()); + if(d.getMonth() != this.mpSelMonth){ + // 'fix' the JS rolling date conversion if needed + d = new Date(this.mpSelYear, this.mpSelMonth, 1).getLastDateOfMonth(); + } + this.update(d); + this.hideMonthPicker(); + } + else if((pn = el.up('td.x-date-mp-month', 2))){ + this.mpMonths.removeClass('x-date-mp-sel'); + pn.addClass('x-date-mp-sel'); + this.mpSelMonth = pn.dom.xmonth; + } + else if((pn = el.up('td.x-date-mp-year', 2))){ + this.mpYears.removeClass('x-date-mp-sel'); + pn.addClass('x-date-mp-sel'); + this.mpSelYear = pn.dom.xyear; + } + else if(el.is('a.x-date-mp-prev')){ + this.updateMPYear(this.mpyear-10); + } + else if(el.is('a.x-date-mp-next')){ + this.updateMPYear(this.mpyear+10); + } + }, + + // private + onMonthDblClick : function(e, t){ + e.stopEvent(); + var el = new Ext.Element(t), pn; + if((pn = el.up('td.x-date-mp-month', 2))){ + this.update(new Date(this.mpSelYear, pn.dom.xmonth, (this.activeDate || this.value).getDate())); + this.hideMonthPicker(); + } + else if((pn = el.up('td.x-date-mp-year', 2))){ + this.update(new Date(pn.dom.xyear, this.mpSelMonth, (this.activeDate || this.value).getDate())); + this.hideMonthPicker(); + } + }, + + // private + hideMonthPicker : function(disableAnim){ + if(this.monthPicker){ + if(disableAnim === true){ + this.monthPicker.hide(); + }else{ + this.monthPicker.slideOut('t', {duration:0.2}); + } + } + }, + + // private + showPrevMonth : function(e){ + this.update(this.activeDate.add('mo', -1)); + }, + + // private + showNextMonth : function(e){ + this.update(this.activeDate.add('mo', 1)); + }, + + // private + showPrevYear : function(){ + this.update(this.activeDate.add('y', -1)); + }, + + // private + showNextYear : function(){ + this.update(this.activeDate.add('y', 1)); + }, + + // private + handleMouseWheel : function(e){ + e.stopEvent(); + if(!this.disabled){ + var delta = e.getWheelDelta(); + if(delta > 0){ + this.showPrevMonth(); + } else if(delta < 0){ + this.showNextMonth(); + } + } + }, + + // private + handleDateClick : function(e, t){ + e.stopEvent(); + if(!this.disabled && t.dateValue && !Ext.fly(t.parentNode).hasClass('x-date-disabled')){ + this.cancelFocus = this.focusOnSelect === false; + this.setValue(new Date(t.dateValue)); + delete this.cancelFocus; + this.fireEvent('select', this, this.value); + } + }, + + // private + selectToday : function(){ + if(this.todayBtn && !this.todayBtn.disabled){ + this.setValue(new Date().clearTime()); + this.fireEvent('select', this, this.value); + } + }, + + // private + update : function(date, forceRefresh){ + if(this.rendered){ + var vd = this.activeDate, vis = this.isVisible(); + this.activeDate = date; + if(!forceRefresh && vd && this.el){ + var t = date.getTime(); + if(vd.getMonth() == date.getMonth() && vd.getFullYear() == date.getFullYear()){ + this.cells.removeClass('x-date-selected'); + this.cells.each(function(c){ + if(c.dom.firstChild.dateValue == t){ + c.addClass('x-date-selected'); + if(vis && !this.cancelFocus){ + Ext.fly(c.dom.firstChild).focus(50); + } + return false; + } + }, this); + return; + } + } + var days = date.getDaysInMonth(), + firstOfMonth = date.getFirstDateOfMonth(), + startingPos = firstOfMonth.getDay()-this.startDay; + + if(startingPos < 0){ + startingPos += 7; + } + days += startingPos; + + var pm = date.add('mo', -1), + prevStart = pm.getDaysInMonth()-startingPos, + cells = this.cells.elements, + textEls = this.textNodes, + // convert everything to numbers so it's fast + d = (new Date(pm.getFullYear(), pm.getMonth(), prevStart, this.initHour)), + today = new Date().clearTime().getTime(), + sel = date.clearTime(true).getTime(), + min = this.minDate ? this.minDate.clearTime(true) : Number.NEGATIVE_INFINITY, + max = this.maxDate ? this.maxDate.clearTime(true) : Number.POSITIVE_INFINITY, + ddMatch = this.disabledDatesRE, + ddText = this.disabledDatesText, + ddays = this.disabledDays ? this.disabledDays.join('') : false, + ddaysText = this.disabledDaysText, + format = this.format; + + if(this.showToday){ + var td = new Date().clearTime(), + disable = (td < min || td > max || + (ddMatch && format && ddMatch.test(td.dateFormat(format))) || + (ddays && ddays.indexOf(td.getDay()) != -1)); + + if(!this.disabled){ + this.todayBtn.setDisabled(disable); + this.todayKeyListener[disable ? 'disable' : 'enable'](); + } + } + + var setCellClass = function(cal, cell){ + cell.title = ''; + var t = d.clearTime(true).getTime(); + cell.firstChild.dateValue = t; + if(t == today){ + cell.className += ' x-date-today'; + cell.title = cal.todayText; + } + if(t == sel){ + cell.className += ' x-date-selected'; + if(vis){ + Ext.fly(cell.firstChild).focus(50); + } + } + // disabling + if(t < min) { + cell.className = ' x-date-disabled'; + cell.title = cal.minText; + return; + } + if(t > max) { + cell.className = ' x-date-disabled'; + cell.title = cal.maxText; + return; + } + if(ddays){ + if(ddays.indexOf(d.getDay()) != -1){ + cell.title = ddaysText; + cell.className = ' x-date-disabled'; + } + } + if(ddMatch && format){ + var fvalue = d.dateFormat(format); + if(ddMatch.test(fvalue)){ + cell.title = ddText.replace('%0', fvalue); + cell.className = ' x-date-disabled'; + } + } + }; + + var i = 0; + for(; i < startingPos; i++) { + textEls[i].innerHTML = (++prevStart); + d.setDate(d.getDate()+1); + cells[i].className = 'x-date-prevday'; + setCellClass(this, cells[i]); + } + for(; i < days; i++){ + var intDay = i - startingPos + 1; + textEls[i].innerHTML = (intDay); + d.setDate(d.getDate()+1); + cells[i].className = 'x-date-active'; + setCellClass(this, cells[i]); + } + var extraDays = 0; + for(; i < 42; i++) { + textEls[i].innerHTML = (++extraDays); + d.setDate(d.getDate()+1); + cells[i].className = 'x-date-nextday'; + setCellClass(this, cells[i]); + } + + this.mbtn.setText(this.monthNames[date.getMonth()] + ' ' + date.getFullYear()); + + if(!this.internalRender){ + var main = this.el.dom.firstChild, + w = main.offsetWidth; + this.el.setWidth(w + this.el.getBorderWidth('lr')); + Ext.fly(main).setWidth(w); + this.internalRender = true; + // opera does not respect the auto grow header center column + // then, after it gets a width opera refuses to recalculate + // without a second pass + if(Ext.isOpera && !this.secondPass){ + main.rows[0].cells[1].style.width = (w - (main.rows[0].cells[0].offsetWidth+main.rows[0].cells[2].offsetWidth)) + 'px'; + this.secondPass = true; + this.update.defer(10, this, [date]); + } + } + } + }, + + // private + beforeDestroy : function() { + if(this.rendered){ + Ext.destroy( + this.keyNav, + this.monthPicker, + this.eventEl, + this.mbtn, + this.nextRepeater, + this.prevRepeater, + this.cells.el, + this.todayBtn + ); + delete this.textNodes; + delete this.cells.elements; + } + } + + /** + * @cfg {String} autoEl @hide + */ +}); + +Ext.reg('datepicker', Ext.DatePicker); +/** + * @class Ext.LoadMask + * A simple utility class for generically masking elements while loading data. If the {@link #store} + * config option is specified, the masking will be automatically synchronized with the store's loading + * process and the mask element will be cached for reuse. For all other elements, this mask will replace the + * element's Updater load indicator and will be destroyed after the initial load. + *

      Example usage:

      + *
      
      +// Basic mask:
      +var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
      +myMask.show();
      +
      + * @constructor + * Create a new LoadMask + * @param {Mixed} el The element or DOM node, or its id + * @param {Object} config The config object + */ +Ext.LoadMask = function(el, config){ + this.el = Ext.get(el); + Ext.apply(this, config); + if(this.store){ + this.store.on({ + scope: this, + beforeload: this.onBeforeLoad, + load: this.onLoad, + exception: this.onLoad + }); + this.removeMask = Ext.value(this.removeMask, false); + }else{ + var um = this.el.getUpdater(); + um.showLoadIndicator = false; // disable the default indicator + um.on({ + scope: this, + beforeupdate: this.onBeforeLoad, + update: this.onLoad, + failure: this.onLoad + }); + this.removeMask = Ext.value(this.removeMask, true); + } +}; + +Ext.LoadMask.prototype = { + /** + * @cfg {Ext.data.Store} store + * Optional Store to which the mask is bound. The mask is displayed when a load request is issued, and + * hidden on either load sucess, or load fail. + */ + /** + * @cfg {Boolean} removeMask + * True to create a single-use mask that is automatically destroyed after loading (useful for page loads), + * False to persist the mask element reference for multiple uses (e.g., for paged data widgets). Defaults to false. + */ + /** + * @cfg {String} msg + * The text to display in a centered loading message box (defaults to 'Loading...') + */ + msg : 'Loading...', + /** + * @cfg {String} msgCls + * The CSS class to apply to the loading message element (defaults to "x-mask-loading") + */ + msgCls : 'x-mask-loading', + + /** + * Read-only. True if the mask is currently disabled so that it will not be displayed (defaults to false) + * @type Boolean + */ + disabled: false, + + /** + * Disables the mask to prevent it from being displayed + */ + disable : function(){ + this.disabled = true; + }, + + /** + * Enables the mask so that it can be displayed + */ + enable : function(){ + this.disabled = false; + }, + + // private + onLoad : function(){ + this.el.unmask(this.removeMask); + }, + + // private + onBeforeLoad : function(){ + if(!this.disabled){ + this.el.mask(this.msg, this.msgCls); + } + }, + + /** + * Show this LoadMask over the configured Element. + */ + show: function(){ + this.onBeforeLoad(); + }, + + /** + * Hide this LoadMask. + */ + hide: function(){ + this.onLoad(); + }, + + // private + destroy : function(){ + if(this.store){ + this.store.un('beforeload', this.onBeforeLoad, this); + this.store.un('load', this.onLoad, this); + this.store.un('exception', this.onLoad, this); + }else{ + var um = this.el.getUpdater(); + um.un('beforeupdate', this.onBeforeLoad, this); + um.un('update', this.onLoad, this); + um.un('failure', this.onLoad, this); + } + } +};Ext.ns('Ext.slider'); + +/** + * @class Ext.slider.Thumb + * @extends Object + * Represents a single thumb element on a Slider. This would not usually be created manually and would instead + * be created internally by an {@link Ext.slider.MultiSlider Ext.Slider}. + */ +Ext.slider.Thumb = Ext.extend(Object, { + + /** + * @constructor + * @cfg {Ext.slider.MultiSlider} slider The Slider to render to (required) + */ + constructor: function(config) { + /** + * @property slider + * @type Ext.slider.MultiSlider + * The slider this thumb is contained within + */ + Ext.apply(this, config || {}, { + cls: 'x-slider-thumb', + + /** + * @cfg {Boolean} constrain True to constrain the thumb so that it cannot overlap its siblings + */ + constrain: false + }); + + Ext.slider.Thumb.superclass.constructor.call(this, config); + + if (this.slider.vertical) { + Ext.apply(this, Ext.slider.Thumb.Vertical); + } + }, + + /** + * Renders the thumb into a slider + */ + render: function() { + this.el = this.slider.innerEl.insertFirst({cls: this.cls}); + + this.initEvents(); + }, + + /** + * Enables the thumb if it is currently disabled + */ + enable: function() { + this.disabled = false; + this.el.removeClass(this.slider.disabledClass); + }, + + /** + * Disables the thumb if it is currently enabled + */ + disable: function() { + this.disabled = true; + this.el.addClass(this.slider.disabledClass); + }, + + /** + * Sets up an Ext.dd.DragTracker for this thumb + */ + initEvents: function() { + var el = this.el; + + el.addClassOnOver('x-slider-thumb-over'); + + this.tracker = new Ext.dd.DragTracker({ + onBeforeStart: this.onBeforeDragStart.createDelegate(this), + onStart : this.onDragStart.createDelegate(this), + onDrag : this.onDrag.createDelegate(this), + onEnd : this.onDragEnd.createDelegate(this), + tolerance : 3, + autoStart : 300 + }); + + this.tracker.initEl(el); + }, + + /** + * @private + * This is tied into the internal Ext.dd.DragTracker. If the slider is currently disabled, + * this returns false to disable the DragTracker too. + * @return {Boolean} False if the slider is currently disabled + */ + onBeforeDragStart : function(e) { + if (this.disabled) { + return false; + } else { + this.slider.promoteThumb(this); + return true; + } + }, + + /** + * @private + * This is tied into the internal Ext.dd.DragTracker's onStart template method. Adds the drag CSS class + * to the thumb and fires the 'dragstart' event + */ + onDragStart: function(e){ + this.el.addClass('x-slider-thumb-drag'); + this.dragging = true; + this.dragStartValue = this.value; + + this.slider.fireEvent('dragstart', this.slider, e, this); + }, + + /** + * @private + * This is tied into the internal Ext.dd.DragTracker's onDrag template method. This is called every time + * the DragTracker detects a drag movement. It updates the Slider's value using the position of the drag + */ + onDrag: function(e) { + var slider = this.slider, + index = this.index, + newValue = this.getNewValue(); + + if (this.constrain) { + var above = slider.thumbs[index + 1], + below = slider.thumbs[index - 1]; + + if (below != undefined && newValue <= below.value) newValue = below.value; + if (above != undefined && newValue >= above.value) newValue = above.value; + } + + slider.setValue(index, newValue, false); + slider.fireEvent('drag', slider, e, this); + }, + + getNewValue: function() { + var slider = this.slider, + pos = slider.innerEl.translatePoints(this.tracker.getXY()); + + return Ext.util.Format.round(slider.reverseValue(pos.left), slider.decimalPrecision); + }, + + /** + * @private + * This is tied to the internal Ext.dd.DragTracker's onEnd template method. Removes the drag CSS class and + * fires the 'changecomplete' event with the new value + */ + onDragEnd: function(e) { + var slider = this.slider, + value = this.value; + + this.el.removeClass('x-slider-thumb-drag'); + + this.dragging = false; + slider.fireEvent('dragend', slider, e); + + if (this.dragStartValue != value) { + slider.fireEvent('changecomplete', slider, value, this); + } + } +}); + +/** + * @class Ext.slider.MultiSlider + * @extends Ext.BoxComponent + * Slider which supports vertical or horizontal orientation, keyboard adjustments, configurable snapping, axis clicking and animation. Can be added as an item to any container. Example usage: +
      +new Ext.Slider({
      +    renderTo: Ext.getBody(),
      +    width: 200,
      +    value: 50,
      +    increment: 10,
      +    minValue: 0,
      +    maxValue: 100
      +});
      +
      + * Sliders can be created with more than one thumb handle by passing an array of values instead of a single one: +
      +new Ext.Slider({
      +    renderTo: Ext.getBody(),
      +    width: 200,
      +    values: [25, 50, 75],
      +    minValue: 0,
      +    maxValue: 100,
      +
      +    //this defaults to true, setting to false allows the thumbs to pass each other
      +    {@link #constrainThumbs}: false
      +});
      +
      + */ +Ext.slider.MultiSlider = Ext.extend(Ext.BoxComponent, { + /** + * @cfg {Number} value The value to initialize the slider with. Defaults to minValue. + */ + /** + * @cfg {Boolean} vertical Orient the Slider vertically rather than horizontally, defaults to false. + */ + vertical: false, + /** + * @cfg {Number} minValue The minimum value for the Slider. Defaults to 0. + */ + minValue: 0, + /** + * @cfg {Number} maxValue The maximum value for the Slider. Defaults to 100. + */ + maxValue: 100, + /** + * @cfg {Number/Boolean} decimalPrecision. + *

      The number of decimal places to which to round the Slider's value. Defaults to 0.

      + *

      To disable rounding, configure as false.

      + */ + decimalPrecision: 0, + /** + * @cfg {Number} keyIncrement How many units to change the Slider when adjusting with keyboard navigation. Defaults to 1. If the increment config is larger, it will be used instead. + */ + keyIncrement: 1, + /** + * @cfg {Number} increment How many units to change the slider when adjusting by drag and drop. Use this option to enable 'snapping'. + */ + increment: 0, + + /** + * @private + * @property clickRange + * @type Array + * Determines whether or not a click to the slider component is considered to be a user request to change the value. Specified as an array of [top, bottom], + * the click event's 'top' property is compared to these numbers and the click only considered a change request if it falls within them. e.g. if the 'top' + * value of the click event is 4 or 16, the click is not considered a change request as it falls outside of the [5, 15] range + */ + clickRange: [5,15], + + /** + * @cfg {Boolean} clickToChange Determines whether or not clicking on the Slider axis will change the slider. Defaults to true + */ + clickToChange : true, + /** + * @cfg {Boolean} animate Turn on or off animation. Defaults to true + */ + animate: true, + + /** + * True while the thumb is in a drag operation + * @type Boolean + */ + dragging: false, + + /** + * @cfg {Boolean} constrainThumbs True to disallow thumbs from overlapping one another. Defaults to true + */ + constrainThumbs: true, + + /** + * @private + * @property topThumbZIndex + * @type Number + * The number used internally to set the z index of the top thumb (see promoteThumb for details) + */ + topThumbZIndex: 10000, + + // private override + initComponent : function(){ + if(!Ext.isDefined(this.value)){ + this.value = this.minValue; + } + + /** + * @property thumbs + * @type Array + * Array containing references to each thumb + */ + this.thumbs = []; + + Ext.slider.MultiSlider.superclass.initComponent.call(this); + + this.keyIncrement = Math.max(this.increment, this.keyIncrement); + this.addEvents( + /** + * @event beforechange + * Fires before the slider value is changed. By returning false from an event handler, + * you can cancel the event and prevent the slider from changing. + * @param {Ext.Slider} slider The slider + * @param {Number} newValue The new value which the slider is being changed to. + * @param {Number} oldValue The old value which the slider was previously. + */ + 'beforechange', + + /** + * @event change + * Fires when the slider value is changed. + * @param {Ext.Slider} slider The slider + * @param {Number} newValue The new value which the slider has been changed to. + * @param {Ext.slider.Thumb} thumb The thumb that was changed + */ + 'change', + + /** + * @event changecomplete + * Fires when the slider value is changed by the user and any drag operations have completed. + * @param {Ext.Slider} slider The slider + * @param {Number} newValue The new value which the slider has been changed to. + * @param {Ext.slider.Thumb} thumb The thumb that was changed + */ + 'changecomplete', + + /** + * @event dragstart + * Fires after a drag operation has started. + * @param {Ext.Slider} slider The slider + * @param {Ext.EventObject} e The event fired from Ext.dd.DragTracker + */ + 'dragstart', + + /** + * @event drag + * Fires continuously during the drag operation while the mouse is moving. + * @param {Ext.Slider} slider The slider + * @param {Ext.EventObject} e The event fired from Ext.dd.DragTracker + */ + 'drag', + + /** + * @event dragend + * Fires after the drag operation has completed. + * @param {Ext.Slider} slider The slider + * @param {Ext.EventObject} e The event fired from Ext.dd.DragTracker + */ + 'dragend' + ); + + /** + * @property values + * @type Array + * Array of values to initalize the thumbs with + */ + if (this.values == undefined || Ext.isEmpty(this.values)) this.values = [0]; + + var values = this.values; + + for (var i=0; i < values.length; i++) { + this.addThumb(values[i]); + } + + if(this.vertical){ + Ext.apply(this, Ext.slider.Vertical); + } + }, + + /** + * Creates a new thumb and adds it to the slider + * @param {Number} value The initial value to set on the thumb. Defaults to 0 + */ + addThumb: function(value) { + var thumb = new Ext.slider.Thumb({ + value : value, + slider : this, + index : this.thumbs.length, + constrain: this.constrainThumbs + }); + this.thumbs.push(thumb); + + //render the thumb now if needed + if (this.rendered) thumb.render(); + }, + + /** + * @private + * Moves the given thumb above all other by increasing its z-index. This is called when as drag + * any thumb, so that the thumb that was just dragged is always at the highest z-index. This is + * required when the thumbs are stacked on top of each other at one of the ends of the slider's + * range, which can result in the user not being able to move any of them. + * @param {Ext.slider.Thumb} topThumb The thumb to move to the top + */ + promoteThumb: function(topThumb) { + var thumbs = this.thumbs, + zIndex, thumb; + + for (var i = 0, j = thumbs.length; i < j; i++) { + thumb = thumbs[i]; + + if (thumb == topThumb) { + zIndex = this.topThumbZIndex; + } else { + zIndex = ''; + } + + thumb.el.setStyle('zIndex', zIndex); + } + }, + + // private override + onRender : function() { + this.autoEl = { + cls: 'x-slider ' + (this.vertical ? 'x-slider-vert' : 'x-slider-horz'), + cn : { + cls: 'x-slider-end', + cn : { + cls:'x-slider-inner', + cn : [{tag:'a', cls:'x-slider-focus', href:"#", tabIndex: '-1', hidefocus:'on'}] + } + } + }; + + Ext.slider.MultiSlider.superclass.onRender.apply(this, arguments); + + this.endEl = this.el.first(); + this.innerEl = this.endEl.first(); + this.focusEl = this.innerEl.child('.x-slider-focus'); + + //render each thumb + for (var i=0; i < this.thumbs.length; i++) { + this.thumbs[i].render(); + } + + //calculate the size of half a thumb + var thumb = this.innerEl.child('.x-slider-thumb'); + this.halfThumb = (this.vertical ? thumb.getHeight() : thumb.getWidth()) / 2; + + this.initEvents(); + }, + + /** + * @private + * Adds keyboard and mouse listeners on this.el. Ignores click events on the internal focus element. + * Creates a new DragTracker which is used to control what happens when the user drags the thumb around. + */ + initEvents : function(){ + this.mon(this.el, { + scope : this, + mousedown: this.onMouseDown, + keydown : this.onKeyDown + }); + + this.focusEl.swallowEvent("click", true); + }, + + /** + * @private + * Mousedown handler for the slider. If the clickToChange is enabled and the click was not on the draggable 'thumb', + * this calculates the new value of the slider and tells the implementation (Horizontal or Vertical) to move the thumb + * @param {Ext.EventObject} e The click event + */ + onMouseDown : function(e){ + if(this.disabled){ + return; + } + + //see if the click was on any of the thumbs + var thumbClicked = false; + for (var i=0; i < this.thumbs.length; i++) { + thumbClicked = thumbClicked || e.target == this.thumbs[i].el.dom; + } + + if (this.clickToChange && !thumbClicked) { + var local = this.innerEl.translatePoints(e.getXY()); + this.onClickChange(local); + } + this.focus(); + }, + + /** + * @private + * Moves the thumb to the indicated position. Note that a Vertical implementation is provided in Ext.slider.Vertical. + * Only changes the value if the click was within this.clickRange. + * @param {Object} local Object containing top and left values for the click event. + */ + onClickChange : function(local) { + if (local.top > this.clickRange[0] && local.top < this.clickRange[1]) { + //find the nearest thumb to the click event + var thumb = this.getNearest(local, 'left'), + index = thumb.index; + + this.setValue(index, Ext.util.Format.round(this.reverseValue(local.left), this.decimalPrecision), undefined, true); + } + }, + + /** + * @private + * Returns the nearest thumb to a click event, along with its distance + * @param {Object} local Object containing top and left values from a click event + * @param {String} prop The property of local to compare on. Use 'left' for horizontal sliders, 'top' for vertical ones + * @return {Object} The closest thumb object and its distance from the click event + */ + getNearest: function(local, prop) { + var localValue = prop == 'top' ? this.innerEl.getHeight() - local[prop] : local[prop], + clickValue = this.reverseValue(localValue), + nearestDistance = (this.maxValue - this.minValue) + 5, //add a small fudge for the end of the slider + index = 0, + nearest = null; + + for (var i=0; i < this.thumbs.length; i++) { + var thumb = this.thumbs[i], + value = thumb.value, + dist = Math.abs(value - clickValue); + + if (Math.abs(dist <= nearestDistance)) { + nearest = thumb; + index = i; + nearestDistance = dist; + } + } + return nearest; + }, + + /** + * @private + * Handler for any keypresses captured by the slider. If the key is UP or RIGHT, the thumb is moved along to the right + * by this.keyIncrement. If DOWN or LEFT it is moved left. Pressing CTRL moves the slider to the end in either direction + * @param {Ext.EventObject} e The Event object + */ + onKeyDown : function(e){ + /* + * The behaviour for keyboard handling with multiple thumbs is currently undefined. + * There's no real sane default for it, so leave it like this until we come up + * with a better way of doing it. + */ + if(this.disabled || this.thumbs.length !== 1){ + e.preventDefault(); + return; + } + var k = e.getKey(), + val; + switch(k){ + case e.UP: + case e.RIGHT: + e.stopEvent(); + val = e.ctrlKey ? this.maxValue : this.getValue(0) + this.keyIncrement; + this.setValue(0, val, undefined, true); + break; + case e.DOWN: + case e.LEFT: + e.stopEvent(); + val = e.ctrlKey ? this.minValue : this.getValue(0) - this.keyIncrement; + this.setValue(0, val, undefined, true); + break; + default: + e.preventDefault(); + } + }, + + /** + * @private + * If using snapping, this takes a desired new value and returns the closest snapped + * value to it + * @param {Number} value The unsnapped value + * @return {Number} The value of the nearest snap target + */ + doSnap : function(value){ + if (!(this.increment && value)) { + return value; + } + var newValue = value, + inc = this.increment, + m = value % inc; + if (m != 0) { + newValue -= m; + if (m * 2 >= inc) { + newValue += inc; + } else if (m * 2 < -inc) { + newValue -= inc; + } + } + return newValue.constrain(this.minValue, this.maxValue); + }, + + // private + afterRender : function(){ + Ext.slider.MultiSlider.superclass.afterRender.apply(this, arguments); + + for (var i=0; i < this.thumbs.length; i++) { + var thumb = this.thumbs[i]; + + if (thumb.value !== undefined) { + var v = this.normalizeValue(thumb.value); + + if (v !== thumb.value) { + // delete this.value; + this.setValue(i, v, false); + } else { + this.moveThumb(i, this.translateValue(v), false); + } + } + }; + }, + + /** + * @private + * Returns the ratio of pixels to mapped values. e.g. if the slider is 200px wide and maxValue - minValue is 100, + * the ratio is 2 + * @return {Number} The ratio of pixels to mapped values + */ + getRatio : function(){ + var w = this.innerEl.getWidth(), + v = this.maxValue - this.minValue; + return v == 0 ? w : (w/v); + }, + + /** + * @private + * Returns a snapped, constrained value when given a desired value + * @param {Number} value Raw number value + * @return {Number} The raw value rounded to the correct d.p. and constrained within the set max and min values + */ + normalizeValue : function(v){ + v = this.doSnap(v); + v = Ext.util.Format.round(v, this.decimalPrecision); + v = v.constrain(this.minValue, this.maxValue); + return v; + }, + + /** + * Sets the minimum value for the slider instance. If the current value is less than the + * minimum value, the current value will be changed. + * @param {Number} val The new minimum value + */ + setMinValue : function(val){ + this.minValue = val; + var i = 0, + thumbs = this.thumbs, + len = thumbs.length, + t; + + for(; i < len; ++i){ + t = thumbs[i]; + t.value = t.value < val ? val : t.value; + } + this.syncThumb(); + }, + + /** + * Sets the maximum value for the slider instance. If the current value is more than the + * maximum value, the current value will be changed. + * @param {Number} val The new maximum value + */ + setMaxValue : function(val){ + this.maxValue = val; + var i = 0, + thumbs = this.thumbs, + len = thumbs.length, + t; + + for(; i < len; ++i){ + t = thumbs[i]; + t.value = t.value > val ? val : t.value; + } + this.syncThumb(); + }, + + /** + * Programmatically sets the value of the Slider. Ensures that the value is constrained within + * the minValue and maxValue. + * @param {Number} index Index of the thumb to move + * @param {Number} value The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param {Boolean} animate Turn on or off animation, defaults to true + */ + setValue : function(index, v, animate, changeComplete) { + var thumb = this.thumbs[index], + el = thumb.el; + + v = this.normalizeValue(v); + + if (v !== thumb.value && this.fireEvent('beforechange', this, v, thumb.value, thumb) !== false) { + thumb.value = v; + if(this.rendered){ + this.moveThumb(index, this.translateValue(v), animate !== false); + this.fireEvent('change', this, v, thumb); + if(changeComplete){ + this.fireEvent('changecomplete', this, v, thumb); + } + } + } + }, + + /** + * @private + */ + translateValue : function(v) { + var ratio = this.getRatio(); + return (v * ratio) - (this.minValue * ratio) - this.halfThumb; + }, + + /** + * @private + * Given a pixel location along the slider, returns the mapped slider value for that pixel. + * E.g. if we have a slider 200px wide with minValue = 100 and maxValue = 500, reverseValue(50) + * returns 200 + * @param {Number} pos The position along the slider to return a mapped value for + * @return {Number} The mapped value for the given position + */ + reverseValue : function(pos){ + var ratio = this.getRatio(); + return (pos + (this.minValue * ratio)) / ratio; + }, + + /** + * @private + * @param {Number} index Index of the thumb to move + */ + moveThumb: function(index, v, animate){ + var thumb = this.thumbs[index].el; + + if(!animate || this.animate === false){ + thumb.setLeft(v); + }else{ + thumb.shift({left: v, stopFx: true, duration:.35}); + } + }, + + // private + focus : function(){ + this.focusEl.focus(10); + }, + + // private + onResize : function(w, h){ + var thumbs = this.thumbs, + len = thumbs.length, + i = 0; + + /* + * If we happen to be animating during a resize, the position of the thumb will likely be off + * when the animation stops. As such, just stop any animations before syncing the thumbs. + */ + for(; i < len; ++i){ + thumbs[i].el.stopFx(); + } + this.innerEl.setWidth(w - (this.el.getPadding('l') + this.endEl.getPadding('r'))); + this.syncThumb(); + Ext.slider.MultiSlider.superclass.onResize.apply(this, arguments); + }, + + //private + onDisable: function(){ + Ext.slider.MultiSlider.superclass.onDisable.call(this); + + for (var i=0; i < this.thumbs.length; i++) { + var thumb = this.thumbs[i], + el = thumb.el; + + thumb.disable(); + + if(Ext.isIE){ + //IE breaks when using overflow visible and opacity other than 1. + //Create a place holder for the thumb and display it. + var xy = el.getXY(); + el.hide(); + + this.innerEl.addClass(this.disabledClass).dom.disabled = true; + + if (!this.thumbHolder) { + this.thumbHolder = this.endEl.createChild({cls: 'x-slider-thumb ' + this.disabledClass}); + } + + this.thumbHolder.show().setXY(xy); + } + } + }, + + //private + onEnable: function(){ + Ext.slider.MultiSlider.superclass.onEnable.call(this); + + for (var i=0; i < this.thumbs.length; i++) { + var thumb = this.thumbs[i], + el = thumb.el; + + thumb.enable(); + + if (Ext.isIE) { + this.innerEl.removeClass(this.disabledClass).dom.disabled = false; + + if (this.thumbHolder) this.thumbHolder.hide(); + + el.show(); + this.syncThumb(); + } + } + }, + + /** + * Synchronizes the thumb position to the proper proportion of the total component width based + * on the current slider {@link #value}. This will be called automatically when the Slider + * is resized by a layout, but if it is rendered auto width, this method can be called from + * another resize handler to sync the Slider if necessary. + */ + syncThumb : function() { + if (this.rendered) { + for (var i=0; i < this.thumbs.length; i++) { + this.moveThumb(i, this.translateValue(this.thumbs[i].value)); + } + } + }, + + /** + * Returns the current value of the slider + * @param {Number} index The index of the thumb to return a value for + * @return {Number} The current value of the slider + */ + getValue : function(index) { + return this.thumbs[index].value; + }, + + /** + * Returns an array of values - one for the location of each thumb + * @return {Array} The set of thumb values + */ + getValues: function() { + var values = []; + + for (var i=0; i < this.thumbs.length; i++) { + values.push(this.thumbs[i].value); + } + + return values; + }, + + // private + beforeDestroy : function(){ + Ext.destroyMembers(this, 'endEl', 'innerEl', 'thumb', 'halfThumb', 'focusEl', 'tracker', 'thumbHolder'); + Ext.slider.MultiSlider.superclass.beforeDestroy.call(this); + } +}); + +Ext.reg('multislider', Ext.slider.MultiSlider); + +/** + * @class Ext.slider.SingleSlider + * @extends Ext.slider.MultiSlider + * Slider which supports vertical or horizontal orientation, keyboard adjustments, + * configurable snapping, axis clicking and animation. Can be added as an item to + * any container. Example usage: +
      
      +new Ext.slider.SingleSlider({
      +    renderTo: Ext.getBody(),
      +    width: 200,
      +    value: 50,
      +    increment: 10,
      +    minValue: 0,
      +    maxValue: 100
      +});
      +
      + * The class Ext.slider.SingleSlider is aliased to Ext.Slider for backwards compatibility. + */ +Ext.slider.SingleSlider = Ext.extend(Ext.slider.MultiSlider, { + constructor: function(config) { + config = config || {}; + + Ext.applyIf(config, { + values: [config.value || 0] + }); + + Ext.slider.SingleSlider.superclass.constructor.call(this, config); + }, + + /** + * Returns the current value of the slider + * @return {Number} The current value of the slider + */ + getValue: function() { + //just returns the value of the first thumb, which should be the only one in a single slider + return Ext.slider.SingleSlider.superclass.getValue.call(this, 0); + }, + + /** + * Programmatically sets the value of the Slider. Ensures that the value is constrained within + * the minValue and maxValue. + * @param {Number} value The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param {Boolean} animate Turn on or off animation, defaults to true + */ + setValue: function(value, animate) { + var args = Ext.toArray(arguments), + len = args.length; + + //this is to maintain backwards compatiblity for sliders with only one thunb. Usually you must pass the thumb + //index to setValue, but if we only have one thumb we inject the index here first if given the multi-slider + //signature without the required index. The index will always be 0 for a single slider + if (len == 1 || (len <= 3 && typeof arguments[1] != 'number')) { + args.unshift(0); + } + + return Ext.slider.SingleSlider.superclass.setValue.apply(this, args); + }, + + /** + * Synchronizes the thumb position to the proper proportion of the total component width based + * on the current slider {@link #value}. This will be called automatically when the Slider + * is resized by a layout, but if it is rendered auto width, this method can be called from + * another resize handler to sync the Slider if necessary. + */ + syncThumb : function() { + return Ext.slider.SingleSlider.superclass.syncThumb.apply(this, [0].concat(arguments)); + }, + + // private + getNearest : function(){ + // Since there's only 1 thumb, it's always the nearest + return this.thumbs[0]; + } +}); + +//backwards compatibility +Ext.Slider = Ext.slider.SingleSlider; + +Ext.reg('slider', Ext.slider.SingleSlider); + +// private class to support vertical sliders +Ext.slider.Vertical = { + onResize : function(w, h){ + this.innerEl.setHeight(h - (this.el.getPadding('t') + this.endEl.getPadding('b'))); + this.syncThumb(); + }, + + getRatio : function(){ + var h = this.innerEl.getHeight(), + v = this.maxValue - this.minValue; + return h/v; + }, + + moveThumb: function(index, v, animate) { + var thumb = this.thumbs[index], + el = thumb.el; + + if (!animate || this.animate === false) { + el.setBottom(v); + } else { + el.shift({bottom: v, stopFx: true, duration:.35}); + } + }, + + onClickChange : function(local) { + if (local.left > this.clickRange[0] && local.left < this.clickRange[1]) { + var thumb = this.getNearest(local, 'top'), + index = thumb.index, + value = this.minValue + this.reverseValue(this.innerEl.getHeight() - local.top); + + this.setValue(index, Ext.util.Format.round(value, this.decimalPrecision), undefined, true); + } + } +}; + +//private class to support vertical dragging of thumbs within a slider +Ext.slider.Thumb.Vertical = { + getNewValue: function() { + var slider = this.slider, + innerEl = slider.innerEl, + pos = innerEl.translatePoints(this.tracker.getXY()), + bottom = innerEl.getHeight() - pos.top; + + return slider.minValue + Ext.util.Format.round(bottom / slider.getRatio(), slider.decimalPrecision); + } +}; +/** + * @class Ext.ProgressBar + * @extends Ext.BoxComponent + *

      An updateable progress bar component. The progress bar supports two different modes: manual and automatic.

      + *

      In manual mode, you are responsible for showing, updating (via {@link #updateProgress}) and clearing the + * progress bar as needed from your own code. This method is most appropriate when you want to show progress + * throughout an operation that has predictable points of interest at which you can update the control.

      + *

      In automatic mode, you simply call {@link #wait} and let the progress bar run indefinitely, only clearing it + * once the operation is complete. You can optionally have the progress bar wait for a specific amount of time + * and then clear itself. Automatic mode is most appropriate for timed operations or asynchronous operations in + * which you have no need for indicating intermediate progress.

      + * @cfg {Float} value A floating point value between 0 and 1 (e.g., .5, defaults to 0) + * @cfg {String} text The progress bar text (defaults to '') + * @cfg {Mixed} textEl The element to render the progress text to (defaults to the progress + * bar's internal text element) + * @cfg {String} id The progress bar element's id (defaults to an auto-generated id) + * @xtype progress + */ +Ext.ProgressBar = Ext.extend(Ext.BoxComponent, { + /** + * @cfg {String} baseCls + * The base CSS class to apply to the progress bar's wrapper element (defaults to 'x-progress') + */ + baseCls : 'x-progress', + + /** + * @cfg {Boolean} animate + * True to animate the progress bar during transitions (defaults to false) + */ + animate : false, + + // private + waitTimer : null, + + // private + initComponent : function(){ + Ext.ProgressBar.superclass.initComponent.call(this); + this.addEvents( + /** + * @event update + * Fires after each update interval + * @param {Ext.ProgressBar} this + * @param {Number} The current progress value + * @param {String} The current progress text + */ + "update" + ); + }, + + // private + onRender : function(ct, position){ + var tpl = new Ext.Template( + '
      ', + '
      ', + '
      ', + '
      ', + '
       
      ', + '
      ', + '
      ', + '
      ', + '
       
      ', + '
      ', + '
      ', + '
      ' + ); + + this.el = position ? tpl.insertBefore(position, {cls: this.baseCls}, true) + : tpl.append(ct, {cls: this.baseCls}, true); + + if(this.id){ + this.el.dom.id = this.id; + } + var inner = this.el.dom.firstChild; + this.progressBar = Ext.get(inner.firstChild); + + if(this.textEl){ + //use an external text el + this.textEl = Ext.get(this.textEl); + delete this.textTopEl; + }else{ + //setup our internal layered text els + this.textTopEl = Ext.get(this.progressBar.dom.firstChild); + var textBackEl = Ext.get(inner.childNodes[1]); + this.textTopEl.setStyle("z-index", 99).addClass('x-hidden'); + this.textEl = new Ext.CompositeElement([this.textTopEl.dom.firstChild, textBackEl.dom.firstChild]); + this.textEl.setWidth(inner.offsetWidth); + } + this.progressBar.setHeight(inner.offsetHeight); + }, + + // private + afterRender : function(){ + Ext.ProgressBar.superclass.afterRender.call(this); + if(this.value){ + this.updateProgress(this.value, this.text); + }else{ + this.updateText(this.text); + } + }, + + /** + * Updates the progress bar value, and optionally its text. If the text argument is not specified, + * any existing text value will be unchanged. To blank out existing text, pass ''. Note that even + * if the progress bar value exceeds 1, it will never automatically reset -- you are responsible for + * determining when the progress is complete and calling {@link #reset} to clear and/or hide the control. + * @param {Float} value (optional) A floating point value between 0 and 1 (e.g., .5, defaults to 0) + * @param {String} text (optional) The string to display in the progress text element (defaults to '') + * @param {Boolean} animate (optional) Whether to animate the transition of the progress bar. If this value is + * not specified, the default for the class is used (default to false) + * @return {Ext.ProgressBar} this + */ + updateProgress : function(value, text, animate){ + this.value = value || 0; + if(text){ + this.updateText(text); + } + if(this.rendered && !this.isDestroyed){ + var w = Math.floor(value*this.el.dom.firstChild.offsetWidth); + this.progressBar.setWidth(w, animate === true || (animate !== false && this.animate)); + if(this.textTopEl){ + //textTopEl should be the same width as the bar so overflow will clip as the bar moves + this.textTopEl.removeClass('x-hidden').setWidth(w); + } + } + this.fireEvent('update', this, value, text); + return this; + }, + + /** + * Initiates an auto-updating progress bar. A duration can be specified, in which case the progress + * bar will automatically reset after a fixed amount of time and optionally call a callback function + * if specified. If no duration is passed in, then the progress bar will run indefinitely and must + * be manually cleared by calling {@link #reset}. The wait method accepts a config object with + * the following properties: + *
      +Property   Type          Description
      +---------- ------------  ----------------------------------------------------------------------
      +duration   Number        The length of time in milliseconds that the progress bar should
      +                         run before resetting itself (defaults to undefined, in which case it
      +                         will run indefinitely until reset is called)
      +interval   Number        The length of time in milliseconds between each progress update
      +                         (defaults to 1000 ms)
      +animate    Boolean       Whether to animate the transition of the progress bar. If this value is
      +                         not specified, the default for the class is used.                                                   
      +increment  Number        The number of progress update segments to display within the progress
      +                         bar (defaults to 10).  If the bar reaches the end and is still
      +                         updating, it will automatically wrap back to the beginning.
      +text       String        Optional text to display in the progress bar element (defaults to '').
      +fn         Function      A callback function to execute after the progress bar finishes auto-
      +                         updating.  The function will be called with no arguments.  This function
      +                         will be ignored if duration is not specified since in that case the
      +                         progress bar can only be stopped programmatically, so any required function
      +                         should be called by the same code after it resets the progress bar.
      +scope      Object        The scope that is passed to the callback function (only applies when
      +                         duration and fn are both passed).
      +
      + * + * Example usage: + *
      
      +var p = new Ext.ProgressBar({
      +   renderTo: 'my-el'
      +});
      +
      +//Wait for 5 seconds, then update the status el (progress bar will auto-reset)
      +p.wait({
      +   interval: 100, //bar will move fast!
      +   duration: 5000,
      +   increment: 15,
      +   text: 'Updating...',
      +   scope: this,
      +   fn: function(){
      +      Ext.fly('status').update('Done!');
      +   }
      +});
      +
      +//Or update indefinitely until some async action completes, then reset manually
      +p.wait();
      +myAction.on('complete', function(){
      +    p.reset();
      +    Ext.fly('status').update('Done!');
      +});
      +
      + * @param {Object} config (optional) Configuration options + * @return {Ext.ProgressBar} this + */ + wait : function(o){ + if(!this.waitTimer){ + var scope = this; + o = o || {}; + this.updateText(o.text); + this.waitTimer = Ext.TaskMgr.start({ + run: function(i){ + var inc = o.increment || 10; + i -= 1; + this.updateProgress(((((i+inc)%inc)+1)*(100/inc))*0.01, null, o.animate); + }, + interval: o.interval || 1000, + duration: o.duration, + onStop: function(){ + if(o.fn){ + o.fn.apply(o.scope || this); + } + this.reset(); + }, + scope: scope + }); + } + return this; + }, + + /** + * Returns true if the progress bar is currently in a {@link #wait} operation + * @return {Boolean} True if waiting, else false + */ + isWaiting : function(){ + return this.waitTimer !== null; + }, + + /** + * Updates the progress bar text. If specified, textEl will be updated, otherwise the progress + * bar itself will display the updated text. + * @param {String} text (optional) The string to display in the progress text element (defaults to '') + * @return {Ext.ProgressBar} this + */ + updateText : function(text){ + this.text = text || ' '; + if(this.rendered){ + this.textEl.update(this.text); + } + return this; + }, + + /** + * Synchronizes the inner bar width to the proper proportion of the total componet width based + * on the current progress {@link #value}. This will be called automatically when the ProgressBar + * is resized by a layout, but if it is rendered auto width, this method can be called from + * another resize handler to sync the ProgressBar if necessary. + */ + syncProgressBar : function(){ + if(this.value){ + this.updateProgress(this.value, this.text); + } + return this; + }, + + /** + * Sets the size of the progress bar. + * @param {Number} width The new width in pixels + * @param {Number} height The new height in pixels + * @return {Ext.ProgressBar} this + */ + setSize : function(w, h){ + Ext.ProgressBar.superclass.setSize.call(this, w, h); + if(this.textTopEl){ + var inner = this.el.dom.firstChild; + this.textEl.setSize(inner.offsetWidth, inner.offsetHeight); + } + this.syncProgressBar(); + return this; + }, + + /** + * Resets the progress bar value to 0 and text to empty string. If hide = true, the progress + * bar will also be hidden (using the {@link #hideMode} property internally). + * @param {Boolean} hide (optional) True to hide the progress bar (defaults to false) + * @return {Ext.ProgressBar} this + */ + reset : function(hide){ + this.updateProgress(0); + if(this.textTopEl){ + this.textTopEl.addClass('x-hidden'); + } + this.clearTimer(); + if(hide === true){ + this.hide(); + } + return this; + }, + + // private + clearTimer : function(){ + if(this.waitTimer){ + this.waitTimer.onStop = null; //prevent recursion + Ext.TaskMgr.stop(this.waitTimer); + this.waitTimer = null; + } + }, + + onDestroy: function(){ + this.clearTimer(); + if(this.rendered){ + if(this.textEl.isComposite){ + this.textEl.clear(); + } + Ext.destroyMembers(this, 'textEl', 'progressBar', 'textTopEl'); + } + Ext.ProgressBar.superclass.onDestroy.call(this); + } +}); +Ext.reg('progress', Ext.ProgressBar);/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * These classes are derivatives of the similarly named classes in the YUI Library. + * The original license: + * Copyright (c) 2006, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.net/yui/license.txt + */ + +(function() { + +var Event=Ext.EventManager; +var Dom=Ext.lib.Dom; + +/** + * @class Ext.dd.DragDrop + * Defines the interface and base operation of items that that can be + * dragged or can be drop targets. It was designed to be extended, overriding + * the event handlers for startDrag, onDrag, onDragOver and onDragOut. + * Up to three html elements can be associated with a DragDrop instance: + *
        + *
      • linked element: the element that is passed into the constructor. + * This is the element which defines the boundaries for interaction with + * other DragDrop objects.
      • + *
      • handle element(s): The drag operation only occurs if the element that + * was clicked matches a handle element. By default this is the linked + * element, but there are times that you will want only a portion of the + * linked element to initiate the drag operation, and the setHandleElId() + * method provides a way to define this.
      • + *
      • drag element: this represents the element that would be moved along + * with the cursor during a drag operation. By default, this is the linked + * element itself as in {@link Ext.dd.DD}. setDragElId() lets you define + * a separate element that would be moved, as in {@link Ext.dd.DDProxy}. + *
      • + *
      + * This class should not be instantiated until the onload event to ensure that + * the associated elements are available. + * The following would define a DragDrop obj that would interact with any + * other DragDrop obj in the "group1" group: + *
      + *  dd = new Ext.dd.DragDrop("div1", "group1");
      + * 
      + * Since none of the event handlers have been implemented, nothing would + * actually happen if you were to run the code above. Normally you would + * override this class or one of the default implementations, but you can + * also override the methods you want on an instance of the class... + *
      + *  dd.onDragDrop = function(e, id) {
      + *    alert("dd was dropped on " + id);
      + *  }
      + * 
      + * @constructor + * @param {String} id of the element that is linked to this instance + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DragDrop: + * padding, isTarget, maintainOffset, primaryButtonOnly + */ +Ext.dd.DragDrop = function(id, sGroup, config) { + if(id) { + this.init(id, sGroup, config); + } +}; + +Ext.dd.DragDrop.prototype = { + + /** + * Set to false to enable a DragDrop object to fire drag events while dragging + * over its own Element. Defaults to true - DragDrop objects do not by default + * fire drag events to themselves. + * @property ignoreSelf + * @type Boolean + */ + + /** + * The id of the element associated with this object. This is what we + * refer to as the "linked element" because the size and position of + * this element is used to determine when the drag and drop objects have + * interacted. + * @property id + * @type String + */ + id: null, + + /** + * Configuration attributes passed into the constructor + * @property config + * @type object + */ + config: null, + + /** + * The id of the element that will be dragged. By default this is same + * as the linked element, but could be changed to another element. Ex: + * Ext.dd.DDProxy + * @property dragElId + * @type String + * @private + */ + dragElId: null, + + /** + * The ID of the element that initiates the drag operation. By default + * this is the linked element, but could be changed to be a child of this + * element. This lets us do things like only starting the drag when the + * header element within the linked html element is clicked. + * @property handleElId + * @type String + * @private + */ + handleElId: null, + + /** + * An object who's property names identify HTML tags to be considered invalid as drag handles. + * A non-null property value identifies the tag as invalid. Defaults to the + * following value which prevents drag operations from being initiated by <a> elements:
      
      +{
      +    A: "A"
      +}
      + * @property invalidHandleTypes + * @type Object + */ + invalidHandleTypes: null, + + /** + * An object who's property names identify the IDs of elements to be considered invalid as drag handles. + * A non-null property value identifies the ID as invalid. For example, to prevent + * dragging from being initiated on element ID "foo", use:
      
      +{
      +    foo: true
      +}
      + * @property invalidHandleIds + * @type Object + */ + invalidHandleIds: null, + + /** + * An Array of CSS class names for elements to be considered in valid as drag handles. + * @property invalidHandleClasses + * @type Array + */ + invalidHandleClasses: null, + + /** + * The linked element's absolute X position at the time the drag was + * started + * @property startPageX + * @type int + * @private + */ + startPageX: 0, + + /** + * The linked element's absolute X position at the time the drag was + * started + * @property startPageY + * @type int + * @private + */ + startPageY: 0, + + /** + * The group defines a logical collection of DragDrop objects that are + * related. Instances only get events when interacting with other + * DragDrop object in the same group. This lets us define multiple + * groups using a single DragDrop subclass if we want. + * @property groups + * @type object An object in the format {'group1':true, 'group2':true} + */ + groups: null, + + /** + * Individual drag/drop instances can be locked. This will prevent + * onmousedown start drag. + * @property locked + * @type boolean + * @private + */ + locked: false, + + /** + * Lock this instance + * @method lock + */ + lock: function() { + this.locked = true; + }, + + /** + * When set to true, other DD objects in cooperating DDGroups do not receive + * notification events when this DD object is dragged over them. Defaults to false. + * @property moveOnly + * @type boolean + */ + moveOnly: false, + + /** + * Unlock this instace + * @method unlock + */ + unlock: function() { + this.locked = false; + }, + + /** + * By default, all instances can be a drop target. This can be disabled by + * setting isTarget to false. + * @property isTarget + * @type boolean + */ + isTarget: true, + + /** + * The padding configured for this drag and drop object for calculating + * the drop zone intersection with this object. + * @property padding + * @type int[] An array containing the 4 padding values: [top, right, bottom, left] + */ + padding: null, + + /** + * Cached reference to the linked element + * @property _domRef + * @private + */ + _domRef: null, + + /** + * Internal typeof flag + * @property __ygDragDrop + * @private + */ + __ygDragDrop: true, + + /** + * Set to true when horizontal contraints are applied + * @property constrainX + * @type boolean + * @private + */ + constrainX: false, + + /** + * Set to true when vertical contraints are applied + * @property constrainY + * @type boolean + * @private + */ + constrainY: false, + + /** + * The left constraint + * @property minX + * @type int + * @private + */ + minX: 0, + + /** + * The right constraint + * @property maxX + * @type int + * @private + */ + maxX: 0, + + /** + * The up constraint + * @property minY + * @type int + * @private + */ + minY: 0, + + /** + * The down constraint + * @property maxY + * @type int + * @private + */ + maxY: 0, + + /** + * Maintain offsets when we resetconstraints. Set to true when you want + * the position of the element relative to its parent to stay the same + * when the page changes + * + * @property maintainOffset + * @type boolean + */ + maintainOffset: false, + + /** + * Array of pixel locations the element will snap to if we specified a + * horizontal graduation/interval. This array is generated automatically + * when you define a tick interval. + * @property xTicks + * @type int[] + */ + xTicks: null, + + /** + * Array of pixel locations the element will snap to if we specified a + * vertical graduation/interval. This array is generated automatically + * when you define a tick interval. + * @property yTicks + * @type int[] + */ + yTicks: null, + + /** + * By default the drag and drop instance will only respond to the primary + * button click (left button for a right-handed mouse). Set to true to + * allow drag and drop to start with any mouse click that is propogated + * by the browser + * @property primaryButtonOnly + * @type boolean + */ + primaryButtonOnly: true, + + /** + * The available property is false until the linked dom element is accessible. + * @property available + * @type boolean + */ + available: false, + + /** + * By default, drags can only be initiated if the mousedown occurs in the + * region the linked element is. This is done in part to work around a + * bug in some browsers that mis-report the mousedown if the previous + * mouseup happened outside of the window. This property is set to true + * if outer handles are defined. + * + * @property hasOuterHandles + * @type boolean + * @default false + */ + hasOuterHandles: false, + + /** + * Code that executes immediately before the startDrag event + * @method b4StartDrag + * @private + */ + b4StartDrag: function(x, y) { }, + + /** + * Abstract method called after a drag/drop object is clicked + * and the drag or mousedown time thresholds have beeen met. + * @method startDrag + * @param {int} X click location + * @param {int} Y click location + */ + startDrag: function(x, y) { /* override this */ }, + + /** + * Code that executes immediately before the onDrag event + * @method b4Drag + * @private + */ + b4Drag: function(e) { }, + + /** + * Abstract method called during the onMouseMove event while dragging an + * object. + * @method onDrag + * @param {Event} e the mousemove event + */ + onDrag: function(e) { /* override this */ }, + + /** + * Abstract method called when this element fist begins hovering over + * another DragDrop obj + * @method onDragEnter + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this is hovering over. In INTERSECT mode, an array of one or more + * dragdrop items being hovered over. + */ + onDragEnter: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragOver event + * @method b4DragOver + * @private + */ + b4DragOver: function(e) { }, + + /** + * Abstract method called when this element is hovering over another + * DragDrop obj + * @method onDragOver + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this is hovering over. In INTERSECT mode, an array of dd items + * being hovered over. + */ + onDragOver: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragOut event + * @method b4DragOut + * @private + */ + b4DragOut: function(e) { }, + + /** + * Abstract method called when we are no longer hovering over an element + * @method onDragOut + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this was hovering over. In INTERSECT mode, an array of dd items + * that the mouse is no longer over. + */ + onDragOut: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragDrop event + * @method b4DragDrop + * @private + */ + b4DragDrop: function(e) { }, + + /** + * Abstract method called when this item is dropped on another DragDrop + * obj + * @method onDragDrop + * @param {Event} e the mouseup event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this was dropped on. In INTERSECT mode, an array of dd items this + * was dropped on. + */ + onDragDrop: function(e, id) { /* override this */ }, + + /** + * Abstract method called when this item is dropped on an area with no + * drop target + * @method onInvalidDrop + * @param {Event} e the mouseup event + */ + onInvalidDrop: function(e) { /* override this */ }, + + /** + * Code that executes immediately before the endDrag event + * @method b4EndDrag + * @private + */ + b4EndDrag: function(e) { }, + + /** + * Fired when we are done dragging the object + * @method endDrag + * @param {Event} e the mouseup event + */ + endDrag: function(e) { /* override this */ }, + + /** + * Code executed immediately before the onMouseDown event + * @method b4MouseDown + * @param {Event} e the mousedown event + * @private + */ + b4MouseDown: function(e) { }, + + /** + * Event handler that fires when a drag/drop obj gets a mousedown + * @method onMouseDown + * @param {Event} e the mousedown event + */ + onMouseDown: function(e) { /* override this */ }, + + /** + * Event handler that fires when a drag/drop obj gets a mouseup + * @method onMouseUp + * @param {Event} e the mouseup event + */ + onMouseUp: function(e) { /* override this */ }, + + /** + * Override the onAvailable method to do what is needed after the initial + * position was determined. + * @method onAvailable + */ + onAvailable: function () { + }, + + /** + * Provides default constraint padding to "constrainTo" elements (defaults to {left: 0, right:0, top:0, bottom:0}). + * @type Object + */ + defaultPadding : {left:0, right:0, top:0, bottom:0}, + + /** + * Initializes the drag drop object's constraints to restrict movement to a certain element. + * + * Usage: +
      
      + var dd = new Ext.dd.DDProxy("dragDiv1", "proxytest",
      +                { dragElId: "existingProxyDiv" });
      + dd.startDrag = function(){
      +     this.constrainTo("parent-id");
      + };
      + 
      + * Or you can initalize it using the {@link Ext.Element} object: +
      
      + Ext.get("dragDiv1").initDDProxy("proxytest", {dragElId: "existingProxyDiv"}, {
      +     startDrag : function(){
      +         this.constrainTo("parent-id");
      +     }
      + });
      + 
      + * @param {Mixed} constrainTo The element to constrain to. + * @param {Object/Number} pad (optional) Pad provides a way to specify "padding" of the constraints, + * and can be either a number for symmetrical padding (4 would be equal to {left:4, right:4, top:4, bottom:4}) or + * an object containing the sides to pad. For example: {right:10, bottom:10} + * @param {Boolean} inContent (optional) Constrain the draggable in the content box of the element (inside padding and borders) + */ + constrainTo : function(constrainTo, pad, inContent){ + if(Ext.isNumber(pad)){ + pad = {left: pad, right:pad, top:pad, bottom:pad}; + } + pad = pad || this.defaultPadding; + var b = Ext.get(this.getEl()).getBox(), + ce = Ext.get(constrainTo), + s = ce.getScroll(), + c, + cd = ce.dom; + if(cd == document.body){ + c = { x: s.left, y: s.top, width: Ext.lib.Dom.getViewWidth(), height: Ext.lib.Dom.getViewHeight()}; + }else{ + var xy = ce.getXY(); + c = {x : xy[0], y: xy[1], width: cd.clientWidth, height: cd.clientHeight}; + } + + + var topSpace = b.y - c.y, + leftSpace = b.x - c.x; + + this.resetConstraints(); + this.setXConstraint(leftSpace - (pad.left||0), // left + c.width - leftSpace - b.width - (pad.right||0), //right + this.xTickSize + ); + this.setYConstraint(topSpace - (pad.top||0), //top + c.height - topSpace - b.height - (pad.bottom||0), //bottom + this.yTickSize + ); + }, + + /** + * Returns a reference to the linked element + * @method getEl + * @return {HTMLElement} the html element + */ + getEl: function() { + if (!this._domRef) { + this._domRef = Ext.getDom(this.id); + } + + return this._domRef; + }, + + /** + * Returns a reference to the actual element to drag. By default this is + * the same as the html element, but it can be assigned to another + * element. An example of this can be found in Ext.dd.DDProxy + * @method getDragEl + * @return {HTMLElement} the html element + */ + getDragEl: function() { + return Ext.getDom(this.dragElId); + }, + + /** + * Sets up the DragDrop object. Must be called in the constructor of any + * Ext.dd.DragDrop subclass + * @method init + * @param id the id of the linked element + * @param {String} sGroup the group of related items + * @param {object} config configuration attributes + */ + init: function(id, sGroup, config) { + this.initTarget(id, sGroup, config); + Event.on(this.id, "mousedown", this.handleMouseDown, this); + // Event.on(this.id, "selectstart", Event.preventDefault); + }, + + /** + * Initializes Targeting functionality only... the object does not + * get a mousedown handler. + * @method initTarget + * @param id the id of the linked element + * @param {String} sGroup the group of related items + * @param {object} config configuration attributes + */ + initTarget: function(id, sGroup, config) { + + // configuration attributes + this.config = config || {}; + + // create a local reference to the drag and drop manager + this.DDM = Ext.dd.DDM; + // initialize the groups array + this.groups = {}; + + // assume that we have an element reference instead of an id if the + // parameter is not a string + if (typeof id !== "string") { + id = Ext.id(id); + } + + // set the id + this.id = id; + + // add to an interaction group + this.addToGroup((sGroup) ? sGroup : "default"); + + // We don't want to register this as the handle with the manager + // so we just set the id rather than calling the setter. + this.handleElId = id; + + // the linked element is the element that gets dragged by default + this.setDragElId(id); + + // by default, clicked anchors will not start drag operations. + this.invalidHandleTypes = { A: "A" }; + this.invalidHandleIds = {}; + this.invalidHandleClasses = []; + + this.applyConfig(); + + this.handleOnAvailable(); + }, + + /** + * Applies the configuration parameters that were passed into the constructor. + * This is supposed to happen at each level through the inheritance chain. So + * a DDProxy implentation will execute apply config on DDProxy, DD, and + * DragDrop in order to get all of the parameters that are available in + * each object. + * @method applyConfig + */ + applyConfig: function() { + + // configurable properties: + // padding, isTarget, maintainOffset, primaryButtonOnly + this.padding = this.config.padding || [0, 0, 0, 0]; + this.isTarget = (this.config.isTarget !== false); + this.maintainOffset = (this.config.maintainOffset); + this.primaryButtonOnly = (this.config.primaryButtonOnly !== false); + + }, + + /** + * Executed when the linked element is available + * @method handleOnAvailable + * @private + */ + handleOnAvailable: function() { + this.available = true; + this.resetConstraints(); + this.onAvailable(); + }, + + /** + * Configures the padding for the target zone in px. Effectively expands + * (or reduces) the virtual object size for targeting calculations. + * Supports css-style shorthand; if only one parameter is passed, all sides + * will have that padding, and if only two are passed, the top and bottom + * will have the first param, the left and right the second. + * @method setPadding + * @param {int} iTop Top pad + * @param {int} iRight Right pad + * @param {int} iBot Bot pad + * @param {int} iLeft Left pad + */ + setPadding: function(iTop, iRight, iBot, iLeft) { + // this.padding = [iLeft, iRight, iTop, iBot]; + if (!iRight && 0 !== iRight) { + this.padding = [iTop, iTop, iTop, iTop]; + } else if (!iBot && 0 !== iBot) { + this.padding = [iTop, iRight, iTop, iRight]; + } else { + this.padding = [iTop, iRight, iBot, iLeft]; + } + }, + + /** + * Stores the initial placement of the linked element. + * @method setInitPosition + * @param {int} diffX the X offset, default 0 + * @param {int} diffY the Y offset, default 0 + */ + setInitPosition: function(diffX, diffY) { + var el = this.getEl(); + + if (!this.DDM.verifyEl(el)) { + return; + } + + var dx = diffX || 0; + var dy = diffY || 0; + + var p = Dom.getXY( el ); + + this.initPageX = p[0] - dx; + this.initPageY = p[1] - dy; + + this.lastPageX = p[0]; + this.lastPageY = p[1]; + + this.setStartPosition(p); + }, + + /** + * Sets the start position of the element. This is set when the obj + * is initialized, the reset when a drag is started. + * @method setStartPosition + * @param pos current position (from previous lookup) + * @private + */ + setStartPosition: function(pos) { + var p = pos || Dom.getXY( this.getEl() ); + this.deltaSetXY = null; + + this.startPageX = p[0]; + this.startPageY = p[1]; + }, + + /** + * Add this instance to a group of related drag/drop objects. All + * instances belong to at least one group, and can belong to as many + * groups as needed. + * @method addToGroup + * @param sGroup {string} the name of the group + */ + addToGroup: function(sGroup) { + this.groups[sGroup] = true; + this.DDM.regDragDrop(this, sGroup); + }, + + /** + * Remove's this instance from the supplied interaction group + * @method removeFromGroup + * @param {string} sGroup The group to drop + */ + removeFromGroup: function(sGroup) { + if (this.groups[sGroup]) { + delete this.groups[sGroup]; + } + + this.DDM.removeDDFromGroup(this, sGroup); + }, + + /** + * Allows you to specify that an element other than the linked element + * will be moved with the cursor during a drag + * @method setDragElId + * @param id {string} the id of the element that will be used to initiate the drag + */ + setDragElId: function(id) { + this.dragElId = id; + }, + + /** + * Allows you to specify a child of the linked element that should be + * used to initiate the drag operation. An example of this would be if + * you have a content div with text and links. Clicking anywhere in the + * content area would normally start the drag operation. Use this method + * to specify that an element inside of the content div is the element + * that starts the drag operation. + * @method setHandleElId + * @param id {string} the id of the element that will be used to + * initiate the drag. + */ + setHandleElId: function(id) { + if (typeof id !== "string") { + id = Ext.id(id); + } + this.handleElId = id; + this.DDM.regHandle(this.id, id); + }, + + /** + * Allows you to set an element outside of the linked element as a drag + * handle + * @method setOuterHandleElId + * @param id the id of the element that will be used to initiate the drag + */ + setOuterHandleElId: function(id) { + if (typeof id !== "string") { + id = Ext.id(id); + } + Event.on(id, "mousedown", + this.handleMouseDown, this); + this.setHandleElId(id); + + this.hasOuterHandles = true; + }, + + /** + * Remove all drag and drop hooks for this element + * @method unreg + */ + unreg: function() { + Event.un(this.id, "mousedown", + this.handleMouseDown); + this._domRef = null; + this.DDM._remove(this); + }, + + destroy : function(){ + this.unreg(); + }, + + /** + * Returns true if this instance is locked, or the drag drop mgr is locked + * (meaning that all drag/drop is disabled on the page.) + * @method isLocked + * @return {boolean} true if this obj or all drag/drop is locked, else + * false + */ + isLocked: function() { + return (this.DDM.isLocked() || this.locked); + }, + + /** + * Fired when this object is clicked + * @method handleMouseDown + * @param {Event} e + * @param {Ext.dd.DragDrop} oDD the clicked dd object (this dd obj) + * @private + */ + handleMouseDown: function(e, oDD){ + if (this.primaryButtonOnly && e.button != 0) { + return; + } + + if (this.isLocked()) { + return; + } + + this.DDM.refreshCache(this.groups); + + var pt = new Ext.lib.Point(Ext.lib.Event.getPageX(e), Ext.lib.Event.getPageY(e)); + if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) ) { + } else { + if (this.clickValidator(e)) { + + // set the initial element position + this.setStartPosition(); + + this.b4MouseDown(e); + this.onMouseDown(e); + + this.DDM.handleMouseDown(e, this); + + this.DDM.stopEvent(e); + } else { + + + } + } + }, + + clickValidator: function(e) { + var target = e.getTarget(); + return ( this.isValidHandleChild(target) && + (this.id == this.handleElId || + this.DDM.handleWasClicked(target, this.id)) ); + }, + + /** + * Allows you to specify a tag name that should not start a drag operation + * when clicked. This is designed to facilitate embedding links within a + * drag handle that do something other than start the drag. + * @method addInvalidHandleType + * @param {string} tagName the type of element to exclude + */ + addInvalidHandleType: function(tagName) { + var type = tagName.toUpperCase(); + this.invalidHandleTypes[type] = type; + }, + + /** + * Lets you to specify an element id for a child of a drag handle + * that should not initiate a drag + * @method addInvalidHandleId + * @param {string} id the element id of the element you wish to ignore + */ + addInvalidHandleId: function(id) { + if (typeof id !== "string") { + id = Ext.id(id); + } + this.invalidHandleIds[id] = id; + }, + + /** + * Lets you specify a css class of elements that will not initiate a drag + * @method addInvalidHandleClass + * @param {string} cssClass the class of the elements you wish to ignore + */ + addInvalidHandleClass: function(cssClass) { + this.invalidHandleClasses.push(cssClass); + }, + + /** + * Unsets an excluded tag name set by addInvalidHandleType + * @method removeInvalidHandleType + * @param {string} tagName the type of element to unexclude + */ + removeInvalidHandleType: function(tagName) { + var type = tagName.toUpperCase(); + // this.invalidHandleTypes[type] = null; + delete this.invalidHandleTypes[type]; + }, + + /** + * Unsets an invalid handle id + * @method removeInvalidHandleId + * @param {string} id the id of the element to re-enable + */ + removeInvalidHandleId: function(id) { + if (typeof id !== "string") { + id = Ext.id(id); + } + delete this.invalidHandleIds[id]; + }, + + /** + * Unsets an invalid css class + * @method removeInvalidHandleClass + * @param {string} cssClass the class of the element(s) you wish to + * re-enable + */ + removeInvalidHandleClass: function(cssClass) { + for (var i=0, len=this.invalidHandleClasses.length; i= this.minX; i = i - iTickSize) { + if (!tickMap[i]) { + this.xTicks[this.xTicks.length] = i; + tickMap[i] = true; + } + } + + for (i = this.initPageX; i <= this.maxX; i = i + iTickSize) { + if (!tickMap[i]) { + this.xTicks[this.xTicks.length] = i; + tickMap[i] = true; + } + } + + this.xTicks.sort(this.DDM.numericSort) ; + }, + + /** + * Create the array of vertical tick marks if an interval was specified in + * setYConstraint(). + * @method setYTicks + * @private + */ + setYTicks: function(iStartY, iTickSize) { + this.yTicks = []; + this.yTickSize = iTickSize; + + var tickMap = {}; + + for (var i = this.initPageY; i >= this.minY; i = i - iTickSize) { + if (!tickMap[i]) { + this.yTicks[this.yTicks.length] = i; + tickMap[i] = true; + } + } + + for (i = this.initPageY; i <= this.maxY; i = i + iTickSize) { + if (!tickMap[i]) { + this.yTicks[this.yTicks.length] = i; + tickMap[i] = true; + } + } + + this.yTicks.sort(this.DDM.numericSort) ; + }, + + /** + * By default, the element can be dragged any place on the screen. Use + * this method to limit the horizontal travel of the element. Pass in + * 0,0 for the parameters if you want to lock the drag to the y axis. + * @method setXConstraint + * @param {int} iLeft the number of pixels the element can move to the left + * @param {int} iRight the number of pixels the element can move to the + * right + * @param {int} iTickSize optional parameter for specifying that the + * element + * should move iTickSize pixels at a time. + */ + setXConstraint: function(iLeft, iRight, iTickSize) { + this.leftConstraint = iLeft; + this.rightConstraint = iRight; + + this.minX = this.initPageX - iLeft; + this.maxX = this.initPageX + iRight; + if (iTickSize) { this.setXTicks(this.initPageX, iTickSize); } + + this.constrainX = true; + }, + + /** + * Clears any constraints applied to this instance. Also clears ticks + * since they can't exist independent of a constraint at this time. + * @method clearConstraints + */ + clearConstraints: function() { + this.constrainX = false; + this.constrainY = false; + this.clearTicks(); + }, + + /** + * Clears any tick interval defined for this instance + * @method clearTicks + */ + clearTicks: function() { + this.xTicks = null; + this.yTicks = null; + this.xTickSize = 0; + this.yTickSize = 0; + }, + + /** + * By default, the element can be dragged any place on the screen. Set + * this to limit the vertical travel of the element. Pass in 0,0 for the + * parameters if you want to lock the drag to the x axis. + * @method setYConstraint + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the + * element should move iTickSize pixels at a time. + */ + setYConstraint: function(iUp, iDown, iTickSize) { + this.topConstraint = iUp; + this.bottomConstraint = iDown; + + this.minY = this.initPageY - iUp; + this.maxY = this.initPageY + iDown; + if (iTickSize) { this.setYTicks(this.initPageY, iTickSize); } + + this.constrainY = true; + + }, + + /** + * resetConstraints must be called if you manually reposition a dd element. + * @method resetConstraints + * @param {boolean} maintainOffset + */ + resetConstraints: function() { + // Maintain offsets if necessary + if (this.initPageX || this.initPageX === 0) { + // figure out how much this thing has moved + var dx = (this.maintainOffset) ? this.lastPageX - this.initPageX : 0; + var dy = (this.maintainOffset) ? this.lastPageY - this.initPageY : 0; + + this.setInitPosition(dx, dy); + + // This is the first time we have detected the element's position + } else { + this.setInitPosition(); + } + + if (this.constrainX) { + this.setXConstraint( this.leftConstraint, + this.rightConstraint, + this.xTickSize ); + } + + if (this.constrainY) { + this.setYConstraint( this.topConstraint, + this.bottomConstraint, + this.yTickSize ); + } + }, + + /** + * Normally the drag element is moved pixel by pixel, but we can specify + * that it move a number of pixels at a time. This method resolves the + * location when we have it set up like this. + * @method getTick + * @param {int} val where we want to place the object + * @param {int[]} tickArray sorted array of valid points + * @return {int} the closest tick + * @private + */ + getTick: function(val, tickArray) { + if (!tickArray) { + // If tick interval is not defined, it is effectively 1 pixel, + // so we return the value passed to us. + return val; + } else if (tickArray[0] >= val) { + // The value is lower than the first tick, so we return the first + // tick. + return tickArray[0]; + } else { + for (var i=0, len=tickArray.length; i= val) { + var diff1 = val - tickArray[i]; + var diff2 = tickArray[next] - val; + return (diff2 > diff1) ? tickArray[i] : tickArray[next]; + } + } + + // The value is larger than the last tick, so we return the last + // tick. + return tickArray[tickArray.length - 1]; + } + }, + + /** + * toString method + * @method toString + * @return {string} string representation of the dd obj + */ + toString: function() { + return ("DragDrop " + this.id); + } + +}; + +})(); +/* + * The drag and drop utility provides a framework for building drag and drop + * applications. In addition to enabling drag and drop for specific elements, + * the drag and drop elements are tracked by the manager class, and the + * interactions between the various elements are tracked during the drag and + * the implementing code is notified about these important moments. + */ + +// Only load the library once. Rewriting the manager class would orphan +// existing drag and drop instances. +if (!Ext.dd.DragDropMgr) { + +/** + * @class Ext.dd.DragDropMgr + * DragDropMgr is a singleton that tracks the element interaction for + * all DragDrop items in the window. Generally, you will not call + * this class directly, but it does have helper methods that could + * be useful in your DragDrop implementations. + * @singleton + */ +Ext.dd.DragDropMgr = function() { + + var Event = Ext.EventManager; + + return { + + /** + * Two dimensional Array of registered DragDrop objects. The first + * dimension is the DragDrop item group, the second the DragDrop + * object. + * @property ids + * @type String[] + * @private + * @static + */ + ids: {}, + + /** + * Array of element ids defined as drag handles. Used to determine + * if the element that generated the mousedown event is actually the + * handle and not the html element itself. + * @property handleIds + * @type String[] + * @private + * @static + */ + handleIds: {}, + + /** + * the DragDrop object that is currently being dragged + * @property dragCurrent + * @type DragDrop + * @private + * @static + **/ + dragCurrent: null, + + /** + * the DragDrop object(s) that are being hovered over + * @property dragOvers + * @type Array + * @private + * @static + */ + dragOvers: {}, + + /** + * the X distance between the cursor and the object being dragged + * @property deltaX + * @type int + * @private + * @static + */ + deltaX: 0, + + /** + * the Y distance between the cursor and the object being dragged + * @property deltaY + * @type int + * @private + * @static + */ + deltaY: 0, + + /** + * Flag to determine if we should prevent the default behavior of the + * events we define. By default this is true, but this can be set to + * false if you need the default behavior (not recommended) + * @property preventDefault + * @type boolean + * @static + */ + preventDefault: true, + + /** + * Flag to determine if we should stop the propagation of the events + * we generate. This is true by default but you may want to set it to + * false if the html element contains other features that require the + * mouse click. + * @property stopPropagation + * @type boolean + * @static + */ + stopPropagation: true, + + /** + * Internal flag that is set to true when drag and drop has been + * intialized + * @property initialized + * @private + * @static + */ + initialized: false, + + /** + * All drag and drop can be disabled. + * @property locked + * @private + * @static + */ + locked: false, + + /** + * Called the first time an element is registered. + * @method init + * @private + * @static + */ + init: function() { + this.initialized = true; + }, + + /** + * In point mode, drag and drop interaction is defined by the + * location of the cursor during the drag/drop + * @property POINT + * @type int + * @static + */ + POINT: 0, + + /** + * In intersect mode, drag and drop interaction is defined by the + * overlap of two or more drag and drop objects. + * @property INTERSECT + * @type int + * @static + */ + INTERSECT: 1, + + /** + * The current drag and drop mode. Default: POINT + * @property mode + * @type int + * @static + */ + mode: 0, + + /** + * Runs method on all drag and drop objects + * @method _execOnAll + * @private + * @static + */ + _execOnAll: function(sMethod, args) { + for (var i in this.ids) { + for (var j in this.ids[i]) { + var oDD = this.ids[i][j]; + if (! this.isTypeOfDD(oDD)) { + continue; + } + oDD[sMethod].apply(oDD, args); + } + } + }, + + /** + * Drag and drop initialization. Sets up the global event handlers + * @method _onLoad + * @private + * @static + */ + _onLoad: function() { + + this.init(); + + + Event.on(document, "mouseup", this.handleMouseUp, this, true); + Event.on(document, "mousemove", this.handleMouseMove, this, true); + Event.on(window, "unload", this._onUnload, this, true); + Event.on(window, "resize", this._onResize, this, true); + // Event.on(window, "mouseout", this._test); + + }, + + /** + * Reset constraints on all drag and drop objs + * @method _onResize + * @private + * @static + */ + _onResize: function(e) { + this._execOnAll("resetConstraints", []); + }, + + /** + * Lock all drag and drop functionality + * @method lock + * @static + */ + lock: function() { this.locked = true; }, + + /** + * Unlock all drag and drop functionality + * @method unlock + * @static + */ + unlock: function() { this.locked = false; }, + + /** + * Is drag and drop locked? + * @method isLocked + * @return {boolean} True if drag and drop is locked, false otherwise. + * @static + */ + isLocked: function() { return this.locked; }, + + /** + * Location cache that is set for all drag drop objects when a drag is + * initiated, cleared when the drag is finished. + * @property locationCache + * @private + * @static + */ + locationCache: {}, + + /** + * Set useCache to false if you want to force object the lookup of each + * drag and drop linked element constantly during a drag. + * @property useCache + * @type boolean + * @static + */ + useCache: true, + + /** + * The number of pixels that the mouse needs to move after the + * mousedown before the drag is initiated. Default=3; + * @property clickPixelThresh + * @type int + * @static + */ + clickPixelThresh: 3, + + /** + * The number of milliseconds after the mousedown event to initiate the + * drag if we don't get a mouseup event. Default=350 + * @property clickTimeThresh + * @type int + * @static + */ + clickTimeThresh: 350, + + /** + * Flag that indicates that either the drag pixel threshold or the + * mousdown time threshold has been met + * @property dragThreshMet + * @type boolean + * @private + * @static + */ + dragThreshMet: false, + + /** + * Timeout used for the click time threshold + * @property clickTimeout + * @type Object + * @private + * @static + */ + clickTimeout: null, + + /** + * The X position of the mousedown event stored for later use when a + * drag threshold is met. + * @property startX + * @type int + * @private + * @static + */ + startX: 0, + + /** + * The Y position of the mousedown event stored for later use when a + * drag threshold is met. + * @property startY + * @type int + * @private + * @static + */ + startY: 0, + + /** + * Each DragDrop instance must be registered with the DragDropMgr. + * This is executed in DragDrop.init() + * @method regDragDrop + * @param {DragDrop} oDD the DragDrop object to register + * @param {String} sGroup the name of the group this element belongs to + * @static + */ + regDragDrop: function(oDD, sGroup) { + if (!this.initialized) { this.init(); } + + if (!this.ids[sGroup]) { + this.ids[sGroup] = {}; + } + this.ids[sGroup][oDD.id] = oDD; + }, + + /** + * Removes the supplied dd instance from the supplied group. Executed + * by DragDrop.removeFromGroup, so don't call this function directly. + * @method removeDDFromGroup + * @private + * @static + */ + removeDDFromGroup: function(oDD, sGroup) { + if (!this.ids[sGroup]) { + this.ids[sGroup] = {}; + } + + var obj = this.ids[sGroup]; + if (obj && obj[oDD.id]) { + delete obj[oDD.id]; + } + }, + + /** + * Unregisters a drag and drop item. This is executed in + * DragDrop.unreg, use that method instead of calling this directly. + * @method _remove + * @private + * @static + */ + _remove: function(oDD) { + for (var g in oDD.groups) { + if (g && this.ids[g] && this.ids[g][oDD.id]) { + delete this.ids[g][oDD.id]; + } + } + delete this.handleIds[oDD.id]; + }, + + /** + * Each DragDrop handle element must be registered. This is done + * automatically when executing DragDrop.setHandleElId() + * @method regHandle + * @param {String} sDDId the DragDrop id this element is a handle for + * @param {String} sHandleId the id of the element that is the drag + * handle + * @static + */ + regHandle: function(sDDId, sHandleId) { + if (!this.handleIds[sDDId]) { + this.handleIds[sDDId] = {}; + } + this.handleIds[sDDId][sHandleId] = sHandleId; + }, + + /** + * Utility function to determine if a given element has been + * registered as a drag drop item. + * @method isDragDrop + * @param {String} id the element id to check + * @return {boolean} true if this element is a DragDrop item, + * false otherwise + * @static + */ + isDragDrop: function(id) { + return ( this.getDDById(id) ) ? true : false; + }, + + /** + * Returns the drag and drop instances that are in all groups the + * passed in instance belongs to. + * @method getRelated + * @param {DragDrop} p_oDD the obj to get related data for + * @param {boolean} bTargetsOnly if true, only return targetable objs + * @return {DragDrop[]} the related instances + * @static + */ + getRelated: function(p_oDD, bTargetsOnly) { + var oDDs = []; + for (var i in p_oDD.groups) { + for (var j in this.ids[i]) { + var dd = this.ids[i][j]; + if (! this.isTypeOfDD(dd)) { + continue; + } + if (!bTargetsOnly || dd.isTarget) { + oDDs[oDDs.length] = dd; + } + } + } + + return oDDs; + }, + + /** + * Returns true if the specified dd target is a legal target for + * the specifice drag obj + * @method isLegalTarget + * @param {DragDrop} oDD the drag obj + * @param {DragDrop} oTargetDD the target + * @return {boolean} true if the target is a legal target for the + * dd obj + * @static + */ + isLegalTarget: function (oDD, oTargetDD) { + var targets = this.getRelated(oDD, true); + for (var i=0, len=targets.length;i this.clickPixelThresh || + diffY > this.clickPixelThresh) { + this.startDrag(this.startX, this.startY); + } + } + + if (this.dragThreshMet) { + this.dragCurrent.b4Drag(e); + this.dragCurrent.onDrag(e); + if(!this.dragCurrent.moveOnly){ + this.fireEvents(e, false); + } + } + + this.stopEvent(e); + + return true; + }, + + /** + * Iterates over all of the DragDrop elements to find ones we are + * hovering over or dropping on + * @method fireEvents + * @param {Event} e the event + * @param {boolean} isDrop is this a drop op or a mouseover op? + * @private + * @static + */ + fireEvents: function(e, isDrop) { + var dc = this.dragCurrent; + + // If the user did the mouse up outside of the window, we could + // get here even though we have ended the drag. + if (!dc || dc.isLocked()) { + return; + } + + var pt = e.getPoint(); + + // cache the previous dragOver array + var oldOvers = []; + + var outEvts = []; + var overEvts = []; + var dropEvts = []; + var enterEvts = []; + + // Check to see if the object(s) we were hovering over is no longer + // being hovered over so we can fire the onDragOut event + for (var i in this.dragOvers) { + + var ddo = this.dragOvers[i]; + + if (! this.isTypeOfDD(ddo)) { + continue; + } + + if (! this.isOverTarget(pt, ddo, this.mode)) { + outEvts.push( ddo ); + } + + oldOvers[i] = true; + delete this.dragOvers[i]; + } + + for (var sGroup in dc.groups) { + + if ("string" != typeof sGroup) { + continue; + } + + for (i in this.ids[sGroup]) { + var oDD = this.ids[sGroup][i]; + if (! this.isTypeOfDD(oDD)) { + continue; + } + + if (oDD.isTarget && !oDD.isLocked() && ((oDD != dc) || (dc.ignoreSelf === false))) { + if (this.isOverTarget(pt, oDD, this.mode)) { + // look for drop interactions + if (isDrop) { + dropEvts.push( oDD ); + // look for drag enter and drag over interactions + } else { + + // initial drag over: dragEnter fires + if (!oldOvers[oDD.id]) { + enterEvts.push( oDD ); + // subsequent drag overs: dragOver fires + } else { + overEvts.push( oDD ); + } + + this.dragOvers[oDD.id] = oDD; + } + } + } + } + } + + if (this.mode) { + if (outEvts.length) { + dc.b4DragOut(e, outEvts); + dc.onDragOut(e, outEvts); + } + + if (enterEvts.length) { + dc.onDragEnter(e, enterEvts); + } + + if (overEvts.length) { + dc.b4DragOver(e, overEvts); + dc.onDragOver(e, overEvts); + } + + if (dropEvts.length) { + dc.b4DragDrop(e, dropEvts); + dc.onDragDrop(e, dropEvts); + } + + } else { + // fire dragout events + var len = 0; + for (i=0, len=outEvts.length; i + * Ext.dd.DragDropMgr.refreshCache(ddinstance.groups); + *
      + * Alternatively: + * + * Ext.dd.DragDropMgr.refreshCache({group1:true, group2:true}); + * + * @TODO this really should be an indexed array. Alternatively this + * method could accept both. + * @method refreshCache + * @param {Object} groups an associative array of groups to refresh + * @static + */ + refreshCache: function(groups) { + for (var sGroup in groups) { + if ("string" != typeof sGroup) { + continue; + } + for (var i in this.ids[sGroup]) { + var oDD = this.ids[sGroup][i]; + + if (this.isTypeOfDD(oDD)) { + // if (this.isTypeOfDD(oDD) && oDD.isTarget) { + var loc = this.getLocation(oDD); + if (loc) { + this.locationCache[oDD.id] = loc; + } else { + delete this.locationCache[oDD.id]; + // this will unregister the drag and drop object if + // the element is not in a usable state + // oDD.unreg(); + } + } + } + } + }, + + /** + * This checks to make sure an element exists and is in the DOM. The + * main purpose is to handle cases where innerHTML is used to remove + * drag and drop objects from the DOM. IE provides an 'unspecified + * error' when trying to access the offsetParent of such an element + * @method verifyEl + * @param {HTMLElement} el the element to check + * @return {boolean} true if the element looks usable + * @static + */ + verifyEl: function(el) { + if (el) { + var parent; + if(Ext.isIE){ + try{ + parent = el.offsetParent; + }catch(e){} + }else{ + parent = el.offsetParent; + } + if (parent) { + return true; + } + } + + return false; + }, + + /** + * Returns a Region object containing the drag and drop element's position + * and size, including the padding configured for it + * @method getLocation + * @param {DragDrop} oDD the drag and drop object to get the + * location for + * @return {Ext.lib.Region} a Region object representing the total area + * the element occupies, including any padding + * the instance is configured for. + * @static + */ + getLocation: function(oDD) { + if (! this.isTypeOfDD(oDD)) { + return null; + } + + var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l; + + try { + pos= Ext.lib.Dom.getXY(el); + } catch (e) { } + + if (!pos) { + return null; + } + + x1 = pos[0]; + x2 = x1 + el.offsetWidth; + y1 = pos[1]; + y2 = y1 + el.offsetHeight; + + t = y1 - oDD.padding[0]; + r = x2 + oDD.padding[1]; + b = y2 + oDD.padding[2]; + l = x1 - oDD.padding[3]; + + return new Ext.lib.Region( t, r, b, l ); + }, + + /** + * Checks the cursor location to see if it over the target + * @method isOverTarget + * @param {Ext.lib.Point} pt The point to evaluate + * @param {DragDrop} oTarget the DragDrop object we are inspecting + * @return {boolean} true if the mouse is over the target + * @private + * @static + */ + isOverTarget: function(pt, oTarget, intersect) { + // use cache if available + var loc = this.locationCache[oTarget.id]; + if (!loc || !this.useCache) { + loc = this.getLocation(oTarget); + this.locationCache[oTarget.id] = loc; + + } + + if (!loc) { + return false; + } + + oTarget.cursorIsOver = loc.contains( pt ); + + // DragDrop is using this as a sanity check for the initial mousedown + // in this case we are done. In POINT mode, if the drag obj has no + // contraints, we are also done. Otherwise we need to evaluate the + // location of the target as related to the actual location of the + // dragged element. + var dc = this.dragCurrent; + if (!dc || !dc.getTargetCoord || + (!intersect && !dc.constrainX && !dc.constrainY)) { + return oTarget.cursorIsOver; + } + + oTarget.overlap = null; + + // Get the current location of the drag element, this is the + // location of the mouse event less the delta that represents + // where the original mousedown happened on the element. We + // need to consider constraints and ticks as well. + var pos = dc.getTargetCoord(pt.x, pt.y); + + var el = dc.getDragEl(); + var curRegion = new Ext.lib.Region( pos.y, + pos.x + el.offsetWidth, + pos.y + el.offsetHeight, + pos.x ); + + var overlap = curRegion.intersect(loc); + + if (overlap) { + oTarget.overlap = overlap; + return (intersect) ? true : oTarget.cursorIsOver; + } else { + return false; + } + }, + + /** + * unload event handler + * @method _onUnload + * @private + * @static + */ + _onUnload: function(e, me) { + Ext.dd.DragDropMgr.unregAll(); + }, + + /** + * Cleans up the drag and drop events and objects. + * @method unregAll + * @private + * @static + */ + unregAll: function() { + + if (this.dragCurrent) { + this.stopDrag(); + this.dragCurrent = null; + } + + this._execOnAll("unreg", []); + + for (var i in this.elementCache) { + delete this.elementCache[i]; + } + + this.elementCache = {}; + this.ids = {}; + }, + + /** + * A cache of DOM elements + * @property elementCache + * @private + * @static + */ + elementCache: {}, + + /** + * Get the wrapper for the DOM element specified + * @method getElWrapper + * @param {String} id the id of the element to get + * @return {Ext.dd.DDM.ElementWrapper} the wrapped element + * @private + * @deprecated This wrapper isn't that useful + * @static + */ + getElWrapper: function(id) { + var oWrapper = this.elementCache[id]; + if (!oWrapper || !oWrapper.el) { + oWrapper = this.elementCache[id] = + new this.ElementWrapper(Ext.getDom(id)); + } + return oWrapper; + }, + + /** + * Returns the actual DOM element + * @method getElement + * @param {String} id the id of the elment to get + * @return {Object} The element + * @deprecated use Ext.lib.Ext.getDom instead + * @static + */ + getElement: function(id) { + return Ext.getDom(id); + }, + + /** + * Returns the style property for the DOM element (i.e., + * document.getElById(id).style) + * @method getCss + * @param {String} id the id of the elment to get + * @return {Object} The style property of the element + * @deprecated use Ext.lib.Dom instead + * @static + */ + getCss: function(id) { + var el = Ext.getDom(id); + return (el) ? el.style : null; + }, + + /** + * Inner class for cached elements + * @class Ext.dd.DragDropMgr.ElementWrapper + * @for DragDropMgr + * @private + * @deprecated + */ + ElementWrapper: function(el) { + /** + * The element + * @property el + */ + this.el = el || null; + /** + * The element id + * @property id + */ + this.id = this.el && el.id; + /** + * A reference to the style property + * @property css + */ + this.css = this.el && el.style; + }, + + /** + * Returns the X position of an html element + * @method getPosX + * @param el the element for which to get the position + * @return {int} the X coordinate + * @for DragDropMgr + * @deprecated use Ext.lib.Dom.getX instead + * @static + */ + getPosX: function(el) { + return Ext.lib.Dom.getX(el); + }, + + /** + * Returns the Y position of an html element + * @method getPosY + * @param el the element for which to get the position + * @return {int} the Y coordinate + * @deprecated use Ext.lib.Dom.getY instead + * @static + */ + getPosY: function(el) { + return Ext.lib.Dom.getY(el); + }, + + /** + * Swap two nodes. In IE, we use the native method, for others we + * emulate the IE behavior + * @method swapNode + * @param n1 the first node to swap + * @param n2 the other node to swap + * @static + */ + swapNode: function(n1, n2) { + if (n1.swapNode) { + n1.swapNode(n2); + } else { + var p = n2.parentNode; + var s = n2.nextSibling; + + if (s == n1) { + p.insertBefore(n1, n2); + } else if (n2 == n1.nextSibling) { + p.insertBefore(n2, n1); + } else { + n1.parentNode.replaceChild(n2, n1); + p.insertBefore(n1, s); + } + } + }, + + /** + * Returns the current scroll position + * @method getScroll + * @private + * @static + */ + getScroll: function () { + var t, l, dde=document.documentElement, db=document.body; + if (dde && (dde.scrollTop || dde.scrollLeft)) { + t = dde.scrollTop; + l = dde.scrollLeft; + } else if (db) { + t = db.scrollTop; + l = db.scrollLeft; + } else { + + } + return { top: t, left: l }; + }, + + /** + * Returns the specified element style property + * @method getStyle + * @param {HTMLElement} el the element + * @param {string} styleProp the style property + * @return {string} The value of the style property + * @deprecated use Ext.lib.Dom.getStyle + * @static + */ + getStyle: function(el, styleProp) { + return Ext.fly(el).getStyle(styleProp); + }, + + /** + * Gets the scrollTop + * @method getScrollTop + * @return {int} the document's scrollTop + * @static + */ + getScrollTop: function () { + return this.getScroll().top; + }, + + /** + * Gets the scrollLeft + * @method getScrollLeft + * @return {int} the document's scrollTop + * @static + */ + getScrollLeft: function () { + return this.getScroll().left; + }, + + /** + * Sets the x/y position of an element to the location of the + * target element. + * @method moveToEl + * @param {HTMLElement} moveEl The element to move + * @param {HTMLElement} targetEl The position reference element + * @static + */ + moveToEl: function (moveEl, targetEl) { + var aCoord = Ext.lib.Dom.getXY(targetEl); + Ext.lib.Dom.setXY(moveEl, aCoord); + }, + + /** + * Numeric array sort function + * @method numericSort + * @static + */ + numericSort: function(a, b) { + return (a - b); + }, + + /** + * Internal counter + * @property _timeoutCount + * @private + * @static + */ + _timeoutCount: 0, + + /** + * Trying to make the load order less important. Without this we get + * an error if this file is loaded before the Event Utility. + * @method _addListeners + * @private + * @static + */ + _addListeners: function() { + var DDM = Ext.dd.DDM; + if ( Ext.lib.Event && document ) { + DDM._onLoad(); + } else { + if (DDM._timeoutCount > 2000) { + } else { + setTimeout(DDM._addListeners, 10); + if (document && document.body) { + DDM._timeoutCount += 1; + } + } + } + }, + + /** + * Recursively searches the immediate parent and all child nodes for + * the handle element in order to determine wheter or not it was + * clicked. + * @method handleWasClicked + * @param node the html element to inspect + * @static + */ + handleWasClicked: function(node, id) { + if (this.isHandle(id, node.id)) { + return true; + } else { + // check to see if this is a text node child of the one we want + var p = node.parentNode; + + while (p) { + if (this.isHandle(id, p.id)) { + return true; + } else { + p = p.parentNode; + } + } + } + + return false; + } + + }; + +}(); + +// shorter alias, save a few bytes +Ext.dd.DDM = Ext.dd.DragDropMgr; +Ext.dd.DDM._addListeners(); + +} + +/** + * @class Ext.dd.DD + * A DragDrop implementation where the linked element follows the + * mouse cursor during a drag. + * @extends Ext.dd.DragDrop + * @constructor + * @param {String} id the id of the linked element + * @param {String} sGroup the group of related DragDrop items + * @param {object} config an object containing configurable attributes + * Valid properties for DD: + * scroll + */ +Ext.dd.DD = function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + } +}; + +Ext.extend(Ext.dd.DD, Ext.dd.DragDrop, { + + /** + * When set to true, the utility automatically tries to scroll the browser + * window when a drag and drop element is dragged near the viewport boundary. + * Defaults to true. + * @property scroll + * @type boolean + */ + scroll: true, + + /** + * Sets the pointer offset to the distance between the linked element's top + * left corner and the location the element was clicked + * @method autoOffset + * @param {int} iPageX the X coordinate of the click + * @param {int} iPageY the Y coordinate of the click + */ + autoOffset: function(iPageX, iPageY) { + var x = iPageX - this.startPageX; + var y = iPageY - this.startPageY; + this.setDelta(x, y); + }, + + /** + * Sets the pointer offset. You can call this directly to force the + * offset to be in a particular location (e.g., pass in 0,0 to set it + * to the center of the object) + * @method setDelta + * @param {int} iDeltaX the distance from the left + * @param {int} iDeltaY the distance from the top + */ + setDelta: function(iDeltaX, iDeltaY) { + this.deltaX = iDeltaX; + this.deltaY = iDeltaY; + }, + + /** + * Sets the drag element to the location of the mousedown or click event, + * maintaining the cursor location relative to the location on the element + * that was clicked. Override this if you want to place the element in a + * location other than where the cursor is. + * @method setDragElPos + * @param {int} iPageX the X coordinate of the mousedown or drag event + * @param {int} iPageY the Y coordinate of the mousedown or drag event + */ + setDragElPos: function(iPageX, iPageY) { + // the first time we do this, we are going to check to make sure + // the element has css positioning + + var el = this.getDragEl(); + this.alignElWithMouse(el, iPageX, iPageY); + }, + + /** + * Sets the element to the location of the mousedown or click event, + * maintaining the cursor location relative to the location on the element + * that was clicked. Override this if you want to place the element in a + * location other than where the cursor is. + * @method alignElWithMouse + * @param {HTMLElement} el the element to move + * @param {int} iPageX the X coordinate of the mousedown or drag event + * @param {int} iPageY the Y coordinate of the mousedown or drag event + */ + alignElWithMouse: function(el, iPageX, iPageY) { + var oCoord = this.getTargetCoord(iPageX, iPageY); + var fly = el.dom ? el : Ext.fly(el, '_dd'); + if (!this.deltaSetXY) { + var aCoord = [oCoord.x, oCoord.y]; + fly.setXY(aCoord); + var newLeft = fly.getLeft(true); + var newTop = fly.getTop(true); + this.deltaSetXY = [ newLeft - oCoord.x, newTop - oCoord.y ]; + } else { + fly.setLeftTop(oCoord.x + this.deltaSetXY[0], oCoord.y + this.deltaSetXY[1]); + } + + this.cachePosition(oCoord.x, oCoord.y); + this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth); + return oCoord; + }, + + /** + * Saves the most recent position so that we can reset the constraints and + * tick marks on-demand. We need to know this so that we can calculate the + * number of pixels the element is offset from its original position. + * @method cachePosition + * @param iPageX the current x position (optional, this just makes it so we + * don't have to look it up again) + * @param iPageY the current y position (optional, this just makes it so we + * don't have to look it up again) + */ + cachePosition: function(iPageX, iPageY) { + if (iPageX) { + this.lastPageX = iPageX; + this.lastPageY = iPageY; + } else { + var aCoord = Ext.lib.Dom.getXY(this.getEl()); + this.lastPageX = aCoord[0]; + this.lastPageY = aCoord[1]; + } + }, + + /** + * Auto-scroll the window if the dragged object has been moved beyond the + * visible window boundary. + * @method autoScroll + * @param {int} x the drag element's x position + * @param {int} y the drag element's y position + * @param {int} h the height of the drag element + * @param {int} w the width of the drag element + * @private + */ + autoScroll: function(x, y, h, w) { + + if (this.scroll) { + // The client height + var clientH = Ext.lib.Dom.getViewHeight(); + + // The client width + var clientW = Ext.lib.Dom.getViewWidth(); + + // The amt scrolled down + var st = this.DDM.getScrollTop(); + + // The amt scrolled right + var sl = this.DDM.getScrollLeft(); + + // Location of the bottom of the element + var bot = h + y; + + // Location of the right of the element + var right = w + x; + + // The distance from the cursor to the bottom of the visible area, + // adjusted so that we don't scroll if the cursor is beyond the + // element drag constraints + var toBot = (clientH + st - y - this.deltaY); + + // The distance from the cursor to the right of the visible area + var toRight = (clientW + sl - x - this.deltaX); + + + // How close to the edge the cursor must be before we scroll + // var thresh = (document.all) ? 100 : 40; + var thresh = 40; + + // How many pixels to scroll per autoscroll op. This helps to reduce + // clunky scrolling. IE is more sensitive about this ... it needs this + // value to be higher. + var scrAmt = (document.all) ? 80 : 30; + + // Scroll down if we are near the bottom of the visible page and the + // obj extends below the crease + if ( bot > clientH && toBot < thresh ) { + window.scrollTo(sl, st + scrAmt); + } + + // Scroll up if the window is scrolled down and the top of the object + // goes above the top border + if ( y < st && st > 0 && y - st < thresh ) { + window.scrollTo(sl, st - scrAmt); + } + + // Scroll right if the obj is beyond the right border and the cursor is + // near the border. + if ( right > clientW && toRight < thresh ) { + window.scrollTo(sl + scrAmt, st); + } + + // Scroll left if the window has been scrolled to the right and the obj + // extends past the left border + if ( x < sl && sl > 0 && x - sl < thresh ) { + window.scrollTo(sl - scrAmt, st); + } + } + }, + + /** + * Finds the location the element should be placed if we want to move + * it to where the mouse location less the click offset would place us. + * @method getTargetCoord + * @param {int} iPageX the X coordinate of the click + * @param {int} iPageY the Y coordinate of the click + * @return an object that contains the coordinates (Object.x and Object.y) + * @private + */ + getTargetCoord: function(iPageX, iPageY) { + var x = iPageX - this.deltaX; + var y = iPageY - this.deltaY; + + if (this.constrainX) { + if (x < this.minX) { x = this.minX; } + if (x > this.maxX) { x = this.maxX; } + } + + if (this.constrainY) { + if (y < this.minY) { y = this.minY; } + if (y > this.maxY) { y = this.maxY; } + } + + x = this.getTick(x, this.xTicks); + y = this.getTick(y, this.yTicks); + + + return {x:x, y:y}; + }, + + /** + * Sets up config options specific to this class. Overrides + * Ext.dd.DragDrop, but all versions of this method through the + * inheritance chain are called + */ + applyConfig: function() { + Ext.dd.DD.superclass.applyConfig.call(this); + this.scroll = (this.config.scroll !== false); + }, + + /** + * Event that fires prior to the onMouseDown event. Overrides + * Ext.dd.DragDrop. + */ + b4MouseDown: function(e) { + // this.resetConstraints(); + this.autoOffset(e.getPageX(), + e.getPageY()); + }, + + /** + * Event that fires prior to the onDrag event. Overrides + * Ext.dd.DragDrop. + */ + b4Drag: function(e) { + this.setDragElPos(e.getPageX(), + e.getPageY()); + }, + + toString: function() { + return ("DD " + this.id); + } + + ////////////////////////////////////////////////////////////////////////// + // Debugging ygDragDrop events that can be overridden + ////////////////////////////////////////////////////////////////////////// + /* + startDrag: function(x, y) { + }, + + onDrag: function(e) { + }, + + onDragEnter: function(e, id) { + }, + + onDragOver: function(e, id) { + }, + + onDragOut: function(e, id) { + }, + + onDragDrop: function(e, id) { + }, + + endDrag: function(e) { + } + + */ + +}); +/** + * @class Ext.dd.DDProxy + * A DragDrop implementation that inserts an empty, bordered div into + * the document that follows the cursor during drag operations. At the time of + * the click, the frame div is resized to the dimensions of the linked html + * element, and moved to the exact location of the linked element. + * + * References to the "frame" element refer to the single proxy element that + * was created to be dragged in place of all DDProxy elements on the + * page. + * + * @extends Ext.dd.DD + * @constructor + * @param {String} id the id of the linked html element + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DDProxy in addition to those in DragDrop: + * resizeFrame, centerFrame, dragElId + */ +Ext.dd.DDProxy = function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + this.initFrame(); + } +}; + +/** + * The default drag frame div id + * @property Ext.dd.DDProxy.dragElId + * @type String + * @static + */ +Ext.dd.DDProxy.dragElId = "ygddfdiv"; + +Ext.extend(Ext.dd.DDProxy, Ext.dd.DD, { + + /** + * By default we resize the drag frame to be the same size as the element + * we want to drag (this is to get the frame effect). We can turn it off + * if we want a different behavior. + * @property resizeFrame + * @type boolean + */ + resizeFrame: true, + + /** + * By default the frame is positioned exactly where the drag element is, so + * we use the cursor offset provided by Ext.dd.DD. Another option that works only if + * you do not have constraints on the obj is to have the drag frame centered + * around the cursor. Set centerFrame to true for this effect. + * @property centerFrame + * @type boolean + */ + centerFrame: false, + + /** + * Creates the proxy element if it does not yet exist + * @method createFrame + */ + createFrame: function() { + var self = this; + var body = document.body; + + if (!body || !body.firstChild) { + setTimeout( function() { self.createFrame(); }, 50 ); + return; + } + + var div = this.getDragEl(); + + if (!div) { + div = document.createElement("div"); + div.id = this.dragElId; + var s = div.style; + + s.position = "absolute"; + s.visibility = "hidden"; + s.cursor = "move"; + s.border = "2px solid #aaa"; + s.zIndex = 999; + + // appendChild can blow up IE if invoked prior to the window load event + // while rendering a table. It is possible there are other scenarios + // that would cause this to happen as well. + body.insertBefore(div, body.firstChild); + } + }, + + /** + * Initialization for the drag frame element. Must be called in the + * constructor of all subclasses + * @method initFrame + */ + initFrame: function() { + this.createFrame(); + }, + + applyConfig: function() { + Ext.dd.DDProxy.superclass.applyConfig.call(this); + + this.resizeFrame = (this.config.resizeFrame !== false); + this.centerFrame = (this.config.centerFrame); + this.setDragElId(this.config.dragElId || Ext.dd.DDProxy.dragElId); + }, + + /** + * Resizes the drag frame to the dimensions of the clicked object, positions + * it over the object, and finally displays it + * @method showFrame + * @param {int} iPageX X click position + * @param {int} iPageY Y click position + * @private + */ + showFrame: function(iPageX, iPageY) { + var el = this.getEl(); + var dragEl = this.getDragEl(); + var s = dragEl.style; + + this._resizeProxy(); + + if (this.centerFrame) { + this.setDelta( Math.round(parseInt(s.width, 10)/2), + Math.round(parseInt(s.height, 10)/2) ); + } + + this.setDragElPos(iPageX, iPageY); + + Ext.fly(dragEl).show(); + }, + + /** + * The proxy is automatically resized to the dimensions of the linked + * element when a drag is initiated, unless resizeFrame is set to false + * @method _resizeProxy + * @private + */ + _resizeProxy: function() { + if (this.resizeFrame) { + var el = this.getEl(); + Ext.fly(this.getDragEl()).setSize(el.offsetWidth, el.offsetHeight); + } + }, + + // overrides Ext.dd.DragDrop + b4MouseDown: function(e) { + var x = e.getPageX(); + var y = e.getPageY(); + this.autoOffset(x, y); + this.setDragElPos(x, y); + }, + + // overrides Ext.dd.DragDrop + b4StartDrag: function(x, y) { + // show the drag frame + this.showFrame(x, y); + }, + + // overrides Ext.dd.DragDrop + b4EndDrag: function(e) { + Ext.fly(this.getDragEl()).hide(); + }, + + // overrides Ext.dd.DragDrop + // By default we try to move the element to the last location of the frame. + // This is so that the default behavior mirrors that of Ext.dd.DD. + endDrag: function(e) { + + var lel = this.getEl(); + var del = this.getDragEl(); + + // Show the drag frame briefly so we can get its position + del.style.visibility = ""; + + this.beforeMove(); + // Hide the linked element before the move to get around a Safari + // rendering bug. + lel.style.visibility = "hidden"; + Ext.dd.DDM.moveToEl(lel, del); + del.style.visibility = "hidden"; + lel.style.visibility = ""; + + this.afterDrag(); + }, + + beforeMove : function(){ + + }, + + afterDrag : function(){ + + }, + + toString: function() { + return ("DDProxy " + this.id); + } + +}); +/** + * @class Ext.dd.DDTarget + * A DragDrop implementation that does not move, but can be a drop + * target. You would get the same result by simply omitting implementation + * for the event callbacks, but this way we reduce the processing cost of the + * event listener and the callbacks. + * @extends Ext.dd.DragDrop + * @constructor + * @param {String} id the id of the element that is a drop target + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DDTarget in addition to those in + * DragDrop: + * none + */ +Ext.dd.DDTarget = function(id, sGroup, config) { + if (id) { + this.initTarget(id, sGroup, config); + } +}; + +// Ext.dd.DDTarget.prototype = new Ext.dd.DragDrop(); +Ext.extend(Ext.dd.DDTarget, Ext.dd.DragDrop, { + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + getDragEl: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + isValidHandleChild: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + startDrag: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + endDrag: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + onDrag: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + onDragDrop: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + onDragEnter: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + onDragOut: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + onDragOver: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + onInvalidDrop: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + onMouseDown: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + onMouseUp: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + setXConstraint: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + setYConstraint: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + resetConstraints: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + clearConstraints: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + clearTicks: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + setInitPosition: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + setDragElId: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + setHandleElId: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + setOuterHandleElId: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + addInvalidHandleClass: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + addInvalidHandleId: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + addInvalidHandleType: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + removeInvalidHandleClass: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + removeInvalidHandleId: Ext.emptyFn, + /** + * @hide + * Overridden and disabled. A DDTarget does not support being dragged. + * @method + */ + removeInvalidHandleType: Ext.emptyFn, + + toString: function() { + return ("DDTarget " + this.id); + } +});/** + * @class Ext.dd.DragTracker + * @extends Ext.util.Observable + * A DragTracker listens for drag events on an Element and fires events at the start and end of the drag, + * as well as during the drag. This is useful for components such as {@link Ext.Slider}, where there is + * an element that can be dragged around to change the Slider's value. + * DragTracker provides a series of template methods that should be overridden to provide functionality + * in response to detected drag operations. These are onBeforeStart, onStart, onDrag and onEnd. + * See {@link Ext.Slider}'s initEvents function for an example implementation. + */ +Ext.dd.DragTracker = Ext.extend(Ext.util.Observable, { + /** + * @cfg {Boolean} active + * Defaults to false. + */ + active: false, + /** + * @cfg {Number} tolerance + * Number of pixels the drag target must be moved before dragging is considered to have started. Defaults to 5. + */ + tolerance: 5, + /** + * @cfg {Boolean/Number} autoStart + * Defaults to false. Specify true to defer trigger start by 1000 ms. + * Specify a Number for the number of milliseconds to defer trigger start. + */ + autoStart: false, + + constructor : function(config){ + Ext.apply(this, config); + this.addEvents( + /** + * @event mousedown + * @param {Object} this + * @param {Object} e event object + */ + 'mousedown', + /** + * @event mouseup + * @param {Object} this + * @param {Object} e event object + */ + 'mouseup', + /** + * @event mousemove + * @param {Object} this + * @param {Object} e event object + */ + 'mousemove', + /** + * @event dragstart + * @param {Object} this + * @param {Object} startXY the page coordinates of the event + */ + 'dragstart', + /** + * @event dragend + * @param {Object} this + * @param {Object} e event object + */ + 'dragend', + /** + * @event drag + * @param {Object} this + * @param {Object} e event object + */ + 'drag' + ); + + this.dragRegion = new Ext.lib.Region(0,0,0,0); + + if(this.el){ + this.initEl(this.el); + } + Ext.dd.DragTracker.superclass.constructor.call(this, config); + }, + + initEl: function(el){ + this.el = Ext.get(el); + el.on('mousedown', this.onMouseDown, this, + this.delegate ? {delegate: this.delegate} : undefined); + }, + + destroy : function(){ + this.el.un('mousedown', this.onMouseDown, this); + }, + + onMouseDown: function(e, target){ + if(this.fireEvent('mousedown', this, e) !== false && this.onBeforeStart(e) !== false){ + this.startXY = this.lastXY = e.getXY(); + this.dragTarget = this.delegate ? target : this.el.dom; + if(this.preventDefault !== false){ + e.preventDefault(); + } + var doc = Ext.getDoc(); + doc.on('mouseup', this.onMouseUp, this); + doc.on('mousemove', this.onMouseMove, this); + doc.on('selectstart', this.stopSelect, this); + if(this.autoStart){ + this.timer = this.triggerStart.defer(this.autoStart === true ? 1000 : this.autoStart, this); + } + } + }, + + onMouseMove: function(e, target){ + // HACK: IE hack to see if button was released outside of window. */ + if(this.active && Ext.isIE && !e.browserEvent.button){ + e.preventDefault(); + this.onMouseUp(e); + return; + } + + e.preventDefault(); + var xy = e.getXY(), s = this.startXY; + this.lastXY = xy; + if(!this.active){ + if(Math.abs(s[0]-xy[0]) > this.tolerance || Math.abs(s[1]-xy[1]) > this.tolerance){ + this.triggerStart(); + }else{ + return; + } + } + this.fireEvent('mousemove', this, e); + this.onDrag(e); + this.fireEvent('drag', this, e); + }, + + onMouseUp: function(e) { + var doc = Ext.getDoc(); + doc.un('mousemove', this.onMouseMove, this); + doc.un('mouseup', this.onMouseUp, this); + doc.un('selectstart', this.stopSelect, this); + e.preventDefault(); + this.clearStart(); + var wasActive = this.active; + this.active = false; + delete this.elRegion; + this.fireEvent('mouseup', this, e); + if(wasActive){ + this.onEnd(e); + this.fireEvent('dragend', this, e); + } + }, + + triggerStart: function(isTimer) { + this.clearStart(); + this.active = true; + this.onStart(this.startXY); + this.fireEvent('dragstart', this, this.startXY); + }, + + clearStart : function() { + if(this.timer){ + clearTimeout(this.timer); + delete this.timer; + } + }, + + stopSelect : function(e) { + e.stopEvent(); + return false; + }, + + /** + * Template method which should be overridden by each DragTracker instance. Called when the user first clicks and + * holds the mouse button down. Return false to disallow the drag + * @param {Ext.EventObject} e The event object + */ + onBeforeStart : function(e) { + + }, + + /** + * Template method which should be overridden by each DragTracker instance. Called when a drag operation starts + * (e.g. the user has moved the tracked element beyond the specified tolerance) + * @param {Array} xy x and y co-ordinates of the original location of the tracked element + */ + onStart : function(xy) { + + }, + + /** + * Template method which should be overridden by each DragTracker instance. Called whenever a drag has been detected. + * @param {Ext.EventObject} e The event object + */ + onDrag : function(e) { + + }, + + /** + * Template method which should be overridden by each DragTracker instance. Called when a drag operation has been completed + * (e.g. the user clicked and held the mouse down, dragged the element and then released the mouse button) + * @param {Ext.EventObject} e The event object + */ + onEnd : function(e) { + + }, + + /** + * Returns the drag target + * @return {Ext.Element} The element currently being tracked + */ + getDragTarget : function(){ + return this.dragTarget; + }, + + getDragCt : function(){ + return this.el; + }, + + getXY : function(constrain){ + return constrain ? + this.constrainModes[constrain].call(this, this.lastXY) : this.lastXY; + }, + + getOffset : function(constrain){ + var xy = this.getXY(constrain); + var s = this.startXY; + return [s[0]-xy[0], s[1]-xy[1]]; + }, + + constrainModes: { + 'point' : function(xy){ + + if(!this.elRegion){ + this.elRegion = this.getDragCt().getRegion(); + } + + var dr = this.dragRegion; + + dr.left = xy[0]; + dr.top = xy[1]; + dr.right = xy[0]; + dr.bottom = xy[1]; + + dr.constrainTo(this.elRegion); + + return [dr.left, dr.top]; + } + } +});/** + * @class Ext.dd.ScrollManager + *

      Provides automatic scrolling of overflow regions in the page during drag operations.

      + *

      The ScrollManager configs will be used as the defaults for any scroll container registered with it, + * but you can also override most of the configs per scroll container by adding a + * ddScrollConfig object to the target element that contains these properties: {@link #hthresh}, + * {@link #vthresh}, {@link #increment} and {@link #frequency}. Example usage: + *

      
      +var el = Ext.get('scroll-ct');
      +el.ddScrollConfig = {
      +    vthresh: 50,
      +    hthresh: -1,
      +    frequency: 100,
      +    increment: 200
      +};
      +Ext.dd.ScrollManager.register(el);
      +
      + * Note: This class uses "Point Mode" and is untested in "Intersect Mode". + * @singleton + */ +Ext.dd.ScrollManager = function(){ + var ddm = Ext.dd.DragDropMgr; + var els = {}; + var dragEl = null; + var proc = {}; + + var onStop = function(e){ + dragEl = null; + clearProc(); + }; + + var triggerRefresh = function(){ + if(ddm.dragCurrent){ + ddm.refreshCache(ddm.dragCurrent.groups); + } + }; + + var doScroll = function(){ + if(ddm.dragCurrent){ + var dds = Ext.dd.ScrollManager; + var inc = proc.el.ddScrollConfig ? + proc.el.ddScrollConfig.increment : dds.increment; + if(!dds.animate){ + if(proc.el.scroll(proc.dir, inc)){ + triggerRefresh(); + } + }else{ + proc.el.scroll(proc.dir, inc, true, dds.animDuration, triggerRefresh); + } + } + }; + + var clearProc = function(){ + if(proc.id){ + clearInterval(proc.id); + } + proc.id = 0; + proc.el = null; + proc.dir = ""; + }; + + var startProc = function(el, dir){ + clearProc(); + proc.el = el; + proc.dir = dir; + var freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) ? + el.ddScrollConfig.frequency : Ext.dd.ScrollManager.frequency; + proc.id = setInterval(doScroll, freq); + }; + + var onFire = function(e, isDrop){ + if(isDrop || !ddm.dragCurrent){ return; } + var dds = Ext.dd.ScrollManager; + if(!dragEl || dragEl != ddm.dragCurrent){ + dragEl = ddm.dragCurrent; + // refresh regions on drag start + dds.refreshCache(); + } + + var xy = Ext.lib.Event.getXY(e); + var pt = new Ext.lib.Point(xy[0], xy[1]); + for(var id in els){ + var el = els[id], r = el._region; + var c = el.ddScrollConfig ? el.ddScrollConfig : dds; + if(r && r.contains(pt) && el.isScrollable()){ + if(r.bottom - pt.y <= c.vthresh){ + if(proc.el != el){ + startProc(el, "down"); + } + return; + }else if(r.right - pt.x <= c.hthresh){ + if(proc.el != el){ + startProc(el, "left"); + } + return; + }else if(pt.y - r.top <= c.vthresh){ + if(proc.el != el){ + startProc(el, "up"); + } + return; + }else if(pt.x - r.left <= c.hthresh){ + if(proc.el != el){ + startProc(el, "right"); + } + return; + } + } + } + clearProc(); + }; + + ddm.fireEvents = ddm.fireEvents.createSequence(onFire, ddm); + ddm.stopDrag = ddm.stopDrag.createSequence(onStop, ddm); + + return { + /** + * Registers new overflow element(s) to auto scroll + * @param {Mixed/Array} el The id of or the element to be scrolled or an array of either + */ + register : function(el){ + if(Ext.isArray(el)){ + for(var i = 0, len = el.length; i < len; i++) { + this.register(el[i]); + } + }else{ + el = Ext.get(el); + els[el.id] = el; + } + }, + + /** + * Unregisters overflow element(s) so they are no longer scrolled + * @param {Mixed/Array} el The id of or the element to be removed or an array of either + */ + unregister : function(el){ + if(Ext.isArray(el)){ + for(var i = 0, len = el.length; i < len; i++) { + this.unregister(el[i]); + } + }else{ + el = Ext.get(el); + delete els[el.id]; + } + }, + + /** + * The number of pixels from the top or bottom edge of a container the pointer needs to be to + * trigger scrolling (defaults to 25) + * @type Number + */ + vthresh : 25, + /** + * The number of pixels from the right or left edge of a container the pointer needs to be to + * trigger scrolling (defaults to 25) + * @type Number + */ + hthresh : 25, + + /** + * The number of pixels to scroll in each scroll increment (defaults to 50) + * @type Number + */ + increment : 100, + + /** + * The frequency of scrolls in milliseconds (defaults to 500) + * @type Number + */ + frequency : 500, + + /** + * True to animate the scroll (defaults to true) + * @type Boolean + */ + animate: true, + + /** + * The animation duration in seconds - + * MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4) + * @type Number + */ + animDuration: .4, + + /** + * Manually trigger a cache refresh. + */ + refreshCache : function(){ + for(var id in els){ + if(typeof els[id] == 'object'){ // for people extending the object prototype + els[id]._region = els[id].getRegion(); + } + } + } + }; +}();/** + * @class Ext.dd.Registry + * Provides easy access to all drag drop components that are registered on a page. Items can be retrieved either + * directly by DOM node id, or by passing in the drag drop event that occurred and looking up the event target. + * @singleton + */ +Ext.dd.Registry = function(){ + var elements = {}; + var handles = {}; + var autoIdSeed = 0; + + var getId = function(el, autogen){ + if(typeof el == "string"){ + return el; + } + var id = el.id; + if(!id && autogen !== false){ + id = "extdd-" + (++autoIdSeed); + el.id = id; + } + return id; + }; + + return { + /** + * Resgister a drag drop element + * @param {String/HTMLElement} element The id or DOM node to register + * @param {Object} data (optional) An custom data object that will be passed between the elements that are involved + * in drag drop operations. You can populate this object with any arbitrary properties that your own code + * knows how to interpret, plus there are some specific properties known to the Registry that should be + * populated in the data object (if applicable): + *
      +Value      Description
      +--------- ------------------------------------------
      +handles Array of DOM nodes that trigger dragging
      + for the element being registered
      +isHandle True if the element passed in triggers
      + dragging itself, else false +
      + */ + register : function(el, data){ + data = data || {}; + if(typeof el == "string"){ + el = document.getElementById(el); + } + data.ddel = el; + elements[getId(el)] = data; + if(data.isHandle !== false){ + handles[data.ddel.id] = data; + } + if(data.handles){ + var hs = data.handles; + for(var i = 0, len = hs.length; i < len; i++){ + handles[getId(hs[i])] = data; + } + } + }, + + /** + * Unregister a drag drop element + * @param {String/HTMLElement} element The id or DOM node to unregister + */ + unregister : function(el){ + var id = getId(el, false); + var data = elements[id]; + if(data){ + delete elements[id]; + if(data.handles){ + var hs = data.handles; + for(var i = 0, len = hs.length; i < len; i++){ + delete handles[getId(hs[i], false)]; + } + } + } + }, + + /** + * Returns the handle registered for a DOM Node by id + * @param {String/HTMLElement} id The DOM node or id to look up + * @return {Object} handle The custom handle data + */ + getHandle : function(id){ + if(typeof id != "string"){ // must be element? + id = id.id; + } + return handles[id]; + }, + + /** + * Returns the handle that is registered for the DOM node that is the target of the event + * @param {Event} e The event + * @return {Object} handle The custom handle data + */ + getHandleFromEvent : function(e){ + var t = Ext.lib.Event.getTarget(e); + return t ? handles[t.id] : null; + }, + + /** + * Returns a custom data object that is registered for a DOM node by id + * @param {String/HTMLElement} id The DOM node or id to look up + * @return {Object} data The custom data + */ + getTarget : function(id){ + if(typeof id != "string"){ // must be element? + id = id.id; + } + return elements[id]; + }, + + /** + * Returns a custom data object that is registered for the DOM node that is the target of the event + * @param {Event} e The event + * @return {Object} data The custom data + */ + getTargetFromEvent : function(e){ + var t = Ext.lib.Event.getTarget(e); + return t ? elements[t.id] || handles[t.id] : null; + } + }; +}();/** + * @class Ext.dd.StatusProxy + * A specialized drag proxy that supports a drop status icon, {@link Ext.Layer} styles and auto-repair. This is the + * default drag proxy used by all Ext.dd components. + * @constructor + * @param {Object} config + */ +Ext.dd.StatusProxy = function(config){ + Ext.apply(this, config); + this.id = this.id || Ext.id(); + this.el = new Ext.Layer({ + dh: { + id: this.id, tag: "div", cls: "x-dd-drag-proxy "+this.dropNotAllowed, children: [ + {tag: "div", cls: "x-dd-drop-icon"}, + {tag: "div", cls: "x-dd-drag-ghost"} + ] + }, + shadow: !config || config.shadow !== false + }); + this.ghost = Ext.get(this.el.dom.childNodes[1]); + this.dropStatus = this.dropNotAllowed; +}; + +Ext.dd.StatusProxy.prototype = { + /** + * @cfg {String} dropAllowed + * The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok"). + */ + dropAllowed : "x-dd-drop-ok", + /** + * @cfg {String} dropNotAllowed + * The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop"). + */ + dropNotAllowed : "x-dd-drop-nodrop", + + /** + * Updates the proxy's visual element to indicate the status of whether or not drop is allowed + * over the current target element. + * @param {String} cssClass The css class for the new drop status indicator image + */ + setStatus : function(cssClass){ + cssClass = cssClass || this.dropNotAllowed; + if(this.dropStatus != cssClass){ + this.el.replaceClass(this.dropStatus, cssClass); + this.dropStatus = cssClass; + } + }, + + /** + * Resets the status indicator to the default dropNotAllowed value + * @param {Boolean} clearGhost True to also remove all content from the ghost, false to preserve it + */ + reset : function(clearGhost){ + this.el.dom.className = "x-dd-drag-proxy " + this.dropNotAllowed; + this.dropStatus = this.dropNotAllowed; + if(clearGhost){ + this.ghost.update(""); + } + }, + + /** + * Updates the contents of the ghost element + * @param {String/HTMLElement} html The html that will replace the current innerHTML of the ghost element, or a + * DOM node to append as the child of the ghost element (in which case the innerHTML will be cleared first). + */ + update : function(html){ + if(typeof html == "string"){ + this.ghost.update(html); + }else{ + this.ghost.update(""); + html.style.margin = "0"; + this.ghost.dom.appendChild(html); + } + var el = this.ghost.dom.firstChild; + if(el){ + Ext.fly(el).setStyle('float', 'none'); + } + }, + + /** + * Returns the underlying proxy {@link Ext.Layer} + * @return {Ext.Layer} el + */ + getEl : function(){ + return this.el; + }, + + /** + * Returns the ghost element + * @return {Ext.Element} el + */ + getGhost : function(){ + return this.ghost; + }, + + /** + * Hides the proxy + * @param {Boolean} clear True to reset the status and clear the ghost contents, false to preserve them + */ + hide : function(clear){ + this.el.hide(); + if(clear){ + this.reset(true); + } + }, + + /** + * Stops the repair animation if it's currently running + */ + stop : function(){ + if(this.anim && this.anim.isAnimated && this.anim.isAnimated()){ + this.anim.stop(); + } + }, + + /** + * Displays this proxy + */ + show : function(){ + this.el.show(); + }, + + /** + * Force the Layer to sync its shadow and shim positions to the element + */ + sync : function(){ + this.el.sync(); + }, + + /** + * Causes the proxy to return to its position of origin via an animation. Should be called after an + * invalid drop operation by the item being dragged. + * @param {Array} xy The XY position of the element ([x, y]) + * @param {Function} callback The function to call after the repair is complete. + * @param {Object} scope The scope (this reference) in which the callback function is executed. Defaults to the browser window. + */ + repair : function(xy, callback, scope){ + this.callback = callback; + this.scope = scope; + if(xy && this.animRepair !== false){ + this.el.addClass("x-dd-drag-repair"); + this.el.hideUnders(true); + this.anim = this.el.shift({ + duration: this.repairDuration || .5, + easing: 'easeOut', + xy: xy, + stopFx: true, + callback: this.afterRepair, + scope: this + }); + }else{ + this.afterRepair(); + } + }, + + // private + afterRepair : function(){ + this.hide(true); + if(typeof this.callback == "function"){ + this.callback.call(this.scope || this); + } + this.callback = null; + this.scope = null; + }, + + destroy: function(){ + Ext.destroy(this.ghost, this.el); + } +};/** + * @class Ext.dd.DragSource + * @extends Ext.dd.DDProxy + * A simple class that provides the basic implementation needed to make any element draggable. + * @constructor + * @param {Mixed} el The container element + * @param {Object} config + */ +Ext.dd.DragSource = function(el, config){ + this.el = Ext.get(el); + if(!this.dragData){ + this.dragData = {}; + } + + Ext.apply(this, config); + + if(!this.proxy){ + this.proxy = new Ext.dd.StatusProxy(); + } + Ext.dd.DragSource.superclass.constructor.call(this, this.el.dom, this.ddGroup || this.group, + {dragElId : this.proxy.id, resizeFrame: false, isTarget: false, scroll: this.scroll === true}); + + this.dragging = false; +}; + +Ext.extend(Ext.dd.DragSource, Ext.dd.DDProxy, { + /** + * @cfg {String} ddGroup + * A named drag drop group to which this object belongs. If a group is specified, then this object will only + * interact with other drag drop objects in the same group (defaults to undefined). + */ + /** + * @cfg {String} dropAllowed + * The CSS class returned to the drag source when drop is allowed (defaults to "x-dd-drop-ok"). + */ + dropAllowed : "x-dd-drop-ok", + /** + * @cfg {String} dropNotAllowed + * The CSS class returned to the drag source when drop is not allowed (defaults to "x-dd-drop-nodrop"). + */ + dropNotAllowed : "x-dd-drop-nodrop", + + /** + * Returns the data object associated with this drag source + * @return {Object} data An object containing arbitrary data + */ + getDragData : function(e){ + return this.dragData; + }, + + // private + onDragEnter : function(e, id){ + var target = Ext.dd.DragDropMgr.getDDById(id); + this.cachedTarget = target; + if(this.beforeDragEnter(target, e, id) !== false){ + if(target.isNotifyTarget){ + var status = target.notifyEnter(this, e, this.dragData); + this.proxy.setStatus(status); + }else{ + this.proxy.setStatus(this.dropAllowed); + } + + if(this.afterDragEnter){ + /** + * An empty function by default, but provided so that you can perform a custom action + * when the dragged item enters the drop target by providing an implementation. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dragged element + * @method afterDragEnter + */ + this.afterDragEnter(target, e, id); + } + } + }, + + /** + * An empty function by default, but provided so that you can perform a custom action + * before the dragged item enters the drop target and optionally cancel the onDragEnter. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dragged element + * @return {Boolean} isValid True if the drag event is valid, else false to cancel + */ + beforeDragEnter : function(target, e, id){ + return true; + }, + + // private + alignElWithMouse: function() { + Ext.dd.DragSource.superclass.alignElWithMouse.apply(this, arguments); + this.proxy.sync(); + }, + + // private + onDragOver : function(e, id){ + var target = this.cachedTarget || Ext.dd.DragDropMgr.getDDById(id); + if(this.beforeDragOver(target, e, id) !== false){ + if(target.isNotifyTarget){ + var status = target.notifyOver(this, e, this.dragData); + this.proxy.setStatus(status); + } + + if(this.afterDragOver){ + /** + * An empty function by default, but provided so that you can perform a custom action + * while the dragged item is over the drop target by providing an implementation. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dragged element + * @method afterDragOver + */ + this.afterDragOver(target, e, id); + } + } + }, + + /** + * An empty function by default, but provided so that you can perform a custom action + * while the dragged item is over the drop target and optionally cancel the onDragOver. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dragged element + * @return {Boolean} isValid True if the drag event is valid, else false to cancel + */ + beforeDragOver : function(target, e, id){ + return true; + }, + + // private + onDragOut : function(e, id){ + var target = this.cachedTarget || Ext.dd.DragDropMgr.getDDById(id); + if(this.beforeDragOut(target, e, id) !== false){ + if(target.isNotifyTarget){ + target.notifyOut(this, e, this.dragData); + } + this.proxy.reset(); + if(this.afterDragOut){ + /** + * An empty function by default, but provided so that you can perform a custom action + * after the dragged item is dragged out of the target without dropping. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dragged element + * @method afterDragOut + */ + this.afterDragOut(target, e, id); + } + } + this.cachedTarget = null; + }, + + /** + * An empty function by default, but provided so that you can perform a custom action before the dragged + * item is dragged out of the target without dropping, and optionally cancel the onDragOut. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dragged element + * @return {Boolean} isValid True if the drag event is valid, else false to cancel + */ + beforeDragOut : function(target, e, id){ + return true; + }, + + // private + onDragDrop : function(e, id){ + var target = this.cachedTarget || Ext.dd.DragDropMgr.getDDById(id); + if(this.beforeDragDrop(target, e, id) !== false){ + if(target.isNotifyTarget){ + if(target.notifyDrop(this, e, this.dragData)){ // valid drop? + this.onValidDrop(target, e, id); + }else{ + this.onInvalidDrop(target, e, id); + } + }else{ + this.onValidDrop(target, e, id); + } + + if(this.afterDragDrop){ + /** + * An empty function by default, but provided so that you can perform a custom action + * after a valid drag drop has occurred by providing an implementation. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dropped element + * @method afterDragDrop + */ + this.afterDragDrop(target, e, id); + } + } + delete this.cachedTarget; + }, + + /** + * An empty function by default, but provided so that you can perform a custom action before the dragged + * item is dropped onto the target and optionally cancel the onDragDrop. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dragged element + * @return {Boolean} isValid True if the drag drop event is valid, else false to cancel + */ + beforeDragDrop : function(target, e, id){ + return true; + }, + + // private + onValidDrop : function(target, e, id){ + this.hideProxy(); + if(this.afterValidDrop){ + /** + * An empty function by default, but provided so that you can perform a custom action + * after a valid drop has occurred by providing an implementation. + * @param {Object} target The target DD + * @param {Event} e The event object + * @param {String} id The id of the dropped element + * @method afterInvalidDrop + */ + this.afterValidDrop(target, e, id); + } + }, + + // private + getRepairXY : function(e, data){ + return this.el.getXY(); + }, + + // private + onInvalidDrop : function(target, e, id){ + this.beforeInvalidDrop(target, e, id); + if(this.cachedTarget){ + if(this.cachedTarget.isNotifyTarget){ + this.cachedTarget.notifyOut(this, e, this.dragData); + } + this.cacheTarget = null; + } + this.proxy.repair(this.getRepairXY(e, this.dragData), this.afterRepair, this); + + if(this.afterInvalidDrop){ + /** + * An empty function by default, but provided so that you can perform a custom action + * after an invalid drop has occurred by providing an implementation. + * @param {Event} e The event object + * @param {String} id The id of the dropped element + * @method afterInvalidDrop + */ + this.afterInvalidDrop(e, id); + } + }, + + // private + afterRepair : function(){ + if(Ext.enableFx){ + this.el.highlight(this.hlColor || "c3daf9"); + } + this.dragging = false; + }, + + /** + * An empty function by default, but provided so that you can perform a custom action after an invalid + * drop has occurred. + * @param {Ext.dd.DragDrop} target The drop target + * @param {Event} e The event object + * @param {String} id The id of the dragged element + * @return {Boolean} isValid True if the invalid drop should proceed, else false to cancel + */ + beforeInvalidDrop : function(target, e, id){ + return true; + }, + + // private + handleMouseDown : function(e){ + if(this.dragging) { + return; + } + var data = this.getDragData(e); + if(data && this.onBeforeDrag(data, e) !== false){ + this.dragData = data; + this.proxy.stop(); + Ext.dd.DragSource.superclass.handleMouseDown.apply(this, arguments); + } + }, + + /** + * An empty function by default, but provided so that you can perform a custom action before the initial + * drag event begins and optionally cancel it. + * @param {Object} data An object containing arbitrary data to be shared with drop targets + * @param {Event} e The event object + * @return {Boolean} isValid True if the drag event is valid, else false to cancel + */ + onBeforeDrag : function(data, e){ + return true; + }, + + /** + * An empty function by default, but provided so that you can perform a custom action once the initial + * drag event has begun. The drag cannot be canceled from this function. + * @param {Number} x The x position of the click on the dragged object + * @param {Number} y The y position of the click on the dragged object + */ + onStartDrag : Ext.emptyFn, + + // private override + startDrag : function(x, y){ + this.proxy.reset(); + this.dragging = true; + this.proxy.update(""); + this.onInitDrag(x, y); + this.proxy.show(); + }, + + // private + onInitDrag : function(x, y){ + var clone = this.el.dom.cloneNode(true); + clone.id = Ext.id(); // prevent duplicate ids + this.proxy.update(clone); + this.onStartDrag(x, y); + return true; + }, + + /** + * Returns the drag source's underlying {@link Ext.dd.StatusProxy} + * @return {Ext.dd.StatusProxy} proxy The StatusProxy + */ + getProxy : function(){ + return this.proxy; + }, + + /** + * Hides the drag source's {@link Ext.dd.StatusProxy} + */ + hideProxy : function(){ + this.proxy.hide(); + this.proxy.reset(true); + this.dragging = false; + }, + + // private + triggerCacheRefresh : function(){ + Ext.dd.DDM.refreshCache(this.groups); + }, + + // private - override to prevent hiding + b4EndDrag: function(e) { + }, + + // private - override to prevent moving + endDrag : function(e){ + this.onEndDrag(this.dragData, e); + }, + + // private + onEndDrag : function(data, e){ + }, + + // private - pin to cursor + autoOffset : function(x, y) { + this.setDelta(-12, -20); + }, + + destroy: function(){ + Ext.dd.DragSource.superclass.destroy.call(this); + Ext.destroy(this.proxy); + } +});/** + * @class Ext.dd.DropTarget + * @extends Ext.dd.DDTarget + * A simple class that provides the basic implementation needed to make any element a drop target that can have + * draggable items dropped onto it. The drop has no effect until an implementation of notifyDrop is provided. + * @constructor + * @param {Mixed} el The container element + * @param {Object} config + */ +Ext.dd.DropTarget = function(el, config){ + this.el = Ext.get(el); + + Ext.apply(this, config); + + if(this.containerScroll){ + Ext.dd.ScrollManager.register(this.el); + } + + Ext.dd.DropTarget.superclass.constructor.call(this, this.el.dom, this.ddGroup || this.group, + {isTarget: true}); + +}; + +Ext.extend(Ext.dd.DropTarget, Ext.dd.DDTarget, { + /** + * @cfg {String} ddGroup + * A named drag drop group to which this object belongs. If a group is specified, then this object will only + * interact with other drag drop objects in the same group (defaults to undefined). + */ + /** + * @cfg {String} overClass + * The CSS class applied to the drop target element while the drag source is over it (defaults to ""). + */ + /** + * @cfg {String} dropAllowed + * The CSS class returned to the drag source when drop is allowed (defaults to "x-dd-drop-ok"). + */ + dropAllowed : "x-dd-drop-ok", + /** + * @cfg {String} dropNotAllowed + * The CSS class returned to the drag source when drop is not allowed (defaults to "x-dd-drop-nodrop"). + */ + dropNotAllowed : "x-dd-drop-nodrop", + + // private + isTarget : true, + + // private + isNotifyTarget : true, + + /** + * The function a {@link Ext.dd.DragSource} calls once to notify this drop target that the source is now over the + * target. This default implementation adds the CSS class specified by overClass (if any) to the drop element + * and returns the dropAllowed config value. This method should be overridden if drop validation is required. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop target + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {String} status The CSS class that communicates the drop status back to the source so that the + * underlying {@link Ext.dd.StatusProxy} can be updated + */ + notifyEnter : function(dd, e, data){ + if(this.overClass){ + this.el.addClass(this.overClass); + } + return this.dropAllowed; + }, + + /** + * The function a {@link Ext.dd.DragSource} calls continuously while it is being dragged over the target. + * This method will be called on every mouse movement while the drag source is over the drop target. + * This default implementation simply returns the dropAllowed config value. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop target + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {String} status The CSS class that communicates the drop status back to the source so that the + * underlying {@link Ext.dd.StatusProxy} can be updated + */ + notifyOver : function(dd, e, data){ + return this.dropAllowed; + }, + + /** + * The function a {@link Ext.dd.DragSource} calls once to notify this drop target that the source has been dragged + * out of the target without dropping. This default implementation simply removes the CSS class specified by + * overClass (if any) from the drop element. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop target + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + */ + notifyOut : function(dd, e, data){ + if(this.overClass){ + this.el.removeClass(this.overClass); + } + }, + + /** + * The function a {@link Ext.dd.DragSource} calls once to notify this drop target that the dragged item has + * been dropped on it. This method has no default implementation and returns false, so you must provide an + * implementation that does something to process the drop event and returns true so that the drag source's + * repair action does not run. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop target + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {Boolean} True if the drop was valid, else false + */ + notifyDrop : function(dd, e, data){ + return false; + } +});/** + * @class Ext.dd.DragZone + * @extends Ext.dd.DragSource + *

      This class provides a container DD instance that allows dragging of multiple child source nodes.

      + *

      This class does not move the drag target nodes, but a proxy element which may contain + * any DOM structure you wish. The DOM element to show in the proxy is provided by either a + * provided implementation of {@link #getDragData}, or by registered draggables registered with {@link Ext.dd.Registry}

      + *

      If you wish to provide draggability for an arbitrary number of DOM nodes, each of which represent some + * application object (For example nodes in a {@link Ext.DataView DataView}) then use of this class + * is the most efficient way to "activate" those nodes.

      + *

      By default, this class requires that draggable child nodes are registered with {@link Ext.dd.Registry}. + * However a simpler way to allow a DragZone to manage any number of draggable elements is to configure + * the DragZone with an implementation of the {@link #getDragData} method which interrogates the passed + * mouse event to see if it has taken place within an element, or class of elements. This is easily done + * by using the event's {@link Ext.EventObject#getTarget getTarget} method to identify a node based on a + * {@link Ext.DomQuery} selector. For example, to make the nodes of a DataView draggable, use the following + * technique. Knowledge of the use of the DataView is required:

      
      +myDataView.on('render', function(v) {
      +    myDataView.dragZone = new Ext.dd.DragZone(v.getEl(), {
      +
      +//      On receipt of a mousedown event, see if it is within a DataView node.
      +//      Return a drag data object if so.
      +        getDragData: function(e) {
      +
      +//          Use the DataView's own itemSelector (a mandatory property) to
      +//          test if the mousedown is within one of the DataView's nodes.
      +            var sourceEl = e.getTarget(v.itemSelector, 10);
      +
      +//          If the mousedown is within a DataView node, clone the node to produce
      +//          a ddel element for use by the drag proxy. Also add application data
      +//          to the returned data object.
      +            if (sourceEl) {
      +                d = sourceEl.cloneNode(true);
      +                d.id = Ext.id();
      +                return {
      +                    ddel: d,
      +                    sourceEl: sourceEl,
      +                    repairXY: Ext.fly(sourceEl).getXY(),
      +                    sourceStore: v.store,
      +                    draggedRecord: v.{@link Ext.DataView#getRecord getRecord}(sourceEl)
      +                }
      +            }
      +        },
      +
      +//      Provide coordinates for the proxy to slide back to on failed drag.
      +//      This is the original XY coordinates of the draggable element captured
      +//      in the getDragData method.
      +        getRepairXY: function() {
      +            return this.dragData.repairXY;
      +        }
      +    });
      +});
      + * See the {@link Ext.dd.DropZone DropZone} documentation for details about building a DropZone which + * cooperates with this DragZone. + * @constructor + * @param {Mixed} el The container element + * @param {Object} config + */ +Ext.dd.DragZone = function(el, config){ + Ext.dd.DragZone.superclass.constructor.call(this, el, config); + if(this.containerScroll){ + Ext.dd.ScrollManager.register(this.el); + } +}; + +Ext.extend(Ext.dd.DragZone, Ext.dd.DragSource, { + /** + * This property contains the data representing the dragged object. This data is set up by the implementation + * of the {@link #getDragData} method. It must contain a ddel property, but can contain + * any other data according to the application's needs. + * @type Object + * @property dragData + */ + /** + * @cfg {Boolean} containerScroll True to register this container with the Scrollmanager + * for auto scrolling during drag operations. + */ + /** + * @cfg {String} hlColor The color to use when visually highlighting the drag source in the afterRepair + * method after a failed drop (defaults to "c3daf9" - light blue) + */ + + /** + * Called when a mousedown occurs in this container. Looks in {@link Ext.dd.Registry} + * for a valid target to drag based on the mouse down. Override this method + * to provide your own lookup logic (e.g. finding a child by class name). Make sure your returned + * object has a "ddel" attribute (with an HTML Element) for other functions to work. + * @param {EventObject} e The mouse down event + * @return {Object} The dragData + */ + getDragData : function(e){ + return Ext.dd.Registry.getHandleFromEvent(e); + }, + + /** + * Called once drag threshold has been reached to initialize the proxy element. By default, it clones the + * this.dragData.ddel + * @param {Number} x The x position of the click on the dragged object + * @param {Number} y The y position of the click on the dragged object + * @return {Boolean} true to continue the drag, false to cancel + */ + onInitDrag : function(x, y){ + this.proxy.update(this.dragData.ddel.cloneNode(true)); + this.onStartDrag(x, y); + return true; + }, + + /** + * Called after a repair of an invalid drop. By default, highlights this.dragData.ddel + */ + afterRepair : function(){ + if(Ext.enableFx){ + Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || "c3daf9"); + } + this.dragging = false; + }, + + /** + * Called before a repair of an invalid drop to get the XY to animate to. By default returns + * the XY of this.dragData.ddel + * @param {EventObject} e The mouse up event + * @return {Array} The xy location (e.g. [100, 200]) + */ + getRepairXY : function(e){ + return Ext.Element.fly(this.dragData.ddel).getXY(); + } +});/** + * @class Ext.dd.DropZone + * @extends Ext.dd.DropTarget + *

      This class provides a container DD instance that allows dropping on multiple child target nodes.

      + *

      By default, this class requires that child nodes accepting drop are registered with {@link Ext.dd.Registry}. + * However a simpler way to allow a DropZone to manage any number of target elements is to configure the + * DropZone with an implementation of {@link #getTargetFromEvent} which interrogates the passed + * mouse event to see if it has taken place within an element, or class of elements. This is easily done + * by using the event's {@link Ext.EventObject#getTarget getTarget} method to identify a node based on a + * {@link Ext.DomQuery} selector.

      + *

      Once the DropZone has detected through calling getTargetFromEvent, that the mouse is over + * a drop target, that target is passed as the first parameter to {@link #onNodeEnter}, {@link #onNodeOver}, + * {@link #onNodeOut}, {@link #onNodeDrop}. You may configure the instance of DropZone with implementations + * of these methods to provide application-specific behaviour for these events to update both + * application state, and UI state.

      + *

      For example to make a GridPanel a cooperating target with the example illustrated in + * {@link Ext.dd.DragZone DragZone}, the following technique might be used:

      
      +myGridPanel.on('render', function() {
      +    myGridPanel.dropZone = new Ext.dd.DropZone(myGridPanel.getView().scroller, {
      +
      +//      If the mouse is over a grid row, return that node. This is
      +//      provided as the "target" parameter in all "onNodeXXXX" node event handling functions
      +        getTargetFromEvent: function(e) {
      +            return e.getTarget(myGridPanel.getView().rowSelector);
      +        },
      +
      +//      On entry into a target node, highlight that node.
      +        onNodeEnter : function(target, dd, e, data){ 
      +            Ext.fly(target).addClass('my-row-highlight-class');
      +        },
      +
      +//      On exit from a target node, unhighlight that node.
      +        onNodeOut : function(target, dd, e, data){ 
      +            Ext.fly(target).removeClass('my-row-highlight-class');
      +        },
      +
      +//      While over a target node, return the default drop allowed class which
      +//      places a "tick" icon into the drag proxy.
      +        onNodeOver : function(target, dd, e, data){ 
      +            return Ext.dd.DropZone.prototype.dropAllowed;
      +        },
      +
      +//      On node drop we can interrogate the target to find the underlying
      +//      application object that is the real target of the dragged data.
      +//      In this case, it is a Record in the GridPanel's Store.
      +//      We can use the data set up by the DragZone's getDragData method to read
      +//      any data we decided to attach in the DragZone's getDragData method.
      +        onNodeDrop : function(target, dd, e, data){
      +            var rowIndex = myGridPanel.getView().findRowIndex(target);
      +            var r = myGridPanel.getStore().getAt(rowIndex);
      +            Ext.Msg.alert('Drop gesture', 'Dropped Record id ' + data.draggedRecord.id +
      +                ' on Record id ' + r.id);
      +            return true;
      +        }
      +    });
      +}
      +
      + * See the {@link Ext.dd.DragZone DragZone} documentation for details about building a DragZone which + * cooperates with this DropZone. + * @constructor + * @param {Mixed} el The container element + * @param {Object} config + */ +Ext.dd.DropZone = function(el, config){ + Ext.dd.DropZone.superclass.constructor.call(this, el, config); +}; + +Ext.extend(Ext.dd.DropZone, Ext.dd.DropTarget, { + /** + * Returns a custom data object associated with the DOM node that is the target of the event. By default + * this looks up the event target in the {@link Ext.dd.Registry}, although you can override this method to + * provide your own custom lookup. + * @param {Event} e The event + * @return {Object} data The custom data + */ + getTargetFromEvent : function(e){ + return Ext.dd.Registry.getTargetFromEvent(e); + }, + + /** + * Called when the DropZone determines that a {@link Ext.dd.DragSource} has entered a drop node + * that has either been registered or detected by a configured implementation of {@link #getTargetFromEvent}. + * This method has no default implementation and should be overridden to provide + * node-specific processing if necessary. + * @param {Object} nodeData The custom data associated with the drop node (this is the same value returned from + * {@link #getTargetFromEvent} for this node) + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + */ + onNodeEnter : function(n, dd, e, data){ + + }, + + /** + * Called while the DropZone determines that a {@link Ext.dd.DragSource} is over a drop node + * that has either been registered or detected by a configured implementation of {@link #getTargetFromEvent}. + * The default implementation returns this.dropNotAllowed, so it should be + * overridden to provide the proper feedback. + * @param {Object} nodeData The custom data associated with the drop node (this is the same value returned from + * {@link #getTargetFromEvent} for this node) + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {String} status The CSS class that communicates the drop status back to the source so that the + * underlying {@link Ext.dd.StatusProxy} can be updated + */ + onNodeOver : function(n, dd, e, data){ + return this.dropAllowed; + }, + + /** + * Called when the DropZone determines that a {@link Ext.dd.DragSource} has been dragged out of + * the drop node without dropping. This method has no default implementation and should be overridden to provide + * node-specific processing if necessary. + * @param {Object} nodeData The custom data associated with the drop node (this is the same value returned from + * {@link #getTargetFromEvent} for this node) + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + */ + onNodeOut : function(n, dd, e, data){ + + }, + + /** + * Called when the DropZone determines that a {@link Ext.dd.DragSource} has been dropped onto + * the drop node. The default implementation returns false, so it should be overridden to provide the + * appropriate processing of the drop event and return true so that the drag source's repair action does not run. + * @param {Object} nodeData The custom data associated with the drop node (this is the same value returned from + * {@link #getTargetFromEvent} for this node) + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {Boolean} True if the drop was valid, else false + */ + onNodeDrop : function(n, dd, e, data){ + return false; + }, + + /** + * Called while the DropZone determines that a {@link Ext.dd.DragSource} is being dragged over it, + * but not over any of its registered drop nodes. The default implementation returns this.dropNotAllowed, so + * it should be overridden to provide the proper feedback if necessary. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {String} status The CSS class that communicates the drop status back to the source so that the + * underlying {@link Ext.dd.StatusProxy} can be updated + */ + onContainerOver : function(dd, e, data){ + return this.dropNotAllowed; + }, + + /** + * Called when the DropZone determines that a {@link Ext.dd.DragSource} has been dropped on it, + * but not on any of its registered drop nodes. The default implementation returns false, so it should be + * overridden to provide the appropriate processing of the drop event if you need the drop zone itself to + * be able to accept drops. It should return true when valid so that the drag source's repair action does not run. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {Boolean} True if the drop was valid, else false + */ + onContainerDrop : function(dd, e, data){ + return false; + }, + + /** + * The function a {@link Ext.dd.DragSource} calls once to notify this drop zone that the source is now over + * the zone. The default implementation returns this.dropNotAllowed and expects that only registered drop + * nodes can process drag drop operations, so if you need the drop zone itself to be able to process drops + * you should override this method and provide a custom implementation. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {String} status The CSS class that communicates the drop status back to the source so that the + * underlying {@link Ext.dd.StatusProxy} can be updated + */ + notifyEnter : function(dd, e, data){ + return this.dropNotAllowed; + }, + + /** + * The function a {@link Ext.dd.DragSource} calls continuously while it is being dragged over the drop zone. + * This method will be called on every mouse movement while the drag source is over the drop zone. + * It will call {@link #onNodeOver} while the drag source is over a registered node, and will also automatically + * delegate to the appropriate node-specific methods as necessary when the drag source enters and exits + * registered nodes ({@link #onNodeEnter}, {@link #onNodeOut}). If the drag source is not currently over a + * registered node, it will call {@link #onContainerOver}. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {String} status The CSS class that communicates the drop status back to the source so that the + * underlying {@link Ext.dd.StatusProxy} can be updated + */ + notifyOver : function(dd, e, data){ + var n = this.getTargetFromEvent(e); + if(!n){ // not over valid drop target + if(this.lastOverNode){ + this.onNodeOut(this.lastOverNode, dd, e, data); + this.lastOverNode = null; + } + return this.onContainerOver(dd, e, data); + } + if(this.lastOverNode != n){ + if(this.lastOverNode){ + this.onNodeOut(this.lastOverNode, dd, e, data); + } + this.onNodeEnter(n, dd, e, data); + this.lastOverNode = n; + } + return this.onNodeOver(n, dd, e, data); + }, + + /** + * The function a {@link Ext.dd.DragSource} calls once to notify this drop zone that the source has been dragged + * out of the zone without dropping. If the drag source is currently over a registered node, the notification + * will be delegated to {@link #onNodeOut} for node-specific handling, otherwise it will be ignored. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop target + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag zone + */ + notifyOut : function(dd, e, data){ + if(this.lastOverNode){ + this.onNodeOut(this.lastOverNode, dd, e, data); + this.lastOverNode = null; + } + }, + + /** + * The function a {@link Ext.dd.DragSource} calls once to notify this drop zone that the dragged item has + * been dropped on it. The drag zone will look up the target node based on the event passed in, and if there + * is a node registered for that event, it will delegate to {@link #onNodeDrop} for node-specific handling, + * otherwise it will call {@link #onContainerDrop}. + * @param {Ext.dd.DragSource} source The drag source that was dragged over this drop zone + * @param {Event} e The event + * @param {Object} data An object containing arbitrary data supplied by the drag source + * @return {Boolean} True if the drop was valid, else false + */ + notifyDrop : function(dd, e, data){ + if(this.lastOverNode){ + this.onNodeOut(this.lastOverNode, dd, e, data); + this.lastOverNode = null; + } + var n = this.getTargetFromEvent(e); + return n ? + this.onNodeDrop(n, dd, e, data) : + this.onContainerDrop(dd, e, data); + }, + + // private + triggerCacheRefresh : function(){ + Ext.dd.DDM.refreshCache(this.groups); + } +});/** + * @class Ext.Element + */ +Ext.Element.addMethods({ + /** + * Initializes a {@link Ext.dd.DD} drag drop object for this element. + * @param {String} group The group the DD object is member of + * @param {Object} config The DD config object + * @param {Object} overrides An object containing methods to override/implement on the DD object + * @return {Ext.dd.DD} The DD object + */ + initDD : function(group, config, overrides){ + var dd = new Ext.dd.DD(Ext.id(this.dom), group, config); + return Ext.apply(dd, overrides); + }, + + /** + * Initializes a {@link Ext.dd.DDProxy} object for this element. + * @param {String} group The group the DDProxy object is member of + * @param {Object} config The DDProxy config object + * @param {Object} overrides An object containing methods to override/implement on the DDProxy object + * @return {Ext.dd.DDProxy} The DDProxy object + */ + initDDProxy : function(group, config, overrides){ + var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config); + return Ext.apply(dd, overrides); + }, + + /** + * Initializes a {@link Ext.dd.DDTarget} object for this element. + * @param {String} group The group the DDTarget object is member of + * @param {Object} config The DDTarget config object + * @param {Object} overrides An object containing methods to override/implement on the DDTarget object + * @return {Ext.dd.DDTarget} The DDTarget object + */ + initDDTarget : function(group, config, overrides){ + var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config); + return Ext.apply(dd, overrides); + } +});/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.Window + * @extends Ext.Panel + *

      A specialized panel intended for use as an application window. Windows are floated, {@link #resizable}, and + * {@link #draggable} by default. Windows can be {@link #maximizable maximized} to fill the viewport, + * restored to their prior size, and can be {@link #minimize}d.

      + *

      Windows can also be linked to a {@link Ext.WindowGroup} or managed by the {@link Ext.WindowMgr} to provide + * grouping, activation, to front, to back and other application-specific behavior.

      + *

      By default, Windows will be rendered to document.body. To {@link #constrain} a Window to another element + * specify {@link Ext.Component#renderTo renderTo}.

      + *

      Note: By default, the {@link #closable close} header tool destroys the Window resulting in + * destruction of any child Components. This makes the Window object, and all its descendants unusable. To enable + * re-use of a Window, use {@link #closeAction closeAction: 'hide'}.

      + * @constructor + * @param {Object} config The config object + * @xtype window + */ +Ext.Window = Ext.extend(Ext.Panel, { + /** + * @cfg {Number} x + * The X position of the left edge of the window on initial showing. Defaults to centering the Window within + * the width of the Window's container {@link Ext.Element Element) (The Element that the Window is rendered to). + */ + /** + * @cfg {Number} y + * The Y position of the top edge of the window on initial showing. Defaults to centering the Window within + * the height of the Window's container {@link Ext.Element Element) (The Element that the Window is rendered to). + */ + /** + * @cfg {Boolean} modal + * True to make the window modal and mask everything behind it when displayed, false to display it without + * restricting access to other UI elements (defaults to false). + */ + /** + * @cfg {String/Element} animateTarget + * Id or element from which the window should animate while opening (defaults to null with no animation). + */ + /** + * @cfg {String} resizeHandles + * A valid {@link Ext.Resizable} handles config string (defaults to 'all'). Only applies when resizable = true. + */ + /** + * @cfg {Ext.WindowGroup} manager + * A reference to the WindowGroup that should manage this window (defaults to {@link Ext.WindowMgr}). + */ + /** + * @cfg {String/Number/Component} defaultButton + *

      Specifies a Component to receive focus when this Window is focussed.

      + *

      This may be one of:

        + *
      • The index of a footer Button.
      • + *
      • The id of a Component.
      • + *
      • A Component.
      • + *
      + */ + /** + * @cfg {Function} onEsc + * Allows override of the built-in processing for the escape key. Default action + * is to close the Window (performing whatever action is specified in {@link #closeAction}. + * To prevent the Window closing when the escape key is pressed, specify this as + * Ext.emptyFn (See {@link Ext#emptyFn}). + */ + /** + * @cfg {Boolean} collapsed + * True to render the window collapsed, false to render it expanded (defaults to false). Note that if + * {@link #expandOnShow} is true (the default) it will override the collapsed config and the window + * will always be expanded when shown. + */ + /** + * @cfg {Boolean} maximized + * True to initially display the window in a maximized state. (Defaults to false). + */ + + /** + * @cfg {String} baseCls + * The base CSS class to apply to this panel's element (defaults to 'x-window'). + */ + baseCls : 'x-window', + /** + * @cfg {Boolean} resizable + * True to allow user resizing at each edge and corner of the window, false to disable resizing (defaults to true). + */ + resizable : true, + /** + * @cfg {Boolean} draggable + * True to allow the window to be dragged by the header bar, false to disable dragging (defaults to true). Note + * that by default the window will be centered in the viewport, so if dragging is disabled the window may need + * to be positioned programmatically after render (e.g., myWindow.setPosition(100, 100);). + */ + draggable : true, + /** + * @cfg {Boolean} closable + *

      True to display the 'close' tool button and allow the user to close the window, false to + * hide the button and disallow closing the window (defaults to true).

      + *

      By default, when close is requested by either clicking the close button in the header + * or pressing ESC when the Window has focus, the {@link #close} method will be called. This + * will {@link Ext.Component#destroy destroy} the Window and its content meaning that + * it may not be reused.

      + *

      To make closing a Window hide the Window so that it may be reused, set + * {@link #closeAction} to 'hide'. + */ + closable : true, + /** + * @cfg {String} closeAction + *

      The action to take when the close header tool is clicked: + *

        + *
      • '{@link #close}' : Default
        + * {@link #close remove} the window from the DOM and {@link Ext.Component#destroy destroy} + * it and all descendant Components. The window will not be available to be + * redisplayed via the {@link #show} method. + *
      • + *
      • '{@link #hide}' :
        + * {@link #hide} the window by setting visibility to hidden and applying negative offsets. + * The window will be available to be redisplayed via the {@link #show} method. + *
      • + *
      + *

      Note: This setting does not affect the {@link #close} method + * which will always {@link Ext.Component#destroy destroy} the window. To + * programatically hide a window, call {@link #hide}.

      + */ + closeAction : 'close', + /** + * @cfg {Boolean} constrain + * True to constrain the window within its containing element, false to allow it to fall outside of its + * containing element. By default the window will be rendered to document.body. To render and constrain the + * window within another element specify {@link #renderTo}. + * (defaults to false). Optionally the header only can be constrained using {@link #constrainHeader}. + */ + constrain : false, + /** + * @cfg {Boolean} constrainHeader + * True to constrain the window header within its containing element (allowing the window body to fall outside + * of its containing element) or false to allow the header to fall outside its containing element (defaults to + * false). Optionally the entire window can be constrained using {@link #constrain}. + */ + constrainHeader : false, + /** + * @cfg {Boolean} plain + * True to render the window body with a transparent background so that it will blend into the framing + * elements, false to add a lighter background color to visually highlight the body element and separate it + * more distinctly from the surrounding frame (defaults to false). + */ + plain : false, + /** + * @cfg {Boolean} minimizable + * True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button + * and disallow minimizing the window (defaults to false). Note that this button provides no implementation -- + * the behavior of minimizing a window is implementation-specific, so the minimize event must be handled and a + * custom minimize behavior implemented for this option to be useful. + */ + minimizable : false, + /** + * @cfg {Boolean} maximizable + * True to display the 'maximize' tool button and allow the user to maximize the window, false to hide the button + * and disallow maximizing the window (defaults to false). Note that when a window is maximized, the tool button + * will automatically change to a 'restore' button with the appropriate behavior already built-in that will + * restore the window to its previous size. + */ + maximizable : false, + /** + * @cfg {Number} minHeight + * The minimum height in pixels allowed for this window (defaults to 100). Only applies when resizable = true. + */ + minHeight : 100, + /** + * @cfg {Number} minWidth + * The minimum width in pixels allowed for this window (defaults to 200). Only applies when resizable = true. + */ + minWidth : 200, + /** + * @cfg {Boolean} expandOnShow + * True to always expand the window when it is displayed, false to keep it in its current state (which may be + * {@link #collapsed}) when displayed (defaults to true). + */ + expandOnShow : true, + + // inherited docs, same default + collapsible : false, + + /** + * @cfg {Boolean} initHidden + * True to hide the window until show() is explicitly called (defaults to true). + * @deprecated + */ + initHidden : undefined, + + /** + * @cfg {Boolean} hidden + * Render this component hidden (default is true). If true, the + * {@link #hide} method will be called internally. + */ + hidden : true, + + // The following configs are set to provide the basic functionality of a window. + // Changing them would require additional code to handle correctly and should + // usually only be done in subclasses that can provide custom behavior. Changing them + // may have unexpected or undesirable results. + /** @cfg {String} elements @hide */ + elements : 'header,body', + /** @cfg {Boolean} frame @hide */ + frame : true, + /** @cfg {Boolean} floating @hide */ + floating : true, + + // private + initComponent : function(){ + this.initTools(); + Ext.Window.superclass.initComponent.call(this); + this.addEvents( + /** + * @event activate + * Fires after the window has been visually activated via {@link #setActive}. + * @param {Ext.Window} this + */ + /** + * @event deactivate + * Fires after the window has been visually deactivated via {@link #setActive}. + * @param {Ext.Window} this + */ + /** + * @event resize + * Fires after the window has been resized. + * @param {Ext.Window} this + * @param {Number} width The window's new width + * @param {Number} height The window's new height + */ + 'resize', + /** + * @event maximize + * Fires after the window has been maximized. + * @param {Ext.Window} this + */ + 'maximize', + /** + * @event minimize + * Fires after the window has been minimized. + * @param {Ext.Window} this + */ + 'minimize', + /** + * @event restore + * Fires after the window has been restored to its original size after being maximized. + * @param {Ext.Window} this + */ + 'restore' + ); + // for backwards compat, this should be removed at some point + if(Ext.isDefined(this.initHidden)){ + this.hidden = this.initHidden; + } + if(this.hidden === false){ + this.hidden = true; + this.show(); + } + }, + + // private + getState : function(){ + return Ext.apply(Ext.Window.superclass.getState.call(this) || {}, this.getBox(true)); + }, + + // private + onRender : function(ct, position){ + Ext.Window.superclass.onRender.call(this, ct, position); + + if(this.plain){ + this.el.addClass('x-window-plain'); + } + + // this element allows the Window to be focused for keyboard events + this.focusEl = this.el.createChild({ + tag: 'a', href:'#', cls:'x-dlg-focus', + tabIndex:'-1', html: ' '}); + this.focusEl.swallowEvent('click', true); + + this.proxy = this.el.createProxy('x-window-proxy'); + this.proxy.enableDisplayMode('block'); + + if(this.modal){ + this.mask = this.container.createChild({cls:'ext-el-mask'}, this.el.dom); + this.mask.enableDisplayMode('block'); + this.mask.hide(); + this.mon(this.mask, 'click', this.focus, this); + } + if(this.maximizable){ + this.mon(this.header, 'dblclick', this.toggleMaximize, this); + } + }, + + // private + initEvents : function(){ + Ext.Window.superclass.initEvents.call(this); + if(this.animateTarget){ + this.setAnimateTarget(this.animateTarget); + } + + if(this.resizable){ + this.resizer = new Ext.Resizable(this.el, { + minWidth: this.minWidth, + minHeight:this.minHeight, + handles: this.resizeHandles || 'all', + pinned: true, + resizeElement : this.resizerAction, + handleCls: 'x-window-handle' + }); + this.resizer.window = this; + this.mon(this.resizer, 'beforeresize', this.beforeResize, this); + } + + if(this.draggable){ + this.header.addClass('x-window-draggable'); + } + this.mon(this.el, 'mousedown', this.toFront, this); + this.manager = this.manager || Ext.WindowMgr; + this.manager.register(this); + if(this.maximized){ + this.maximized = false; + this.maximize(); + } + if(this.closable){ + var km = this.getKeyMap(); + km.on(27, this.onEsc, this); + km.disable(); + } + }, + + initDraggable : function(){ + /** + *

      If this Window is configured {@link #draggable}, this property will contain + * an instance of {@link Ext.dd.DD} which handles dragging the Window's DOM Element.

      + *

      This has implementations of startDrag, onDrag and endDrag + * which perform the dragging action. If extra logic is needed at these points, use + * {@link Function#createInterceptor createInterceptor} or {@link Function#createSequence createSequence} to + * augment the existing implementations.

      + * @type Ext.dd.DD + * @property dd + */ + this.dd = new Ext.Window.DD(this); + }, + + // private + onEsc : function(k, e){ + e.stopEvent(); + this[this.closeAction](); + }, + + // private + beforeDestroy : function(){ + if(this.rendered){ + this.hide(); + this.clearAnchor(); + Ext.destroy( + this.focusEl, + this.resizer, + this.dd, + this.proxy, + this.mask + ); + } + Ext.Window.superclass.beforeDestroy.call(this); + }, + + // private + onDestroy : function(){ + if(this.manager){ + this.manager.unregister(this); + } + Ext.Window.superclass.onDestroy.call(this); + }, + + // private + initTools : function(){ + if(this.minimizable){ + this.addTool({ + id: 'minimize', + handler: this.minimize.createDelegate(this, []) + }); + } + if(this.maximizable){ + this.addTool({ + id: 'maximize', + handler: this.maximize.createDelegate(this, []) + }); + this.addTool({ + id: 'restore', + handler: this.restore.createDelegate(this, []), + hidden:true + }); + } + if(this.closable){ + this.addTool({ + id: 'close', + handler: this[this.closeAction].createDelegate(this, []) + }); + } + }, + + // private + resizerAction : function(){ + var box = this.proxy.getBox(); + this.proxy.hide(); + this.window.handleResize(box); + return box; + }, + + // private + beforeResize : function(){ + this.resizer.minHeight = Math.max(this.minHeight, this.getFrameHeight() + 40); // 40 is a magic minimum content size? + this.resizer.minWidth = Math.max(this.minWidth, this.getFrameWidth() + 40); + this.resizeBox = this.el.getBox(); + }, + + // private + updateHandles : function(){ + if(Ext.isIE && this.resizer){ + this.resizer.syncHandleHeight(); + this.el.repaint(); + } + }, + + // private + handleResize : function(box){ + var rz = this.resizeBox; + if(rz.x != box.x || rz.y != box.y){ + this.updateBox(box); + }else{ + this.setSize(box); + if (Ext.isIE6 && Ext.isStrict) { + this.doLayout(); + } + } + this.focus(); + this.updateHandles(); + this.saveState(); + }, + + /** + * Focuses the window. If a defaultButton is set, it will receive focus, otherwise the + * window itself will receive focus. + */ + focus : function(){ + var f = this.focusEl, + db = this.defaultButton, + t = typeof db, + el, + ct; + if(Ext.isDefined(db)){ + if(Ext.isNumber(db) && this.fbar){ + f = this.fbar.items.get(db); + }else if(Ext.isString(db)){ + f = Ext.getCmp(db); + }else{ + f = db; + } + el = f.getEl(); + ct = Ext.getDom(this.container); + if (el && ct) { + if (!Ext.lib.Region.getRegion(ct).contains(Ext.lib.Region.getRegion(el.dom))){ + return; + } + } + } + f = f || this.focusEl; + f.focus.defer(10, f); + }, + + /** + * Sets the target element from which the window should animate while opening. + * @param {String/Element} el The target element or id + */ + setAnimateTarget : function(el){ + el = Ext.get(el); + this.animateTarget = el; + }, + + // private + beforeShow : function(){ + delete this.el.lastXY; + delete this.el.lastLT; + if(this.x === undefined || this.y === undefined){ + var xy = this.el.getAlignToXY(this.container, 'c-c'); + var pos = this.el.translatePoints(xy[0], xy[1]); + this.x = this.x === undefined? pos.left : this.x; + this.y = this.y === undefined? pos.top : this.y; + } + this.el.setLeftTop(this.x, this.y); + + if(this.expandOnShow){ + this.expand(false); + } + + if(this.modal){ + Ext.getBody().addClass('x-body-masked'); + this.mask.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true)); + this.mask.show(); + } + }, + + /** + * Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden. + * @param {String/Element} animateTarget (optional) The target element or id from which the window should + * animate while opening (defaults to null with no animation) + * @param {Function} callback (optional) A callback function to call after the window is displayed + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to this Window. + * @return {Ext.Window} this + */ + show : function(animateTarget, cb, scope){ + if(!this.rendered){ + this.render(Ext.getBody()); + } + if(this.hidden === false){ + this.toFront(); + return this; + } + if(this.fireEvent('beforeshow', this) === false){ + return this; + } + if(cb){ + this.on('show', cb, scope, {single:true}); + } + this.hidden = false; + if(Ext.isDefined(animateTarget)){ + this.setAnimateTarget(animateTarget); + } + this.beforeShow(); + if(this.animateTarget){ + this.animShow(); + }else{ + this.afterShow(); + } + return this; + }, + + // private + afterShow : function(isAnim){ + if (this.isDestroyed){ + return false; + } + this.proxy.hide(); + this.el.setStyle('display', 'block'); + this.el.show(); + if(this.maximized){ + this.fitContainer(); + } + if(Ext.isMac && Ext.isGecko2){ // work around stupid FF 2.0/Mac scroll bar bug + this.cascade(this.setAutoScroll); + } + + if(this.monitorResize || this.modal || this.constrain || this.constrainHeader){ + Ext.EventManager.onWindowResize(this.onWindowResize, this); + } + this.doConstrain(); + this.doLayout(); + if(this.keyMap){ + this.keyMap.enable(); + } + this.toFront(); + this.updateHandles(); + if(isAnim && (Ext.isIE || Ext.isWebKit)){ + var sz = this.getSize(); + this.onResize(sz.width, sz.height); + } + this.onShow(); + this.fireEvent('show', this); + }, + + // private + animShow : function(){ + this.proxy.show(); + this.proxy.setBox(this.animateTarget.getBox()); + this.proxy.setOpacity(0); + var b = this.getBox(); + this.el.setStyle('display', 'none'); + this.proxy.shift(Ext.apply(b, { + callback: this.afterShow.createDelegate(this, [true], false), + scope: this, + easing: 'easeNone', + duration: 0.25, + opacity: 0.5 + })); + }, + + /** + * Hides the window, setting it to invisible and applying negative offsets. + * @param {String/Element} animateTarget (optional) The target element or id to which the window should + * animate while hiding (defaults to null with no animation) + * @param {Function} callback (optional) A callback function to call after the window is hidden + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to this Window. + * @return {Ext.Window} this + */ + hide : function(animateTarget, cb, scope){ + if(this.hidden || this.fireEvent('beforehide', this) === false){ + return this; + } + if(cb){ + this.on('hide', cb, scope, {single:true}); + } + this.hidden = true; + if(animateTarget !== undefined){ + this.setAnimateTarget(animateTarget); + } + if(this.modal){ + this.mask.hide(); + Ext.getBody().removeClass('x-body-masked'); + } + if(this.animateTarget){ + this.animHide(); + }else{ + this.el.hide(); + this.afterHide(); + } + return this; + }, + + // private + afterHide : function(){ + this.proxy.hide(); + if(this.monitorResize || this.modal || this.constrain || this.constrainHeader){ + Ext.EventManager.removeResizeListener(this.onWindowResize, this); + } + if(this.keyMap){ + this.keyMap.disable(); + } + this.onHide(); + this.fireEvent('hide', this); + }, + + // private + animHide : function(){ + this.proxy.setOpacity(0.5); + this.proxy.show(); + var tb = this.getBox(false); + this.proxy.setBox(tb); + this.el.hide(); + this.proxy.shift(Ext.apply(this.animateTarget.getBox(), { + callback: this.afterHide, + scope: this, + duration: 0.25, + easing: 'easeNone', + opacity: 0 + })); + }, + + /** + * Method that is called immediately before the show event is fired. + * Defaults to Ext.emptyFn. + */ + onShow : Ext.emptyFn, + + /** + * Method that is called immediately before the hide event is fired. + * Defaults to Ext.emptyFn. + */ + onHide : Ext.emptyFn, + + // private + onWindowResize : function(){ + if(this.maximized){ + this.fitContainer(); + } + if(this.modal){ + this.mask.setSize('100%', '100%'); + var force = this.mask.dom.offsetHeight; + this.mask.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true)); + } + this.doConstrain(); + }, + + // private + doConstrain : function(){ + if(this.constrain || this.constrainHeader){ + var offsets; + if(this.constrain){ + offsets = { + right:this.el.shadowOffset, + left:this.el.shadowOffset, + bottom:this.el.shadowOffset + }; + }else { + var s = this.getSize(); + offsets = { + right:-(s.width - 100), + bottom:-(s.height - 25) + }; + } + + var xy = this.el.getConstrainToXY(this.container, true, offsets); + if(xy){ + this.setPosition(xy[0], xy[1]); + } + } + }, + + // private - used for dragging + ghost : function(cls){ + var ghost = this.createGhost(cls); + var box = this.getBox(true); + ghost.setLeftTop(box.x, box.y); + ghost.setWidth(box.width); + this.el.hide(); + this.activeGhost = ghost; + return ghost; + }, + + // private + unghost : function(show, matchPosition){ + if(!this.activeGhost) { + return; + } + if(show !== false){ + this.el.show(); + this.focus.defer(10, this); + if(Ext.isMac && Ext.isGecko2){ // work around stupid FF 2.0/Mac scroll bar bug + this.cascade(this.setAutoScroll); + } + } + if(matchPosition !== false){ + this.setPosition(this.activeGhost.getLeft(true), this.activeGhost.getTop(true)); + } + this.activeGhost.hide(); + this.activeGhost.remove(); + delete this.activeGhost; + }, + + /** + * Placeholder method for minimizing the window. By default, this method simply fires the {@link #minimize} event + * since the behavior of minimizing a window is application-specific. To implement custom minimize behavior, + * either the minimize event can be handled or this method can be overridden. + * @return {Ext.Window} this + */ + minimize : function(){ + this.fireEvent('minimize', this); + return this; + }, + + /** + *

      Closes the Window, removes it from the DOM, {@link Ext.Component#destroy destroy}s + * the Window object and all its descendant Components. The {@link Ext.Panel#beforeclose beforeclose} + * event is fired before the close happens and will cancel the close action if it returns false.

      + *

      Note: This method is not affected by the {@link #closeAction} setting which + * only affects the action triggered when clicking the {@link #closable 'close' tool in the header}. + * To hide the Window without destroying it, call {@link #hide}.

      + */ + close : function(){ + if(this.fireEvent('beforeclose', this) !== false){ + if(this.hidden){ + this.doClose(); + }else{ + this.hide(null, this.doClose, this); + } + } + }, + + // private + doClose : function(){ + this.fireEvent('close', this); + this.destroy(); + }, + + /** + * Fits the window within its current container and automatically replaces + * the {@link #maximizable 'maximize' tool button} with the 'restore' tool button. + * Also see {@link #toggleMaximize}. + * @return {Ext.Window} this + */ + maximize : function(){ + if(!this.maximized){ + this.expand(false); + this.restoreSize = this.getSize(); + this.restorePos = this.getPosition(true); + if (this.maximizable){ + this.tools.maximize.hide(); + this.tools.restore.show(); + } + this.maximized = true; + this.el.disableShadow(); + + if(this.dd){ + this.dd.lock(); + } + if(this.collapsible){ + this.tools.toggle.hide(); + } + this.el.addClass('x-window-maximized'); + this.container.addClass('x-window-maximized-ct'); + + this.setPosition(0, 0); + this.fitContainer(); + this.fireEvent('maximize', this); + } + return this; + }, + + /** + * Restores a {@link #maximizable maximized} window back to its original + * size and position prior to being maximized and also replaces + * the 'restore' tool button with the 'maximize' tool button. + * Also see {@link #toggleMaximize}. + * @return {Ext.Window} this + */ + restore : function(){ + if(this.maximized){ + var t = this.tools; + this.el.removeClass('x-window-maximized'); + if(t.restore){ + t.restore.hide(); + } + if(t.maximize){ + t.maximize.show(); + } + this.setPosition(this.restorePos[0], this.restorePos[1]); + this.setSize(this.restoreSize.width, this.restoreSize.height); + delete this.restorePos; + delete this.restoreSize; + this.maximized = false; + this.el.enableShadow(true); + + if(this.dd){ + this.dd.unlock(); + } + if(this.collapsible && t.toggle){ + t.toggle.show(); + } + this.container.removeClass('x-window-maximized-ct'); + + this.doConstrain(); + this.fireEvent('restore', this); + } + return this; + }, + + /** + * A shortcut method for toggling between {@link #maximize} and {@link #restore} based on the current maximized + * state of the window. + * @return {Ext.Window} this + */ + toggleMaximize : function(){ + return this[this.maximized ? 'restore' : 'maximize'](); + }, + + // private + fitContainer : function(){ + var vs = this.container.getViewSize(false); + this.setSize(vs.width, vs.height); + }, + + // private + // z-index is managed by the WindowManager and may be overwritten at any time + setZIndex : function(index){ + if(this.modal){ + this.mask.setStyle('z-index', index); + } + this.el.setZIndex(++index); + index += 5; + + if(this.resizer){ + this.resizer.proxy.setStyle('z-index', ++index); + } + + this.lastZIndex = index; + }, + + /** + * Aligns the window to the specified element + * @param {Mixed} element The element to align to. + * @param {String} position (optional, defaults to "tl-bl?") The position to align to (see {@link Ext.Element#alignTo} for more details). + * @param {Array} offsets (optional) Offset the positioning by [x, y] + * @return {Ext.Window} this + */ + alignTo : function(element, position, offsets){ + var xy = this.el.getAlignToXY(element, position, offsets); + this.setPagePosition(xy[0], xy[1]); + return this; + }, + + /** + * Anchors this window to another element and realigns it when the window is resized or scrolled. + * @param {Mixed} element The element to align to. + * @param {String} position The position to align to (see {@link Ext.Element#alignTo} for more details) + * @param {Array} offsets (optional) Offset the positioning by [x, y] + * @param {Boolean/Number} monitorScroll (optional) true to monitor body scroll and reposition. If this parameter + * is a number, it is used as the buffer delay (defaults to 50ms). + * @return {Ext.Window} this + */ + anchorTo : function(el, alignment, offsets, monitorScroll){ + this.clearAnchor(); + this.anchorTarget = { + el: el, + alignment: alignment, + offsets: offsets + }; + + Ext.EventManager.onWindowResize(this.doAnchor, this); + var tm = typeof monitorScroll; + if(tm != 'undefined'){ + Ext.EventManager.on(window, 'scroll', this.doAnchor, this, + {buffer: tm == 'number' ? monitorScroll : 50}); + } + return this.doAnchor(); + }, + + /** + * Performs the anchor, using the saved anchorTarget property. + * @return {Ext.Window} this + * @private + */ + doAnchor : function(){ + var o = this.anchorTarget; + this.alignTo(o.el, o.alignment, o.offsets); + return this; + }, + + /** + * Removes any existing anchor from this window. See {@link #anchorTo}. + * @return {Ext.Window} this + */ + clearAnchor : function(){ + if(this.anchorTarget){ + Ext.EventManager.removeResizeListener(this.doAnchor, this); + Ext.EventManager.un(window, 'scroll', this.doAnchor, this); + delete this.anchorTarget; + } + return this; + }, + + /** + * Brings this window to the front of any other visible windows + * @param {Boolean} e (optional) Specify false to prevent the window from being focused. + * @return {Ext.Window} this + */ + toFront : function(e){ + if(this.manager.bringToFront(this)){ + if(!e || !e.getTarget().focus){ + this.focus(); + } + } + return this; + }, + + /** + * Makes this the active window by showing its shadow, or deactivates it by hiding its shadow. This method also + * fires the {@link #activate} or {@link #deactivate} event depending on which action occurred. This method is + * called internally by {@link Ext.WindowMgr}. + * @param {Boolean} active True to activate the window, false to deactivate it (defaults to false) + */ + setActive : function(active){ + if(active){ + if(!this.maximized){ + this.el.enableShadow(true); + } + this.fireEvent('activate', this); + }else{ + this.el.disableShadow(); + this.fireEvent('deactivate', this); + } + }, + + /** + * Sends this window to the back of (lower z-index than) any other visible windows + * @return {Ext.Window} this + */ + toBack : function(){ + this.manager.sendToBack(this); + return this; + }, + + /** + * Centers this window in the viewport + * @return {Ext.Window} this + */ + center : function(){ + var xy = this.el.getAlignToXY(this.container, 'c-c'); + this.setPagePosition(xy[0], xy[1]); + return this; + } + + /** + * @cfg {Boolean} autoWidth @hide + **/ +}); +Ext.reg('window', Ext.Window); + +// private - custom Window DD implementation +Ext.Window.DD = function(win){ + this.win = win; + Ext.Window.DD.superclass.constructor.call(this, win.el.id, 'WindowDD-'+win.id); + this.setHandleElId(win.header.id); + this.scroll = false; +}; + +Ext.extend(Ext.Window.DD, Ext.dd.DD, { + moveOnly:true, + headerOffsets:[100, 25], + startDrag : function(){ + var w = this.win; + this.proxy = w.ghost(); + if(w.constrain !== false){ + var so = w.el.shadowOffset; + this.constrainTo(w.container, {right: so, left: so, bottom: so}); + }else if(w.constrainHeader !== false){ + var s = this.proxy.getSize(); + this.constrainTo(w.container, {right: -(s.width-this.headerOffsets[0]), bottom: -(s.height-this.headerOffsets[1])}); + } + }, + b4Drag : Ext.emptyFn, + + onDrag : function(e){ + this.alignElWithMouse(this.proxy, e.getPageX(), e.getPageY()); + }, + + endDrag : function(e){ + this.win.unghost(); + this.win.saveState(); + } +}); +/** + * @class Ext.WindowGroup + * An object that manages a group of {@link Ext.Window} instances and provides z-order management + * and window activation behavior. + * @constructor + */ +Ext.WindowGroup = function(){ + var list = {}; + var accessList = []; + var front = null; + + // private + var sortWindows = function(d1, d2){ + return (!d1._lastAccess || d1._lastAccess < d2._lastAccess) ? -1 : 1; + }; + + // private + var orderWindows = function(){ + var a = accessList, len = a.length; + if(len > 0){ + a.sort(sortWindows); + var seed = a[0].manager.zseed; + for(var i = 0; i < len; i++){ + var win = a[i]; + if(win && !win.hidden){ + win.setZIndex(seed + (i*10)); + } + } + } + activateLast(); + }; + + // private + var setActiveWin = function(win){ + if(win != front){ + if(front){ + front.setActive(false); + } + front = win; + if(win){ + win.setActive(true); + } + } + }; + + // private + var activateLast = function(){ + for(var i = accessList.length-1; i >=0; --i) { + if(!accessList[i].hidden){ + setActiveWin(accessList[i]); + return; + } + } + // none to activate + setActiveWin(null); + }; + + return { + /** + * The starting z-index for windows in this WindowGroup (defaults to 9000) + * @type Number The z-index value + */ + zseed : 9000, + + /** + *

      Registers a {@link Ext.Window Window} with this WindowManager. This should not + * need to be called under normal circumstances. Windows are automatically registered + * with a {@link Ext.Window#manager manager} at construction time.

      + *

      Where this may be useful is moving Windows between two WindowManagers. For example, + * to bring the Ext.MessageBox dialog under the same manager as the Desktop's + * WindowManager in the desktop sample app:

      +var msgWin = Ext.MessageBox.getDialog();
      +MyDesktop.getDesktop().getManager().register(msgWin);
      +
      + * @param {Window} win The Window to register. + */ + register : function(win){ + if(win.manager){ + win.manager.unregister(win); + } + win.manager = this; + + list[win.id] = win; + accessList.push(win); + win.on('hide', activateLast); + }, + + /** + *

      Unregisters a {@link Ext.Window Window} from this WindowManager. This should not + * need to be called. Windows are automatically unregistered upon destruction. + * See {@link #register}.

      + * @param {Window} win The Window to unregister. + */ + unregister : function(win){ + delete win.manager; + delete list[win.id]; + win.un('hide', activateLast); + accessList.remove(win); + }, + + /** + * Gets a registered window by id. + * @param {String/Object} id The id of the window or a {@link Ext.Window} instance + * @return {Ext.Window} + */ + get : function(id){ + return typeof id == "object" ? id : list[id]; + }, + + /** + * Brings the specified window to the front of any other active windows in this WindowGroup. + * @param {String/Object} win The id of the window or a {@link Ext.Window} instance + * @return {Boolean} True if the dialog was brought to the front, else false + * if it was already in front + */ + bringToFront : function(win){ + win = this.get(win); + if(win != front){ + win._lastAccess = new Date().getTime(); + orderWindows(); + return true; + } + return false; + }, + + /** + * Sends the specified window to the back of other active windows in this WindowGroup. + * @param {String/Object} win The id of the window or a {@link Ext.Window} instance + * @return {Ext.Window} The window + */ + sendToBack : function(win){ + win = this.get(win); + win._lastAccess = -(new Date().getTime()); + orderWindows(); + return win; + }, + + /** + * Hides all windows in this WindowGroup. + */ + hideAll : function(){ + for(var id in list){ + if(list[id] && typeof list[id] != "function" && list[id].isVisible()){ + list[id].hide(); + } + } + }, + + /** + * Gets the currently-active window in this WindowGroup. + * @return {Ext.Window} The active window + */ + getActive : function(){ + return front; + }, + + /** + * Returns zero or more windows in this WindowGroup using the custom search function passed to this method. + * The function should accept a single {@link Ext.Window} reference as its only argument and should + * return true if the window matches the search criteria, otherwise it should return false. + * @param {Function} fn The search function + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the Window being tested. + * that gets passed to the function if not specified) + * @return {Array} An array of zero or more matching windows + */ + getBy : function(fn, scope){ + var r = []; + for(var i = accessList.length-1; i >=0; --i) { + var win = accessList[i]; + if(fn.call(scope||win, win) !== false){ + r.push(win); + } + } + return r; + }, + + /** + * Executes the specified function once for every window in this WindowGroup, passing each + * window as the only parameter. Returning false from the function will stop the iteration. + * @param {Function} fn The function to execute for each item + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the current Window in the iteration. + */ + each : function(fn, scope){ + for(var id in list){ + if(list[id] && typeof list[id] != "function"){ + if(fn.call(scope || list[id], list[id]) === false){ + return; + } + } + } + } + }; +}; + + +/** + * @class Ext.WindowMgr + * @extends Ext.WindowGroup + * The default global window group that is available automatically. To have more than one group of windows + * with separate z-order stacks, create additional instances of {@link Ext.WindowGroup} as needed. + * @singleton + */ +Ext.WindowMgr = new Ext.WindowGroup();/** + * @class Ext.MessageBox + *

      Utility class for generating different styles of message boxes. The alias Ext.Msg can also be used.

      + *

      Note that the MessageBox is asynchronous. Unlike a regular JavaScript alert (which will halt + * browser execution), showing a MessageBox will not cause the code to stop. For this reason, if you have code + * that should only run after some user feedback from the MessageBox, you must use a callback function + * (see the function parameter for {@link #show} for more details).

      + *

      Example usage:

      + *
      
      +// Basic alert:
      +Ext.Msg.alert('Status', 'Changes saved successfully.');
      +
      +// Prompt for user data and process the result using a callback:
      +Ext.Msg.prompt('Name', 'Please enter your name:', function(btn, text){
      +    if (btn == 'ok'){
      +        // process text value and close...
      +    }
      +});
      +
      +// Show a dialog using config options:
      +Ext.Msg.show({
      +   title:'Save Changes?',
      +   msg: 'You are closing a tab that has unsaved changes. Would you like to save your changes?',
      +   buttons: Ext.Msg.YESNOCANCEL,
      +   fn: processResult,
      +   animEl: 'elId',
      +   icon: Ext.MessageBox.QUESTION
      +});
      +
      + * @singleton + */ +Ext.MessageBox = function(){ + var dlg, opt, mask, waitTimer, + bodyEl, msgEl, textboxEl, textareaEl, progressBar, pp, iconEl, spacerEl, + buttons, activeTextEl, bwidth, bufferIcon = '', iconCls = '', + buttonNames = ['ok', 'yes', 'no', 'cancel']; + + // private + var handleButton = function(button){ + buttons[button].blur(); + if(dlg.isVisible()){ + dlg.hide(); + handleHide(); + Ext.callback(opt.fn, opt.scope||window, [button, activeTextEl.dom.value, opt], 1); + } + }; + + // private + var handleHide = function(){ + if(opt && opt.cls){ + dlg.el.removeClass(opt.cls); + } + progressBar.reset(); + }; + + // private + var handleEsc = function(d, k, e){ + if(opt && opt.closable !== false){ + dlg.hide(); + handleHide(); + } + if(e){ + e.stopEvent(); + } + }; + + // private + var updateButtons = function(b){ + var width = 0, + cfg; + if(!b){ + Ext.each(buttonNames, function(name){ + buttons[name].hide(); + }); + return width; + } + dlg.footer.dom.style.display = ''; + Ext.iterate(buttons, function(name, btn){ + cfg = b[name]; + if(cfg){ + btn.show(); + btn.setText(Ext.isString(cfg) ? cfg : Ext.MessageBox.buttonText[name]); + width += btn.getEl().getWidth() + 15; + }else{ + btn.hide(); + } + }); + return width; + }; + + return { + /** + * Returns a reference to the underlying {@link Ext.Window} element + * @return {Ext.Window} The window + */ + getDialog : function(titleText){ + if(!dlg){ + var btns = []; + + buttons = {}; + Ext.each(buttonNames, function(name){ + btns.push(buttons[name] = new Ext.Button({ + text: this.buttonText[name], + handler: handleButton.createCallback(name), + hideMode: 'offsets' + })); + }, this); + dlg = new Ext.Window({ + autoCreate : true, + title:titleText, + resizable:false, + constrain:true, + constrainHeader:true, + minimizable : false, + maximizable : false, + stateful: false, + modal: true, + shim:true, + buttonAlign:"center", + width:400, + height:100, + minHeight: 80, + plain:true, + footer:true, + closable:true, + close : function(){ + if(opt && opt.buttons && opt.buttons.no && !opt.buttons.cancel){ + handleButton("no"); + }else{ + handleButton("cancel"); + } + }, + fbar: new Ext.Toolbar({ + items: btns, + enableOverflow: false + }) + }); + dlg.render(document.body); + dlg.getEl().addClass('x-window-dlg'); + mask = dlg.mask; + bodyEl = dlg.body.createChild({ + html:'

      ' + }); + iconEl = Ext.get(bodyEl.dom.firstChild); + var contentEl = bodyEl.dom.childNodes[1]; + msgEl = Ext.get(contentEl.firstChild); + textboxEl = Ext.get(contentEl.childNodes[2].firstChild); + textboxEl.enableDisplayMode(); + textboxEl.addKeyListener([10,13], function(){ + if(dlg.isVisible() && opt && opt.buttons){ + if(opt.buttons.ok){ + handleButton("ok"); + }else if(opt.buttons.yes){ + handleButton("yes"); + } + } + }); + textareaEl = Ext.get(contentEl.childNodes[2].childNodes[1]); + textareaEl.enableDisplayMode(); + progressBar = new Ext.ProgressBar({ + renderTo:bodyEl + }); + bodyEl.createChild({cls:'x-clear'}); + } + return dlg; + }, + + /** + * Updates the message box body text + * @param {String} text (optional) Replaces the message box element's innerHTML with the specified string (defaults to + * the XHTML-compliant non-breaking space character '&#160;') + * @return {Ext.MessageBox} this + */ + updateText : function(text){ + if(!dlg.isVisible() && !opt.width){ + dlg.setSize(this.maxWidth, 100); // resize first so content is never clipped from previous shows + } + msgEl.update(text || ' '); + + var iw = iconCls != '' ? (iconEl.getWidth() + iconEl.getMargins('lr')) : 0, + mw = msgEl.getWidth() + msgEl.getMargins('lr'), + fw = dlg.getFrameWidth('lr'), + bw = dlg.body.getFrameWidth('lr'), + w; + + if (Ext.isIE && iw > 0){ + //3 pixels get subtracted in the icon CSS for an IE margin issue, + //so we have to add it back here for the overall width to be consistent + iw += 3; + } + w = Math.max(Math.min(opt.width || iw+mw+fw+bw, opt.maxWidth || this.maxWidth), + Math.max(opt.minWidth || this.minWidth, bwidth || 0)); + + if(opt.prompt === true){ + activeTextEl.setWidth(w-iw-fw-bw); + } + if(opt.progress === true || opt.wait === true){ + progressBar.setSize(w-iw-fw-bw); + } + if(Ext.isIE && w == bwidth){ + w += 4; //Add offset when the content width is smaller than the buttons. + } + dlg.setSize(w, 'auto').center(); + return this; + }, + + /** + * Updates a progress-style message box's text and progress bar. Only relevant on message boxes + * initiated via {@link Ext.MessageBox#progress} or {@link Ext.MessageBox#wait}, + * or by calling {@link Ext.MessageBox#show} with progress: true. + * @param {Number} value Any number between 0 and 1 (e.g., .5, defaults to 0) + * @param {String} progressText The progress text to display inside the progress bar (defaults to '') + * @param {String} msg The message box's body text is replaced with the specified string (defaults to undefined + * so that any existing body text will not get overwritten by default unless a new value is passed in) + * @return {Ext.MessageBox} this + */ + updateProgress : function(value, progressText, msg){ + progressBar.updateProgress(value, progressText); + if(msg){ + this.updateText(msg); + } + return this; + }, + + /** + * Returns true if the message box is currently displayed + * @return {Boolean} True if the message box is visible, else false + */ + isVisible : function(){ + return dlg && dlg.isVisible(); + }, + + /** + * Hides the message box if it is displayed + * @return {Ext.MessageBox} this + */ + hide : function(){ + var proxy = dlg ? dlg.activeGhost : null; + if(this.isVisible() || proxy){ + dlg.hide(); + handleHide(); + if (proxy){ + // unghost is a private function, but i saw no better solution + // to fix the locking problem when dragging while it closes + dlg.unghost(false, false); + } + } + return this; + }, + + /** + * Displays a new message box, or reinitializes an existing message box, based on the config options + * passed in. All display functions (e.g. prompt, alert, etc.) on MessageBox call this function internally, + * although those calls are basic shortcuts and do not support all of the config options allowed here. + * @param {Object} config The following config options are supported:
        + *
      • animEl : String/Element
        An id or Element from which the message box should animate as it + * opens and closes (defaults to undefined)
      • + *
      • buttons : Object/Boolean
        A button config object (e.g., Ext.MessageBox.OKCANCEL or {ok:'Foo', + * cancel:'Bar'}), or false to not show any buttons (defaults to false)
      • + *
      • closable : Boolean
        False to hide the top-right close button (defaults to true). Note that + * progress and wait dialogs will ignore this property and always hide the close button as they can only + * be closed programmatically.
      • + *
      • cls : String
        A custom CSS class to apply to the message box's container element
      • + *
      • defaultTextHeight : Number
        The default height in pixels of the message box's multiline textarea + * if displayed (defaults to 75)
      • + *
      • fn : Function
        A callback function which is called when the dialog is dismissed either + * by clicking on the configured buttons, or on the dialog close button, or by pressing + * the return button to enter input. + *

        Progress and wait dialogs will ignore this option since they do not respond to user + * actions and can only be closed programmatically, so any required function should be called + * by the same code after it closes the dialog. Parameters passed:

          + *
        • buttonId : String
          The ID of the button pressed, one of:
            + *
          • ok
          • + *
          • yes
          • + *
          • no
          • + *
          • cancel
          • + *
        • + *
        • text : String
          Value of the input field if either prompt + * or multiline is true
        • + *
        • opt : Object
          The config object passed to show.
        • + *

      • + *
      • scope : Object
        The scope of the callback function
      • + *
      • icon : String
        A CSS class that provides a background image to be used as the body icon for the + * dialog (e.g. Ext.MessageBox.WARNING or 'custom-class') (defaults to '')
      • + *
      • iconCls : String
        The standard {@link Ext.Window#iconCls} to + * add an optional header icon (defaults to '')
      • + *
      • maxWidth : Number
        The maximum width in pixels of the message box (defaults to 600)
      • + *
      • minWidth : Number
        The minimum width in pixels of the message box (defaults to 100)
      • + *
      • modal : Boolean
        False to allow user interaction with the page while the message box is + * displayed (defaults to true)
      • + *
      • msg : String
        A string that will replace the existing message box body text (defaults to the + * XHTML-compliant non-breaking space character '&#160;')
      • + *
      • multiline : Boolean
        + * True to prompt the user to enter multi-line text (defaults to false)
      • + *
      • progress : Boolean
        True to display a progress bar (defaults to false)
      • + *
      • progressText : String
        The text to display inside the progress bar if progress = true (defaults to '')
      • + *
      • prompt : Boolean
        True to prompt the user to enter single-line text (defaults to false)
      • + *
      • proxyDrag : Boolean
        True to display a lightweight proxy while dragging (defaults to false)
      • + *
      • title : String
        The title text
      • + *
      • value : String
        The string value to set into the active textbox element if displayed
      • + *
      • wait : Boolean
        True to display a progress bar (defaults to false)
      • + *
      • waitConfig : Object
        A {@link Ext.ProgressBar#waitConfig} object (applies only if wait = true)
      • + *
      • width : Number
        The width of the dialog in pixels
      • + *
      + * Example usage: + *
      
      +Ext.Msg.show({
      +   title: 'Address',
      +   msg: 'Please enter your address:',
      +   width: 300,
      +   buttons: Ext.MessageBox.OKCANCEL,
      +   multiline: true,
      +   fn: saveAddress,
      +   animEl: 'addAddressBtn',
      +   icon: Ext.MessageBox.INFO
      +});
      +
      + * @return {Ext.MessageBox} this + */ + show : function(options){ + if(this.isVisible()){ + this.hide(); + } + opt = options; + var d = this.getDialog(opt.title || " "); + + d.setTitle(opt.title || " "); + var allowClose = (opt.closable !== false && opt.progress !== true && opt.wait !== true); + d.tools.close.setDisplayed(allowClose); + activeTextEl = textboxEl; + opt.prompt = opt.prompt || (opt.multiline ? true : false); + if(opt.prompt){ + if(opt.multiline){ + textboxEl.hide(); + textareaEl.show(); + textareaEl.setHeight(Ext.isNumber(opt.multiline) ? opt.multiline : this.defaultTextHeight); + activeTextEl = textareaEl; + }else{ + textboxEl.show(); + textareaEl.hide(); + } + }else{ + textboxEl.hide(); + textareaEl.hide(); + } + activeTextEl.dom.value = opt.value || ""; + if(opt.prompt){ + d.focusEl = activeTextEl; + }else{ + var bs = opt.buttons; + var db = null; + if(bs && bs.ok){ + db = buttons["ok"]; + }else if(bs && bs.yes){ + db = buttons["yes"]; + } + if (db){ + d.focusEl = db; + } + } + if(opt.iconCls){ + d.setIconClass(opt.iconCls); + } + this.setIcon(Ext.isDefined(opt.icon) ? opt.icon : bufferIcon); + bwidth = updateButtons(opt.buttons); + progressBar.setVisible(opt.progress === true || opt.wait === true); + this.updateProgress(0, opt.progressText); + this.updateText(opt.msg); + if(opt.cls){ + d.el.addClass(opt.cls); + } + d.proxyDrag = opt.proxyDrag === true; + d.modal = opt.modal !== false; + d.mask = opt.modal !== false ? mask : false; + if(!d.isVisible()){ + // force it to the end of the z-index stack so it gets a cursor in FF + document.body.appendChild(dlg.el.dom); + d.setAnimateTarget(opt.animEl); + //workaround for window internally enabling keymap in afterShow + d.on('show', function(){ + if(allowClose === true){ + d.keyMap.enable(); + }else{ + d.keyMap.disable(); + } + }, this, {single:true}); + d.show(opt.animEl); + } + if(opt.wait === true){ + progressBar.wait(opt.waitConfig); + } + return this; + }, + + /** + * Adds the specified icon to the dialog. By default, the class 'ext-mb-icon' is applied for default + * styling, and the class passed in is expected to supply the background image url. Pass in empty string ('') + * to clear any existing icon. This method must be called before the MessageBox is shown. + * The following built-in icon classes are supported, but you can also pass in a custom class name: + *
      +Ext.MessageBox.INFO
      +Ext.MessageBox.WARNING
      +Ext.MessageBox.QUESTION
      +Ext.MessageBox.ERROR
      +         *
      + * @param {String} icon A CSS classname specifying the icon's background image url, or empty string to clear the icon + * @return {Ext.MessageBox} this + */ + setIcon : function(icon){ + if(!dlg){ + bufferIcon = icon; + return; + } + bufferIcon = undefined; + if(icon && icon != ''){ + iconEl.removeClass('x-hidden'); + iconEl.replaceClass(iconCls, icon); + bodyEl.addClass('x-dlg-icon'); + iconCls = icon; + }else{ + iconEl.replaceClass(iconCls, 'x-hidden'); + bodyEl.removeClass('x-dlg-icon'); + iconCls = ''; + } + return this; + }, + + /** + * Displays a message box with a progress bar. This message box has no buttons and is not closeable by + * the user. You are responsible for updating the progress bar as needed via {@link Ext.MessageBox#updateProgress} + * and closing the message box when the process is complete. + * @param {String} title The title bar text + * @param {String} msg The message box body text + * @param {String} progressText (optional) The text to display inside the progress bar (defaults to '') + * @return {Ext.MessageBox} this + */ + progress : function(title, msg, progressText){ + this.show({ + title : title, + msg : msg, + buttons: false, + progress:true, + closable:false, + minWidth: this.minProgressWidth, + progressText: progressText + }); + return this; + }, + + /** + * Displays a message box with an infinitely auto-updating progress bar. This can be used to block user + * interaction while waiting for a long-running process to complete that does not have defined intervals. + * You are responsible for closing the message box when the process is complete. + * @param {String} msg The message box body text + * @param {String} title (optional) The title bar text + * @param {Object} config (optional) A {@link Ext.ProgressBar#waitConfig} object + * @return {Ext.MessageBox} this + */ + wait : function(msg, title, config){ + this.show({ + title : title, + msg : msg, + buttons: false, + closable:false, + wait:true, + modal:true, + minWidth: this.minProgressWidth, + waitConfig: config + }); + return this; + }, + + /** + * Displays a standard read-only message box with an OK button (comparable to the basic JavaScript alert prompt). + * If a callback function is passed it will be called after the user clicks the button, and the + * id of the button that was clicked will be passed as the only parameter to the callback + * (could also be the top-right close button). + * @param {String} title The title bar text + * @param {String} msg The message box body text + * @param {Function} fn (optional) The callback function invoked after the message box is closed + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to the browser wnidow. + * @return {Ext.MessageBox} this + */ + alert : function(title, msg, fn, scope){ + this.show({ + title : title, + msg : msg, + buttons: this.OK, + fn: fn, + scope : scope, + minWidth: this.minWidth + }); + return this; + }, + + /** + * Displays a confirmation message box with Yes and No buttons (comparable to JavaScript's confirm). + * If a callback function is passed it will be called after the user clicks either button, + * and the id of the button that was clicked will be passed as the only parameter to the callback + * (could also be the top-right close button). + * @param {String} title The title bar text + * @param {String} msg The message box body text + * @param {Function} fn (optional) The callback function invoked after the message box is closed + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to the browser wnidow. + * @return {Ext.MessageBox} this + */ + confirm : function(title, msg, fn, scope){ + this.show({ + title : title, + msg : msg, + buttons: this.YESNO, + fn: fn, + scope : scope, + icon: this.QUESTION, + minWidth: this.minWidth + }); + return this; + }, + + /** + * Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). + * The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user + * clicks either button, and the id of the button that was clicked (could also be the top-right + * close button) and the text that was entered will be passed as the two parameters to the callback. + * @param {String} title The title bar text + * @param {String} msg The message box body text + * @param {Function} fn (optional) The callback function invoked after the message box is closed + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to the browser wnidow. + * @param {Boolean/Number} multiline (optional) True to create a multiline textbox using the defaultTextHeight + * property, or the height in pixels to create the textbox (defaults to false / single-line) + * @param {String} value (optional) Default value of the text input element (defaults to '') + * @return {Ext.MessageBox} this + */ + prompt : function(title, msg, fn, scope, multiline, value){ + this.show({ + title : title, + msg : msg, + buttons: this.OKCANCEL, + fn: fn, + minWidth: this.minPromptWidth, + scope : scope, + prompt:true, + multiline: multiline, + value: value + }); + return this; + }, + + /** + * Button config that displays a single OK button + * @type Object + */ + OK : {ok:true}, + /** + * Button config that displays a single Cancel button + * @type Object + */ + CANCEL : {cancel:true}, + /** + * Button config that displays OK and Cancel buttons + * @type Object + */ + OKCANCEL : {ok:true, cancel:true}, + /** + * Button config that displays Yes and No buttons + * @type Object + */ + YESNO : {yes:true, no:true}, + /** + * Button config that displays Yes, No and Cancel buttons + * @type Object + */ + YESNOCANCEL : {yes:true, no:true, cancel:true}, + /** + * The CSS class that provides the INFO icon image + * @type String + */ + INFO : 'ext-mb-info', + /** + * The CSS class that provides the WARNING icon image + * @type String + */ + WARNING : 'ext-mb-warning', + /** + * The CSS class that provides the QUESTION icon image + * @type String + */ + QUESTION : 'ext-mb-question', + /** + * The CSS class that provides the ERROR icon image + * @type String + */ + ERROR : 'ext-mb-error', + + /** + * The default height in pixels of the message box's multiline textarea if displayed (defaults to 75) + * @type Number + */ + defaultTextHeight : 75, + /** + * The maximum width in pixels of the message box (defaults to 600) + * @type Number + */ + maxWidth : 600, + /** + * The minimum width in pixels of the message box (defaults to 100) + * @type Number + */ + minWidth : 100, + /** + * The minimum width in pixels of the message box if it is a progress-style dialog. This is useful + * for setting a different minimum width than text-only dialogs may need (defaults to 250). + * @type Number + */ + minProgressWidth : 250, + /** + * The minimum width in pixels of the message box if it is a prompt dialog. This is useful + * for setting a different minimum width than text-only dialogs may need (defaults to 250). + * @type Number + */ + minPromptWidth: 250, + /** + * An object containing the default button text strings that can be overriden for localized language support. + * Supported properties are: ok, cancel, yes and no. Generally you should include a locale-specific + * resource file for handling language support across the framework. + * Customize the default text like so: Ext.MessageBox.buttonText.yes = "oui"; //french + * @type Object + */ + buttonText : { + ok : "OK", + cancel : "Cancel", + yes : "Yes", + no : "No" + } + }; +}(); + +/** + * Shorthand for {@link Ext.MessageBox} + */ +Ext.Msg = Ext.MessageBox;/** + * @class Ext.dd.PanelProxy + * A custom drag proxy implementation specific to {@link Ext.Panel}s. This class is primarily used internally + * for the Panel's drag drop implementation, and should never need to be created directly. + * @constructor + * @param panel The {@link Ext.Panel} to proxy for + * @param config Configuration options + */ +Ext.dd.PanelProxy = function(panel, config){ + this.panel = panel; + this.id = this.panel.id +'-ddproxy'; + Ext.apply(this, config); +}; + +Ext.dd.PanelProxy.prototype = { + /** + * @cfg {Boolean} insertProxy True to insert a placeholder proxy element while dragging the panel, + * false to drag with no proxy (defaults to true). + */ + insertProxy : true, + + // private overrides + setStatus : Ext.emptyFn, + reset : Ext.emptyFn, + update : Ext.emptyFn, + stop : Ext.emptyFn, + sync: Ext.emptyFn, + + /** + * Gets the proxy's element + * @return {Element} The proxy's element + */ + getEl : function(){ + return this.ghost; + }, + + /** + * Gets the proxy's ghost element + * @return {Element} The proxy's ghost element + */ + getGhost : function(){ + return this.ghost; + }, + + /** + * Gets the proxy's element + * @return {Element} The proxy's element + */ + getProxy : function(){ + return this.proxy; + }, + + /** + * Hides the proxy + */ + hide : function(){ + if(this.ghost){ + if(this.proxy){ + this.proxy.remove(); + delete this.proxy; + } + this.panel.el.dom.style.display = ''; + this.ghost.remove(); + delete this.ghost; + } + }, + + /** + * Shows the proxy + */ + show : function(){ + if(!this.ghost){ + this.ghost = this.panel.createGhost(undefined, undefined, Ext.getBody()); + this.ghost.setXY(this.panel.el.getXY()); + if(this.insertProxy){ + this.proxy = this.panel.el.insertSibling({cls:'x-panel-dd-spacer'}); + this.proxy.setSize(this.panel.getSize()); + } + this.panel.el.dom.style.display = 'none'; + } + }, + + // private + repair : function(xy, callback, scope){ + this.hide(); + if(typeof callback == "function"){ + callback.call(scope || this); + } + }, + + /** + * Moves the proxy to a different position in the DOM. This is typically called while dragging the Panel + * to keep the proxy sync'd to the Panel's location. + * @param {HTMLElement} parentNode The proxy's parent DOM node + * @param {HTMLElement} before (optional) The sibling node before which the proxy should be inserted (defaults + * to the parent's last child if not specified) + */ + moveProxy : function(parentNode, before){ + if(this.proxy){ + parentNode.insertBefore(this.proxy.dom, before); + } + } +}; + +// private - DD implementation for Panels +Ext.Panel.DD = function(panel, cfg){ + this.panel = panel; + this.dragData = {panel: panel}; + this.proxy = new Ext.dd.PanelProxy(panel, cfg); + Ext.Panel.DD.superclass.constructor.call(this, panel.el, cfg); + var h = panel.header; + if(h){ + this.setHandleElId(h.id); + } + (h ? h : this.panel.body).setStyle('cursor', 'move'); + this.scroll = false; +}; + +Ext.extend(Ext.Panel.DD, Ext.dd.DragSource, { + showFrame: Ext.emptyFn, + startDrag: Ext.emptyFn, + b4StartDrag: function(x, y) { + this.proxy.show(); + }, + b4MouseDown: function(e) { + var x = e.getPageX(); + var y = e.getPageY(); + this.autoOffset(x, y); + }, + onInitDrag : function(x, y){ + this.onStartDrag(x, y); + return true; + }, + createFrame : Ext.emptyFn, + getDragEl : function(e){ + return this.proxy.ghost.dom; + }, + endDrag : function(e){ + this.proxy.hide(); + this.panel.saveState(); + }, + + autoOffset : function(x, y) { + x -= this.startPageX; + y -= this.startPageY; + this.setDelta(x, y); + } +});/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.TabPanel + *

      A basic tab container. TabPanels can be used exactly like a standard {@link Ext.Panel} + * for layout purposes, but also have special support for containing child Components + * ({@link Ext.Container#items items}) that are managed using a + * {@link Ext.layout.CardLayout CardLayout layout manager}, and displayed as separate tabs.

      + * + * Note: By default, a tab's close tool destroys the child tab Component + * and all its descendants. This makes the child tab Component, and all its descendants unusable. To enable + * re-use of a tab, configure the TabPanel with {@link #autoDestroy autoDestroy: false}. + * + *

      TabPanel header/footer elements

      + *

      TabPanels use their {@link Ext.Panel#header header} or {@link Ext.Panel#footer footer} element + * (depending on the {@link #tabPosition} configuration) to accommodate the tab selector buttons. + * This means that a TabPanel will not display any configured title, and will not display any + * configured header {@link Ext.Panel#tools tools}.

      + *

      To display a header, embed the TabPanel in a {@link Ext.Panel Panel} which uses + * {@link Ext.Container#layout layout:'fit'}.

      + * + *

      Tab Events

      + *

      There is no actual tab class — each tab is simply a {@link Ext.BoxComponent Component} + * such as a {@link Ext.Panel Panel}. However, when rendered in a TabPanel, each child Component + * can fire additional events that only exist for tabs and are not available from other Components. + * These events are:

      + *
        + *
      • {@link Ext.Panel#activate activate} : Fires when this Component becomes + * the active tab.
      • + *
      • {@link Ext.Panel#deactivate deactivate} : Fires when the Component that + * was the active tab becomes deactivated.
      • + *
      • {@link Ext.Panel#beforeclose beforeclose} : Fires when the user clicks on the close tool of a closeable tab. + * May be vetoed by returning false from a handler.
      • + *
      • {@link Ext.Panel#close close} : Fires a closeable tab has been closed by the user.
      • + *
      + *

      Creating TabPanels from Code

      + *

      TabPanels can be created and rendered completely in code, as in this example:

      + *
      
      +var tabs = new Ext.TabPanel({
      +    renderTo: Ext.getBody(),
      +    activeTab: 0,
      +    items: [{
      +        title: 'Tab 1',
      +        html: 'A simple tab'
      +    },{
      +        title: 'Tab 2',
      +        html: 'Another one'
      +    }]
      +});
      +
      + *

      Creating TabPanels from Existing Markup

      + *

      TabPanels can also be rendered from pre-existing markup in a couple of ways.

      + *
        + * + *
      • Pre-Structured Markup
      • + *
        + *

        A container div with one or more nested tab divs with class 'x-tab' can be rendered entirely + * from existing markup (See the {@link #autoTabs} example).

        + *
        + * + *
      • Un-Structured Markup
      • + *
        + *

        A TabPanel can also be rendered from markup that is not strictly structured by simply specifying by id + * which elements should be the container and the tabs. Using this method tab content can be pulled from different + * elements within the page by id regardless of page structure. For example:

        + *
        
        +var tabs = new Ext.TabPanel({
        +    renderTo: 'my-tabs',
        +    activeTab: 0,
        +    items:[
        +        {contentEl:'tab1', title:'Tab 1'},
        +        {contentEl:'tab2', title:'Tab 2'}
        +    ]
        +});
        +
        +// Note that the tabs do not have to be nested within the container (although they can be)
        +<div id="my-tabs"></div>
        +<div id="tab1" class="x-hide-display">A simple tab</div>
        +<div id="tab2" class="x-hide-display">Another one</div>
        +
        + * Note that the tab divs in this example contain the class 'x-hide-display' so that they can be rendered + * deferred without displaying outside the tabs. You could alternately set {@link #deferredRender} = false + * to render all content tabs on page load. + *
        + * + *
      + * + * @extends Ext.Panel + * @constructor + * @param {Object} config The configuration options + * @xtype tabpanel + */ +Ext.TabPanel = Ext.extend(Ext.Panel, { + /** + * @cfg {Boolean} layoutOnTabChange + * Set to true to force a layout of the active tab when the tab is changed. Defaults to false. + * See {@link Ext.layout.CardLayout}.{@link Ext.layout.CardLayout#layoutOnCardChange layoutOnCardChange}. + */ + /** + * @cfg {String} tabCls This config option is used on child Components of ths TabPanel. A CSS + * class name applied to the tab strip item representing the child Component, allowing special + * styling to be applied. + */ + /** + * @cfg {Boolean} deferredRender + *

      true by default to defer the rendering of child {@link Ext.Container#items items} + * to the browsers DOM until a tab is activated. false will render all contained + * {@link Ext.Container#items items} as soon as the {@link Ext.layout.CardLayout layout} + * is rendered. If there is a significant amount of content or a lot of heavy controls being + * rendered into panels that are not displayed by default, setting this to true might + * improve performance.

      + *

      The deferredRender property is internally passed to the layout manager for + * TabPanels ({@link Ext.layout.CardLayout}) as its {@link Ext.layout.CardLayout#deferredRender} + * configuration value.

      + *

      Note: leaving deferredRender as true means that the content + * within an unactivated tab will not be available. For example, this means that if the TabPanel + * is within a {@link Ext.form.FormPanel form}, then until a tab is activated, any Fields within + * unactivated tabs will not be rendered, and will therefore not be submitted and will not be + * available to either {@link Ext.form.BasicForm#getValues getValues} or + * {@link Ext.form.BasicForm#setValues setValues}.

      + */ + deferredRender : true, + /** + * @cfg {Number} tabWidth The initial width in pixels of each new tab (defaults to 120). + */ + tabWidth : 120, + /** + * @cfg {Number} minTabWidth The minimum width in pixels for each tab when {@link #resizeTabs} = true (defaults to 30). + */ + minTabWidth : 30, + /** + * @cfg {Boolean} resizeTabs True to automatically resize each tab so that the tabs will completely fill the + * tab strip (defaults to false). Setting this to true may cause specific widths that might be set per tab to + * be overridden in order to fit them all into view (although {@link #minTabWidth} will always be honored). + */ + resizeTabs : false, + /** + * @cfg {Boolean} enableTabScroll True to enable scrolling to tabs that may be invisible due to overflowing the + * overall TabPanel width. Only available with tabPosition:'top' (defaults to false). + */ + enableTabScroll : false, + /** + * @cfg {Number} scrollIncrement The number of pixels to scroll each time a tab scroll button is pressed + * (defaults to 100, or if {@link #resizeTabs} = true, the calculated tab width). Only + * applies when {@link #enableTabScroll} = true. + */ + scrollIncrement : 0, + /** + * @cfg {Number} scrollRepeatInterval Number of milliseconds between each scroll while a tab scroll button is + * continuously pressed (defaults to 400). + */ + scrollRepeatInterval : 400, + /** + * @cfg {Float} scrollDuration The number of milliseconds that each scroll animation should last (defaults + * to .35). Only applies when {@link #animScroll} = true. + */ + scrollDuration : 0.35, + /** + * @cfg {Boolean} animScroll True to animate tab scrolling so that hidden tabs slide smoothly into view (defaults + * to true). Only applies when {@link #enableTabScroll} = true. + */ + animScroll : true, + /** + * @cfg {String} tabPosition The position where the tab strip should be rendered (defaults to 'top'). + * The only other supported value is 'bottom'. Note: tab scrolling is only supported for + * tabPosition: 'top'. + */ + tabPosition : 'top', + /** + * @cfg {String} baseCls The base CSS class applied to the panel (defaults to 'x-tab-panel'). + */ + baseCls : 'x-tab-panel', + /** + * @cfg {Boolean} autoTabs + *

      true to query the DOM for any divs with a class of 'x-tab' to be automatically converted + * to tabs and added to this panel (defaults to false). Note that the query will be executed within + * the scope of the container element only (so that multiple tab panels from markup can be supported via this + * method).

      + *

      This method is only possible when the markup is structured correctly as a container with nested divs + * containing the class 'x-tab'. To create TabPanels without these limitations, or to pull tab content + * from other elements on the page, see the example at the top of the class for generating tabs from markup.

      + *

      There are a couple of things to note when using this method:

        + *
      • When using the autoTabs config (as opposed to passing individual tab configs in the TabPanel's + * {@link #items} collection), you must use {@link #applyTo} to correctly use the specified id + * as the tab container. The autoTabs method replaces existing content with the TabPanel + * components.
      • + *
      • Make sure that you set {@link #deferredRender}: false so that the content elements for each + * tab will be rendered into the TabPanel immediately upon page load, otherwise they will not be transformed + * until each tab is activated and will be visible outside the TabPanel.
      • + *
      Example usage:

      + *
      
      +var tabs = new Ext.TabPanel({
      +    applyTo: 'my-tabs',
      +    activeTab: 0,
      +    deferredRender: false,
      +    autoTabs: true
      +});
      +
      +// This markup will be converted to a TabPanel from the code above
      +<div id="my-tabs">
      +    <div class="x-tab" title="Tab 1">A simple tab</div>
      +    <div class="x-tab" title="Tab 2">Another one</div>
      +</div>
      +
      + */ + autoTabs : false, + /** + * @cfg {String} autoTabSelector The CSS selector used to search for tabs in existing markup when + * {@link #autoTabs} = true (defaults to 'div.x-tab'). This can be any valid selector + * supported by {@link Ext.DomQuery#select}. Note that the query will be executed within the scope of this + * tab panel only (so that multiple tab panels from markup can be supported on a page). + */ + autoTabSelector : 'div.x-tab', + /** + * @cfg {String/Number} activeTab A string id or the numeric index of the tab that should be initially + * activated on render (defaults to undefined). + */ + activeTab : undefined, + /** + * @cfg {Number} tabMargin The number of pixels of space to calculate into the sizing and scrolling of + * tabs. If you change the margin in CSS, you will need to update this value so calculations are correct + * with either {@link #resizeTabs} or scrolling tabs. (defaults to 2) + */ + tabMargin : 2, + /** + * @cfg {Boolean} plain true to render the tab strip without a background container image + * (defaults to false). + */ + plain : false, + /** + * @cfg {Number} wheelIncrement For scrolling tabs, the number of pixels to increment on mouse wheel + * scrolling (defaults to 20). + */ + wheelIncrement : 20, + + /* + * This is a protected property used when concatenating tab ids to the TabPanel id for internal uniqueness. + * It does not generally need to be changed, but can be if external code also uses an id scheme that can + * potentially clash with this one. + */ + idDelimiter : '__', + + // private + itemCls : 'x-tab-item', + + // private config overrides + elements : 'body', + headerAsText : false, + frame : false, + hideBorders :true, + + // private + initComponent : function(){ + this.frame = false; + Ext.TabPanel.superclass.initComponent.call(this); + this.addEvents( + /** + * @event beforetabchange + * Fires before the active tab changes. Handlers can return false to cancel the tab change. + * @param {TabPanel} this + * @param {Panel} newTab The tab being activated + * @param {Panel} currentTab The current active tab + */ + 'beforetabchange', + /** + * @event tabchange + * Fires after the active tab has changed. + * @param {TabPanel} this + * @param {Panel} tab The new active tab + */ + 'tabchange', + /** + * @event contextmenu + * Relays the contextmenu event from a tab selector element in the tab strip. + * @param {TabPanel} this + * @param {Panel} tab The target tab + * @param {EventObject} e + */ + 'contextmenu' + ); + /** + * @cfg {Object} layoutConfig + * TabPanel implicitly uses {@link Ext.layout.CardLayout} as its layout manager. + * layoutConfig may be used to configure this layout manager. + * {@link #deferredRender} and {@link #layoutOnTabChange} + * configured on the TabPanel will be applied as configs to the layout manager. + */ + this.setLayout(new Ext.layout.CardLayout(Ext.apply({ + layoutOnCardChange: this.layoutOnTabChange, + deferredRender: this.deferredRender + }, this.layoutConfig))); + + if(this.tabPosition == 'top'){ + this.elements += ',header'; + this.stripTarget = 'header'; + }else { + this.elements += ',footer'; + this.stripTarget = 'footer'; + } + if(!this.stack){ + this.stack = Ext.TabPanel.AccessStack(); + } + this.initItems(); + }, + + // private + onRender : function(ct, position){ + Ext.TabPanel.superclass.onRender.call(this, ct, position); + + if(this.plain){ + var pos = this.tabPosition == 'top' ? 'header' : 'footer'; + this[pos].addClass('x-tab-panel-'+pos+'-plain'); + } + + var st = this[this.stripTarget]; + + this.stripWrap = st.createChild({cls:'x-tab-strip-wrap', cn:{ + tag:'ul', cls:'x-tab-strip x-tab-strip-'+this.tabPosition}}); + + var beforeEl = (this.tabPosition=='bottom' ? this.stripWrap : null); + st.createChild({cls:'x-tab-strip-spacer'}, beforeEl); + this.strip = new Ext.Element(this.stripWrap.dom.firstChild); + + // create an empty span with class x-tab-strip-text to force the height of the header element when there's no tabs. + this.edge = this.strip.createChild({tag:'li', cls:'x-tab-edge', cn: [{tag: 'span', cls: 'x-tab-strip-text', cn: ' '}]}); + this.strip.createChild({cls:'x-clear'}); + + this.body.addClass('x-tab-panel-body-'+this.tabPosition); + + /** + * @cfg {Template/XTemplate} itemTpl

      (Optional) A {@link Ext.Template Template} or + * {@link Ext.XTemplate XTemplate} which may be provided to process the data object returned from + * {@link #getTemplateArgs} to produce a clickable selector element in the tab strip.

      + *

      The main element created should be a <li> element. In order for a click event on + * a selector element to be connected to its item, it must take its id from the TabPanel's + * native {@link #getTemplateArgs}.

      + *

      The child element which contains the title text must be marked by the CSS class + * x-tab-strip-inner.

      + *

      To enable closability, the created element should contain an element marked by the CSS class + * x-tab-strip-close.

      + *

      If a custom itemTpl is supplied, it is the developer's responsibility to create CSS + * style rules to create the desired appearance.

      + * Below is an example of how to create customized tab selector items:
      
      +new Ext.TabPanel({
      +    renderTo: document.body,
      +    minTabWidth: 115,
      +    tabWidth: 135,
      +    enableTabScroll: true,
      +    width: 600,
      +    height: 250,
      +    defaults: {autoScroll:true},
      +    itemTpl: new Ext.XTemplate(
      +    '<li class="{cls}" id="{id}" style="overflow:hidden">',
      +         '<tpl if="closable">',
      +            '<a class="x-tab-strip-close"></a>',
      +         '</tpl>',
      +         '<a class="x-tab-right" href="#" style="padding-left:6px">',
      +            '<em class="x-tab-left">',
      +                '<span class="x-tab-strip-inner">',
      +                    '<img src="{src}" style="float:left;margin:3px 3px 0 0">',
      +                    '<span style="margin-left:20px" class="x-tab-strip-text {iconCls}">{text} {extra}</span>',
      +                '</span>',
      +            '</em>',
      +        '</a>',
      +    '</li>'
      +    ),
      +    getTemplateArgs: function(item) {
      +//      Call the native method to collect the base data. Like the ID!
      +        var result = Ext.TabPanel.prototype.getTemplateArgs.call(this, item);
      +
      +//      Add stuff used in our template
      +        return Ext.apply(result, {
      +            closable: item.closable,
      +            src: item.iconSrc,
      +            extra: item.extraText || ''
      +        });
      +    },
      +    items: [{
      +        title: 'New Tab 1',
      +        iconSrc: '../shared/icons/fam/grid.png',
      +        html: 'Tab Body 1',
      +        closable: true
      +    }, {
      +        title: 'New Tab 2',
      +        iconSrc: '../shared/icons/fam/grid.png',
      +        html: 'Tab Body 2',
      +        extraText: 'Extra stuff in the tab button'
      +    }]
      +});
      +
      + */ + if(!this.itemTpl){ + var tt = new Ext.Template( + '
    • ', + '', + '{text}', + '
    • ' + ); + tt.disableFormats = true; + tt.compile(); + Ext.TabPanel.prototype.itemTpl = tt; + } + + this.items.each(this.initTab, this); + }, + + // private + afterRender : function(){ + Ext.TabPanel.superclass.afterRender.call(this); + if(this.autoTabs){ + this.readTabs(false); + } + if(this.activeTab !== undefined){ + var item = Ext.isObject(this.activeTab) ? this.activeTab : this.items.get(this.activeTab); + delete this.activeTab; + this.setActiveTab(item); + } + }, + + // private + initEvents : function(){ + Ext.TabPanel.superclass.initEvents.call(this); + this.mon(this.strip, { + scope: this, + mousedown: this.onStripMouseDown, + contextmenu: this.onStripContextMenu + }); + if(this.enableTabScroll){ + this.mon(this.strip, 'mousewheel', this.onWheel, this); + } + }, + + // private + findTargets : function(e){ + var item = null, + itemEl = e.getTarget('li:not(.x-tab-edge)', this.strip); + + if(itemEl){ + item = this.getComponent(itemEl.id.split(this.idDelimiter)[1]); + if(item.disabled){ + return { + close : null, + item : null, + el : null + }; + } + } + return { + close : e.getTarget('.x-tab-strip-close', this.strip), + item : item, + el : itemEl + }; + }, + + // private + onStripMouseDown : function(e){ + if(e.button !== 0){ + return; + } + e.preventDefault(); + var t = this.findTargets(e); + if(t.close){ + if (t.item.fireEvent('beforeclose', t.item) !== false) { + t.item.fireEvent('close', t.item); + this.remove(t.item); + } + return; + } + if(t.item && t.item != this.activeTab){ + this.setActiveTab(t.item); + } + }, + + // private + onStripContextMenu : function(e){ + e.preventDefault(); + var t = this.findTargets(e); + if(t.item){ + this.fireEvent('contextmenu', this, t.item, e); + } + }, + + /** + * True to scan the markup in this tab panel for {@link #autoTabs} using the + * {@link #autoTabSelector} + * @param {Boolean} removeExisting True to remove existing tabs + */ + readTabs : function(removeExisting){ + if(removeExisting === true){ + this.items.each(function(item){ + this.remove(item); + }, this); + } + var tabs = this.el.query(this.autoTabSelector); + for(var i = 0, len = tabs.length; i < len; i++){ + var tab = tabs[i], + title = tab.getAttribute('title'); + tab.removeAttribute('title'); + this.add({ + title: title, + contentEl: tab + }); + } + }, + + // private + initTab : function(item, index){ + var before = this.strip.dom.childNodes[index], + p = this.getTemplateArgs(item), + el = before ? + this.itemTpl.insertBefore(before, p) : + this.itemTpl.append(this.strip, p), + cls = 'x-tab-strip-over', + tabEl = Ext.get(el); + + tabEl.hover(function(){ + if(!item.disabled){ + tabEl.addClass(cls); + } + }, function(){ + tabEl.removeClass(cls); + }); + + if(item.tabTip){ + tabEl.child('span.x-tab-strip-text', true).qtip = item.tabTip; + } + item.tabEl = el; + + // Route *keyboard triggered* click events to the tab strip mouse handler. + tabEl.select('a').on('click', function(e){ + if(!e.getPageX()){ + this.onStripMouseDown(e); + } + }, this, {preventDefault: true}); + + item.on({ + scope: this, + disable: this.onItemDisabled, + enable: this.onItemEnabled, + titlechange: this.onItemTitleChanged, + iconchange: this.onItemIconChanged, + beforeshow: this.onBeforeShowItem + }); + }, + + + + /** + *

      Provides template arguments for rendering a tab selector item in the tab strip.

      + *

      This method returns an object hash containing properties used by the TabPanel's {@link #itemTpl} + * to create a formatted, clickable tab selector element. The properties which must be returned + * are:

        + *
      • id : String
        A unique identifier which links to the item
      • + *
      • text : String
        The text to display
      • + *
      • cls : String
        The CSS class name
      • + *
      • iconCls : String
        A CSS class to provide appearance for an icon.
      • + *
      + * @param {Ext.BoxComponent} item The {@link Ext.BoxComponent BoxComponent} for which to create a selector element in the tab strip. + * @return {Object} An object hash containing the properties required to render the selector element. + */ + getTemplateArgs : function(item) { + var cls = item.closable ? 'x-tab-strip-closable' : ''; + if(item.disabled){ + cls += ' x-item-disabled'; + } + if(item.iconCls){ + cls += ' x-tab-with-icon'; + } + if(item.tabCls){ + cls += ' ' + item.tabCls; + } + + return { + id: this.id + this.idDelimiter + item.getItemId(), + text: item.title, + cls: cls, + iconCls: item.iconCls || '' + }; + }, + + // private + onAdd : function(c){ + Ext.TabPanel.superclass.onAdd.call(this, c); + if(this.rendered){ + var items = this.items; + this.initTab(c, items.indexOf(c)); + this.delegateUpdates(); + } + }, + + // private + onBeforeAdd : function(item){ + var existing = item.events ? (this.items.containsKey(item.getItemId()) ? item : null) : this.items.get(item); + if(existing){ + this.setActiveTab(item); + return false; + } + Ext.TabPanel.superclass.onBeforeAdd.apply(this, arguments); + var es = item.elements; + item.elements = es ? es.replace(',header', '') : es; + item.border = (item.border === true); + }, + + // private + onRemove : function(c){ + var te = Ext.get(c.tabEl); + // check if the tabEl exists, it won't if the tab isn't rendered + if(te){ + te.select('a').removeAllListeners(); + Ext.destroy(te); + } + Ext.TabPanel.superclass.onRemove.call(this, c); + this.stack.remove(c); + delete c.tabEl; + c.un('disable', this.onItemDisabled, this); + c.un('enable', this.onItemEnabled, this); + c.un('titlechange', this.onItemTitleChanged, this); + c.un('iconchange', this.onItemIconChanged, this); + c.un('beforeshow', this.onBeforeShowItem, this); + if(c == this.activeTab){ + var next = this.stack.next(); + if(next){ + this.setActiveTab(next); + }else if(this.items.getCount() > 0){ + this.setActiveTab(0); + }else{ + this.setActiveTab(null); + } + } + if(!this.destroying){ + this.delegateUpdates(); + } + }, + + // private + onBeforeShowItem : function(item){ + if(item != this.activeTab){ + this.setActiveTab(item); + return false; + } + }, + + // private + onItemDisabled : function(item){ + var el = this.getTabEl(item); + if(el){ + Ext.fly(el).addClass('x-item-disabled'); + } + this.stack.remove(item); + }, + + // private + onItemEnabled : function(item){ + var el = this.getTabEl(item); + if(el){ + Ext.fly(el).removeClass('x-item-disabled'); + } + }, + + // private + onItemTitleChanged : function(item){ + var el = this.getTabEl(item); + if(el){ + Ext.fly(el).child('span.x-tab-strip-text', true).innerHTML = item.title; + } + }, + + //private + onItemIconChanged : function(item, iconCls, oldCls){ + var el = this.getTabEl(item); + if(el){ + el = Ext.get(el); + el.child('span.x-tab-strip-text').replaceClass(oldCls, iconCls); + el[Ext.isEmpty(iconCls) ? 'removeClass' : 'addClass']('x-tab-with-icon'); + } + }, + + /** + * Gets the DOM element for the tab strip item which activates the child panel with the specified + * ID. Access this to change the visual treatment of the item, for example by changing the CSS class name. + * @param {Panel/Number/String} tab The tab component, or the tab's index, or the tabs id or itemId. + * @return {HTMLElement} The DOM node + */ + getTabEl : function(item){ + var c = this.getComponent(item); + return c ? c.tabEl : null; + }, + + // private + onResize : function(){ + Ext.TabPanel.superclass.onResize.apply(this, arguments); + this.delegateUpdates(); + }, + + /** + * Suspends any internal calculations or scrolling while doing a bulk operation. See {@link #endUpdate} + */ + beginUpdate : function(){ + this.suspendUpdates = true; + }, + + /** + * Resumes calculations and scrolling at the end of a bulk operation. See {@link #beginUpdate} + */ + endUpdate : function(){ + this.suspendUpdates = false; + this.delegateUpdates(); + }, + + /** + * Hides the tab strip item for the passed tab + * @param {Number/String/Panel} item The tab index, id or item + */ + hideTabStripItem : function(item){ + item = this.getComponent(item); + var el = this.getTabEl(item); + if(el){ + el.style.display = 'none'; + this.delegateUpdates(); + } + this.stack.remove(item); + }, + + /** + * Unhides the tab strip item for the passed tab + * @param {Number/String/Panel} item The tab index, id or item + */ + unhideTabStripItem : function(item){ + item = this.getComponent(item); + var el = this.getTabEl(item); + if(el){ + el.style.display = ''; + this.delegateUpdates(); + } + }, + + // private + delegateUpdates : function(){ + if(this.suspendUpdates){ + return; + } + if(this.resizeTabs && this.rendered){ + this.autoSizeTabs(); + } + if(this.enableTabScroll && this.rendered){ + this.autoScrollTabs(); + } + }, + + // private + autoSizeTabs : function(){ + var count = this.items.length, + ce = this.tabPosition != 'bottom' ? 'header' : 'footer', + ow = this[ce].dom.offsetWidth, + aw = this[ce].dom.clientWidth; + + if(!this.resizeTabs || count < 1 || !aw){ // !aw for display:none + return; + } + + var each = Math.max(Math.min(Math.floor((aw-4) / count) - this.tabMargin, this.tabWidth), this.minTabWidth); // -4 for float errors in IE + this.lastTabWidth = each; + var lis = this.strip.query('li:not(.x-tab-edge)'); + for(var i = 0, len = lis.length; i < len; i++) { + var li = lis[i], + inner = Ext.fly(li).child('.x-tab-strip-inner', true), + tw = li.offsetWidth, + iw = inner.offsetWidth; + inner.style.width = (each - (tw-iw)) + 'px'; + } + }, + + // private + adjustBodyWidth : function(w){ + if(this.header){ + this.header.setWidth(w); + } + if(this.footer){ + this.footer.setWidth(w); + } + return w; + }, + + /** + * Sets the specified tab as the active tab. This method fires the {@link #beforetabchange} event which + * can return false to cancel the tab change. + * @param {String/Number} item + * The id or tab Panel to activate. This parameter may be any of the following: + *
        + *
      • a String : representing the {@link Ext.Component#itemId itemId} + * or {@link Ext.Component#id id} of the child component
      • + *
      • a Number : representing the position of the child component + * within the {@link Ext.Container#items items} property
      • + *
      + *

      For additional information see {@link Ext.util.MixedCollection#get}. + */ + setActiveTab : function(item){ + item = this.getComponent(item); + if(this.fireEvent('beforetabchange', this, item, this.activeTab) === false){ + return; + } + if(!this.rendered){ + this.activeTab = item; + return; + } + if(this.activeTab != item){ + if(this.activeTab){ + var oldEl = this.getTabEl(this.activeTab); + if(oldEl){ + Ext.fly(oldEl).removeClass('x-tab-strip-active'); + } + } + this.activeTab = item; + if(item){ + var el = this.getTabEl(item); + Ext.fly(el).addClass('x-tab-strip-active'); + this.stack.add(item); + + this.layout.setActiveItem(item); + if(this.scrolling){ + this.scrollToTab(item, this.animScroll); + } + } + this.fireEvent('tabchange', this, item); + } + }, + + /** + * Returns the Component which is the currently active tab. Note that before the TabPanel + * first activates a child Component, this method will return whatever was configured in the + * {@link #activeTab} config option. + * @return {BoxComponent} The currently active child Component if one is active, or the {@link #activeTab} config value. + */ + getActiveTab : function(){ + return this.activeTab || null; + }, + + /** + * Gets the specified tab by id. + * @param {String} id The tab id + * @return {Panel} The tab + */ + getItem : function(item){ + return this.getComponent(item); + }, + + // private + autoScrollTabs : function(){ + this.pos = this.tabPosition=='bottom' ? this.footer : this.header; + var count = this.items.length, + ow = this.pos.dom.offsetWidth, + tw = this.pos.dom.clientWidth, + wrap = this.stripWrap, + wd = wrap.dom, + cw = wd.offsetWidth, + pos = this.getScrollPos(), + l = this.edge.getOffsetsTo(this.stripWrap)[0] + pos; + + if(!this.enableTabScroll || count < 1 || cw < 20){ // 20 to prevent display:none issues + return; + } + if(l <= tw){ + wd.scrollLeft = 0; + wrap.setWidth(tw); + if(this.scrolling){ + this.scrolling = false; + this.pos.removeClass('x-tab-scrolling'); + this.scrollLeft.hide(); + this.scrollRight.hide(); + // See here: http://extjs.com/forum/showthread.php?t=49308&highlight=isSafari + if(Ext.isAir || Ext.isWebKit){ + wd.style.marginLeft = ''; + wd.style.marginRight = ''; + } + } + }else{ + if(!this.scrolling){ + this.pos.addClass('x-tab-scrolling'); + // See here: http://extjs.com/forum/showthread.php?t=49308&highlight=isSafari + if(Ext.isAir || Ext.isWebKit){ + wd.style.marginLeft = '18px'; + wd.style.marginRight = '18px'; + } + } + tw -= wrap.getMargins('lr'); + wrap.setWidth(tw > 20 ? tw : 20); + if(!this.scrolling){ + if(!this.scrollLeft){ + this.createScrollers(); + }else{ + this.scrollLeft.show(); + this.scrollRight.show(); + } + } + this.scrolling = true; + if(pos > (l-tw)){ // ensure it stays within bounds + wd.scrollLeft = l-tw; + }else{ // otherwise, make sure the active tab is still visible + this.scrollToTab(this.activeTab, false); + } + this.updateScrollButtons(); + } + }, + + // private + createScrollers : function(){ + this.pos.addClass('x-tab-scrolling-' + this.tabPosition); + var h = this.stripWrap.dom.offsetHeight; + + // left + var sl = this.pos.insertFirst({ + cls:'x-tab-scroller-left' + }); + sl.setHeight(h); + sl.addClassOnOver('x-tab-scroller-left-over'); + this.leftRepeater = new Ext.util.ClickRepeater(sl, { + interval : this.scrollRepeatInterval, + handler: this.onScrollLeft, + scope: this + }); + this.scrollLeft = sl; + + // right + var sr = this.pos.insertFirst({ + cls:'x-tab-scroller-right' + }); + sr.setHeight(h); + sr.addClassOnOver('x-tab-scroller-right-over'); + this.rightRepeater = new Ext.util.ClickRepeater(sr, { + interval : this.scrollRepeatInterval, + handler: this.onScrollRight, + scope: this + }); + this.scrollRight = sr; + }, + + // private + getScrollWidth : function(){ + return this.edge.getOffsetsTo(this.stripWrap)[0] + this.getScrollPos(); + }, + + // private + getScrollPos : function(){ + return parseInt(this.stripWrap.dom.scrollLeft, 10) || 0; + }, + + // private + getScrollArea : function(){ + return parseInt(this.stripWrap.dom.clientWidth, 10) || 0; + }, + + // private + getScrollAnim : function(){ + return {duration:this.scrollDuration, callback: this.updateScrollButtons, scope: this}; + }, + + // private + getScrollIncrement : function(){ + return this.scrollIncrement || (this.resizeTabs ? this.lastTabWidth+2 : 100); + }, + + /** + * Scrolls to a particular tab if tab scrolling is enabled + * @param {Panel} item The item to scroll to + * @param {Boolean} animate True to enable animations + */ + + scrollToTab : function(item, animate){ + if(!item){ + return; + } + var el = this.getTabEl(item), + pos = this.getScrollPos(), + area = this.getScrollArea(), + left = Ext.fly(el).getOffsetsTo(this.stripWrap)[0] + pos, + right = left + el.offsetWidth; + if(left < pos){ + this.scrollTo(left, animate); + }else if(right > (pos + area)){ + this.scrollTo(right - area, animate); + } + }, + + // private + scrollTo : function(pos, animate){ + this.stripWrap.scrollTo('left', pos, animate ? this.getScrollAnim() : false); + if(!animate){ + this.updateScrollButtons(); + } + }, + + onWheel : function(e){ + var d = e.getWheelDelta()*this.wheelIncrement*-1; + e.stopEvent(); + + var pos = this.getScrollPos(), + newpos = pos + d, + sw = this.getScrollWidth()-this.getScrollArea(); + + var s = Math.max(0, Math.min(sw, newpos)); + if(s != pos){ + this.scrollTo(s, false); + } + }, + + // private + onScrollRight : function(){ + var sw = this.getScrollWidth()-this.getScrollArea(), + pos = this.getScrollPos(), + s = Math.min(sw, pos + this.getScrollIncrement()); + if(s != pos){ + this.scrollTo(s, this.animScroll); + } + }, + + // private + onScrollLeft : function(){ + var pos = this.getScrollPos(), + s = Math.max(0, pos - this.getScrollIncrement()); + if(s != pos){ + this.scrollTo(s, this.animScroll); + } + }, + + // private + updateScrollButtons : function(){ + var pos = this.getScrollPos(); + this.scrollLeft[pos === 0 ? 'addClass' : 'removeClass']('x-tab-scroller-left-disabled'); + this.scrollRight[pos >= (this.getScrollWidth()-this.getScrollArea()) ? 'addClass' : 'removeClass']('x-tab-scroller-right-disabled'); + }, + + // private + beforeDestroy : function() { + Ext.destroy(this.leftRepeater, this.rightRepeater); + this.deleteMembers('strip', 'edge', 'scrollLeft', 'scrollRight', 'stripWrap'); + this.activeTab = null; + Ext.TabPanel.superclass.beforeDestroy.apply(this); + } + + /** + * @cfg {Boolean} collapsible + * @hide + */ + /** + * @cfg {String} header + * @hide + */ + /** + * @cfg {Boolean} headerAsText + * @hide + */ + /** + * @property header + * @hide + */ + /** + * @cfg title + * @hide + */ + /** + * @cfg {Array} tools + * @hide + */ + /** + * @cfg {Array} toolTemplate + * @hide + */ + /** + * @cfg {Boolean} hideCollapseTool + * @hide + */ + /** + * @cfg {Boolean} titleCollapse + * @hide + */ + /** + * @cfg {Boolean} collapsed + * @hide + */ + /** + * @cfg {String} layout + * @hide + */ + /** + * @cfg {Boolean} preventBodyReset + * @hide + */ +}); +Ext.reg('tabpanel', Ext.TabPanel); + +/** + * See {@link #setActiveTab}. Sets the specified tab as the active tab. This method fires + * the {@link #beforetabchange} event which can return false to cancel the tab change. + * @param {String/Panel} tab The id or tab Panel to activate + * @method activate + */ +Ext.TabPanel.prototype.activate = Ext.TabPanel.prototype.setActiveTab; + +// private utility class used by TabPanel +Ext.TabPanel.AccessStack = function(){ + var items = []; + return { + add : function(item){ + items.push(item); + if(items.length > 10){ + items.shift(); + } + }, + + remove : function(item){ + var s = []; + for(var i = 0, len = items.length; i < len; i++) { + if(items[i] != item){ + s.push(items[i]); + } + } + items = s; + }, + + next : function(){ + return items.pop(); + } + }; +}; +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.Button + * @extends Ext.BoxComponent + * Simple Button class + * @cfg {String} text The button text to be used as innerHTML (html tags are accepted) + * @cfg {String} icon The path to an image to display in the button (the image will be set as the background-image + * CSS property of the button by default, so if you want a mixed icon/text button, set cls:'x-btn-text-icon') + * @cfg {Function} handler A function called when the button is clicked (can be used instead of click event). + * The handler is passed the following parameters:

        + *
      • b : Button
        This Button.
      • + *
      • e : EventObject
        The click event.
      • + *
      + * @cfg {Number} minWidth The minimum width for this button (used to give a set of buttons a common width). + * See also {@link Ext.Panel}.{@link Ext.Panel#minButtonWidth minButtonWidth}. + * @cfg {String/Object} tooltip The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config object + * @cfg {Boolean} hidden True to start hidden (defaults to false) + * @cfg {Boolean} disabled True to start disabled (defaults to false) + * @cfg {Boolean} pressed True to start pressed (only if enableToggle = true) + * @cfg {String} toggleGroup The group this toggle button is a member of (only 1 per group can be pressed) + * @cfg {Boolean/Object} repeat True to repeat fire the click event while the mouse is down. This can also be + * a {@link Ext.util.ClickRepeater ClickRepeater} config object (defaults to false). + * @constructor + * Create a new button + * @param {Object} config The config object + * @xtype button + */ +Ext.Button = Ext.extend(Ext.BoxComponent, { + /** + * Read-only. True if this button is hidden + * @type Boolean + */ + hidden : false, + /** + * Read-only. True if this button is disabled + * @type Boolean + */ + disabled : false, + /** + * Read-only. True if this button is pressed (only if enableToggle = true) + * @type Boolean + */ + pressed : false, + + /** + * @cfg {Number} tabIndex Set a DOM tabIndex for this button (defaults to undefined) + */ + + /** + * @cfg {Boolean} allowDepress + * False to not allow a pressed Button to be depressed (defaults to undefined). Only valid when {@link #enableToggle} is true. + */ + + /** + * @cfg {Boolean} enableToggle + * True to enable pressed/not pressed toggling (defaults to false) + */ + enableToggle : false, + /** + * @cfg {Function} toggleHandler + * Function called when a Button with {@link #enableToggle} set to true is clicked. Two arguments are passed:
        + *
      • button : Ext.Button
        this Button object
      • + *
      • state : Boolean
        The next state of the Button, true means pressed.
      • + *
      + */ + /** + * @cfg {Mixed} menu + * Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined). + */ + /** + * @cfg {String} menuAlign + * The position to align the menu to (see {@link Ext.Element#alignTo} for more details, defaults to 'tl-bl?'). + */ + menuAlign : 'tl-bl?', + + /** + * @cfg {String} overflowText If used in a {@link Ext.Toolbar Toolbar}, the + * text to be used if this item is shown in the overflow menu. See also + * {@link Ext.Toolbar.Item}.{@link Ext.Toolbar.Item#overflowText overflowText}. + */ + /** + * @cfg {String} iconCls + * A css class which sets a background image to be used as the icon for this button + */ + /** + * @cfg {String} type + * submit, reset or button - defaults to 'button' + */ + type : 'button', + + // private + menuClassTarget : 'tr:nth(2)', + + /** + * @cfg {String} clickEvent + * The DOM event that will fire the handler of the button. This can be any valid event name (dblclick, contextmenu). + * Defaults to 'click'. + */ + clickEvent : 'click', + + /** + * @cfg {Boolean} handleMouseEvents + * False to disable visual cues on mouseover, mouseout and mousedown (defaults to true) + */ + handleMouseEvents : true, + + /** + * @cfg {String} tooltipType + * The type of tooltip to use. Either 'qtip' (default) for QuickTips or 'title' for title attribute. + */ + tooltipType : 'qtip', + + /** + * @cfg {String} buttonSelector + *

      (Optional) A {@link Ext.DomQuery DomQuery} selector which is used to extract the active, clickable element from the + * DOM structure created.

      + *

      When a custom {@link #template} is used, you must ensure that this selector results in the selection of + * a focussable element.

      + *

      Defaults to 'button:first-child'.

      + */ + buttonSelector : 'button:first-child', + + /** + * @cfg {String} scale + *

      (Optional) The size of the Button. Three values are allowed:

      + *
        + *
      • 'small'
        Results in the button element being 16px high.
      • + *
      • 'medium'
        Results in the button element being 24px high.
      • + *
      • 'large'
        Results in the button element being 32px high.
      • + *
      + *

      Defaults to 'small'.

      + */ + scale : 'small', + + /** + * @cfg {Object} scope The scope (this reference) in which the + * {@link #handler} and {@link #toggleHandler} is + * executed. Defaults to this Button. + */ + + /** + * @cfg {String} iconAlign + *

      (Optional) The side of the Button box to render the icon. Four values are allowed:

      + *
        + *
      • 'top'
      • + *
      • 'right'
      • + *
      • 'bottom'
      • + *
      • 'left'
      • + *
      + *

      Defaults to 'left'.

      + */ + iconAlign : 'left', + + /** + * @cfg {String} arrowAlign + *

      (Optional) The side of the Button box to render the arrow if the button has an associated {@link #menu}. + * Two values are allowed:

      + *
        + *
      • 'right'
      • + *
      • 'bottom'
      • + *
      + *

      Defaults to 'right'.

      + */ + arrowAlign : 'right', + + /** + * @cfg {Ext.Template} template (Optional) + *

      A {@link Ext.Template Template} used to create the Button's DOM structure.

      + * Instances, or subclasses which need a different DOM structure may provide a different + * template layout in conjunction with an implementation of {@link #getTemplateArgs}. + * @type Ext.Template + * @property template + */ + /** + * @cfg {String} cls + * A CSS class string to apply to the button's main element. + */ + /** + * @property menu + * @type Menu + * The {@link Ext.menu.Menu Menu} object associated with this Button when configured with the {@link #menu} config option. + */ + /** + * @cfg {Boolean} autoWidth + * By default, if a width is not specified the button will attempt to stretch horizontally to fit its content. + * If the button is being managed by a width sizing layout (hbox, fit, anchor), set this to false to prevent + * the button from doing this automatic sizing. + * Defaults to undefined. + */ + + initComponent : function(){ + Ext.Button.superclass.initComponent.call(this); + + this.addEvents( + /** + * @event click + * Fires when this button is clicked + * @param {Button} this + * @param {EventObject} e The click event + */ + 'click', + /** + * @event toggle + * Fires when the 'pressed' state of this button changes (only if enableToggle = true) + * @param {Button} this + * @param {Boolean} pressed + */ + 'toggle', + /** + * @event mouseover + * Fires when the mouse hovers over the button + * @param {Button} this + * @param {Event} e The event object + */ + 'mouseover', + /** + * @event mouseout + * Fires when the mouse exits the button + * @param {Button} this + * @param {Event} e The event object + */ + 'mouseout', + /** + * @event menushow + * If this button has a menu, this event fires when it is shown + * @param {Button} this + * @param {Menu} menu + */ + 'menushow', + /** + * @event menuhide + * If this button has a menu, this event fires when it is hidden + * @param {Button} this + * @param {Menu} menu + */ + 'menuhide', + /** + * @event menutriggerover + * If this button has a menu, this event fires when the mouse enters the menu triggering element + * @param {Button} this + * @param {Menu} menu + * @param {EventObject} e + */ + 'menutriggerover', + /** + * @event menutriggerout + * If this button has a menu, this event fires when the mouse leaves the menu triggering element + * @param {Button} this + * @param {Menu} menu + * @param {EventObject} e + */ + 'menutriggerout' + ); + if(this.menu){ + this.menu = Ext.menu.MenuMgr.get(this.menu); + } + if(Ext.isString(this.toggleGroup)){ + this.enableToggle = true; + } + }, + +/** + *

      This method returns an Array which provides substitution parameters for the {@link #template Template} used + * to create this Button's DOM structure.

      + *

      Instances or subclasses which use a different Template to create a different DOM structure may need to provide their + * own implementation of this method.

      + *

      The default implementation which provides data for the default {@link #template} returns an Array containing the + * following items:

        + *
      • The <button>'s {@link #type}
      • + *
      • A CSS class name applied to the Button's main <tbody> element which determines the button's scale and icon alignment.
      • + *
      • A CSS class to determine the presence and position of an arrow icon. ('x-btn-arrow' or 'x-btn-arrow-bottom' or '')
      • + *
      • The {@link #cls} CSS class name applied to the button's wrapping <table> element.
      • + *
      • The Component id which is applied to the button's wrapping <table> element.
      • + *
      + * @return {Array} Substitution data for a Template. + */ + getTemplateArgs : function(){ + return [this.type, 'x-btn-' + this.scale + ' x-btn-icon-' + this.scale + '-' + this.iconAlign, this.getMenuClass(), this.cls, this.id]; + }, + + // private + setButtonClass : function(){ + if(this.useSetClass){ + if(!Ext.isEmpty(this.oldCls)){ + this.el.removeClass([this.oldCls, 'x-btn-pressed']); + } + this.oldCls = (this.iconCls || this.icon) ? (this.text ? 'x-btn-text-icon' : 'x-btn-icon') : 'x-btn-noicon'; + this.el.addClass([this.oldCls, this.pressed ? 'x-btn-pressed' : null]); + } + }, + + // protected + getMenuClass : function(){ + return this.menu ? (this.arrowAlign != 'bottom' ? 'x-btn-arrow' : 'x-btn-arrow-bottom') : ''; + }, + + // private + onRender : function(ct, position){ + if(!this.template){ + if(!Ext.Button.buttonTemplate){ + // hideous table template + Ext.Button.buttonTemplate = new Ext.Template( + '', + '', + '', + '', + '
        
        
        
      '); + Ext.Button.buttonTemplate.compile(); + } + this.template = Ext.Button.buttonTemplate; + } + + var btn, targs = this.getTemplateArgs(); + + if(position){ + btn = this.template.insertBefore(position, targs, true); + }else{ + btn = this.template.append(ct, targs, true); + } + /** + * An {@link Ext.Element Element} encapsulating the Button's clickable element. By default, + * this references a <button> element. Read only. + * @type Ext.Element + * @property btnEl + */ + this.btnEl = btn.child(this.buttonSelector); + this.mon(this.btnEl, { + scope: this, + focus: this.onFocus, + blur: this.onBlur + }); + + this.initButtonEl(btn, this.btnEl); + + Ext.ButtonToggleMgr.register(this); + }, + + // private + initButtonEl : function(btn, btnEl){ + this.el = btn; + this.setIcon(this.icon); + this.setText(this.text); + this.setIconClass(this.iconCls); + if(Ext.isDefined(this.tabIndex)){ + btnEl.dom.tabIndex = this.tabIndex; + } + if(this.tooltip){ + this.setTooltip(this.tooltip, true); + } + + if(this.handleMouseEvents){ + this.mon(btn, { + scope: this, + mouseover: this.onMouseOver, + mousedown: this.onMouseDown + }); + + // new functionality for monitoring on the document level + //this.mon(btn, 'mouseout', this.onMouseOut, this); + } + + if(this.menu){ + this.mon(this.menu, { + scope: this, + show: this.onMenuShow, + hide: this.onMenuHide + }); + } + + if(this.repeat){ + var repeater = new Ext.util.ClickRepeater(btn, Ext.isObject(this.repeat) ? this.repeat : {}); + this.mon(repeater, 'click', this.onClick, this); + } + this.mon(btn, this.clickEvent, this.onClick, this); + }, + + // private + afterRender : function(){ + Ext.Button.superclass.afterRender.call(this); + this.useSetClass = true; + this.setButtonClass(); + this.doc = Ext.getDoc(); + this.doAutoWidth(); + }, + + /** + * Sets the CSS class that provides a background image to use as the button's icon. This method also changes + * the value of the {@link iconCls} config internally. + * @param {String} cls The CSS class providing the icon image + * @return {Ext.Button} this + */ + setIconClass : function(cls){ + this.iconCls = cls; + if(this.el){ + this.btnEl.dom.className = ''; + this.btnEl.addClass(['x-btn-text', cls || '']); + this.setButtonClass(); + } + return this; + }, + + /** + * Sets the tooltip for this Button. + * @param {String/Object} tooltip. This may be:
        + *
      • String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip
      • + *
      • Object : A configuration object for {@link Ext.QuickTips#register}.
      • + *
      + * @return {Ext.Button} this + */ + setTooltip : function(tooltip, /* private */ initial){ + if(this.rendered){ + if(!initial){ + this.clearTip(); + } + if(Ext.isObject(tooltip)){ + Ext.QuickTips.register(Ext.apply({ + target: this.btnEl.id + }, tooltip)); + this.tooltip = tooltip; + }else{ + this.btnEl.dom[this.tooltipType] = tooltip; + } + }else{ + this.tooltip = tooltip; + } + return this; + }, + + // private + clearTip : function(){ + if(Ext.isObject(this.tooltip)){ + Ext.QuickTips.unregister(this.btnEl); + } + }, + + // private + beforeDestroy : function(){ + if(this.rendered){ + this.clearTip(); + } + if(this.menu && this.destroyMenu !== false) { + Ext.destroy(this.menu); + } + Ext.destroy(this.repeater); + }, + + // private + onDestroy : function(){ + if(this.rendered){ + this.doc.un('mouseover', this.monitorMouseOver, this); + this.doc.un('mouseup', this.onMouseUp, this); + delete this.doc; + delete this.btnEl; + Ext.ButtonToggleMgr.unregister(this); + } + Ext.Button.superclass.onDestroy.call(this); + }, + + // private + doAutoWidth : function(){ + if(this.autoWidth !== false && this.el && this.text && this.width === undefined){ + this.el.setWidth('auto'); + if(Ext.isIE7 && Ext.isStrict){ + var ib = this.btnEl; + if(ib && ib.getWidth() > 20){ + ib.clip(); + ib.setWidth(Ext.util.TextMetrics.measure(ib, this.text).width+ib.getFrameWidth('lr')); + } + } + if(this.minWidth){ + if(this.el.getWidth() < this.minWidth){ + this.el.setWidth(this.minWidth); + } + } + } + }, + + /** + * Assigns this Button's click handler + * @param {Function} handler The function to call when the button is clicked + * @param {Object} scope (optional) The scope (this reference) in which the handler function is executed. + * Defaults to this Button. + * @return {Ext.Button} this + */ + setHandler : function(handler, scope){ + this.handler = handler; + this.scope = scope; + return this; + }, + + /** + * Sets this Button's text + * @param {String} text The button text + * @return {Ext.Button} this + */ + setText : function(text){ + this.text = text; + if(this.el){ + this.btnEl.update(text || ' '); + this.setButtonClass(); + } + this.doAutoWidth(); + return this; + }, + + /** + * Sets the background image (inline style) of the button. This method also changes + * the value of the {@link icon} config internally. + * @param {String} icon The path to an image to display in the button + * @return {Ext.Button} this + */ + setIcon : function(icon){ + this.icon = icon; + if(this.el){ + this.btnEl.setStyle('background-image', icon ? 'url(' + icon + ')' : ''); + this.setButtonClass(); + } + return this; + }, + + /** + * Gets the text for this Button + * @return {String} The button text + */ + getText : function(){ + return this.text; + }, + + /** + * If a state it passed, it becomes the pressed state otherwise the current state is toggled. + * @param {Boolean} state (optional) Force a particular state + * @param {Boolean} supressEvent (optional) True to stop events being fired when calling this method. + * @return {Ext.Button} this + */ + toggle : function(state, suppressEvent){ + state = state === undefined ? !this.pressed : !!state; + if(state != this.pressed){ + if(this.rendered){ + this.el[state ? 'addClass' : 'removeClass']('x-btn-pressed'); + } + this.pressed = state; + if(!suppressEvent){ + this.fireEvent('toggle', this, state); + if(this.toggleHandler){ + this.toggleHandler.call(this.scope || this, this, state); + } + } + } + return this; + }, + + // private + onDisable : function(){ + this.onDisableChange(true); + }, + + // private + onEnable : function(){ + this.onDisableChange(false); + }, + + onDisableChange : function(disabled){ + if(this.el){ + if(!Ext.isIE6 || !this.text){ + this.el[disabled ? 'addClass' : 'removeClass'](this.disabledClass); + } + this.el.dom.disabled = disabled; + } + this.disabled = disabled; + }, + + /** + * Show this button's menu (if it has one) + */ + showMenu : function(){ + if(this.rendered && this.menu){ + if(this.tooltip){ + Ext.QuickTips.getQuickTip().cancelShow(this.btnEl); + } + if(this.menu.isVisible()){ + this.menu.hide(); + } + this.menu.ownerCt = this; + this.menu.show(this.el, this.menuAlign); + } + return this; + }, + + /** + * Hide this button's menu (if it has one) + */ + hideMenu : function(){ + if(this.hasVisibleMenu()){ + this.menu.hide(); + } + return this; + }, + + /** + * Returns true if the button has a menu and it is visible + * @return {Boolean} + */ + hasVisibleMenu : function(){ + return this.menu && this.menu.ownerCt == this && this.menu.isVisible(); + }, + + // private + onClick : function(e){ + if(e){ + e.preventDefault(); + } + if(e.button !== 0){ + return; + } + if(!this.disabled){ + if(this.enableToggle && (this.allowDepress !== false || !this.pressed)){ + this.toggle(); + } + if(this.menu && !this.hasVisibleMenu() && !this.ignoreNextClick){ + this.showMenu(); + } + this.fireEvent('click', this, e); + if(this.handler){ + //this.el.removeClass('x-btn-over'); + this.handler.call(this.scope || this, this, e); + } + } + }, + + // private + isMenuTriggerOver : function(e, internal){ + return this.menu && !internal; + }, + + // private + isMenuTriggerOut : function(e, internal){ + return this.menu && !internal; + }, + + // private + onMouseOver : function(e){ + if(!this.disabled){ + var internal = e.within(this.el, true); + if(!internal){ + this.el.addClass('x-btn-over'); + if(!this.monitoringMouseOver){ + this.doc.on('mouseover', this.monitorMouseOver, this); + this.monitoringMouseOver = true; + } + this.fireEvent('mouseover', this, e); + } + if(this.isMenuTriggerOver(e, internal)){ + this.fireEvent('menutriggerover', this, this.menu, e); + } + } + }, + + // private + monitorMouseOver : function(e){ + if(e.target != this.el.dom && !e.within(this.el)){ + if(this.monitoringMouseOver){ + this.doc.un('mouseover', this.monitorMouseOver, this); + this.monitoringMouseOver = false; + } + this.onMouseOut(e); + } + }, + + // private + onMouseOut : function(e){ + var internal = e.within(this.el) && e.target != this.el.dom; + this.el.removeClass('x-btn-over'); + this.fireEvent('mouseout', this, e); + if(this.isMenuTriggerOut(e, internal)){ + this.fireEvent('menutriggerout', this, this.menu, e); + } + }, + + focus : function() { + this.btnEl.focus(); + }, + + blur : function() { + this.btnEl.blur(); + }, + + // private + onFocus : function(e){ + if(!this.disabled){ + this.el.addClass('x-btn-focus'); + } + }, + // private + onBlur : function(e){ + this.el.removeClass('x-btn-focus'); + }, + + // private + getClickEl : function(e, isUp){ + return this.el; + }, + + // private + onMouseDown : function(e){ + if(!this.disabled && e.button === 0){ + this.getClickEl(e).addClass('x-btn-click'); + this.doc.on('mouseup', this.onMouseUp, this); + } + }, + // private + onMouseUp : function(e){ + if(e.button === 0){ + this.getClickEl(e, true).removeClass('x-btn-click'); + this.doc.un('mouseup', this.onMouseUp, this); + } + }, + // private + onMenuShow : function(e){ + if(this.menu.ownerCt == this){ + this.menu.ownerCt = this; + this.ignoreNextClick = 0; + this.el.addClass('x-btn-menu-active'); + this.fireEvent('menushow', this, this.menu); + } + }, + // private + onMenuHide : function(e){ + if(this.menu.ownerCt == this){ + this.el.removeClass('x-btn-menu-active'); + this.ignoreNextClick = this.restoreClick.defer(250, this); + this.fireEvent('menuhide', this, this.menu); + delete this.menu.ownerCt; + } + }, + + // private + restoreClick : function(){ + this.ignoreNextClick = 0; + } + + /** + * @cfg {String} autoEl @hide + */ + /** + * @cfg {String/Object} html @hide + */ + /** + * @cfg {String} contentEl @hide + */ + /** + * @cfg {Mixed} data @hide + */ + /** + * @cfg {Mixed} tpl @hide + */ + /** + * @cfg {String} tplWriteMode @hide + */ +}); +Ext.reg('button', Ext.Button); + +// Private utility class used by Button +Ext.ButtonToggleMgr = function(){ + var groups = {}; + + function toggleGroup(btn, state){ + if(state){ + var g = groups[btn.toggleGroup]; + for(var i = 0, l = g.length; i < l; i++){ + if(g[i] != btn){ + g[i].toggle(false); + } + } + } + } + + return { + register : function(btn){ + if(!btn.toggleGroup){ + return; + } + var g = groups[btn.toggleGroup]; + if(!g){ + g = groups[btn.toggleGroup] = []; + } + g.push(btn); + btn.on('toggle', toggleGroup); + }, + + unregister : function(btn){ + if(!btn.toggleGroup){ + return; + } + var g = groups[btn.toggleGroup]; + if(g){ + g.remove(btn); + btn.un('toggle', toggleGroup); + } + }, + + /** + * Gets the pressed button in the passed group or null + * @param {String} group + * @return Button + */ + getPressed : function(group){ + var g = groups[group]; + if(g){ + for(var i = 0, len = g.length; i < len; i++){ + if(g[i].pressed === true){ + return g[i]; + } + } + } + return null; + } + }; +}(); +/** + * @class Ext.SplitButton + * @extends Ext.Button + * A split button that provides a built-in dropdown arrow that can fire an event separately from the default + * click event of the button. Typically this would be used to display a dropdown menu that provides additional + * options to the primary button action, but any custom handler can provide the arrowclick implementation. Example usage: + *
      
      +// display a dropdown menu:
      +new Ext.SplitButton({
      +	renderTo: 'button-ct', // the container id
      +   	text: 'Options',
      +   	handler: optionsHandler, // handle a click on the button itself
      +   	menu: new Ext.menu.Menu({
      +        items: [
      +        	// these items will render as dropdown menu items when the arrow is clicked:
      +	        {text: 'Item 1', handler: item1Handler},
      +	        {text: 'Item 2', handler: item2Handler}
      +        ]
      +   	})
      +});
      +
      +// Instead of showing a menu, you provide any type of custom
      +// functionality you want when the dropdown arrow is clicked:
      +new Ext.SplitButton({
      +	renderTo: 'button-ct',
      +   	text: 'Options',
      +   	handler: optionsHandler,
      +   	arrowHandler: myCustomHandler
      +});
      +
      + * @cfg {Function} arrowHandler A function called when the arrow button is clicked (can be used instead of click event) + * @cfg {String} arrowTooltip The title attribute of the arrow + * @constructor + * Create a new menu button + * @param {Object} config The config object + * @xtype splitbutton + */ +Ext.SplitButton = Ext.extend(Ext.Button, { + // private + arrowSelector : 'em', + split: true, + + // private + initComponent : function(){ + Ext.SplitButton.superclass.initComponent.call(this); + /** + * @event arrowclick + * Fires when this button's arrow is clicked + * @param {MenuButton} this + * @param {EventObject} e The click event + */ + this.addEvents("arrowclick"); + }, + + // private + onRender : function(){ + Ext.SplitButton.superclass.onRender.apply(this, arguments); + if(this.arrowTooltip){ + this.el.child(this.arrowSelector).dom[this.tooltipType] = this.arrowTooltip; + } + }, + + /** + * Sets this button's arrow click handler. + * @param {Function} handler The function to call when the arrow is clicked + * @param {Object} scope (optional) Scope for the function passed above + */ + setArrowHandler : function(handler, scope){ + this.arrowHandler = handler; + this.scope = scope; + }, + + getMenuClass : function(){ + return 'x-btn-split' + (this.arrowAlign == 'bottom' ? '-bottom' : ''); + }, + + isClickOnArrow : function(e){ + if (this.arrowAlign != 'bottom') { + var visBtn = this.el.child('em.x-btn-split'); + var right = visBtn.getRegion().right - visBtn.getPadding('r'); + return e.getPageX() > right; + } else { + return e.getPageY() > this.btnEl.getRegion().bottom; + } + }, + + // private + onClick : function(e, t){ + e.preventDefault(); + if(!this.disabled){ + if(this.isClickOnArrow(e)){ + if(this.menu && !this.menu.isVisible() && !this.ignoreNextClick){ + this.showMenu(); + } + this.fireEvent("arrowclick", this, e); + if(this.arrowHandler){ + this.arrowHandler.call(this.scope || this, this, e); + } + }else{ + if(this.enableToggle){ + this.toggle(); + } + this.fireEvent("click", this, e); + if(this.handler){ + this.handler.call(this.scope || this, this, e); + } + } + } + }, + + // private + isMenuTriggerOver : function(e){ + return this.menu && e.target.tagName == this.arrowSelector; + }, + + // private + isMenuTriggerOut : function(e, internal){ + return this.menu && e.target.tagName != this.arrowSelector; + } +}); + +Ext.reg('splitbutton', Ext.SplitButton);/** + * @class Ext.CycleButton + * @extends Ext.SplitButton + * A specialized SplitButton that contains a menu of {@link Ext.menu.CheckItem} elements. The button automatically + * cycles through each menu item on click, raising the button's {@link #change} event (or calling the button's + * {@link #changeHandler} function, if supplied) for the active menu item. Clicking on the arrow section of the + * button displays the dropdown menu just like a normal SplitButton. Example usage: + *
      
      +var btn = new Ext.CycleButton({
      +    showText: true,
      +    prependText: 'View as ',
      +    items: [{
      +        text:'text only',
      +        iconCls:'view-text',
      +        checked:true
      +    },{
      +        text:'HTML',
      +        iconCls:'view-html'
      +    }],
      +    changeHandler:function(btn, item){
      +        Ext.Msg.alert('Change View', item.text);
      +    }
      +});
      +
      + * @constructor + * Create a new split button + * @param {Object} config The config object + * @xtype cycle + */ +Ext.CycleButton = Ext.extend(Ext.SplitButton, { + /** + * @cfg {Array} items An array of {@link Ext.menu.CheckItem} config objects to be used when creating the + * button's menu items (e.g., {text:'Foo', iconCls:'foo-icon'}) + */ + /** + * @cfg {Boolean} showText True to display the active item's text as the button text (defaults to false) + */ + /** + * @cfg {String} prependText A static string to prepend before the active item's text when displayed as the + * button's text (only applies when showText = true, defaults to '') + */ + /** + * @cfg {Function} changeHandler A callback function that will be invoked each time the active menu + * item in the button's menu has changed. If this callback is not supplied, the SplitButton will instead + * fire the {@link #change} event on active item change. The changeHandler function will be called with the + * following argument list: (SplitButton this, Ext.menu.CheckItem item) + */ + /** + * @cfg {String} forceIcon A css class which sets an image to be used as the static icon for this button. This + * icon will always be displayed regardless of which item is selected in the dropdown list. This overrides the + * default behavior of changing the button's icon to match the selected item's icon on change. + */ + /** + * @property menu + * @type Menu + * The {@link Ext.menu.Menu Menu} object used to display the {@link Ext.menu.CheckItem CheckItems} representing the available choices. + */ + + // private + getItemText : function(item){ + if(item && this.showText === true){ + var text = ''; + if(this.prependText){ + text += this.prependText; + } + text += item.text; + return text; + } + return undefined; + }, + + /** + * Sets the button's active menu item. + * @param {Ext.menu.CheckItem} item The item to activate + * @param {Boolean} suppressEvent True to prevent the button's change event from firing (defaults to false) + */ + setActiveItem : function(item, suppressEvent){ + if(!Ext.isObject(item)){ + item = this.menu.getComponent(item); + } + if(item){ + if(!this.rendered){ + this.text = this.getItemText(item); + this.iconCls = item.iconCls; + }else{ + var t = this.getItemText(item); + if(t){ + this.setText(t); + } + this.setIconClass(item.iconCls); + } + this.activeItem = item; + if(!item.checked){ + item.setChecked(true, false); + } + if(this.forceIcon){ + this.setIconClass(this.forceIcon); + } + if(!suppressEvent){ + this.fireEvent('change', this, item); + } + } + }, + + /** + * Gets the currently active menu item. + * @return {Ext.menu.CheckItem} The active item + */ + getActiveItem : function(){ + return this.activeItem; + }, + + // private + initComponent : function(){ + this.addEvents( + /** + * @event change + * Fires after the button's active menu item has changed. Note that if a {@link #changeHandler} function + * is set on this CycleButton, it will be called instead on active item change and this change event will + * not be fired. + * @param {Ext.CycleButton} this + * @param {Ext.menu.CheckItem} item The menu item that was selected + */ + "change" + ); + + if(this.changeHandler){ + this.on('change', this.changeHandler, this.scope||this); + delete this.changeHandler; + } + + this.itemCount = this.items.length; + + this.menu = {cls:'x-cycle-menu', items:[]}; + var checked = 0; + Ext.each(this.items, function(item, i){ + Ext.apply(item, { + group: item.group || this.id, + itemIndex: i, + checkHandler: this.checkHandler, + scope: this, + checked: item.checked || false + }); + this.menu.items.push(item); + if(item.checked){ + checked = i; + } + }, this); + Ext.CycleButton.superclass.initComponent.call(this); + this.on('click', this.toggleSelected, this); + this.setActiveItem(checked, true); + }, + + // private + checkHandler : function(item, pressed){ + if(pressed){ + this.setActiveItem(item); + } + }, + + /** + * This is normally called internally on button click, but can be called externally to advance the button's + * active item programmatically to the next one in the menu. If the current item is the last one in the menu + * the active item will be set to the first item in the menu. + */ + toggleSelected : function(){ + var m = this.menu; + m.render(); + // layout if we haven't before so the items are active + if(!m.hasLayout){ + m.doLayout(); + } + + var nextIdx, checkItem; + for (var i = 1; i < this.itemCount; i++) { + nextIdx = (this.activeItem.itemIndex + i) % this.itemCount; + // check the potential item + checkItem = m.items.itemAt(nextIdx); + // if its not disabled then check it. + if (!checkItem.disabled) { + checkItem.setChecked(true); + break; + } + } + } +}); +Ext.reg('cycle', Ext.CycleButton);/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.Toolbar + * @extends Ext.Container + *

      Basic Toolbar class. Although the {@link Ext.Container#defaultType defaultType} for Toolbar + * is {@link Ext.Button button}, Toolbar elements (child items for the Toolbar container) may + * be virtually any type of Component. Toolbar elements can be created explicitly via their constructors, + * or implicitly via their xtypes, and can be {@link #add}ed dynamically.

      + *

      Some items have shortcut strings for creation:

      + *
      +Shortcut  xtype          Class                  Description
      +'->'      'tbfill'       {@link Ext.Toolbar.Fill}       begin using the right-justified button container
      +'-'       'tbseparator'  {@link Ext.Toolbar.Separator}  add a vertical separator bar between toolbar items
      +' '       'tbspacer'     {@link Ext.Toolbar.Spacer}     add horiztonal space between elements
      + * 
      + * + * Example usage of various elements: + *
      
      +var tb = new Ext.Toolbar({
      +    renderTo: document.body,
      +    width: 600,
      +    height: 100,
      +    items: [
      +        {
      +            // xtype: 'button', // default for Toolbars, same as 'tbbutton'
      +            text: 'Button'
      +        },
      +        {
      +            xtype: 'splitbutton', // same as 'tbsplitbutton'
      +            text: 'Split Button'
      +        },
      +        // begin using the right-justified button container
      +        '->', // same as {xtype: 'tbfill'}, // Ext.Toolbar.Fill
      +        {
      +            xtype: 'textfield',
      +            name: 'field1',
      +            emptyText: 'enter search term'
      +        },
      +        // add a vertical separator bar between toolbar items
      +        '-', // same as {xtype: 'tbseparator'} to create Ext.Toolbar.Separator
      +        'text 1', // same as {xtype: 'tbtext', text: 'text1'} to create Ext.Toolbar.TextItem
      +        {xtype: 'tbspacer'},// same as ' ' to create Ext.Toolbar.Spacer
      +        'text 2',
      +        {xtype: 'tbspacer', width: 50}, // add a 50px space
      +        'text 3'
      +    ]
      +});
      + * 
      + * Example adding a ComboBox within a menu of a button: + *
      
      +// ComboBox creation
      +var combo = new Ext.form.ComboBox({
      +    store: new Ext.data.ArrayStore({
      +        autoDestroy: true,
      +        fields: ['initials', 'fullname'],
      +        data : [
      +            ['FF', 'Fred Flintstone'],
      +            ['BR', 'Barney Rubble']
      +        ]
      +    }),
      +    displayField: 'fullname',
      +    typeAhead: true,
      +    mode: 'local',
      +    forceSelection: true,
      +    triggerAction: 'all',
      +    emptyText: 'Select a name...',
      +    selectOnFocus: true,
      +    width: 135,
      +    getListParent: function() {
      +        return this.el.up('.x-menu');
      +    },
      +    iconCls: 'no-icon' //use iconCls if placing within menu to shift to right side of menu
      +});
      +
      +// put ComboBox in a Menu
      +var menu = new Ext.menu.Menu({
      +    id: 'mainMenu',
      +    items: [
      +        combo // A Field in a Menu
      +    ]
      +});
      +
      +// add a Button with the menu
      +tb.add({
      +        text:'Button w/ Menu',
      +        menu: menu  // assign menu by instance
      +    });
      +tb.doLayout();
      + * 
      + * @constructor + * Creates a new Toolbar + * @param {Object/Array} config A config object or an array of buttons to {@link #add} + * @xtype toolbar + */ +Ext.Toolbar = function(config){ + if(Ext.isArray(config)){ + config = {items: config, layout: 'toolbar'}; + } else { + config = Ext.apply({ + layout: 'toolbar' + }, config); + if(config.buttons) { + config.items = config.buttons; + } + } + Ext.Toolbar.superclass.constructor.call(this, config); +}; + +(function(){ + +var T = Ext.Toolbar; + +Ext.extend(T, Ext.Container, { + + defaultType: 'button', + + /** + * @cfg {String/Object} layout + * This class assigns a default layout (layout:'toolbar'). + * Developers may override this configuration option if another layout + * is required (the constructor must be passed a configuration object in this + * case instead of an array). + * See {@link Ext.Container#layout} for additional information. + */ + + enableOverflow : false, + + /** + * @cfg {Boolean} enableOverflow + * Defaults to false. Configure true to make the toolbar provide a button + * which activates a dropdown Menu to show items which overflow the Toolbar's width. + */ + /** + * @cfg {String} buttonAlign + *

      The default position at which to align child items. Defaults to "left"

      + *

      May be specified as "center" to cause items added before a Fill (A "->") item + * to be centered in the Toolbar. Items added after a Fill are still right-aligned.

      + *

      Specify as "right" to right align all child items.

      + */ + + trackMenus : true, + internalDefaults: {removeMode: 'container', hideParent: true}, + toolbarCls: 'x-toolbar', + + initComponent : function(){ + T.superclass.initComponent.call(this); + + /** + * @event overflowchange + * Fires after the overflow state has changed. + * @param {Object} c The Container + * @param {Boolean} lastOverflow overflow state + */ + this.addEvents('overflowchange'); + }, + + // private + onRender : function(ct, position){ + if(!this.el){ + if(!this.autoCreate){ + this.autoCreate = { + cls: this.toolbarCls + ' x-small-editor' + }; + } + this.el = ct.createChild(Ext.apply({ id: this.id },this.autoCreate), position); + Ext.Toolbar.superclass.onRender.apply(this, arguments); + } + }, + + /** + *

      Adds element(s) to the toolbar -- this function takes a variable number of + * arguments of mixed type and adds them to the toolbar.

      + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @param {Mixed} arg1 The following types of arguments are all valid:
      + *
        + *
      • {@link Ext.Button} config: A valid button config object (equivalent to {@link #addButton})
      • + *
      • HtmlElement: Any standard HTML element (equivalent to {@link #addElement})
      • + *
      • Field: Any form field (equivalent to {@link #addField})
      • + *
      • Item: Any subclass of {@link Ext.Toolbar.Item} (equivalent to {@link #addItem})
      • + *
      • String: Any generic string (gets wrapped in a {@link Ext.Toolbar.TextItem}, equivalent to {@link #addText}). + * Note that there are a few special strings that are treated differently as explained next.
      • + *
      • '-': Creates a separator element (equivalent to {@link #addSeparator})
      • + *
      • ' ': Creates a spacer element (equivalent to {@link #addSpacer})
      • + *
      • '->': Creates a fill element (equivalent to {@link #addFill})
      • + *
      + * @param {Mixed} arg2 + * @param {Mixed} etc. + * @method add + */ + + // private + lookupComponent : function(c){ + if(Ext.isString(c)){ + if(c == '-'){ + c = new T.Separator(); + }else if(c == ' '){ + c = new T.Spacer(); + }else if(c == '->'){ + c = new T.Fill(); + }else{ + c = new T.TextItem(c); + } + this.applyDefaults(c); + }else{ + if(c.isFormField || c.render){ // some kind of form field, some kind of Toolbar.Item + c = this.createComponent(c); + }else if(c.tag){ // DomHelper spec + c = new T.Item({autoEl: c}); + }else if(c.tagName){ // element + c = new T.Item({el:c}); + }else if(Ext.isObject(c)){ // must be button config? + c = c.xtype ? this.createComponent(c) : this.constructButton(c); + } + } + return c; + }, + + // private + applyDefaults : function(c){ + if(!Ext.isString(c)){ + c = Ext.Toolbar.superclass.applyDefaults.call(this, c); + var d = this.internalDefaults; + if(c.events){ + Ext.applyIf(c.initialConfig, d); + Ext.apply(c, d); + }else{ + Ext.applyIf(c, d); + } + } + return c; + }, + + /** + * Adds a separator + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @return {Ext.Toolbar.Item} The separator {@link Ext.Toolbar.Item item} + */ + addSeparator : function(){ + return this.add(new T.Separator()); + }, + + /** + * Adds a spacer element + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @return {Ext.Toolbar.Spacer} The spacer item + */ + addSpacer : function(){ + return this.add(new T.Spacer()); + }, + + /** + * Forces subsequent additions into the float:right toolbar + *

      Note: See the notes within {@link Ext.Container#add}.

      + */ + addFill : function(){ + this.add(new T.Fill()); + }, + + /** + * Adds any standard HTML element to the toolbar + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @param {Mixed} el The element or id of the element to add + * @return {Ext.Toolbar.Item} The element's item + */ + addElement : function(el){ + return this.addItem(new T.Item({el:el})); + }, + + /** + * Adds any Toolbar.Item or subclass + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @param {Ext.Toolbar.Item} item + * @return {Ext.Toolbar.Item} The item + */ + addItem : function(item){ + return this.add.apply(this, arguments); + }, + + /** + * Adds a button (or buttons). See {@link Ext.Button} for more info on the config. + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @param {Object/Array} config A button config or array of configs + * @return {Ext.Button/Array} + */ + addButton : function(config){ + if(Ext.isArray(config)){ + var buttons = []; + for(var i = 0, len = config.length; i < len; i++) { + buttons.push(this.addButton(config[i])); + } + return buttons; + } + return this.add(this.constructButton(config)); + }, + + /** + * Adds text to the toolbar + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @param {String} text The text to add + * @return {Ext.Toolbar.Item} The element's item + */ + addText : function(text){ + return this.addItem(new T.TextItem(text)); + }, + + /** + * Adds a new element to the toolbar from the passed {@link Ext.DomHelper} config + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @param {Object} config + * @return {Ext.Toolbar.Item} The element's item + */ + addDom : function(config){ + return this.add(new T.Item({autoEl: config})); + }, + + /** + * Adds a dynamically rendered Ext.form field (TextField, ComboBox, etc). Note: the field should not have + * been rendered yet. For a field that has already been rendered, use {@link #addElement}. + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @param {Ext.form.Field} field + * @return {Ext.Toolbar.Item} + */ + addField : function(field){ + return this.add(field); + }, + + /** + * Inserts any {@link Ext.Toolbar.Item}/{@link Ext.Button} at the specified index. + *

      Note: See the notes within {@link Ext.Container#add}.

      + * @param {Number} index The index where the item is to be inserted + * @param {Object/Ext.Toolbar.Item/Ext.Button/Array} item The button, or button config object to be + * inserted, or an array of buttons/configs. + * @return {Ext.Button/Item} + */ + insertButton : function(index, item){ + if(Ext.isArray(item)){ + var buttons = []; + for(var i = 0, len = item.length; i < len; i++) { + buttons.push(this.insertButton(index + i, item[i])); + } + return buttons; + } + return Ext.Toolbar.superclass.insert.call(this, index, item); + }, + + // private + trackMenu : function(item, remove){ + if(this.trackMenus && item.menu){ + var method = remove ? 'mun' : 'mon'; + this[method](item, 'menutriggerover', this.onButtonTriggerOver, this); + this[method](item, 'menushow', this.onButtonMenuShow, this); + this[method](item, 'menuhide', this.onButtonMenuHide, this); + } + }, + + // private + constructButton : function(item){ + var b = item.events ? item : this.createComponent(item, item.split ? 'splitbutton' : this.defaultType); + return b; + }, + + // private + onAdd : function(c){ + Ext.Toolbar.superclass.onAdd.call(this); + this.trackMenu(c); + if(this.disabled){ + c.disable(); + } + }, + + // private + onRemove : function(c){ + Ext.Toolbar.superclass.onRemove.call(this); + this.trackMenu(c, true); + }, + + // private + onDisable : function(){ + this.items.each(function(item){ + if(item.disable){ + item.disable(); + } + }); + }, + + // private + onEnable : function(){ + this.items.each(function(item){ + if(item.enable){ + item.enable(); + } + }); + }, + + // private + onButtonTriggerOver : function(btn){ + if(this.activeMenuBtn && this.activeMenuBtn != btn){ + this.activeMenuBtn.hideMenu(); + btn.showMenu(); + this.activeMenuBtn = btn; + } + }, + + // private + onButtonMenuShow : function(btn){ + this.activeMenuBtn = btn; + }, + + // private + onButtonMenuHide : function(btn){ + delete this.activeMenuBtn; + } +}); +Ext.reg('toolbar', Ext.Toolbar); + +/** + * @class Ext.Toolbar.Item + * @extends Ext.BoxComponent + * The base class that other non-interacting Toolbar Item classes should extend in order to + * get some basic common toolbar item functionality. + * @constructor + * Creates a new Item + * @param {HTMLElement} el + * @xtype tbitem + */ +T.Item = Ext.extend(Ext.BoxComponent, { + hideParent: true, // Hiding a Toolbar.Item hides its containing TD + enable:Ext.emptyFn, + disable:Ext.emptyFn, + focus:Ext.emptyFn + /** + * @cfg {String} overflowText Text to be used for the menu if the item is overflowed. + */ +}); +Ext.reg('tbitem', T.Item); + +/** + * @class Ext.Toolbar.Separator + * @extends Ext.Toolbar.Item + * A simple class that adds a vertical separator bar between toolbar items + * (css class:'xtb-sep'). Example usage: + *
      
      +new Ext.Panel({
      +    tbar : [
      +        'Item 1',
      +        {xtype: 'tbseparator'}, // or '-'
      +        'Item 2'
      +    ]
      +});
      +
      + * @constructor + * Creates a new Separator + * @xtype tbseparator + */ +T.Separator = Ext.extend(T.Item, { + onRender : function(ct, position){ + this.el = ct.createChild({tag:'span', cls:'xtb-sep'}, position); + } +}); +Ext.reg('tbseparator', T.Separator); + +/** + * @class Ext.Toolbar.Spacer + * @extends Ext.Toolbar.Item + * A simple element that adds extra horizontal space between items in a toolbar. + * By default a 2px wide space is added via css specification:
      
      +.x-toolbar .xtb-spacer {
      +    width:2px;
      +}
      + * 
      + *

      Example usage:

      + *
      
      +new Ext.Panel({
      +    tbar : [
      +        'Item 1',
      +        {xtype: 'tbspacer'}, // or ' '
      +        'Item 2',
      +        // space width is also configurable via javascript
      +        {xtype: 'tbspacer', width: 50}, // add a 50px space
      +        'Item 3'
      +    ]
      +});
      +
      + * @constructor + * Creates a new Spacer + * @xtype tbspacer + */ +T.Spacer = Ext.extend(T.Item, { + /** + * @cfg {Number} width + * The width of the spacer in pixels (defaults to 2px via css style .x-toolbar .xtb-spacer). + */ + + onRender : function(ct, position){ + this.el = ct.createChild({tag:'div', cls:'xtb-spacer', style: this.width?'width:'+this.width+'px':''}, position); + } +}); +Ext.reg('tbspacer', T.Spacer); + +/** + * @class Ext.Toolbar.Fill + * @extends Ext.Toolbar.Spacer + * A non-rendering placeholder item which instructs the Toolbar's Layout to begin using + * the right-justified button container. + *
      
      +new Ext.Panel({
      +    tbar : [
      +        'Item 1',
      +        {xtype: 'tbfill'}, // or '->'
      +        'Item 2'
      +    ]
      +});
      +
      + * @constructor + * Creates a new Fill + * @xtype tbfill + */ +T.Fill = Ext.extend(T.Item, { + // private + render : Ext.emptyFn, + isFill : true +}); +Ext.reg('tbfill', T.Fill); + +/** + * @class Ext.Toolbar.TextItem + * @extends Ext.Toolbar.Item + * A simple class that renders text directly into a toolbar + * (with css class:'xtb-text'). Example usage: + *
      
      +new Ext.Panel({
      +    tbar : [
      +        {xtype: 'tbtext', text: 'Item 1'} // or simply 'Item 1'
      +    ]
      +});
      +
      + * @constructor + * Creates a new TextItem + * @param {String/Object} text A text string, or a config object containing a text property + * @xtype tbtext + */ +T.TextItem = Ext.extend(T.Item, { + /** + * @cfg {String} text The text to be used as innerHTML (html tags are accepted) + */ + + constructor: function(config){ + T.TextItem.superclass.constructor.call(this, Ext.isString(config) ? {text: config} : config); + }, + + // private + onRender : function(ct, position) { + this.autoEl = {cls: 'xtb-text', html: this.text || ''}; + T.TextItem.superclass.onRender.call(this, ct, position); + }, + + /** + * Updates this item's text, setting the text to be used as innerHTML. + * @param {String} t The text to display (html accepted). + */ + setText : function(t) { + if(this.rendered){ + this.el.update(t); + }else{ + this.text = t; + } + } +}); +Ext.reg('tbtext', T.TextItem); + +// backwards compat +T.Button = Ext.extend(Ext.Button, {}); +T.SplitButton = Ext.extend(Ext.SplitButton, {}); +Ext.reg('tbbutton', T.Button); +Ext.reg('tbsplit', T.SplitButton); + +})(); +/** + * @class Ext.ButtonGroup + * @extends Ext.Panel + * Container for a group of buttons. Example usage: + *
      
      +var p = new Ext.Panel({
      +    title: 'Panel with Button Group',
      +    width: 300,
      +    height:200,
      +    renderTo: document.body,
      +    html: 'whatever',
      +    tbar: [{
      +        xtype: 'buttongroup',
      +        {@link #columns}: 3,
      +        title: 'Clipboard',
      +        items: [{
      +            text: 'Paste',
      +            scale: 'large',
      +            rowspan: 3, iconCls: 'add',
      +            iconAlign: 'top',
      +            cls: 'x-btn-as-arrow'
      +        },{
      +            xtype:'splitbutton',
      +            text: 'Menu Button',
      +            scale: 'large',
      +            rowspan: 3,
      +            iconCls: 'add',
      +            iconAlign: 'top',
      +            arrowAlign:'bottom',
      +            menu: [{text: 'Menu Item 1'}]
      +        },{
      +            xtype:'splitbutton', text: 'Cut', iconCls: 'add16', menu: [{text: 'Cut Menu Item'}]
      +        },{
      +            text: 'Copy', iconCls: 'add16'
      +        },{
      +            text: 'Format', iconCls: 'add16'
      +        }]
      +    }]
      +});
      + * 
      + * @constructor + * Create a new ButtonGroup. + * @param {Object} config The config object + * @xtype buttongroup + */ +Ext.ButtonGroup = Ext.extend(Ext.Panel, { + /** + * @cfg {Number} columns The columns configuration property passed to the + * {@link #layout configured layout manager}. See {@link Ext.layout.TableLayout#columns}. + */ + /** + * @cfg {String} baseCls Defaults to 'x-btn-group'. See {@link Ext.Panel#baseCls}. + */ + baseCls: 'x-btn-group', + /** + * @cfg {String} layout Defaults to 'table'. See {@link Ext.Container#layout}. + */ + layout:'table', + defaultType: 'button', + /** + * @cfg {Boolean} frame Defaults to true. See {@link Ext.Panel#frame}. + */ + frame: true, + internalDefaults: {removeMode: 'container', hideParent: true}, + + initComponent : function(){ + this.layoutConfig = this.layoutConfig || {}; + Ext.applyIf(this.layoutConfig, { + columns : this.columns + }); + if(!this.title){ + this.addClass('x-btn-group-notitle'); + } + this.on('afterlayout', this.onAfterLayout, this); + Ext.ButtonGroup.superclass.initComponent.call(this); + }, + + applyDefaults : function(c){ + c = Ext.ButtonGroup.superclass.applyDefaults.call(this, c); + var d = this.internalDefaults; + if(c.events){ + Ext.applyIf(c.initialConfig, d); + Ext.apply(c, d); + }else{ + Ext.applyIf(c, d); + } + return c; + }, + + onAfterLayout : function(){ + var bodyWidth = this.body.getFrameWidth('lr') + this.body.dom.firstChild.offsetWidth; + this.body.setWidth(bodyWidth); + this.el.setWidth(bodyWidth + this.getFrameWidth()); + } + /** + * @cfg {Array} tools @hide + */ +}); + +Ext.reg('buttongroup', Ext.ButtonGroup); +/** + * @class Ext.PagingToolbar + * @extends Ext.Toolbar + *

      As the amount of records increases, the time required for the browser to render + * them increases. Paging is used to reduce the amount of data exchanged with the client. + * Note: if there are more records/rows than can be viewed in the available screen area, vertical + * scrollbars will be added.

      + *

      Paging is typically handled on the server side (see exception below). The client sends + * parameters to the server side, which the server needs to interpret and then respond with the + * approprate data.

      + *

      Ext.PagingToolbar is a specialized toolbar that is bound to a {@link Ext.data.Store} + * and provides automatic paging control. This Component {@link Ext.data.Store#load load}s blocks + * of data into the {@link #store} by passing {@link Ext.data.Store#paramNames paramNames} used for + * paging criteria.

      + *

      PagingToolbar is typically used as one of the Grid's toolbars:

      + *
      
      +Ext.QuickTips.init(); // to display button quicktips
      +
      +var myStore = new Ext.data.Store({
      +    reader: new Ext.data.JsonReader({
      +        {@link Ext.data.JsonReader#totalProperty totalProperty}: 'results', 
      +        ...
      +    }),
      +    ...
      +});
      +
      +var myPageSize = 25;  // server script should only send back 25 items at a time
      +
      +var grid = new Ext.grid.GridPanel({
      +    ...
      +    store: myStore,
      +    bbar: new Ext.PagingToolbar({
      +        {@link #store}: myStore,       // grid and PagingToolbar using same store
      +        {@link #displayInfo}: true,
      +        {@link #pageSize}: myPageSize,
      +        {@link #prependButtons}: true,
      +        items: [
      +            'text 1'
      +        ]
      +    })
      +});
      + * 
      + * + *

      To use paging, pass the paging requirements to the server when the store is first loaded.

      + *
      
      +store.load({
      +    params: {
      +        // specify params for the first page load if using paging
      +        start: 0,          
      +        limit: myPageSize,
      +        // other params
      +        foo:   'bar'
      +    }
      +});
      + * 
      + * + *

      If using {@link Ext.data.Store#autoLoad store's autoLoad} configuration:

      + *
      
      +var myStore = new Ext.data.Store({
      +    {@link Ext.data.Store#autoLoad autoLoad}: {params:{start: 0, limit: 25}},
      +    ...
      +});
      + * 
      + * + *

      The packet sent back from the server would have this form:

      + *
      
      +{
      +    "success": true,
      +    "results": 2000, 
      +    "rows": [ // *Note: this must be an Array 
      +        { "id":  1, "name": "Bill", "occupation": "Gardener" },
      +        { "id":  2, "name":  "Ben", "occupation": "Horticulturalist" },
      +        ...
      +        { "id": 25, "name":  "Sue", "occupation": "Botanist" }
      +    ]
      +}
      + * 
      + *

      Paging with Local Data

      + *

      Paging can also be accomplished with local data using extensions:

      + *
      + * @constructor Create a new PagingToolbar + * @param {Object} config The config object + * @xtype paging + */ +(function() { + +var T = Ext.Toolbar; + +Ext.PagingToolbar = Ext.extend(Ext.Toolbar, { + /** + * @cfg {Ext.data.Store} store + * The {@link Ext.data.Store} the paging toolbar should use as its data source (required). + */ + /** + * @cfg {Boolean} displayInfo + * true to display the displayMsg (defaults to false) + */ + /** + * @cfg {Number} pageSize + * The number of records to display per page (defaults to 20) + */ + pageSize : 20, + /** + * @cfg {Boolean} prependButtons + * true to insert any configured items before the paging buttons. + * Defaults to false. + */ + /** + * @cfg {String} displayMsg + * The paging status message to display (defaults to 'Displaying {0} - {1} of {2}'). + * Note that this string is formatted using the braced numbers {0}-{2} as tokens + * that are replaced by the values for start, end and total respectively. These tokens should + * be preserved when overriding this string if showing those values is desired. + */ + displayMsg : 'Displaying {0} - {1} of {2}', + /** + * @cfg {String} emptyMsg + * The message to display when no records are found (defaults to 'No data to display') + */ + emptyMsg : 'No data to display', + /** + * @cfg {String} beforePageText + * The text displayed before the input item (defaults to 'Page'). + */ + beforePageText : 'Page', + /** + * @cfg {String} afterPageText + * Customizable piece of the default paging text (defaults to 'of {0}'). Note that + * this string is formatted using {0} as a token that is replaced by the number of + * total pages. This token should be preserved when overriding this string if showing the + * total page count is desired. + */ + afterPageText : 'of {0}', + /** + * @cfg {String} firstText + * The quicktip text displayed for the first page button (defaults to 'First Page'). + * Note: quick tips must be initialized for the quicktip to show. + */ + firstText : 'First Page', + /** + * @cfg {String} prevText + * The quicktip text displayed for the previous page button (defaults to 'Previous Page'). + * Note: quick tips must be initialized for the quicktip to show. + */ + prevText : 'Previous Page', + /** + * @cfg {String} nextText + * The quicktip text displayed for the next page button (defaults to 'Next Page'). + * Note: quick tips must be initialized for the quicktip to show. + */ + nextText : 'Next Page', + /** + * @cfg {String} lastText + * The quicktip text displayed for the last page button (defaults to 'Last Page'). + * Note: quick tips must be initialized for the quicktip to show. + */ + lastText : 'Last Page', + /** + * @cfg {String} refreshText + * The quicktip text displayed for the Refresh button (defaults to 'Refresh'). + * Note: quick tips must be initialized for the quicktip to show. + */ + refreshText : 'Refresh', + + /** + *

      Deprecated. paramNames should be set in the data store + * (see {@link Ext.data.Store#paramNames}).

      + *

      Object mapping of parameter names used for load calls, initially set to:

      + *
      {start: 'start', limit: 'limit'}
      + * @type Object + * @property paramNames + * @deprecated + */ + + /** + * The number of records to display per page. See also {@link #cursor}. + * @type Number + * @property pageSize + */ + + /** + * Indicator for the record position. This property might be used to get the active page + * number for example:
      
      +     * // t is reference to the paging toolbar instance
      +     * var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);
      +     * 
      + * @type Number + * @property cursor + */ + + initComponent : function(){ + var pagingItems = [this.first = new T.Button({ + tooltip: this.firstText, + overflowText: this.firstText, + iconCls: 'x-tbar-page-first', + disabled: true, + handler: this.moveFirst, + scope: this + }), this.prev = new T.Button({ + tooltip: this.prevText, + overflowText: this.prevText, + iconCls: 'x-tbar-page-prev', + disabled: true, + handler: this.movePrevious, + scope: this + }), '-', this.beforePageText, + this.inputItem = new Ext.form.NumberField({ + cls: 'x-tbar-page-number', + allowDecimals: false, + allowNegative: false, + enableKeyEvents: true, + selectOnFocus: true, + submitValue: false, + listeners: { + scope: this, + keydown: this.onPagingKeyDown, + blur: this.onPagingBlur + } + }), this.afterTextItem = new T.TextItem({ + text: String.format(this.afterPageText, 1) + }), '-', this.next = new T.Button({ + tooltip: this.nextText, + overflowText: this.nextText, + iconCls: 'x-tbar-page-next', + disabled: true, + handler: this.moveNext, + scope: this + }), this.last = new T.Button({ + tooltip: this.lastText, + overflowText: this.lastText, + iconCls: 'x-tbar-page-last', + disabled: true, + handler: this.moveLast, + scope: this + }), '-', this.refresh = new T.Button({ + tooltip: this.refreshText, + overflowText: this.refreshText, + iconCls: 'x-tbar-loading', + handler: this.doRefresh, + scope: this + })]; + + + var userItems = this.items || this.buttons || []; + if (this.prependButtons) { + this.items = userItems.concat(pagingItems); + }else{ + this.items = pagingItems.concat(userItems); + } + delete this.buttons; + if(this.displayInfo){ + this.items.push('->'); + this.items.push(this.displayItem = new T.TextItem({})); + } + Ext.PagingToolbar.superclass.initComponent.call(this); + this.addEvents( + /** + * @event change + * Fires after the active page has been changed. + * @param {Ext.PagingToolbar} this + * @param {Object} pageData An object that has these properties:
        + *
      • total : Number
        The total number of records in the dataset as + * returned by the server
      • + *
      • activePage : Number
        The current page number
      • + *
      • pages : Number
        The total number of pages (calculated from + * the total number of records in the dataset as returned by the server and the current {@link #pageSize})
      • + *
      + */ + 'change', + /** + * @event beforechange + * Fires just before the active page is changed. + * Return false to prevent the active page from being changed. + * @param {Ext.PagingToolbar} this + * @param {Object} params An object hash of the parameters which the PagingToolbar will send when + * loading the required page. This will contain:
        + *
      • start : Number
        The starting row number for the next page of records to + * be retrieved from the server
      • + *
      • limit : Number
        The number of records to be retrieved from the server
      • + *
      + *

      (note: the names of the start and limit properties are determined + * by the store's {@link Ext.data.Store#paramNames paramNames} property.)

      + *

      Parameters may be added as required in the event handler.

      + */ + 'beforechange' + ); + this.on('afterlayout', this.onFirstLayout, this, {single: true}); + this.cursor = 0; + this.bindStore(this.store, true); + }, + + // private + onFirstLayout : function(){ + if(this.dsLoaded){ + this.onLoad.apply(this, this.dsLoaded); + } + }, + + // private + updateInfo : function(){ + if(this.displayItem){ + var count = this.store.getCount(); + var msg = count == 0 ? + this.emptyMsg : + String.format( + this.displayMsg, + this.cursor+1, this.cursor+count, this.store.getTotalCount() + ); + this.displayItem.setText(msg); + } + }, + + // private + onLoad : function(store, r, o){ + if(!this.rendered){ + this.dsLoaded = [store, r, o]; + return; + } + var p = this.getParams(); + this.cursor = (o.params && o.params[p.start]) ? o.params[p.start] : 0; + var d = this.getPageData(), ap = d.activePage, ps = d.pages; + + this.afterTextItem.setText(String.format(this.afterPageText, d.pages)); + this.inputItem.setValue(ap); + this.first.setDisabled(ap == 1); + this.prev.setDisabled(ap == 1); + this.next.setDisabled(ap == ps); + this.last.setDisabled(ap == ps); + this.refresh.enable(); + this.updateInfo(); + this.fireEvent('change', this, d); + }, + + // private + getPageData : function(){ + var total = this.store.getTotalCount(); + return { + total : total, + activePage : Math.ceil((this.cursor+this.pageSize)/this.pageSize), + pages : total < this.pageSize ? 1 : Math.ceil(total/this.pageSize) + }; + }, + + /** + * Change the active page + * @param {Integer} page The page to display + */ + changePage : function(page){ + this.doLoad(((page-1) * this.pageSize).constrain(0, this.store.getTotalCount())); + }, + + // private + onLoadError : function(){ + if(!this.rendered){ + return; + } + this.refresh.enable(); + }, + + // private + readPage : function(d){ + var v = this.inputItem.getValue(), pageNum; + if (!v || isNaN(pageNum = parseInt(v, 10))) { + this.inputItem.setValue(d.activePage); + return false; + } + return pageNum; + }, + + onPagingFocus : function(){ + this.inputItem.select(); + }, + + //private + onPagingBlur : function(e){ + this.inputItem.setValue(this.getPageData().activePage); + }, + + // private + onPagingKeyDown : function(field, e){ + var k = e.getKey(), d = this.getPageData(), pageNum; + if (k == e.RETURN) { + e.stopEvent(); + pageNum = this.readPage(d); + if(pageNum !== false){ + pageNum = Math.min(Math.max(1, pageNum), d.pages) - 1; + this.doLoad(pageNum * this.pageSize); + } + }else if (k == e.HOME || k == e.END){ + e.stopEvent(); + pageNum = k == e.HOME ? 1 : d.pages; + field.setValue(pageNum); + }else if (k == e.UP || k == e.PAGEUP || k == e.DOWN || k == e.PAGEDOWN){ + e.stopEvent(); + if((pageNum = this.readPage(d))){ + var increment = e.shiftKey ? 10 : 1; + if(k == e.DOWN || k == e.PAGEDOWN){ + increment *= -1; + } + pageNum += increment; + if(pageNum >= 1 & pageNum <= d.pages){ + field.setValue(pageNum); + } + } + } + }, + + // private + getParams : function(){ + //retain backwards compat, allow params on the toolbar itself, if they exist. + return this.paramNames || this.store.paramNames; + }, + + // private + beforeLoad : function(){ + if(this.rendered && this.refresh){ + this.refresh.disable(); + } + }, + + // private + doLoad : function(start){ + var o = {}, pn = this.getParams(); + o[pn.start] = start; + o[pn.limit] = this.pageSize; + if(this.fireEvent('beforechange', this, o) !== false){ + this.store.load({params:o}); + } + }, + + /** + * Move to the first page, has the same effect as clicking the 'first' button. + */ + moveFirst : function(){ + this.doLoad(0); + }, + + /** + * Move to the previous page, has the same effect as clicking the 'previous' button. + */ + movePrevious : function(){ + this.doLoad(Math.max(0, this.cursor-this.pageSize)); + }, + + /** + * Move to the next page, has the same effect as clicking the 'next' button. + */ + moveNext : function(){ + this.doLoad(this.cursor+this.pageSize); + }, + + /** + * Move to the last page, has the same effect as clicking the 'last' button. + */ + moveLast : function(){ + var total = this.store.getTotalCount(), + extra = total % this.pageSize; + + this.doLoad(extra ? (total - extra) : total - this.pageSize); + }, + + /** + * Refresh the current page, has the same effect as clicking the 'refresh' button. + */ + doRefresh : function(){ + this.doLoad(this.cursor); + }, + + /** + * Binds the paging toolbar to the specified {@link Ext.data.Store} + * @param {Store} store The store to bind to this toolbar + * @param {Boolean} initial (Optional) true to not remove listeners + */ + bindStore : function(store, initial){ + var doLoad; + if(!initial && this.store){ + if(store !== this.store && this.store.autoDestroy){ + this.store.destroy(); + }else{ + this.store.un('beforeload', this.beforeLoad, this); + this.store.un('load', this.onLoad, this); + this.store.un('exception', this.onLoadError, this); + } + if(!store){ + this.store = null; + } + } + if(store){ + store = Ext.StoreMgr.lookup(store); + store.on({ + scope: this, + beforeload: this.beforeLoad, + load: this.onLoad, + exception: this.onLoadError + }); + doLoad = true; + } + this.store = store; + if(doLoad){ + this.onLoad(store, null, {}); + } + }, + + /** + * Unbinds the paging toolbar from the specified {@link Ext.data.Store} (deprecated) + * @param {Ext.data.Store} store The data store to unbind + */ + unbind : function(store){ + this.bindStore(null); + }, + + /** + * Binds the paging toolbar to the specified {@link Ext.data.Store} (deprecated) + * @param {Ext.data.Store} store The data store to bind + */ + bind : function(store){ + this.bindStore(store); + }, + + // private + onDestroy : function(){ + this.bindStore(null); + Ext.PagingToolbar.superclass.onDestroy.call(this); + } +}); + +})(); +Ext.reg('paging', Ext.PagingToolbar);/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.tree.TreePanel + * @extends Ext.Panel + *

      The TreePanel provides tree-structured UI representation of tree-structured data.

      + *

      {@link Ext.tree.TreeNode TreeNode}s added to the TreePanel may each contain metadata + * used by your application in their {@link Ext.tree.TreeNode#attributes attributes} property.

      + *

      A TreePanel must have a {@link #root} node before it is rendered. This may either be + * specified using the {@link #root} config option, or using the {@link #setRootNode} method. + *

      An example of tree rendered to an existing div:

      
      +var tree = new Ext.tree.TreePanel({
      +    renderTo: 'tree-div',
      +    useArrows: true,
      +    autoScroll: true,
      +    animate: true,
      +    enableDD: true,
      +    containerScroll: true,
      +    border: false,
      +    // auto create TreeLoader
      +    dataUrl: 'get-nodes.php',
      +
      +    root: {
      +        nodeType: 'async',
      +        text: 'Ext JS',
      +        draggable: false,
      +        id: 'source'
      +    }
      +});
      +
      +tree.getRootNode().expand();
      + * 
      + *

      The example above would work with a data packet similar to this:

      
      +[{
      +    "text": "adapter",
      +    "id": "source\/adapter",
      +    "cls": "folder"
      +}, {
      +    "text": "dd",
      +    "id": "source\/dd",
      +    "cls": "folder"
      +}, {
      +    "text": "debug.js",
      +    "id": "source\/debug.js",
      +    "leaf": true,
      +    "cls": "file"
      +}]
      + * 
      + *

      An example of tree within a Viewport:

      
      +new Ext.Viewport({
      +    layout: 'border',
      +    items: [{
      +        region: 'west',
      +        collapsible: true,
      +        title: 'Navigation',
      +        xtype: 'treepanel',
      +        width: 200,
      +        autoScroll: true,
      +        split: true,
      +        loader: new Ext.tree.TreeLoader(),
      +        root: new Ext.tree.AsyncTreeNode({
      +            expanded: true,
      +            children: [{
      +                text: 'Menu Option 1',
      +                leaf: true
      +            }, {
      +                text: 'Menu Option 2',
      +                leaf: true
      +            }, {
      +                text: 'Menu Option 3',
      +                leaf: true
      +            }]
      +        }),
      +        rootVisible: false,
      +        listeners: {
      +            click: function(n) {
      +                Ext.Msg.alert('Navigation Tree Click', 'You clicked: "' + n.attributes.text + '"');
      +            }
      +        }
      +    }, {
      +        region: 'center',
      +        xtype: 'tabpanel',
      +        // remaining code not shown ...
      +    }]
      +});
      +
      + * + * @cfg {Ext.tree.TreeNode} root The root node for the tree. + * @cfg {Boolean} rootVisible false to hide the root node (defaults to true) + * @cfg {Boolean} lines false to disable tree lines (defaults to true) + * @cfg {Boolean} enableDD true to enable drag and drop + * @cfg {Boolean} enableDrag true to enable just drag + * @cfg {Boolean} enableDrop true to enable just drop + * @cfg {Object} dragConfig Custom config to pass to the {@link Ext.tree.TreeDragZone} instance + * @cfg {Object} dropConfig Custom config to pass to the {@link Ext.tree.TreeDropZone} instance + * @cfg {String} ddGroup The DD group this TreePanel belongs to + * @cfg {Boolean} ddAppendOnly true if the tree should only allow append drops (use for trees which are sorted) + * @cfg {Boolean} ddScroll true to enable body scrolling + * @cfg {Boolean} containerScroll true to register this container with ScrollManager + * @cfg {Boolean} hlDrop false to disable node highlight on drop (defaults to the value of {@link Ext#enableFx}) + * @cfg {String} hlColor The color of the node highlight (defaults to 'C3DAF9') + * @cfg {Boolean} animate true to enable animated expand/collapse (defaults to the value of {@link Ext#enableFx}) + * @cfg {Boolean} singleExpand true if only 1 node per branch may be expanded + * @cfg {Object} selModel A tree selection model to use with this TreePanel (defaults to an {@link Ext.tree.DefaultSelectionModel}) + * @cfg {Boolean} trackMouseOver false to disable mouse over highlighting + * @cfg {Ext.tree.TreeLoader} loader A {@link Ext.tree.TreeLoader} for use with this TreePanel + * @cfg {String} pathSeparator The token used to separate sub-paths in path strings (defaults to '/') + * @cfg {Boolean} useArrows true to use Vista-style arrows in the tree (defaults to false) + * @cfg {String} requestMethod The HTTP request method for loading data (defaults to the value of {@link Ext.Ajax#method}). + * + * @constructor + * @param {Object} config + * @xtype treepanel + */ +Ext.tree.TreePanel = Ext.extend(Ext.Panel, { + rootVisible : true, + animate : Ext.enableFx, + lines : true, + enableDD : false, + hlDrop : Ext.enableFx, + pathSeparator : '/', + + /** + * @cfg {Array} bubbleEvents + *

      An array of events that, when fired, should be bubbled to any parent container. + * See {@link Ext.util.Observable#enableBubble}. + * Defaults to []. + */ + bubbleEvents : [], + + initComponent : function(){ + Ext.tree.TreePanel.superclass.initComponent.call(this); + + if(!this.eventModel){ + this.eventModel = new Ext.tree.TreeEventModel(this); + } + + // initialize the loader + var l = this.loader; + if(!l){ + l = new Ext.tree.TreeLoader({ + dataUrl: this.dataUrl, + requestMethod: this.requestMethod + }); + }else if(Ext.isObject(l) && !l.load){ + l = new Ext.tree.TreeLoader(l); + } + this.loader = l; + + this.nodeHash = {}; + + /** + * The root node of this tree. + * @type Ext.tree.TreeNode + * @property root + */ + if(this.root){ + var r = this.root; + delete this.root; + this.setRootNode(r); + } + + + this.addEvents( + + /** + * @event append + * Fires when a new child node is appended to a node in this tree. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The newly appended node + * @param {Number} index The index of the newly appended node + */ + 'append', + /** + * @event remove + * Fires when a child node is removed from a node in this tree. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node removed + */ + 'remove', + /** + * @event movenode + * Fires when a node is moved to a new location in the tree + * @param {Tree} tree The owner tree + * @param {Node} node The node moved + * @param {Node} oldParent The old parent of this node + * @param {Node} newParent The new parent of this node + * @param {Number} index The index it was moved to + */ + 'movenode', + /** + * @event insert + * Fires when a new child node is inserted in a node in this tree. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node inserted + * @param {Node} refNode The child node the node was inserted before + */ + 'insert', + /** + * @event beforeappend + * Fires before a new child is appended to a node in this tree, return false to cancel the append. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node to be appended + */ + 'beforeappend', + /** + * @event beforeremove + * Fires before a child is removed from a node in this tree, return false to cancel the remove. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node to be removed + */ + 'beforeremove', + /** + * @event beforemovenode + * Fires before a node is moved to a new location in the tree. Return false to cancel the move. + * @param {Tree} tree The owner tree + * @param {Node} node The node being moved + * @param {Node} oldParent The parent of the node + * @param {Node} newParent The new parent the node is moving to + * @param {Number} index The index it is being moved to + */ + 'beforemovenode', + /** + * @event beforeinsert + * Fires before a new child is inserted in a node in this tree, return false to cancel the insert. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node to be inserted + * @param {Node} refNode The child node the node is being inserted before + */ + 'beforeinsert', + + /** + * @event beforeload + * Fires before a node is loaded, return false to cancel + * @param {Node} node The node being loaded + */ + 'beforeload', + /** + * @event load + * Fires when a node is loaded + * @param {Node} node The node that was loaded + */ + 'load', + /** + * @event textchange + * Fires when the text for a node is changed + * @param {Node} node The node + * @param {String} text The new text + * @param {String} oldText The old text + */ + 'textchange', + /** + * @event beforeexpandnode + * Fires before a node is expanded, return false to cancel. + * @param {Node} node The node + * @param {Boolean} deep + * @param {Boolean} anim + */ + 'beforeexpandnode', + /** + * @event beforecollapsenode + * Fires before a node is collapsed, return false to cancel. + * @param {Node} node The node + * @param {Boolean} deep + * @param {Boolean} anim + */ + 'beforecollapsenode', + /** + * @event expandnode + * Fires when a node is expanded + * @param {Node} node The node + */ + 'expandnode', + /** + * @event disabledchange + * Fires when the disabled status of a node changes + * @param {Node} node The node + * @param {Boolean} disabled + */ + 'disabledchange', + /** + * @event collapsenode + * Fires when a node is collapsed + * @param {Node} node The node + */ + 'collapsenode', + /** + * @event beforeclick + * Fires before click processing on a node. Return false to cancel the default action. + * @param {Node} node The node + * @param {Ext.EventObject} e The event object + */ + 'beforeclick', + /** + * @event click + * Fires when a node is clicked + * @param {Node} node The node + * @param {Ext.EventObject} e The event object + */ + 'click', + /** + * @event containerclick + * Fires when the tree container is clicked + * @param {Tree} this + * @param {Ext.EventObject} e The event object + */ + 'containerclick', + /** + * @event checkchange + * Fires when a node with a checkbox's checked property changes + * @param {Node} this This node + * @param {Boolean} checked + */ + 'checkchange', + /** + * @event beforedblclick + * Fires before double click processing on a node. Return false to cancel the default action. + * @param {Node} node The node + * @param {Ext.EventObject} e The event object + */ + 'beforedblclick', + /** + * @event dblclick + * Fires when a node is double clicked + * @param {Node} node The node + * @param {Ext.EventObject} e The event object + */ + 'dblclick', + /** + * @event containerdblclick + * Fires when the tree container is double clicked + * @param {Tree} this + * @param {Ext.EventObject} e The event object + */ + 'containerdblclick', + /** + * @event contextmenu + * Fires when a node is right clicked. To display a context menu in response to this + * event, first create a Menu object (see {@link Ext.menu.Menu} for details), then add + * a handler for this event:

      
      +new Ext.tree.TreePanel({
      +    title: 'My TreePanel',
      +    root: new Ext.tree.AsyncTreeNode({
      +        text: 'The Root',
      +        children: [
      +            { text: 'Child node 1', leaf: true },
      +            { text: 'Child node 2', leaf: true }
      +        ]
      +    }),
      +    contextMenu: new Ext.menu.Menu({
      +        items: [{
      +            id: 'delete-node',
      +            text: 'Delete Node'
      +        }],
      +        listeners: {
      +            itemclick: function(item) {
      +                switch (item.id) {
      +                    case 'delete-node':
      +                        var n = item.parentMenu.contextNode;
      +                        if (n.parentNode) {
      +                            n.remove();
      +                        }
      +                        break;
      +                }
      +            }
      +        }
      +    }),
      +    listeners: {
      +        contextmenu: function(node, e) {
      +//          Register the context node with the menu so that a Menu Item's handler function can access
      +//          it via its {@link Ext.menu.BaseItem#parentMenu parentMenu} property.
      +            node.select();
      +            var c = node.getOwnerTree().contextMenu;
      +            c.contextNode = node;
      +            c.showAt(e.getXY());
      +        }
      +    }
      +});
      +
      + * @param {Node} node The node + * @param {Ext.EventObject} e The event object + */ + 'contextmenu', + /** + * @event containercontextmenu + * Fires when the tree container is right clicked + * @param {Tree} this + * @param {Ext.EventObject} e The event object + */ + 'containercontextmenu', + /** + * @event beforechildrenrendered + * Fires right before the child nodes for a node are rendered + * @param {Node} node The node + */ + 'beforechildrenrendered', + /** + * @event startdrag + * Fires when a node starts being dragged + * @param {Ext.tree.TreePanel} this + * @param {Ext.tree.TreeNode} node + * @param {event} e The raw browser event + */ + 'startdrag', + /** + * @event enddrag + * Fires when a drag operation is complete + * @param {Ext.tree.TreePanel} this + * @param {Ext.tree.TreeNode} node + * @param {event} e The raw browser event + */ + 'enddrag', + /** + * @event dragdrop + * Fires when a dragged node is dropped on a valid DD target + * @param {Ext.tree.TreePanel} this + * @param {Ext.tree.TreeNode} node + * @param {DD} dd The dd it was dropped on + * @param {event} e The raw browser event + */ + 'dragdrop', + /** + * @event beforenodedrop + * Fires when a DD object is dropped on a node in this tree for preprocessing. Return false to cancel the drop. The dropEvent + * passed to handlers has the following properties:
      + *
        + *
      • tree - The TreePanel
      • + *
      • target - The node being targeted for the drop
      • + *
      • data - The drag data from the drag source
      • + *
      • point - The point of the drop - append, above or below
      • + *
      • source - The drag source
      • + *
      • rawEvent - Raw mouse event
      • + *
      • dropNode - Drop node(s) provided by the source OR you can supply node(s) + * to be inserted by setting them on this object.
      • + *
      • cancel - Set this to true to cancel the drop.
      • + *
      • dropStatus - If the default drop action is cancelled but the drop is valid, setting this to true + * will prevent the animated 'repair' from appearing.
      • + *
      + * @param {Object} dropEvent + */ + 'beforenodedrop', + /** + * @event nodedrop + * Fires after a DD object is dropped on a node in this tree. The dropEvent + * passed to handlers has the following properties:
      + *
        + *
      • tree - The TreePanel
      • + *
      • target - The node being targeted for the drop
      • + *
      • data - The drag data from the drag source
      • + *
      • point - The point of the drop - append, above or below
      • + *
      • source - The drag source
      • + *
      • rawEvent - Raw mouse event
      • + *
      • dropNode - Dropped node(s).
      • + *
      + * @param {Object} dropEvent + */ + 'nodedrop', + /** + * @event nodedragover + * Fires when a tree node is being targeted for a drag drop, return false to signal drop not allowed. The dragOverEvent + * passed to handlers has the following properties:
      + *
        + *
      • tree - The TreePanel
      • + *
      • target - The node being targeted for the drop
      • + *
      • data - The drag data from the drag source
      • + *
      • point - The point of the drop - append, above or below
      • + *
      • source - The drag source
      • + *
      • rawEvent - Raw mouse event
      • + *
      • dropNode - Drop node(s) provided by the source.
      • + *
      • cancel - Set this to true to signal drop not allowed.
      • + *
      + * @param {Object} dragOverEvent + */ + 'nodedragover' + ); + if(this.singleExpand){ + this.on('beforeexpandnode', this.restrictExpand, this); + } + }, + + // private + proxyNodeEvent : function(ename, a1, a2, a3, a4, a5, a6){ + if(ename == 'collapse' || ename == 'expand' || ename == 'beforecollapse' || ename == 'beforeexpand' || ename == 'move' || ename == 'beforemove'){ + ename = ename+'node'; + } + // args inline for performance while bubbling events + return this.fireEvent(ename, a1, a2, a3, a4, a5, a6); + }, + + + /** + * Returns this root node for this tree + * @return {Node} + */ + getRootNode : function(){ + return this.root; + }, + + /** + * Sets the root node for this tree. If the TreePanel has already rendered a root node, the + * previous root node (and all of its descendants) are destroyed before the new root node is rendered. + * @param {Node} node + * @return {Node} + */ + setRootNode : function(node){ + this.destroyRoot(); + if(!node.render){ // attributes passed + node = this.loader.createNode(node); + } + this.root = node; + node.ownerTree = this; + node.isRoot = true; + this.registerNode(node); + if(!this.rootVisible){ + var uiP = node.attributes.uiProvider; + node.ui = uiP ? new uiP(node) : new Ext.tree.RootTreeNodeUI(node); + } + if(this.innerCt){ + this.clearInnerCt(); + this.renderRoot(); + } + return node; + }, + + clearInnerCt : function(){ + this.innerCt.update(''); + }, + + // private + renderRoot : function(){ + this.root.render(); + if(!this.rootVisible){ + this.root.renderChildren(); + } + }, + + /** + * Gets a node in this tree by its id + * @param {String} id + * @return {Node} + */ + getNodeById : function(id){ + return this.nodeHash[id]; + }, + + // private + registerNode : function(node){ + this.nodeHash[node.id] = node; + }, + + // private + unregisterNode : function(node){ + delete this.nodeHash[node.id]; + }, + + // private + toString : function(){ + return '[Tree'+(this.id?' '+this.id:'')+']'; + }, + + // private + restrictExpand : function(node){ + var p = node.parentNode; + if(p){ + if(p.expandedChild && p.expandedChild.parentNode == p){ + p.expandedChild.collapse(); + } + p.expandedChild = node; + } + }, + + /** + * Retrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g. 'id') + * @param {String} attribute (optional) Defaults to null (return the actual nodes) + * @param {TreeNode} startNode (optional) The node to start from, defaults to the root + * @return {Array} + */ + getChecked : function(a, startNode){ + startNode = startNode || this.root; + var r = []; + var f = function(){ + if(this.attributes.checked){ + r.push(!a ? this : (a == 'id' ? this.id : this.attributes[a])); + } + }; + startNode.cascade(f); + return r; + }, + + /** + * Returns the default {@link Ext.tree.TreeLoader} for this TreePanel. + * @return {Ext.tree.TreeLoader} The TreeLoader for this TreePanel. + */ + getLoader : function(){ + return this.loader; + }, + + /** + * Expand all nodes + */ + expandAll : function(){ + this.root.expand(true); + }, + + /** + * Collapse all nodes + */ + collapseAll : function(){ + this.root.collapse(true); + }, + + /** + * Returns the selection model used by this TreePanel. + * @return {TreeSelectionModel} The selection model used by this TreePanel + */ + getSelectionModel : function(){ + if(!this.selModel){ + this.selModel = new Ext.tree.DefaultSelectionModel(); + } + return this.selModel; + }, + + /** + * Expands a specified path in this TreePanel. A path can be retrieved from a node with {@link Ext.data.Node#getPath} + * @param {String} path + * @param {String} attr (optional) The attribute used in the path (see {@link Ext.data.Node#getPath} for more info) + * @param {Function} callback (optional) The callback to call when the expand is complete. The callback will be called with + * (bSuccess, oLastNode) where bSuccess is if the expand was successful and oLastNode is the last node that was expanded. + */ + expandPath : function(path, attr, callback){ + attr = attr || 'id'; + var keys = path.split(this.pathSeparator); + var curNode = this.root; + if(curNode.attributes[attr] != keys[1]){ // invalid root + if(callback){ + callback(false, null); + } + return; + } + var index = 1; + var f = function(){ + if(++index == keys.length){ + if(callback){ + callback(true, curNode); + } + return; + } + var c = curNode.findChild(attr, keys[index]); + if(!c){ + if(callback){ + callback(false, curNode); + } + return; + } + curNode = c; + c.expand(false, false, f); + }; + curNode.expand(false, false, f); + }, + + /** + * Selects the node in this tree at the specified path. A path can be retrieved from a node with {@link Ext.data.Node#getPath} + * @param {String} path + * @param {String} attr (optional) The attribute used in the path (see {@link Ext.data.Node#getPath} for more info) + * @param {Function} callback (optional) The callback to call when the selection is complete. The callback will be called with + * (bSuccess, oSelNode) where bSuccess is if the selection was successful and oSelNode is the selected node. + */ + selectPath : function(path, attr, callback){ + attr = attr || 'id'; + var keys = path.split(this.pathSeparator), + v = keys.pop(); + if(keys.length > 1){ + var f = function(success, node){ + if(success && node){ + var n = node.findChild(attr, v); + if(n){ + n.select(); + if(callback){ + callback(true, n); + } + }else if(callback){ + callback(false, n); + } + }else{ + if(callback){ + callback(false, n); + } + } + }; + this.expandPath(keys.join(this.pathSeparator), attr, f); + }else{ + this.root.select(); + if(callback){ + callback(true, this.root); + } + } + }, + + /** + * Returns the underlying Element for this tree + * @return {Ext.Element} The Element + */ + getTreeEl : function(){ + return this.body; + }, + + // private + onRender : function(ct, position){ + Ext.tree.TreePanel.superclass.onRender.call(this, ct, position); + this.el.addClass('x-tree'); + this.innerCt = this.body.createChild({tag:'ul', + cls:'x-tree-root-ct ' + + (this.useArrows ? 'x-tree-arrows' : this.lines ? 'x-tree-lines' : 'x-tree-no-lines')}); + }, + + // private + initEvents : function(){ + Ext.tree.TreePanel.superclass.initEvents.call(this); + + if(this.containerScroll){ + Ext.dd.ScrollManager.register(this.body); + } + if((this.enableDD || this.enableDrop) && !this.dropZone){ + /** + * The dropZone used by this tree if drop is enabled (see {@link #enableDD} or {@link #enableDrop}) + * @property dropZone + * @type Ext.tree.TreeDropZone + */ + this.dropZone = new Ext.tree.TreeDropZone(this, this.dropConfig || { + ddGroup: this.ddGroup || 'TreeDD', appendOnly: this.ddAppendOnly === true + }); + } + if((this.enableDD || this.enableDrag) && !this.dragZone){ + /** + * The dragZone used by this tree if drag is enabled (see {@link #enableDD} or {@link #enableDrag}) + * @property dragZone + * @type Ext.tree.TreeDragZone + */ + this.dragZone = new Ext.tree.TreeDragZone(this, this.dragConfig || { + ddGroup: this.ddGroup || 'TreeDD', + scroll: this.ddScroll + }); + } + this.getSelectionModel().init(this); + }, + + // private + afterRender : function(){ + Ext.tree.TreePanel.superclass.afterRender.call(this); + this.renderRoot(); + }, + + beforeDestroy : function(){ + if(this.rendered){ + Ext.dd.ScrollManager.unregister(this.body); + Ext.destroy(this.dropZone, this.dragZone); + } + this.destroyRoot(); + Ext.destroy(this.loader); + this.nodeHash = this.root = this.loader = null; + Ext.tree.TreePanel.superclass.beforeDestroy.call(this); + }, + + /** + * Destroy the root node. Not included by itself because we need to pass the silent parameter. + * @private + */ + destroyRoot : function(){ + if(this.root && this.root.destroy){ + this.root.destroy(true); + } + } + + /** + * @cfg {String/Number} activeItem + * @hide + */ + /** + * @cfg {Boolean} autoDestroy + * @hide + */ + /** + * @cfg {Object/String/Function} autoLoad + * @hide + */ + /** + * @cfg {Boolean} autoWidth + * @hide + */ + /** + * @cfg {Boolean/Number} bufferResize + * @hide + */ + /** + * @cfg {String} defaultType + * @hide + */ + /** + * @cfg {Object} defaults + * @hide + */ + /** + * @cfg {Boolean} hideBorders + * @hide + */ + /** + * @cfg {Mixed} items + * @hide + */ + /** + * @cfg {String} layout + * @hide + */ + /** + * @cfg {Object} layoutConfig + * @hide + */ + /** + * @cfg {Boolean} monitorResize + * @hide + */ + /** + * @property items + * @hide + */ + /** + * @method cascade + * @hide + */ + /** + * @method doLayout + * @hide + */ + /** + * @method find + * @hide + */ + /** + * @method findBy + * @hide + */ + /** + * @method findById + * @hide + */ + /** + * @method findByType + * @hide + */ + /** + * @method getComponent + * @hide + */ + /** + * @method getLayout + * @hide + */ + /** + * @method getUpdater + * @hide + */ + /** + * @method insert + * @hide + */ + /** + * @method load + * @hide + */ + /** + * @method remove + * @hide + */ + /** + * @event add + * @hide + */ + /** + * @method removeAll + * @hide + */ + /** + * @event afterLayout + * @hide + */ + /** + * @event beforeadd + * @hide + */ + /** + * @event beforeremove + * @hide + */ + /** + * @event remove + * @hide + */ + + + + /** + * @cfg {String} allowDomMove @hide + */ + /** + * @cfg {String} autoEl @hide + */ + /** + * @cfg {String} applyTo @hide + */ + /** + * @cfg {String} contentEl @hide + */ + /** + * @cfg {Mixed} data @hide + */ + /** + * @cfg {Mixed} tpl @hide + */ + /** + * @cfg {String} tplWriteMode @hide + */ + /** + * @cfg {String} disabledClass @hide + */ + /** + * @cfg {String} elements @hide + */ + /** + * @cfg {String} html @hide + */ + /** + * @cfg {Boolean} preventBodyReset + * @hide + */ + /** + * @property disabled + * @hide + */ + /** + * @method applyToMarkup + * @hide + */ + /** + * @method enable + * @hide + */ + /** + * @method disable + * @hide + */ + /** + * @method setDisabled + * @hide + */ +}); + +Ext.tree.TreePanel.nodeTypes = {}; + +Ext.reg('treepanel', Ext.tree.TreePanel);Ext.tree.TreeEventModel = function(tree){ + this.tree = tree; + this.tree.on('render', this.initEvents, this); +}; + +Ext.tree.TreeEventModel.prototype = { + initEvents : function(){ + var t = this.tree; + + if(t.trackMouseOver !== false){ + t.mon(t.innerCt, { + scope: this, + mouseover: this.delegateOver, + mouseout: this.delegateOut + }); + } + t.mon(t.getTreeEl(), { + scope: this, + click: this.delegateClick, + dblclick: this.delegateDblClick, + contextmenu: this.delegateContextMenu + }); + }, + + getNode : function(e){ + var t; + if(t = e.getTarget('.x-tree-node-el', 10)){ + var id = Ext.fly(t, '_treeEvents').getAttribute('tree-node-id', 'ext'); + if(id){ + return this.tree.getNodeById(id); + } + } + return null; + }, + + getNodeTarget : function(e){ + var t = e.getTarget('.x-tree-node-icon', 1); + if(!t){ + t = e.getTarget('.x-tree-node-el', 6); + } + return t; + }, + + delegateOut : function(e, t){ + if(!this.beforeEvent(e)){ + return; + } + if(e.getTarget('.x-tree-ec-icon', 1)){ + var n = this.getNode(e); + this.onIconOut(e, n); + if(n == this.lastEcOver){ + delete this.lastEcOver; + } + } + if((t = this.getNodeTarget(e)) && !e.within(t, true)){ + this.onNodeOut(e, this.getNode(e)); + } + }, + + delegateOver : function(e, t){ + if(!this.beforeEvent(e)){ + return; + } + if(Ext.isGecko && !this.trackingDoc){ // prevent hanging in FF + Ext.getBody().on('mouseover', this.trackExit, this); + this.trackingDoc = true; + } + if(this.lastEcOver){ // prevent hung highlight + this.onIconOut(e, this.lastEcOver); + delete this.lastEcOver; + } + if(e.getTarget('.x-tree-ec-icon', 1)){ + this.lastEcOver = this.getNode(e); + this.onIconOver(e, this.lastEcOver); + } + if(t = this.getNodeTarget(e)){ + this.onNodeOver(e, this.getNode(e)); + } + }, + + trackExit : function(e){ + if(this.lastOverNode){ + if(this.lastOverNode.ui && !e.within(this.lastOverNode.ui.getEl())){ + this.onNodeOut(e, this.lastOverNode); + } + delete this.lastOverNode; + Ext.getBody().un('mouseover', this.trackExit, this); + this.trackingDoc = false; + } + + }, + + delegateClick : function(e, t){ + if(this.beforeEvent(e)){ + if(e.getTarget('input[type=checkbox]', 1)){ + this.onCheckboxClick(e, this.getNode(e)); + }else if(e.getTarget('.x-tree-ec-icon', 1)){ + this.onIconClick(e, this.getNode(e)); + }else if(this.getNodeTarget(e)){ + this.onNodeClick(e, this.getNode(e)); + } + }else{ + this.checkContainerEvent(e, 'click'); + } + }, + + delegateDblClick : function(e, t){ + if(this.beforeEvent(e)){ + if(this.getNodeTarget(e)){ + this.onNodeDblClick(e, this.getNode(e)); + } + }else{ + this.checkContainerEvent(e, 'dblclick'); + } + }, + + delegateContextMenu : function(e, t){ + if(this.beforeEvent(e)){ + if(this.getNodeTarget(e)){ + this.onNodeContextMenu(e, this.getNode(e)); + } + }else{ + this.checkContainerEvent(e, 'contextmenu'); + } + }, + + checkContainerEvent: function(e, type){ + if(this.disabled){ + e.stopEvent(); + return false; + } + this.onContainerEvent(e, type); + }, + + onContainerEvent: function(e, type){ + this.tree.fireEvent('container' + type, this.tree, e); + }, + + onNodeClick : function(e, node){ + node.ui.onClick(e); + }, + + onNodeOver : function(e, node){ + this.lastOverNode = node; + node.ui.onOver(e); + }, + + onNodeOut : function(e, node){ + node.ui.onOut(e); + }, + + onIconOver : function(e, node){ + node.ui.addClass('x-tree-ec-over'); + }, + + onIconOut : function(e, node){ + node.ui.removeClass('x-tree-ec-over'); + }, + + onIconClick : function(e, node){ + node.ui.ecClick(e); + }, + + onCheckboxClick : function(e, node){ + node.ui.onCheckChange(e); + }, + + onNodeDblClick : function(e, node){ + node.ui.onDblClick(e); + }, + + onNodeContextMenu : function(e, node){ + node.ui.onContextMenu(e); + }, + + beforeEvent : function(e){ + var node = this.getNode(e); + if(this.disabled || !node || !node.ui){ + e.stopEvent(); + return false; + } + return true; + }, + + disable: function(){ + this.disabled = true; + }, + + enable: function(){ + this.disabled = false; + } +};/** + * @class Ext.tree.DefaultSelectionModel + * @extends Ext.util.Observable + * The default single selection for a TreePanel. + */ +Ext.tree.DefaultSelectionModel = Ext.extend(Ext.util.Observable, { + + constructor : function(config){ + this.selNode = null; + + this.addEvents( + /** + * @event selectionchange + * Fires when the selected node changes + * @param {DefaultSelectionModel} this + * @param {TreeNode} node the new selection + */ + 'selectionchange', + + /** + * @event beforeselect + * Fires before the selected node changes, return false to cancel the change + * @param {DefaultSelectionModel} this + * @param {TreeNode} node the new selection + * @param {TreeNode} node the old selection + */ + 'beforeselect' + ); + + Ext.apply(this, config); + Ext.tree.DefaultSelectionModel.superclass.constructor.call(this); + }, + + init : function(tree){ + this.tree = tree; + tree.mon(tree.getTreeEl(), 'keydown', this.onKeyDown, this); + tree.on('click', this.onNodeClick, this); + }, + + onNodeClick : function(node, e){ + this.select(node); + }, + + /** + * Select a node. + * @param {TreeNode} node The node to select + * @return {TreeNode} The selected node + */ + select : function(node, /* private*/ selectNextNode){ + // If node is hidden, select the next node in whatever direction was being moved in. + if (!Ext.fly(node.ui.wrap).isVisible() && selectNextNode) { + return selectNextNode.call(this, node); + } + var last = this.selNode; + if(node == last){ + node.ui.onSelectedChange(true); + }else if(this.fireEvent('beforeselect', this, node, last) !== false){ + if(last && last.ui){ + last.ui.onSelectedChange(false); + } + this.selNode = node; + node.ui.onSelectedChange(true); + this.fireEvent('selectionchange', this, node, last); + } + return node; + }, + + /** + * Deselect a node. + * @param {TreeNode} node The node to unselect + * @param {Boolean} silent True to stop the selectionchange event from firing. + */ + unselect : function(node, silent){ + if(this.selNode == node){ + this.clearSelections(silent); + } + }, + + /** + * Clear all selections + * @param {Boolean} silent True to stop the selectionchange event from firing. + */ + clearSelections : function(silent){ + var n = this.selNode; + if(n){ + n.ui.onSelectedChange(false); + this.selNode = null; + if(silent !== true){ + this.fireEvent('selectionchange', this, null); + } + } + return n; + }, + + /** + * Get the selected node + * @return {TreeNode} The selected node + */ + getSelectedNode : function(){ + return this.selNode; + }, + + /** + * Returns true if the node is selected + * @param {TreeNode} node The node to check + * @return {Boolean} + */ + isSelected : function(node){ + return this.selNode == node; + }, + + /** + * Selects the node above the selected node in the tree, intelligently walking the nodes + * @return TreeNode The new selection + */ + selectPrevious : function(/* private */ s){ + if(!(s = s || this.selNode || this.lastSelNode)){ + return null; + } + // Here we pass in the current function to select to indicate the direction we're moving + var ps = s.previousSibling; + if(ps){ + if(!ps.isExpanded() || ps.childNodes.length < 1){ + return this.select(ps, this.selectPrevious); + } else{ + var lc = ps.lastChild; + while(lc && lc.isExpanded() && Ext.fly(lc.ui.wrap).isVisible() && lc.childNodes.length > 0){ + lc = lc.lastChild; + } + return this.select(lc, this.selectPrevious); + } + } else if(s.parentNode && (this.tree.rootVisible || !s.parentNode.isRoot)){ + return this.select(s.parentNode, this.selectPrevious); + } + return null; + }, + + /** + * Selects the node above the selected node in the tree, intelligently walking the nodes + * @return TreeNode The new selection + */ + selectNext : function(/* private */ s){ + if(!(s = s || this.selNode || this.lastSelNode)){ + return null; + } + // Here we pass in the current function to select to indicate the direction we're moving + if(s.firstChild && s.isExpanded() && Ext.fly(s.ui.wrap).isVisible()){ + return this.select(s.firstChild, this.selectNext); + }else if(s.nextSibling){ + return this.select(s.nextSibling, this.selectNext); + }else if(s.parentNode){ + var newS = null; + s.parentNode.bubble(function(){ + if(this.nextSibling){ + newS = this.getOwnerTree().selModel.select(this.nextSibling, this.selectNext); + return false; + } + }); + return newS; + } + return null; + }, + + onKeyDown : function(e){ + var s = this.selNode || this.lastSelNode; + // undesirable, but required + var sm = this; + if(!s){ + return; + } + var k = e.getKey(); + switch(k){ + case e.DOWN: + e.stopEvent(); + this.selectNext(); + break; + case e.UP: + e.stopEvent(); + this.selectPrevious(); + break; + case e.RIGHT: + e.preventDefault(); + if(s.hasChildNodes()){ + if(!s.isExpanded()){ + s.expand(); + }else if(s.firstChild){ + this.select(s.firstChild, e); + } + } + break; + case e.LEFT: + e.preventDefault(); + if(s.hasChildNodes() && s.isExpanded()){ + s.collapse(); + }else if(s.parentNode && (this.tree.rootVisible || s.parentNode != this.tree.getRootNode())){ + this.select(s.parentNode, e); + } + break; + }; + } +}); + +/** + * @class Ext.tree.MultiSelectionModel + * @extends Ext.util.Observable + * Multi selection for a TreePanel. + */ +Ext.tree.MultiSelectionModel = Ext.extend(Ext.util.Observable, { + + constructor : function(config){ + this.selNodes = []; + this.selMap = {}; + this.addEvents( + /** + * @event selectionchange + * Fires when the selected nodes change + * @param {MultiSelectionModel} this + * @param {Array} nodes Array of the selected nodes + */ + 'selectionchange' + ); + Ext.apply(this, config); + Ext.tree.MultiSelectionModel.superclass.constructor.call(this); + }, + + init : function(tree){ + this.tree = tree; + tree.mon(tree.getTreeEl(), 'keydown', this.onKeyDown, this); + tree.on('click', this.onNodeClick, this); + }, + + onNodeClick : function(node, e){ + if(e.ctrlKey && this.isSelected(node)){ + this.unselect(node); + }else{ + this.select(node, e, e.ctrlKey); + } + }, + + /** + * Select a node. + * @param {TreeNode} node The node to select + * @param {EventObject} e (optional) An event associated with the selection + * @param {Boolean} keepExisting True to retain existing selections + * @return {TreeNode} The selected node + */ + select : function(node, e, keepExisting){ + if(keepExisting !== true){ + this.clearSelections(true); + } + if(this.isSelected(node)){ + this.lastSelNode = node; + return node; + } + this.selNodes.push(node); + this.selMap[node.id] = node; + this.lastSelNode = node; + node.ui.onSelectedChange(true); + this.fireEvent('selectionchange', this, this.selNodes); + return node; + }, + + /** + * Deselect a node. + * @param {TreeNode} node The node to unselect + */ + unselect : function(node){ + if(this.selMap[node.id]){ + node.ui.onSelectedChange(false); + var sn = this.selNodes; + var index = sn.indexOf(node); + if(index != -1){ + this.selNodes.splice(index, 1); + } + delete this.selMap[node.id]; + this.fireEvent('selectionchange', this, this.selNodes); + } + }, + + /** + * Clear all selections + */ + clearSelections : function(suppressEvent){ + var sn = this.selNodes; + if(sn.length > 0){ + for(var i = 0, len = sn.length; i < len; i++){ + sn[i].ui.onSelectedChange(false); + } + this.selNodes = []; + this.selMap = {}; + if(suppressEvent !== true){ + this.fireEvent('selectionchange', this, this.selNodes); + } + } + }, + + /** + * Returns true if the node is selected + * @param {TreeNode} node The node to check + * @return {Boolean} + */ + isSelected : function(node){ + return this.selMap[node.id] ? true : false; + }, + + /** + * Returns an array of the selected nodes + * @return {Array} + */ + getSelectedNodes : function(){ + return this.selNodes.concat([]); + }, + + onKeyDown : Ext.tree.DefaultSelectionModel.prototype.onKeyDown, + + selectNext : Ext.tree.DefaultSelectionModel.prototype.selectNext, + + selectPrevious : Ext.tree.DefaultSelectionModel.prototype.selectPrevious +});/** + * @class Ext.data.Tree + * @extends Ext.util.Observable + * Represents a tree data structure and bubbles all the events for its nodes. The nodes + * in the tree have most standard DOM functionality. + * @constructor + * @param {Node} root (optional) The root node + */ +Ext.data.Tree = function(root){ + this.nodeHash = {}; + /** + * The root node for this tree + * @type Node + */ + this.root = null; + if(root){ + this.setRootNode(root); + } + this.addEvents( + /** + * @event append + * Fires when a new child node is appended to a node in this tree. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The newly appended node + * @param {Number} index The index of the newly appended node + */ + "append", + /** + * @event remove + * Fires when a child node is removed from a node in this tree. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node removed + */ + "remove", + /** + * @event move + * Fires when a node is moved to a new location in the tree + * @param {Tree} tree The owner tree + * @param {Node} node The node moved + * @param {Node} oldParent The old parent of this node + * @param {Node} newParent The new parent of this node + * @param {Number} index The index it was moved to + */ + "move", + /** + * @event insert + * Fires when a new child node is inserted in a node in this tree. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node inserted + * @param {Node} refNode The child node the node was inserted before + */ + "insert", + /** + * @event beforeappend + * Fires before a new child is appended to a node in this tree, return false to cancel the append. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node to be appended + */ + "beforeappend", + /** + * @event beforeremove + * Fires before a child is removed from a node in this tree, return false to cancel the remove. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node to be removed + */ + "beforeremove", + /** + * @event beforemove + * Fires before a node is moved to a new location in the tree. Return false to cancel the move. + * @param {Tree} tree The owner tree + * @param {Node} node The node being moved + * @param {Node} oldParent The parent of the node + * @param {Node} newParent The new parent the node is moving to + * @param {Number} index The index it is being moved to + */ + "beforemove", + /** + * @event beforeinsert + * Fires before a new child is inserted in a node in this tree, return false to cancel the insert. + * @param {Tree} tree The owner tree + * @param {Node} parent The parent node + * @param {Node} node The child node to be inserted + * @param {Node} refNode The child node the node is being inserted before + */ + "beforeinsert" + ); + + Ext.data.Tree.superclass.constructor.call(this); +}; + +Ext.extend(Ext.data.Tree, Ext.util.Observable, { + /** + * @cfg {String} pathSeparator + * The token used to separate paths in node ids (defaults to '/'). + */ + pathSeparator: "/", + + // private + proxyNodeEvent : function(){ + return this.fireEvent.apply(this, arguments); + }, + + /** + * Returns the root node for this tree. + * @return {Node} + */ + getRootNode : function(){ + return this.root; + }, + + /** + * Sets the root node for this tree. + * @param {Node} node + * @return {Node} + */ + setRootNode : function(node){ + this.root = node; + node.ownerTree = this; + node.isRoot = true; + this.registerNode(node); + return node; + }, + + /** + * Gets a node in this tree by its id. + * @param {String} id + * @return {Node} + */ + getNodeById : function(id){ + return this.nodeHash[id]; + }, + + // private + registerNode : function(node){ + this.nodeHash[node.id] = node; + }, + + // private + unregisterNode : function(node){ + delete this.nodeHash[node.id]; + }, + + toString : function(){ + return "[Tree"+(this.id?" "+this.id:"")+"]"; + } +}); + +/** + * @class Ext.data.Node + * @extends Ext.util.Observable + * @cfg {Boolean} leaf true if this node is a leaf and does not have children + * @cfg {String} id The id for this node. If one is not specified, one is generated. + * @constructor + * @param {Object} attributes The attributes/config for the node + */ +Ext.data.Node = function(attributes){ + /** + * The attributes supplied for the node. You can use this property to access any custom attributes you supplied. + * @type {Object} + */ + this.attributes = attributes || {}; + this.leaf = this.attributes.leaf; + /** + * The node id. @type String + */ + this.id = this.attributes.id; + if(!this.id){ + this.id = Ext.id(null, "xnode-"); + this.attributes.id = this.id; + } + /** + * All child nodes of this node. @type Array + */ + this.childNodes = []; + if(!this.childNodes.indexOf){ // indexOf is a must + this.childNodes.indexOf = function(o){ + for(var i = 0, len = this.length; i < len; i++){ + if(this[i] == o){ + return i; + } + } + return -1; + }; + } + /** + * The parent node for this node. @type Node + */ + this.parentNode = null; + /** + * The first direct child node of this node, or null if this node has no child nodes. @type Node + */ + this.firstChild = null; + /** + * The last direct child node of this node, or null if this node has no child nodes. @type Node + */ + this.lastChild = null; + /** + * The node immediately preceding this node in the tree, or null if there is no sibling node. @type Node + */ + this.previousSibling = null; + /** + * The node immediately following this node in the tree, or null if there is no sibling node. @type Node + */ + this.nextSibling = null; + + this.addEvents({ + /** + * @event append + * Fires when a new child node is appended + * @param {Tree} tree The owner tree + * @param {Node} this This node + * @param {Node} node The newly appended node + * @param {Number} index The index of the newly appended node + */ + "append" : true, + /** + * @event remove + * Fires when a child node is removed + * @param {Tree} tree The owner tree + * @param {Node} this This node + * @param {Node} node The removed node + */ + "remove" : true, + /** + * @event move + * Fires when this node is moved to a new location in the tree + * @param {Tree} tree The owner tree + * @param {Node} this This node + * @param {Node} oldParent The old parent of this node + * @param {Node} newParent The new parent of this node + * @param {Number} index The index it was moved to + */ + "move" : true, + /** + * @event insert + * Fires when a new child node is inserted. + * @param {Tree} tree The owner tree + * @param {Node} this This node + * @param {Node} node The child node inserted + * @param {Node} refNode The child node the node was inserted before + */ + "insert" : true, + /** + * @event beforeappend + * Fires before a new child is appended, return false to cancel the append. + * @param {Tree} tree The owner tree + * @param {Node} this This node + * @param {Node} node The child node to be appended + */ + "beforeappend" : true, + /** + * @event beforeremove + * Fires before a child is removed, return false to cancel the remove. + * @param {Tree} tree The owner tree + * @param {Node} this This node + * @param {Node} node The child node to be removed + */ + "beforeremove" : true, + /** + * @event beforemove + * Fires before this node is moved to a new location in the tree. Return false to cancel the move. + * @param {Tree} tree The owner tree + * @param {Node} this This node + * @param {Node} oldParent The parent of this node + * @param {Node} newParent The new parent this node is moving to + * @param {Number} index The index it is being moved to + */ + "beforemove" : true, + /** + * @event beforeinsert + * Fires before a new child is inserted, return false to cancel the insert. + * @param {Tree} tree The owner tree + * @param {Node} this This node + * @param {Node} node The child node to be inserted + * @param {Node} refNode The child node the node is being inserted before + */ + "beforeinsert" : true + }); + this.listeners = this.attributes.listeners; + Ext.data.Node.superclass.constructor.call(this); +}; + +Ext.extend(Ext.data.Node, Ext.util.Observable, { + // private + fireEvent : function(evtName){ + // first do standard event for this node + if(Ext.data.Node.superclass.fireEvent.apply(this, arguments) === false){ + return false; + } + // then bubble it up to the tree if the event wasn't cancelled + var ot = this.getOwnerTree(); + if(ot){ + if(ot.proxyNodeEvent.apply(ot, arguments) === false){ + return false; + } + } + return true; + }, + + /** + * Returns true if this node is a leaf + * @return {Boolean} + */ + isLeaf : function(){ + return this.leaf === true; + }, + + // private + setFirstChild : function(node){ + this.firstChild = node; + }, + + //private + setLastChild : function(node){ + this.lastChild = node; + }, + + + /** + * Returns true if this node is the last child of its parent + * @return {Boolean} + */ + isLast : function(){ + return (!this.parentNode ? true : this.parentNode.lastChild == this); + }, + + /** + * Returns true if this node is the first child of its parent + * @return {Boolean} + */ + isFirst : function(){ + return (!this.parentNode ? true : this.parentNode.firstChild == this); + }, + + /** + * Returns true if this node has one or more child nodes, else false. + * @return {Boolean} + */ + hasChildNodes : function(){ + return !this.isLeaf() && this.childNodes.length > 0; + }, + + /** + * Returns true if this node has one or more child nodes, or if the expandable + * node attribute is explicitly specified as true (see {@link #attributes}), otherwise returns false. + * @return {Boolean} + */ + isExpandable : function(){ + return this.attributes.expandable || this.hasChildNodes(); + }, + + /** + * Insert node(s) as the last child node of this node. + * @param {Node/Array} node The node or Array of nodes to append + * @return {Node} The appended node if single append, or null if an array was passed + */ + appendChild : function(node){ + var multi = false; + if(Ext.isArray(node)){ + multi = node; + }else if(arguments.length > 1){ + multi = arguments; + } + // if passed an array or multiple args do them one by one + if(multi){ + for(var i = 0, len = multi.length; i < len; i++) { + this.appendChild(multi[i]); + } + }else{ + if(this.fireEvent("beforeappend", this.ownerTree, this, node) === false){ + return false; + } + var index = this.childNodes.length; + var oldParent = node.parentNode; + // it's a move, make sure we move it cleanly + if(oldParent){ + if(node.fireEvent("beforemove", node.getOwnerTree(), node, oldParent, this, index) === false){ + return false; + } + oldParent.removeChild(node); + } + index = this.childNodes.length; + if(index === 0){ + this.setFirstChild(node); + } + this.childNodes.push(node); + node.parentNode = this; + var ps = this.childNodes[index-1]; + if(ps){ + node.previousSibling = ps; + ps.nextSibling = node; + }else{ + node.previousSibling = null; + } + node.nextSibling = null; + this.setLastChild(node); + node.setOwnerTree(this.getOwnerTree()); + this.fireEvent("append", this.ownerTree, this, node, index); + if(oldParent){ + node.fireEvent("move", this.ownerTree, node, oldParent, this, index); + } + return node; + } + }, + + /** + * Removes a child node from this node. + * @param {Node} node The node to remove + * @param {Boolean} destroy true to destroy the node upon removal. Defaults to false. + * @return {Node} The removed node + */ + removeChild : function(node, destroy){ + var index = this.childNodes.indexOf(node); + if(index == -1){ + return false; + } + if(this.fireEvent("beforeremove", this.ownerTree, this, node) === false){ + return false; + } + + // remove it from childNodes collection + this.childNodes.splice(index, 1); + + // update siblings + if(node.previousSibling){ + node.previousSibling.nextSibling = node.nextSibling; + } + if(node.nextSibling){ + node.nextSibling.previousSibling = node.previousSibling; + } + + // update child refs + if(this.firstChild == node){ + this.setFirstChild(node.nextSibling); + } + if(this.lastChild == node){ + this.setLastChild(node.previousSibling); + } + + this.fireEvent("remove", this.ownerTree, this, node); + if(destroy){ + node.destroy(true); + }else{ + node.clear(); + } + return node; + }, + + // private + clear : function(destroy){ + // clear any references from the node + this.setOwnerTree(null, destroy); + this.parentNode = this.previousSibling = this.nextSibling = null; + if(destroy){ + this.firstChild = this.lastChild = null; + } + }, + + /** + * Destroys the node. + */ + destroy : function(/* private */ silent){ + /* + * Silent is to be used in a number of cases + * 1) When setRootNode is called. + * 2) When destroy on the tree is called + * 3) For destroying child nodes on a node + */ + if(silent === true){ + this.purgeListeners(); + this.clear(true); + Ext.each(this.childNodes, function(n){ + n.destroy(true); + }); + this.childNodes = null; + }else{ + this.remove(true); + } + }, + + /** + * Inserts the first node before the second node in this nodes childNodes collection. + * @param {Node} node The node to insert + * @param {Node} refNode The node to insert before (if null the node is appended) + * @return {Node} The inserted node + */ + insertBefore : function(node, refNode){ + if(!refNode){ // like standard Dom, refNode can be null for append + return this.appendChild(node); + } + // nothing to do + if(node == refNode){ + return false; + } + + if(this.fireEvent("beforeinsert", this.ownerTree, this, node, refNode) === false){ + return false; + } + var index = this.childNodes.indexOf(refNode); + var oldParent = node.parentNode; + var refIndex = index; + + // when moving internally, indexes will change after remove + if(oldParent == this && this.childNodes.indexOf(node) < index){ + refIndex--; + } + + // it's a move, make sure we move it cleanly + if(oldParent){ + if(node.fireEvent("beforemove", node.getOwnerTree(), node, oldParent, this, index, refNode) === false){ + return false; + } + oldParent.removeChild(node); + } + if(refIndex === 0){ + this.setFirstChild(node); + } + this.childNodes.splice(refIndex, 0, node); + node.parentNode = this; + var ps = this.childNodes[refIndex-1]; + if(ps){ + node.previousSibling = ps; + ps.nextSibling = node; + }else{ + node.previousSibling = null; + } + node.nextSibling = refNode; + refNode.previousSibling = node; + node.setOwnerTree(this.getOwnerTree()); + this.fireEvent("insert", this.ownerTree, this, node, refNode); + if(oldParent){ + node.fireEvent("move", this.ownerTree, node, oldParent, this, refIndex, refNode); + } + return node; + }, + + /** + * Removes this node from its parent + * @param {Boolean} destroy true to destroy the node upon removal. Defaults to false. + * @return {Node} this + */ + remove : function(destroy){ + if (this.parentNode) { + this.parentNode.removeChild(this, destroy); + } + return this; + }, + + /** + * Removes all child nodes from this node. + * @param {Boolean} destroy true to destroy the node upon removal. Defaults to false. + * @return {Node} this + */ + removeAll : function(destroy){ + var cn = this.childNodes, + n; + while((n = cn[0])){ + this.removeChild(n, destroy); + } + return this; + }, + + /** + * Returns the child node at the specified index. + * @param {Number} index + * @return {Node} + */ + item : function(index){ + return this.childNodes[index]; + }, + + /** + * Replaces one child node in this node with another. + * @param {Node} newChild The replacement node + * @param {Node} oldChild The node to replace + * @return {Node} The replaced node + */ + replaceChild : function(newChild, oldChild){ + var s = oldChild ? oldChild.nextSibling : null; + this.removeChild(oldChild); + this.insertBefore(newChild, s); + return oldChild; + }, + + /** + * Returns the index of a child node + * @param {Node} node + * @return {Number} The index of the node or -1 if it was not found + */ + indexOf : function(child){ + return this.childNodes.indexOf(child); + }, + + /** + * Returns the tree this node is in. + * @return {Tree} + */ + getOwnerTree : function(){ + // if it doesn't have one, look for one + if(!this.ownerTree){ + var p = this; + while(p){ + if(p.ownerTree){ + this.ownerTree = p.ownerTree; + break; + } + p = p.parentNode; + } + } + return this.ownerTree; + }, + + /** + * Returns depth of this node (the root node has a depth of 0) + * @return {Number} + */ + getDepth : function(){ + var depth = 0; + var p = this; + while(p.parentNode){ + ++depth; + p = p.parentNode; + } + return depth; + }, + + // private + setOwnerTree : function(tree, destroy){ + // if it is a move, we need to update everyone + if(tree != this.ownerTree){ + if(this.ownerTree){ + this.ownerTree.unregisterNode(this); + } + this.ownerTree = tree; + // If we're destroying, we don't need to recurse since it will be called on each child node + if(destroy !== true){ + Ext.each(this.childNodes, function(n){ + n.setOwnerTree(tree); + }); + } + if(tree){ + tree.registerNode(this); + } + } + }, + + /** + * Changes the id of this node. + * @param {String} id The new id for the node. + */ + setId: function(id){ + if(id !== this.id){ + var t = this.ownerTree; + if(t){ + t.unregisterNode(this); + } + this.id = this.attributes.id = id; + if(t){ + t.registerNode(this); + } + this.onIdChange(id); + } + }, + + // private + onIdChange: Ext.emptyFn, + + /** + * Returns the path for this node. The path can be used to expand or select this node programmatically. + * @param {String} attr (optional) The attr to use for the path (defaults to the node's id) + * @return {String} The path + */ + getPath : function(attr){ + attr = attr || "id"; + var p = this.parentNode; + var b = [this.attributes[attr]]; + while(p){ + b.unshift(p.attributes[attr]); + p = p.parentNode; + } + var sep = this.getOwnerTree().pathSeparator; + return sep + b.join(sep); + }, + + /** + * Bubbles up the tree from this node, calling the specified function with each node. The arguments to the function + * will be the args provided or the current node. If the function returns false at any point, + * the bubble is stopped. + * @param {Function} fn The function to call + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the current Node. + * @param {Array} args (optional) The args to call the function with (default to passing the current Node) + */ + bubble : function(fn, scope, args){ + var p = this; + while(p){ + if(fn.apply(scope || p, args || [p]) === false){ + break; + } + p = p.parentNode; + } + }, + + /** + * Cascades down the tree from this node, calling the specified function with each node. The arguments to the function + * will be the args provided or the current node. If the function returns false at any point, + * the cascade is stopped on that branch. + * @param {Function} fn The function to call + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the current Node. + * @param {Array} args (optional) The args to call the function with (default to passing the current Node) + */ + cascade : function(fn, scope, args){ + if(fn.apply(scope || this, args || [this]) !== false){ + var cs = this.childNodes; + for(var i = 0, len = cs.length; i < len; i++) { + cs[i].cascade(fn, scope, args); + } + } + }, + + /** + * Interates the child nodes of this node, calling the specified function with each node. The arguments to the function + * will be the args provided or the current node. If the function returns false at any point, + * the iteration stops. + * @param {Function} fn The function to call + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the current Node in the iteration. + * @param {Array} args (optional) The args to call the function with (default to passing the current Node) + */ + eachChild : function(fn, scope, args){ + var cs = this.childNodes; + for(var i = 0, len = cs.length; i < len; i++) { + if(fn.apply(scope || this, args || [cs[i]]) === false){ + break; + } + } + }, + + /** + * Finds the first child that has the attribute with the specified value. + * @param {String} attribute The attribute name + * @param {Mixed} value The value to search for + * @param {Boolean} deep (Optional) True to search through nodes deeper than the immediate children + * @return {Node} The found child or null if none was found + */ + findChild : function(attribute, value, deep){ + return this.findChildBy(function(){ + return this.attributes[attribute] == value; + }, null, deep); + }, + + /** + * Finds the first child by a custom function. The child matches if the function passed returns true. + * @param {Function} fn A function which must return true if the passed Node is the required Node. + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the Node being tested. + * @param {Boolean} deep (Optional) True to search through nodes deeper than the immediate children + * @return {Node} The found child or null if none was found + */ + findChildBy : function(fn, scope, deep){ + var cs = this.childNodes, + len = cs.length, + i = 0, + n, + res; + for(; i < len; i++){ + n = cs[i]; + if(fn.call(scope || n, n) === true){ + return n; + }else if (deep){ + res = n.findChildBy(fn, scope, deep); + if(res != null){ + return res; + } + } + + } + return null; + }, + + /** + * Sorts this nodes children using the supplied sort function. + * @param {Function} fn A function which, when passed two Nodes, returns -1, 0 or 1 depending upon required sort order. + * @param {Object} scope (optional)The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + sort : function(fn, scope){ + var cs = this.childNodes; + var len = cs.length; + if(len > 0){ + var sortFn = scope ? function(){fn.apply(scope, arguments);} : fn; + cs.sort(sortFn); + for(var i = 0; i < len; i++){ + var n = cs[i]; + n.previousSibling = cs[i-1]; + n.nextSibling = cs[i+1]; + if(i === 0){ + this.setFirstChild(n); + } + if(i == len-1){ + this.setLastChild(n); + } + } + } + }, + + /** + * Returns true if this node is an ancestor (at any point) of the passed node. + * @param {Node} node + * @return {Boolean} + */ + contains : function(node){ + return node.isAncestor(this); + }, + + /** + * Returns true if the passed node is an ancestor (at any point) of this node. + * @param {Node} node + * @return {Boolean} + */ + isAncestor : function(node){ + var p = this.parentNode; + while(p){ + if(p == node){ + return true; + } + p = p.parentNode; + } + return false; + }, + + toString : function(){ + return "[Node"+(this.id?" "+this.id:"")+"]"; + } +});/** + * @class Ext.tree.TreeNode + * @extends Ext.data.Node + * @cfg {String} text The text for this node + * @cfg {Boolean} expanded true to start the node expanded + * @cfg {Boolean} allowDrag False to make this node undraggable if {@link #draggable} = true (defaults to true) + * @cfg {Boolean} allowDrop False if this node cannot have child nodes dropped on it (defaults to true) + * @cfg {Boolean} disabled true to start the node disabled + * @cfg {String} icon The path to an icon for the node. The preferred way to do this + * is to use the cls or iconCls attributes and add the icon via a CSS background image. + * @cfg {String} cls A css class to be added to the node + * @cfg {String} iconCls A css class to be added to the nodes icon element for applying css background images + * @cfg {String} href URL of the link used for the node (defaults to #) + * @cfg {String} hrefTarget target frame for the link + * @cfg {Boolean} hidden True to render hidden. (Defaults to false). + * @cfg {String} qtip An Ext QuickTip for the node + * @cfg {Boolean} expandable If set to true, the node will always show a plus/minus icon, even when empty + * @cfg {String} qtipCfg An Ext QuickTip config for the node (used instead of qtip) + * @cfg {Boolean} singleClickExpand True for single click expand on this node + * @cfg {Function} uiProvider A UI class to use for this node (defaults to Ext.tree.TreeNodeUI) + * @cfg {Boolean} checked True to render a checked checkbox for this node, false to render an unchecked checkbox + * (defaults to undefined with no checkbox rendered) + * @cfg {Boolean} draggable True to make this node draggable (defaults to false) + * @cfg {Boolean} isTarget False to not allow this node to act as a drop target (defaults to true) + * @cfg {Boolean} allowChildren False to not allow this node to have child nodes (defaults to true) + * @cfg {Boolean} editable False to not allow this node to be edited by an {@link Ext.tree.TreeEditor} (defaults to true) + * @constructor + * @param {Object/String} attributes The attributes/config for the node or just a string with the text for the node + */ +Ext.tree.TreeNode = function(attributes){ + attributes = attributes || {}; + if(Ext.isString(attributes)){ + attributes = {text: attributes}; + } + this.childrenRendered = false; + this.rendered = false; + Ext.tree.TreeNode.superclass.constructor.call(this, attributes); + this.expanded = attributes.expanded === true; + this.isTarget = attributes.isTarget !== false; + this.draggable = attributes.draggable !== false && attributes.allowDrag !== false; + this.allowChildren = attributes.allowChildren !== false && attributes.allowDrop !== false; + + /** + * Read-only. The text for this node. To change it use {@link #setText}. + * @type String + */ + this.text = attributes.text; + /** + * True if this node is disabled. + * @type Boolean + */ + this.disabled = attributes.disabled === true; + /** + * True if this node is hidden. + * @type Boolean + */ + this.hidden = attributes.hidden === true; + + this.addEvents( + /** + * @event textchange + * Fires when the text for this node is changed + * @param {Node} this This node + * @param {String} text The new text + * @param {String} oldText The old text + */ + 'textchange', + /** + * @event beforeexpand + * Fires before this node is expanded, return false to cancel. + * @param {Node} this This node + * @param {Boolean} deep + * @param {Boolean} anim + */ + 'beforeexpand', + /** + * @event beforecollapse + * Fires before this node is collapsed, return false to cancel. + * @param {Node} this This node + * @param {Boolean} deep + * @param {Boolean} anim + */ + 'beforecollapse', + /** + * @event expand + * Fires when this node is expanded + * @param {Node} this This node + */ + 'expand', + /** + * @event disabledchange + * Fires when the disabled status of this node changes + * @param {Node} this This node + * @param {Boolean} disabled + */ + 'disabledchange', + /** + * @event collapse + * Fires when this node is collapsed + * @param {Node} this This node + */ + 'collapse', + /** + * @event beforeclick + * Fires before click processing. Return false to cancel the default action. + * @param {Node} this This node + * @param {Ext.EventObject} e The event object + */ + 'beforeclick', + /** + * @event click + * Fires when this node is clicked + * @param {Node} this This node + * @param {Ext.EventObject} e The event object + */ + 'click', + /** + * @event checkchange + * Fires when a node with a checkbox's checked property changes + * @param {Node} this This node + * @param {Boolean} checked + */ + 'checkchange', + /** + * @event beforedblclick + * Fires before double click processing. Return false to cancel the default action. + * @param {Node} this This node + * @param {Ext.EventObject} e The event object + */ + 'beforedblclick', + /** + * @event dblclick + * Fires when this node is double clicked + * @param {Node} this This node + * @param {Ext.EventObject} e The event object + */ + 'dblclick', + /** + * @event contextmenu + * Fires when this node is right clicked + * @param {Node} this This node + * @param {Ext.EventObject} e The event object + */ + 'contextmenu', + /** + * @event beforechildrenrendered + * Fires right before the child nodes for this node are rendered + * @param {Node} this This node + */ + 'beforechildrenrendered' + ); + + var uiClass = this.attributes.uiProvider || this.defaultUI || Ext.tree.TreeNodeUI; + + /** + * Read-only. The UI for this node + * @type TreeNodeUI + */ + this.ui = new uiClass(this); +}; +Ext.extend(Ext.tree.TreeNode, Ext.data.Node, { + preventHScroll : true, + /** + * Returns true if this node is expanded + * @return {Boolean} + */ + isExpanded : function(){ + return this.expanded; + }, + +/** + * Returns the UI object for this node. + * @return {TreeNodeUI} The object which is providing the user interface for this tree + * node. Unless otherwise specified in the {@link #uiProvider}, this will be an instance + * of {@link Ext.tree.TreeNodeUI} + */ + getUI : function(){ + return this.ui; + }, + + getLoader : function(){ + var owner; + return this.loader || ((owner = this.getOwnerTree()) && owner.loader ? owner.loader : (this.loader = new Ext.tree.TreeLoader())); + }, + + // private override + setFirstChild : function(node){ + var of = this.firstChild; + Ext.tree.TreeNode.superclass.setFirstChild.call(this, node); + if(this.childrenRendered && of && node != of){ + of.renderIndent(true, true); + } + if(this.rendered){ + this.renderIndent(true, true); + } + }, + + // private override + setLastChild : function(node){ + var ol = this.lastChild; + Ext.tree.TreeNode.superclass.setLastChild.call(this, node); + if(this.childrenRendered && ol && node != ol){ + ol.renderIndent(true, true); + } + if(this.rendered){ + this.renderIndent(true, true); + } + }, + + // these methods are overridden to provide lazy rendering support + // private override + appendChild : function(n){ + if(!n.render && !Ext.isArray(n)){ + n = this.getLoader().createNode(n); + } + var node = Ext.tree.TreeNode.superclass.appendChild.call(this, n); + if(node && this.childrenRendered){ + node.render(); + } + this.ui.updateExpandIcon(); + return node; + }, + + // private override + removeChild : function(node, destroy){ + this.ownerTree.getSelectionModel().unselect(node); + Ext.tree.TreeNode.superclass.removeChild.apply(this, arguments); + // only update the ui if we're not destroying + if(!destroy){ + // if it's been rendered remove dom node + if(node.ui.rendered){ + node.ui.remove(); + } + if(this.childNodes.length < 1){ + this.collapse(false, false); + }else{ + this.ui.updateExpandIcon(); + } + if(!this.firstChild && !this.isHiddenRoot()){ + this.childrenRendered = false; + } + } + return node; + }, + + // private override + insertBefore : function(node, refNode){ + if(!node.render){ + node = this.getLoader().createNode(node); + } + var newNode = Ext.tree.TreeNode.superclass.insertBefore.call(this, node, refNode); + if(newNode && refNode && this.childrenRendered){ + node.render(); + } + this.ui.updateExpandIcon(); + return newNode; + }, + + /** + * Sets the text for this node + * @param {String} text + */ + setText : function(text){ + var oldText = this.text; + this.text = this.attributes.text = text; + if(this.rendered){ // event without subscribing + this.ui.onTextChange(this, text, oldText); + } + this.fireEvent('textchange', this, text, oldText); + }, + + /** + * Triggers selection of this node + */ + select : function(){ + var t = this.getOwnerTree(); + if(t){ + t.getSelectionModel().select(this); + } + }, + + /** + * Triggers deselection of this node + * @param {Boolean} silent (optional) True to stop selection change events from firing. + */ + unselect : function(silent){ + var t = this.getOwnerTree(); + if(t){ + t.getSelectionModel().unselect(this, silent); + } + }, + + /** + * Returns true if this node is selected + * @return {Boolean} + */ + isSelected : function(){ + var t = this.getOwnerTree(); + return t ? t.getSelectionModel().isSelected(this) : false; + }, + + /** + * Expand this node. + * @param {Boolean} deep (optional) True to expand all children as well + * @param {Boolean} anim (optional) false to cancel the default animation + * @param {Function} callback (optional) A callback to be called when + * expanding this node completes (does not wait for deep expand to complete). + * Called with 1 parameter, this node. + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to this TreeNode. + */ + expand : function(deep, anim, callback, scope){ + if(!this.expanded){ + if(this.fireEvent('beforeexpand', this, deep, anim) === false){ + return; + } + if(!this.childrenRendered){ + this.renderChildren(); + } + this.expanded = true; + if(!this.isHiddenRoot() && (this.getOwnerTree().animate && anim !== false) || anim){ + this.ui.animExpand(function(){ + this.fireEvent('expand', this); + this.runCallback(callback, scope || this, [this]); + if(deep === true){ + this.expandChildNodes(true); + } + }.createDelegate(this)); + return; + }else{ + this.ui.expand(); + this.fireEvent('expand', this); + this.runCallback(callback, scope || this, [this]); + } + }else{ + this.runCallback(callback, scope || this, [this]); + } + if(deep === true){ + this.expandChildNodes(true); + } + }, + + runCallback : function(cb, scope, args){ + if(Ext.isFunction(cb)){ + cb.apply(scope, args); + } + }, + + isHiddenRoot : function(){ + return this.isRoot && !this.getOwnerTree().rootVisible; + }, + + /** + * Collapse this node. + * @param {Boolean} deep (optional) True to collapse all children as well + * @param {Boolean} anim (optional) false to cancel the default animation + * @param {Function} callback (optional) A callback to be called when + * expanding this node completes (does not wait for deep expand to complete). + * Called with 1 parameter, this node. + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to this TreeNode. + */ + collapse : function(deep, anim, callback, scope){ + if(this.expanded && !this.isHiddenRoot()){ + if(this.fireEvent('beforecollapse', this, deep, anim) === false){ + return; + } + this.expanded = false; + if((this.getOwnerTree().animate && anim !== false) || anim){ + this.ui.animCollapse(function(){ + this.fireEvent('collapse', this); + this.runCallback(callback, scope || this, [this]); + if(deep === true){ + this.collapseChildNodes(true); + } + }.createDelegate(this)); + return; + }else{ + this.ui.collapse(); + this.fireEvent('collapse', this); + this.runCallback(callback, scope || this, [this]); + } + }else if(!this.expanded){ + this.runCallback(callback, scope || this, [this]); + } + if(deep === true){ + var cs = this.childNodes; + for(var i = 0, len = cs.length; i < len; i++) { + cs[i].collapse(true, false); + } + } + }, + + // private + delayedExpand : function(delay){ + if(!this.expandProcId){ + this.expandProcId = this.expand.defer(delay, this); + } + }, + + // private + cancelExpand : function(){ + if(this.expandProcId){ + clearTimeout(this.expandProcId); + } + this.expandProcId = false; + }, + + /** + * Toggles expanded/collapsed state of the node + */ + toggle : function(){ + if(this.expanded){ + this.collapse(); + }else{ + this.expand(); + } + }, + + /** + * Ensures all parent nodes are expanded, and if necessary, scrolls + * the node into view. + * @param {Function} callback (optional) A function to call when the node has been made visible. + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to this TreeNode. + */ + ensureVisible : function(callback, scope){ + var tree = this.getOwnerTree(); + tree.expandPath(this.parentNode ? this.parentNode.getPath() : this.getPath(), false, function(){ + var node = tree.getNodeById(this.id); // Somehow if we don't do this, we lose changes that happened to node in the meantime + tree.getTreeEl().scrollChildIntoView(node.ui.anchor); + this.runCallback(callback, scope || this, [this]); + }.createDelegate(this)); + }, + + /** + * Expand all child nodes + * @param {Boolean} deep (optional) true if the child nodes should also expand their child nodes + */ + expandChildNodes : function(deep){ + var cs = this.childNodes; + for(var i = 0, len = cs.length; i < len; i++) { + cs[i].expand(deep); + } + }, + + /** + * Collapse all child nodes + * @param {Boolean} deep (optional) true if the child nodes should also collapse their child nodes + */ + collapseChildNodes : function(deep){ + var cs = this.childNodes; + for(var i = 0, len = cs.length; i < len; i++) { + cs[i].collapse(deep); + } + }, + + /** + * Disables this node + */ + disable : function(){ + this.disabled = true; + this.unselect(); + if(this.rendered && this.ui.onDisableChange){ // event without subscribing + this.ui.onDisableChange(this, true); + } + this.fireEvent('disabledchange', this, true); + }, + + /** + * Enables this node + */ + enable : function(){ + this.disabled = false; + if(this.rendered && this.ui.onDisableChange){ // event without subscribing + this.ui.onDisableChange(this, false); + } + this.fireEvent('disabledchange', this, false); + }, + + // private + renderChildren : function(suppressEvent){ + if(suppressEvent !== false){ + this.fireEvent('beforechildrenrendered', this); + } + var cs = this.childNodes; + for(var i = 0, len = cs.length; i < len; i++){ + cs[i].render(true); + } + this.childrenRendered = true; + }, + + // private + sort : function(fn, scope){ + Ext.tree.TreeNode.superclass.sort.apply(this, arguments); + if(this.childrenRendered){ + var cs = this.childNodes; + for(var i = 0, len = cs.length; i < len; i++){ + cs[i].render(true); + } + } + }, + + // private + render : function(bulkRender){ + this.ui.render(bulkRender); + if(!this.rendered){ + // make sure it is registered + this.getOwnerTree().registerNode(this); + this.rendered = true; + if(this.expanded){ + this.expanded = false; + this.expand(false, false); + } + } + }, + + // private + renderIndent : function(deep, refresh){ + if(refresh){ + this.ui.childIndent = null; + } + this.ui.renderIndent(); + if(deep === true && this.childrenRendered){ + var cs = this.childNodes; + for(var i = 0, len = cs.length; i < len; i++){ + cs[i].renderIndent(true, refresh); + } + } + }, + + beginUpdate : function(){ + this.childrenRendered = false; + }, + + endUpdate : function(){ + if(this.expanded && this.rendered){ + this.renderChildren(); + } + }, + + //inherit docs + destroy : function(silent){ + if(silent === true){ + this.unselect(true); + } + Ext.tree.TreeNode.superclass.destroy.call(this, silent); + Ext.destroy(this.ui, this.loader); + this.ui = this.loader = null; + }, + + // private + onIdChange : function(id){ + this.ui.onIdChange(id); + } +}); + +Ext.tree.TreePanel.nodeTypes.node = Ext.tree.TreeNode;/** + * @class Ext.tree.AsyncTreeNode + * @extends Ext.tree.TreeNode + * @cfg {TreeLoader} loader A TreeLoader to be used by this node (defaults to the loader defined on the tree) + * @constructor + * @param {Object/String} attributes The attributes/config for the node or just a string with the text for the node + */ + Ext.tree.AsyncTreeNode = function(config){ + this.loaded = config && config.loaded === true; + this.loading = false; + Ext.tree.AsyncTreeNode.superclass.constructor.apply(this, arguments); + /** + * @event beforeload + * Fires before this node is loaded, return false to cancel + * @param {Node} this This node + */ + this.addEvents('beforeload', 'load'); + /** + * @event load + * Fires when this node is loaded + * @param {Node} this This node + */ + /** + * The loader used by this node (defaults to using the tree's defined loader) + * @type TreeLoader + * @property loader + */ +}; +Ext.extend(Ext.tree.AsyncTreeNode, Ext.tree.TreeNode, { + expand : function(deep, anim, callback, scope){ + if(this.loading){ // if an async load is already running, waiting til it's done + var timer; + var f = function(){ + if(!this.loading){ // done loading + clearInterval(timer); + this.expand(deep, anim, callback, scope); + } + }.createDelegate(this); + timer = setInterval(f, 200); + return; + } + if(!this.loaded){ + if(this.fireEvent("beforeload", this) === false){ + return; + } + this.loading = true; + this.ui.beforeLoad(this); + var loader = this.loader || this.attributes.loader || this.getOwnerTree().getLoader(); + if(loader){ + loader.load(this, this.loadComplete.createDelegate(this, [deep, anim, callback, scope]), this); + return; + } + } + Ext.tree.AsyncTreeNode.superclass.expand.call(this, deep, anim, callback, scope); + }, + + /** + * Returns true if this node is currently loading + * @return {Boolean} + */ + isLoading : function(){ + return this.loading; + }, + + loadComplete : function(deep, anim, callback, scope){ + this.loading = false; + this.loaded = true; + this.ui.afterLoad(this); + this.fireEvent("load", this); + this.expand(deep, anim, callback, scope); + }, + + /** + * Returns true if this node has been loaded + * @return {Boolean} + */ + isLoaded : function(){ + return this.loaded; + }, + + hasChildNodes : function(){ + if(!this.isLeaf() && !this.loaded){ + return true; + }else{ + return Ext.tree.AsyncTreeNode.superclass.hasChildNodes.call(this); + } + }, + + /** + * Trigger a reload for this node + * @param {Function} callback + * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to this Node. + */ + reload : function(callback, scope){ + this.collapse(false, false); + while(this.firstChild){ + this.removeChild(this.firstChild).destroy(); + } + this.childrenRendered = false; + this.loaded = false; + if(this.isHiddenRoot()){ + this.expanded = false; + } + this.expand(false, false, callback, scope); + } +}); + +Ext.tree.TreePanel.nodeTypes.async = Ext.tree.AsyncTreeNode;/** + * @class Ext.tree.TreeNodeUI + * This class provides the default UI implementation for Ext TreeNodes. + * The TreeNode UI implementation is separate from the + * tree implementation, and allows customizing of the appearance of + * tree nodes.
      + *

      + * If you are customizing the Tree's user interface, you + * may need to extend this class, but you should never need to instantiate this class.
      + *

      + * This class provides access to the user interface components of an Ext TreeNode, through + * {@link Ext.tree.TreeNode#getUI} + */ +Ext.tree.TreeNodeUI = function(node){ + this.node = node; + this.rendered = false; + this.animating = false; + this.wasLeaf = true; + this.ecc = 'x-tree-ec-icon x-tree-elbow'; + this.emptyIcon = Ext.BLANK_IMAGE_URL; +}; + +Ext.tree.TreeNodeUI.prototype = { + // private + removeChild : function(node){ + if(this.rendered){ + this.ctNode.removeChild(node.ui.getEl()); + } + }, + + // private + beforeLoad : function(){ + this.addClass("x-tree-node-loading"); + }, + + // private + afterLoad : function(){ + this.removeClass("x-tree-node-loading"); + }, + + // private + onTextChange : function(node, text, oldText){ + if(this.rendered){ + this.textNode.innerHTML = text; + } + }, + + // private + onDisableChange : function(node, state){ + this.disabled = state; + if (this.checkbox) { + this.checkbox.disabled = state; + } + if(state){ + this.addClass("x-tree-node-disabled"); + }else{ + this.removeClass("x-tree-node-disabled"); + } + }, + + // private + onSelectedChange : function(state){ + if(state){ + this.focus(); + this.addClass("x-tree-selected"); + }else{ + //this.blur(); + this.removeClass("x-tree-selected"); + } + }, + + // private + onMove : function(tree, node, oldParent, newParent, index, refNode){ + this.childIndent = null; + if(this.rendered){ + var targetNode = newParent.ui.getContainer(); + if(!targetNode){//target not rendered + this.holder = document.createElement("div"); + this.holder.appendChild(this.wrap); + return; + } + var insertBefore = refNode ? refNode.ui.getEl() : null; + if(insertBefore){ + targetNode.insertBefore(this.wrap, insertBefore); + }else{ + targetNode.appendChild(this.wrap); + } + this.node.renderIndent(true, oldParent != newParent); + } + }, + +/** + * Adds one or more CSS classes to the node's UI element. + * Duplicate classes are automatically filtered out. + * @param {String/Array} className The CSS class to add, or an array of classes + */ + addClass : function(cls){ + if(this.elNode){ + Ext.fly(this.elNode).addClass(cls); + } + }, + +/** + * Removes one or more CSS classes from the node's UI element. + * @param {String/Array} className The CSS class to remove, or an array of classes + */ + removeClass : function(cls){ + if(this.elNode){ + Ext.fly(this.elNode).removeClass(cls); + } + }, + + // private + remove : function(){ + if(this.rendered){ + this.holder = document.createElement("div"); + this.holder.appendChild(this.wrap); + } + }, + + // private + fireEvent : function(){ + return this.node.fireEvent.apply(this.node, arguments); + }, + + // private + initEvents : function(){ + this.node.on("move", this.onMove, this); + + if(this.node.disabled){ + this.onDisableChange(this.node, true); + } + if(this.node.hidden){ + this.hide(); + } + var ot = this.node.getOwnerTree(); + var dd = ot.enableDD || ot.enableDrag || ot.enableDrop; + if(dd && (!this.node.isRoot || ot.rootVisible)){ + Ext.dd.Registry.register(this.elNode, { + node: this.node, + handles: this.getDDHandles(), + isHandle: false + }); + } + }, + + // private + getDDHandles : function(){ + return [this.iconNode, this.textNode, this.elNode]; + }, + +/** + * Hides this node. + */ + hide : function(){ + this.node.hidden = true; + if(this.wrap){ + this.wrap.style.display = "none"; + } + }, + +/** + * Shows this node. + */ + show : function(){ + this.node.hidden = false; + if(this.wrap){ + this.wrap.style.display = ""; + } + }, + + // private + onContextMenu : function(e){ + if (this.node.hasListener("contextmenu") || this.node.getOwnerTree().hasListener("contextmenu")) { + e.preventDefault(); + this.focus(); + this.fireEvent("contextmenu", this.node, e); + } + }, + + // private + onClick : function(e){ + if(this.dropping){ + e.stopEvent(); + return; + } + if(this.fireEvent("beforeclick", this.node, e) !== false){ + var a = e.getTarget('a'); + if(!this.disabled && this.node.attributes.href && a){ + this.fireEvent("click", this.node, e); + return; + }else if(a && e.ctrlKey){ + e.stopEvent(); + } + e.preventDefault(); + if(this.disabled){ + return; + } + + if(this.node.attributes.singleClickExpand && !this.animating && this.node.isExpandable()){ + this.node.toggle(); + } + + this.fireEvent("click", this.node, e); + }else{ + e.stopEvent(); + } + }, + + // private + onDblClick : function(e){ + e.preventDefault(); + if(this.disabled){ + return; + } + if(this.fireEvent("beforedblclick", this.node, e) !== false){ + if(this.checkbox){ + this.toggleCheck(); + } + if(!this.animating && this.node.isExpandable()){ + this.node.toggle(); + } + this.fireEvent("dblclick", this.node, e); + } + }, + + onOver : function(e){ + this.addClass('x-tree-node-over'); + }, + + onOut : function(e){ + this.removeClass('x-tree-node-over'); + }, + + // private + onCheckChange : function(){ + var checked = this.checkbox.checked; + // fix for IE6 + this.checkbox.defaultChecked = checked; + this.node.attributes.checked = checked; + this.fireEvent('checkchange', this.node, checked); + }, + + // private + ecClick : function(e){ + if(!this.animating && this.node.isExpandable()){ + this.node.toggle(); + } + }, + + // private + startDrop : function(){ + this.dropping = true; + }, + + // delayed drop so the click event doesn't get fired on a drop + endDrop : function(){ + setTimeout(function(){ + this.dropping = false; + }.createDelegate(this), 50); + }, + + // private + expand : function(){ + this.updateExpandIcon(); + this.ctNode.style.display = ""; + }, + + // private + focus : function(){ + if(!this.node.preventHScroll){ + try{this.anchor.focus(); + }catch(e){} + }else{ + try{ + var noscroll = this.node.getOwnerTree().getTreeEl().dom; + var l = noscroll.scrollLeft; + this.anchor.focus(); + noscroll.scrollLeft = l; + }catch(e){} + } + }, + +/** + * Sets the checked status of the tree node to the passed value, or, if no value was passed, + * toggles the checked status. If the node was rendered with no checkbox, this has no effect. + * @param {Boolean} value (optional) The new checked status. + */ + toggleCheck : function(value){ + var cb = this.checkbox; + if(cb){ + cb.checked = (value === undefined ? !cb.checked : value); + this.onCheckChange(); + } + }, + + // private + blur : function(){ + try{ + this.anchor.blur(); + }catch(e){} + }, + + // private + animExpand : function(callback){ + var ct = Ext.get(this.ctNode); + ct.stopFx(); + if(!this.node.isExpandable()){ + this.updateExpandIcon(); + this.ctNode.style.display = ""; + Ext.callback(callback); + return; + } + this.animating = true; + this.updateExpandIcon(); + + ct.slideIn('t', { + callback : function(){ + this.animating = false; + Ext.callback(callback); + }, + scope: this, + duration: this.node.ownerTree.duration || .25 + }); + }, + + // private + highlight : function(){ + var tree = this.node.getOwnerTree(); + Ext.fly(this.wrap).highlight( + tree.hlColor || "C3DAF9", + {endColor: tree.hlBaseColor} + ); + }, + + // private + collapse : function(){ + this.updateExpandIcon(); + this.ctNode.style.display = "none"; + }, + + // private + animCollapse : function(callback){ + var ct = Ext.get(this.ctNode); + ct.enableDisplayMode('block'); + ct.stopFx(); + + this.animating = true; + this.updateExpandIcon(); + + ct.slideOut('t', { + callback : function(){ + this.animating = false; + Ext.callback(callback); + }, + scope: this, + duration: this.node.ownerTree.duration || .25 + }); + }, + + // private + getContainer : function(){ + return this.ctNode; + }, + +/** + * Returns the element which encapsulates this node. + * @return {HtmlElement} The DOM element. The default implementation uses a <li>. + */ + getEl : function(){ + return this.wrap; + }, + + // private + appendDDGhost : function(ghostNode){ + ghostNode.appendChild(this.elNode.cloneNode(true)); + }, + + // private + getDDRepairXY : function(){ + return Ext.lib.Dom.getXY(this.iconNode); + }, + + // private + onRender : function(){ + this.render(); + }, + + // private + render : function(bulkRender){ + var n = this.node, a = n.attributes; + var targetNode = n.parentNode ? + n.parentNode.ui.getContainer() : n.ownerTree.innerCt.dom; + + if(!this.rendered){ + this.rendered = true; + + this.renderElements(n, a, targetNode, bulkRender); + + if(a.qtip){ + if(this.textNode.setAttributeNS){ + this.textNode.setAttributeNS("ext", "qtip", a.qtip); + if(a.qtipTitle){ + this.textNode.setAttributeNS("ext", "qtitle", a.qtipTitle); + } + }else{ + this.textNode.setAttribute("ext:qtip", a.qtip); + if(a.qtipTitle){ + this.textNode.setAttribute("ext:qtitle", a.qtipTitle); + } + } + }else if(a.qtipCfg){ + a.qtipCfg.target = Ext.id(this.textNode); + Ext.QuickTips.register(a.qtipCfg); + } + this.initEvents(); + if(!this.node.expanded){ + this.updateExpandIcon(true); + } + }else{ + if(bulkRender === true) { + targetNode.appendChild(this.wrap); + } + } + }, + + // private + renderElements : function(n, a, targetNode, bulkRender){ + // add some indent caching, this helps performance when rendering a large tree + this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() : ''; + + var cb = Ext.isBoolean(a.checked), + nel, + href = a.href ? a.href : Ext.isGecko ? "" : "#", + buf = ['

    • ', + '',this.indentMarkup,"", + '', + '', + cb ? ('' : '/>')) : '', + '',n.text,"
      ", + '', + "
    • "].join(''); + + if(bulkRender !== true && n.nextSibling && (nel = n.nextSibling.ui.getEl())){ + this.wrap = Ext.DomHelper.insertHtml("beforeBegin", nel, buf); + }else{ + this.wrap = Ext.DomHelper.insertHtml("beforeEnd", targetNode, buf); + } + + this.elNode = this.wrap.childNodes[0]; + this.ctNode = this.wrap.childNodes[1]; + var cs = this.elNode.childNodes; + this.indentNode = cs[0]; + this.ecNode = cs[1]; + this.iconNode = cs[2]; + var index = 3; + if(cb){ + this.checkbox = cs[3]; + // fix for IE6 + this.checkbox.defaultChecked = this.checkbox.checked; + index++; + } + this.anchor = cs[index]; + this.textNode = cs[index].firstChild; + }, + +/** + * Returns the <a> element that provides focus for the node's UI. + * @return {HtmlElement} The DOM anchor element. + */ + getAnchor : function(){ + return this.anchor; + }, + +/** + * Returns the text node. + * @return {HtmlNode} The DOM text node. + */ + getTextEl : function(){ + return this.textNode; + }, + +/** + * Returns the icon <img> element. + * @return {HtmlElement} The DOM image element. + */ + getIconEl : function(){ + return this.iconNode; + }, + +/** + * Returns the checked status of the node. If the node was rendered with no + * checkbox, it returns false. + * @return {Boolean} The checked flag. + */ + isChecked : function(){ + return this.checkbox ? this.checkbox.checked : false; + }, + + // private + updateExpandIcon : function(){ + if(this.rendered){ + var n = this.node, + c1, + c2, + cls = n.isLast() ? "x-tree-elbow-end" : "x-tree-elbow", + hasChild = n.hasChildNodes(); + if(hasChild || n.attributes.expandable){ + if(n.expanded){ + cls += "-minus"; + c1 = "x-tree-node-collapsed"; + c2 = "x-tree-node-expanded"; + }else{ + cls += "-plus"; + c1 = "x-tree-node-expanded"; + c2 = "x-tree-node-collapsed"; + } + if(this.wasLeaf){ + this.removeClass("x-tree-node-leaf"); + this.wasLeaf = false; + } + if(this.c1 != c1 || this.c2 != c2){ + Ext.fly(this.elNode).replaceClass(c1, c2); + this.c1 = c1; this.c2 = c2; + } + }else{ + if(!this.wasLeaf){ + Ext.fly(this.elNode).replaceClass("x-tree-node-expanded", "x-tree-node-collapsed"); + delete this.c1; + delete this.c2; + this.wasLeaf = true; + } + } + var ecc = "x-tree-ec-icon "+cls; + if(this.ecc != ecc){ + this.ecNode.className = ecc; + this.ecc = ecc; + } + } + }, + + // private + onIdChange: function(id){ + if(this.rendered){ + this.elNode.setAttribute('ext:tree-node-id', id); + } + }, + + // private + getChildIndent : function(){ + if(!this.childIndent){ + var buf = [], + p = this.node; + while(p){ + if(!p.isRoot || (p.isRoot && p.ownerTree.rootVisible)){ + if(!p.isLast()) { + buf.unshift(''); + } else { + buf.unshift(''); + } + } + p = p.parentNode; + } + this.childIndent = buf.join(""); + } + return this.childIndent; + }, + + // private + renderIndent : function(){ + if(this.rendered){ + var indent = "", + p = this.node.parentNode; + if(p){ + indent = p.ui.getChildIndent(); + } + if(this.indentMarkup != indent){ // don't rerender if not required + this.indentNode.innerHTML = indent; + this.indentMarkup = indent; + } + this.updateExpandIcon(); + } + }, + + destroy : function(){ + if(this.elNode){ + Ext.dd.Registry.unregister(this.elNode.id); + } + + Ext.each(['textnode', 'anchor', 'checkbox', 'indentNode', 'ecNode', 'iconNode', 'elNode', 'ctNode', 'wrap', 'holder'], function(el){ + if(this[el]){ + Ext.fly(this[el]).remove(); + delete this[el]; + } + }, this); + delete this.node; + } +}; + +/** + * @class Ext.tree.RootTreeNodeUI + * This class provides the default UI implementation for root Ext TreeNodes. + * The RootTreeNode UI implementation allows customizing the appearance of the root tree node.
      + *

      + * If you are customizing the Tree's user interface, you + * may need to extend this class, but you should never need to instantiate this class.
      + */ +Ext.tree.RootTreeNodeUI = Ext.extend(Ext.tree.TreeNodeUI, { + // private + render : function(){ + if(!this.rendered){ + var targetNode = this.node.ownerTree.innerCt.dom; + this.node.expanded = true; + targetNode.innerHTML = '

      '; + this.wrap = this.ctNode = targetNode.firstChild; + } + }, + collapse : Ext.emptyFn, + expand : Ext.emptyFn +});/** + * @class Ext.tree.TreeLoader + * @extends Ext.util.Observable + * A TreeLoader provides for lazy loading of an {@link Ext.tree.TreeNode}'s child + * nodes from a specified URL. The response must be a JavaScript Array definition + * whose elements are node definition objects. e.g.: + *
      
      +    [{
      +        id: 1,
      +        text: 'A leaf Node',
      +        leaf: true
      +    },{
      +        id: 2,
      +        text: 'A folder Node',
      +        children: [{
      +            id: 3,
      +            text: 'A child Node',
      +            leaf: true
      +        }]
      +   }]
      +
      + *

      + * A server request is sent, and child nodes are loaded only when a node is expanded. + * The loading node's id is passed to the server under the parameter name "node" to + * enable the server to produce the correct child nodes. + *

      + * To pass extra parameters, an event handler may be attached to the "beforeload" + * event, and the parameters specified in the TreeLoader's baseParams property: + *
      
      +    myTreeLoader.on("beforeload", function(treeLoader, node) {
      +        this.baseParams.category = node.attributes.category;
      +    }, this);
      +
      + * This would pass an HTTP parameter called "category" to the server containing + * the value of the Node's "category" attribute. + * @constructor + * Creates a new Treeloader. + * @param {Object} config A config object containing config properties. + */ +Ext.tree.TreeLoader = function(config){ + this.baseParams = {}; + Ext.apply(this, config); + + this.addEvents( + /** + * @event beforeload + * Fires before a network request is made to retrieve the Json text which specifies a node's children. + * @param {Object} This TreeLoader object. + * @param {Object} node The {@link Ext.tree.TreeNode} object being loaded. + * @param {Object} callback The callback function specified in the {@link #load} call. + */ + "beforeload", + /** + * @event load + * Fires when the node has been successfuly loaded. + * @param {Object} This TreeLoader object. + * @param {Object} node The {@link Ext.tree.TreeNode} object being loaded. + * @param {Object} response The response object containing the data from the server. + */ + "load", + /** + * @event loadexception + * Fires if the network request failed. + * @param {Object} This TreeLoader object. + * @param {Object} node The {@link Ext.tree.TreeNode} object being loaded. + * @param {Object} response The response object containing the data from the server. + */ + "loadexception" + ); + Ext.tree.TreeLoader.superclass.constructor.call(this); + if(Ext.isString(this.paramOrder)){ + this.paramOrder = this.paramOrder.split(/[\s,|]/); + } +}; + +Ext.extend(Ext.tree.TreeLoader, Ext.util.Observable, { + /** + * @cfg {String} dataUrl The URL from which to request a Json string which + * specifies an array of node definition objects representing the child nodes + * to be loaded. + */ + /** + * @cfg {String} requestMethod The HTTP request method for loading data (defaults to the value of {@link Ext.Ajax#method}). + */ + /** + * @cfg {String} url Equivalent to {@link #dataUrl}. + */ + /** + * @cfg {Boolean} preloadChildren If set to true, the loader recursively loads "children" attributes when doing the first load on nodes. + */ + /** + * @cfg {Object} baseParams (optional) An object containing properties which + * specify HTTP parameters to be passed to each request for child nodes. + */ + /** + * @cfg {Object} baseAttrs (optional) An object containing attributes to be added to all nodes + * created by this loader. If the attributes sent by the server have an attribute in this object, + * they take priority. + */ + /** + * @cfg {Object} uiProviders (optional) An object containing properties which + * specify custom {@link Ext.tree.TreeNodeUI} implementations. If the optional + * uiProvider attribute of a returned child node is a string rather + * than a reference to a TreeNodeUI implementation, then that string value + * is used as a property name in the uiProviders object. + */ + uiProviders : {}, + + /** + * @cfg {Boolean} clearOnLoad (optional) Default to true. Remove previously existing + * child nodes before loading. + */ + clearOnLoad : true, + + /** + * @cfg {Array/String} paramOrder Defaults to undefined. Only used when using directFn. + * Specifies the params in the order in which they must be passed to the server-side Direct method + * as either (1) an Array of String values, or (2) a String of params delimited by either whitespace, + * comma, or pipe. For example, + * any of the following would be acceptable:
      
      +nodeParameter: 'node',
      +paramOrder: ['param1','param2','param3']
      +paramOrder: 'node param1 param2 param3'
      +paramOrder: 'param1,node,param2,param3'
      +paramOrder: 'param1|param2|param|node'
      +     
      + */ + paramOrder: undefined, + + /** + * @cfg {Boolean} paramsAsHash Only used when using directFn. + * Send parameters as a collection of named arguments (defaults to false). Providing a + * {@link #paramOrder} nullifies this configuration. + */ + paramsAsHash: false, + + /** + * @cfg {String} nodeParameter The name of the parameter sent to the server which contains + * the identifier of the node. Defaults to 'node'. + */ + nodeParameter: 'node', + + /** + * @cfg {Function} directFn + * Function to call when executing a request. + */ + directFn : undefined, + + /** + * Load an {@link Ext.tree.TreeNode} from the URL specified in the constructor. + * This is called automatically when a node is expanded, but may be used to reload + * a node (or append new children if the {@link #clearOnLoad} option is false.) + * @param {Ext.tree.TreeNode} node + * @param {Function} callback Function to call after the node has been loaded. The + * function is passed the TreeNode which was requested to be loaded. + * @param {Object} scope The scope (this reference) in which the callback is executed. + * defaults to the loaded TreeNode. + */ + load : function(node, callback, scope){ + if(this.clearOnLoad){ + while(node.firstChild){ + node.removeChild(node.firstChild); + } + } + if(this.doPreload(node)){ // preloaded json children + this.runCallback(callback, scope || node, [node]); + }else if(this.directFn || this.dataUrl || this.url){ + this.requestData(node, callback, scope || node); + } + }, + + doPreload : function(node){ + if(node.attributes.children){ + if(node.childNodes.length < 1){ // preloaded? + var cs = node.attributes.children; + node.beginUpdate(); + for(var i = 0, len = cs.length; i < len; i++){ + var cn = node.appendChild(this.createNode(cs[i])); + if(this.preloadChildren){ + this.doPreload(cn); + } + } + node.endUpdate(); + } + return true; + } + return false; + }, + + getParams: function(node){ + var bp = Ext.apply({}, this.baseParams), + np = this.nodeParameter, + po = this.paramOrder; + + np && (bp[ np ] = node.id); + + if(this.directFn){ + var buf = [node.id]; + if(po){ + // reset 'buf' if the nodeParameter was included in paramOrder + if(np && po.indexOf(np) > -1){ + buf = []; + } + + for(var i = 0, len = po.length; i < len; i++){ + buf.push(bp[ po[i] ]); + } + }else if(this.paramsAsHash){ + buf = [bp]; + } + return buf; + }else{ + return bp; + } + }, + + requestData : function(node, callback, scope){ + if(this.fireEvent("beforeload", this, node, callback) !== false){ + if(this.directFn){ + var args = this.getParams(node); + args.push(this.processDirectResponse.createDelegate(this, [{callback: callback, node: node, scope: scope}], true)); + this.directFn.apply(window, args); + }else{ + this.transId = Ext.Ajax.request({ + method:this.requestMethod, + url: this.dataUrl||this.url, + success: this.handleResponse, + failure: this.handleFailure, + scope: this, + argument: {callback: callback, node: node, scope: scope}, + params: this.getParams(node) + }); + } + }else{ + // if the load is cancelled, make sure we notify + // the node that we are done + this.runCallback(callback, scope || node, []); + } + }, + + processDirectResponse: function(result, response, args){ + if(response.status){ + this.handleResponse({ + responseData: Ext.isArray(result) ? result : null, + responseText: result, + argument: args + }); + }else{ + this.handleFailure({ + argument: args + }); + } + }, + + // private + runCallback: function(cb, scope, args){ + if(Ext.isFunction(cb)){ + cb.apply(scope, args); + } + }, + + isLoading : function(){ + return !!this.transId; + }, + + abort : function(){ + if(this.isLoading()){ + Ext.Ajax.abort(this.transId); + } + }, + + /** + *

      Override this function for custom TreeNode node implementation, or to + * modify the attributes at creation time.

      + * Example:
      
      +new Ext.tree.TreePanel({
      +    ...
      +    loader: new Ext.tree.TreeLoader({
      +        url: 'dataUrl',
      +        createNode: function(attr) {
      +//          Allow consolidation consignments to have
      +//          consignments dropped into them.
      +            if (attr.isConsolidation) {
      +                attr.iconCls = 'x-consol',
      +                attr.allowDrop = true;
      +            }
      +            return Ext.tree.TreeLoader.prototype.createNode.call(this, attr);
      +        }
      +    }),
      +    ...
      +});
      +
      + * @param attr {Object} The attributes from which to create the new node. + */ + createNode : function(attr){ + // apply baseAttrs, nice idea Corey! + if(this.baseAttrs){ + Ext.applyIf(attr, this.baseAttrs); + } + if(this.applyLoader !== false && !attr.loader){ + attr.loader = this; + } + if(Ext.isString(attr.uiProvider)){ + attr.uiProvider = this.uiProviders[attr.uiProvider] || eval(attr.uiProvider); + } + if(attr.nodeType){ + return new Ext.tree.TreePanel.nodeTypes[attr.nodeType](attr); + }else{ + return attr.leaf ? + new Ext.tree.TreeNode(attr) : + new Ext.tree.AsyncTreeNode(attr); + } + }, + + processResponse : function(response, node, callback, scope){ + var json = response.responseText; + try { + var o = response.responseData || Ext.decode(json); + node.beginUpdate(); + for(var i = 0, len = o.length; i < len; i++){ + var n = this.createNode(o[i]); + if(n){ + node.appendChild(n); + } + } + node.endUpdate(); + this.runCallback(callback, scope || node, [node]); + }catch(e){ + this.handleFailure(response); + } + }, + + handleResponse : function(response){ + this.transId = false; + var a = response.argument; + this.processResponse(response, a.node, a.callback, a.scope); + this.fireEvent("load", this, a.node, response); + }, + + handleFailure : function(response){ + this.transId = false; + var a = response.argument; + this.fireEvent("loadexception", this, a.node, response); + this.runCallback(a.callback, a.scope || a.node, [a.node]); + }, + + destroy : function(){ + this.abort(); + this.purgeListeners(); + } +});/** + * @class Ext.tree.TreeFilter + * Note this class is experimental and doesn't update the indent (lines) or expand collapse icons of the nodes + * @param {TreePanel} tree + * @param {Object} config (optional) + */ +Ext.tree.TreeFilter = function(tree, config){ + this.tree = tree; + this.filtered = {}; + Ext.apply(this, config); +}; + +Ext.tree.TreeFilter.prototype = { + clearBlank:false, + reverse:false, + autoClear:false, + remove:false, + + /** + * Filter the data by a specific attribute. + * @param {String/RegExp} value Either string that the attribute value + * should start with or a RegExp to test against the attribute + * @param {String} attr (optional) The attribute passed in your node's attributes collection. Defaults to "text". + * @param {TreeNode} startNode (optional) The node to start the filter at. + */ + filter : function(value, attr, startNode){ + attr = attr || "text"; + var f; + if(typeof value == "string"){ + var vlen = value.length; + // auto clear empty filter + if(vlen == 0 && this.clearBlank){ + this.clear(); + return; + } + value = value.toLowerCase(); + f = function(n){ + return n.attributes[attr].substr(0, vlen).toLowerCase() == value; + }; + }else if(value.exec){ // regex? + f = function(n){ + return value.test(n.attributes[attr]); + }; + }else{ + throw 'Illegal filter type, must be string or regex'; + } + this.filterBy(f, null, startNode); + }, + + /** + * Filter by a function. The passed function will be called with each + * node in the tree (or from the startNode). If the function returns true, the node is kept + * otherwise it is filtered. If a node is filtered, its children are also filtered. + * @param {Function} fn The filter function + * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to the current Node. + */ + filterBy : function(fn, scope, startNode){ + startNode = startNode || this.tree.root; + if(this.autoClear){ + this.clear(); + } + var af = this.filtered, rv = this.reverse; + var f = function(n){ + if(n == startNode){ + return true; + } + if(af[n.id]){ + return false; + } + var m = fn.call(scope || n, n); + if(!m || rv){ + af[n.id] = n; + n.ui.hide(); + return false; + } + return true; + }; + startNode.cascade(f); + if(this.remove){ + for(var id in af){ + if(typeof id != "function"){ + var n = af[id]; + if(n && n.parentNode){ + n.parentNode.removeChild(n); + } + } + } + } + }, + + /** + * Clears the current filter. Note: with the "remove" option + * set a filter cannot be cleared. + */ + clear : function(){ + var t = this.tree; + var af = this.filtered; + for(var id in af){ + if(typeof id != "function"){ + var n = af[id]; + if(n){ + n.ui.show(); + } + } + } + this.filtered = {}; + } +}; +/** + * @class Ext.tree.TreeSorter + * Provides sorting of nodes in a {@link Ext.tree.TreePanel}. The TreeSorter automatically monitors events on the + * associated TreePanel that might affect the tree's sort order (beforechildrenrendered, append, insert and textchange). + * Example usage:
      + *
      
      +new Ext.tree.TreeSorter(myTree, {
      +    folderSort: true,
      +    dir: "desc",
      +    sortType: function(node) {
      +        // sort by a custom, typed attribute:
      +        return parseInt(node.id, 10);
      +    }
      +});
      +
      + * @constructor + * @param {TreePanel} tree + * @param {Object} config + */ +Ext.tree.TreeSorter = function(tree, config){ + /** + * @cfg {Boolean} folderSort True to sort leaf nodes under non-leaf nodes (defaults to false) + */ + /** + * @cfg {String} property The named attribute on the node to sort by (defaults to "text"). Note that this + * property is only used if no {@link #sortType} function is specified, otherwise it is ignored. + */ + /** + * @cfg {String} dir The direction to sort ("asc" or "desc," case-insensitive, defaults to "asc") + */ + /** + * @cfg {String} leafAttr The attribute used to determine leaf nodes when {@link #folderSort} = true (defaults to "leaf") + */ + /** + * @cfg {Boolean} caseSensitive true for case-sensitive sort (defaults to false) + */ + /** + * @cfg {Function} sortType A custom "casting" function used to convert node values before sorting. The function + * will be called with a single parameter (the {@link Ext.tree.TreeNode} being evaluated) and is expected to return + * the node's sort value cast to the specific data type required for sorting. This could be used, for example, when + * a node's text (or other attribute) should be sorted as a date or numeric value. See the class description for + * example usage. Note that if a sortType is specified, any {@link #property} config will be ignored. + */ + + Ext.apply(this, config); + tree.on("beforechildrenrendered", this.doSort, this); + tree.on("append", this.updateSort, this); + tree.on("insert", this.updateSort, this); + tree.on("textchange", this.updateSortParent, this); + + var dsc = this.dir && this.dir.toLowerCase() == "desc"; + var p = this.property || "text"; + var sortType = this.sortType; + var fs = this.folderSort; + var cs = this.caseSensitive === true; + var leafAttr = this.leafAttr || 'leaf'; + + this.sortFn = function(n1, n2){ + if(fs){ + if(n1.attributes[leafAttr] && !n2.attributes[leafAttr]){ + return 1; + } + if(!n1.attributes[leafAttr] && n2.attributes[leafAttr]){ + return -1; + } + } + var v1 = sortType ? sortType(n1) : (cs ? n1.attributes[p] : n1.attributes[p].toUpperCase()); + var v2 = sortType ? sortType(n2) : (cs ? n2.attributes[p] : n2.attributes[p].toUpperCase()); + if(v1 < v2){ + return dsc ? +1 : -1; + }else if(v1 > v2){ + return dsc ? -1 : +1; + }else{ + return 0; + } + }; +}; + +Ext.tree.TreeSorter.prototype = { + doSort : function(node){ + node.sort(this.sortFn); + }, + + compareNodes : function(n1, n2){ + return (n1.text.toUpperCase() > n2.text.toUpperCase() ? 1 : -1); + }, + + updateSort : function(tree, node){ + if(node.childrenRendered){ + this.doSort.defer(1, this, [node]); + } + }, + + updateSortParent : function(node){ + var p = node.parentNode; + if(p && p.childrenRendered){ + this.doSort.defer(1, this, [p]); + } + } +};/** + * @class Ext.tree.TreeDropZone + * @extends Ext.dd.DropZone + * @constructor + * @param {String/HTMLElement/Element} tree The {@link Ext.tree.TreePanel} for which to enable dropping + * @param {Object} config + */ +if(Ext.dd.DropZone){ + +Ext.tree.TreeDropZone = function(tree, config){ + /** + * @cfg {Boolean} allowParentInsert + * Allow inserting a dragged node between an expanded parent node and its first child that will become a + * sibling of the parent when dropped (defaults to false) + */ + this.allowParentInsert = config.allowParentInsert || false; + /** + * @cfg {String} allowContainerDrop + * True if drops on the tree container (outside of a specific tree node) are allowed (defaults to false) + */ + this.allowContainerDrop = config.allowContainerDrop || false; + /** + * @cfg {String} appendOnly + * True if the tree should only allow append drops (use for trees which are sorted, defaults to false) + */ + this.appendOnly = config.appendOnly || false; + + Ext.tree.TreeDropZone.superclass.constructor.call(this, tree.getTreeEl(), config); + /** + * The TreePanel for this drop zone + * @type Ext.tree.TreePanel + * @property + */ + this.tree = tree; + /** + * Arbitrary data that can be associated with this tree and will be included in the event object that gets + * passed to any nodedragover event handler (defaults to {}) + * @type Ext.tree.TreePanel + * @property + */ + this.dragOverData = {}; + // private + this.lastInsertClass = "x-tree-no-status"; +}; + +Ext.extend(Ext.tree.TreeDropZone, Ext.dd.DropZone, { + /** + * @cfg {String} ddGroup + * A named drag drop group to which this object belongs. If a group is specified, then this object will only + * interact with other drag drop objects in the same group (defaults to 'TreeDD'). + */ + ddGroup : "TreeDD", + + /** + * @cfg {String} expandDelay + * The delay in milliseconds to wait before expanding a target tree node while dragging a droppable node + * over the target (defaults to 1000) + */ + expandDelay : 1000, + + // private + expandNode : function(node){ + if(node.hasChildNodes() && !node.isExpanded()){ + node.expand(false, null, this.triggerCacheRefresh.createDelegate(this)); + } + }, + + // private + queueExpand : function(node){ + this.expandProcId = this.expandNode.defer(this.expandDelay, this, [node]); + }, + + // private + cancelExpand : function(){ + if(this.expandProcId){ + clearTimeout(this.expandProcId); + this.expandProcId = false; + } + }, + + // private + isValidDropPoint : function(n, pt, dd, e, data){ + if(!n || !data){ return false; } + var targetNode = n.node; + var dropNode = data.node; + // default drop rules + if(!(targetNode && targetNode.isTarget && pt)){ + return false; + } + if(pt == "append" && targetNode.allowChildren === false){ + return false; + } + if((pt == "above" || pt == "below") && (targetNode.parentNode && targetNode.parentNode.allowChildren === false)){ + return false; + } + if(dropNode && (targetNode == dropNode || dropNode.contains(targetNode))){ + return false; + } + // reuse the object + var overEvent = this.dragOverData; + overEvent.tree = this.tree; + overEvent.target = targetNode; + overEvent.data = data; + overEvent.point = pt; + overEvent.source = dd; + overEvent.rawEvent = e; + overEvent.dropNode = dropNode; + overEvent.cancel = false; + var result = this.tree.fireEvent("nodedragover", overEvent); + return overEvent.cancel === false && result !== false; + }, + + // private + getDropPoint : function(e, n, dd){ + var tn = n.node; + if(tn.isRoot){ + return tn.allowChildren !== false ? "append" : false; // always append for root + } + var dragEl = n.ddel; + var t = Ext.lib.Dom.getY(dragEl), b = t + dragEl.offsetHeight; + var y = Ext.lib.Event.getPageY(e); + var noAppend = tn.allowChildren === false || tn.isLeaf(); + if(this.appendOnly || tn.parentNode.allowChildren === false){ + return noAppend ? false : "append"; + } + var noBelow = false; + if(!this.allowParentInsert){ + noBelow = tn.hasChildNodes() && tn.isExpanded(); + } + var q = (b - t) / (noAppend ? 2 : 3); + if(y >= t && y < (t + q)){ + return "above"; + }else if(!noBelow && (noAppend || y >= b-q && y <= b)){ + return "below"; + }else{ + return "append"; + } + }, + + // private + onNodeEnter : function(n, dd, e, data){ + this.cancelExpand(); + }, + + onContainerOver : function(dd, e, data) { + if (this.allowContainerDrop && this.isValidDropPoint({ ddel: this.tree.getRootNode().ui.elNode, node: this.tree.getRootNode() }, "append", dd, e, data)) { + return this.dropAllowed; + } + return this.dropNotAllowed; + }, + + // private + onNodeOver : function(n, dd, e, data){ + var pt = this.getDropPoint(e, n, dd); + var node = n.node; + + // auto node expand check + if(!this.expandProcId && pt == "append" && node.hasChildNodes() && !n.node.isExpanded()){ + this.queueExpand(node); + }else if(pt != "append"){ + this.cancelExpand(); + } + + // set the insert point style on the target node + var returnCls = this.dropNotAllowed; + if(this.isValidDropPoint(n, pt, dd, e, data)){ + if(pt){ + var el = n.ddel; + var cls; + if(pt == "above"){ + returnCls = n.node.isFirst() ? "x-tree-drop-ok-above" : "x-tree-drop-ok-between"; + cls = "x-tree-drag-insert-above"; + }else if(pt == "below"){ + returnCls = n.node.isLast() ? "x-tree-drop-ok-below" : "x-tree-drop-ok-between"; + cls = "x-tree-drag-insert-below"; + }else{ + returnCls = "x-tree-drop-ok-append"; + cls = "x-tree-drag-append"; + } + if(this.lastInsertClass != cls){ + Ext.fly(el).replaceClass(this.lastInsertClass, cls); + this.lastInsertClass = cls; + } + } + } + return returnCls; + }, + + // private + onNodeOut : function(n, dd, e, data){ + this.cancelExpand(); + this.removeDropIndicators(n); + }, + + // private + onNodeDrop : function(n, dd, e, data){ + var point = this.getDropPoint(e, n, dd); + var targetNode = n.node; + targetNode.ui.startDrop(); + if(!this.isValidDropPoint(n, point, dd, e, data)){ + targetNode.ui.endDrop(); + return false; + } + // first try to find the drop node + var dropNode = data.node || (dd.getTreeNode ? dd.getTreeNode(data, targetNode, point, e) : null); + return this.processDrop(targetNode, data, point, dd, e, dropNode); + }, + + onContainerDrop : function(dd, e, data){ + if (this.allowContainerDrop && this.isValidDropPoint({ ddel: this.tree.getRootNode().ui.elNode, node: this.tree.getRootNode() }, "append", dd, e, data)) { + var targetNode = this.tree.getRootNode(); + targetNode.ui.startDrop(); + var dropNode = data.node || (dd.getTreeNode ? dd.getTreeNode(data, targetNode, 'append', e) : null); + return this.processDrop(targetNode, data, 'append', dd, e, dropNode); + } + return false; + }, + + // private + processDrop: function(target, data, point, dd, e, dropNode){ + var dropEvent = { + tree : this.tree, + target: target, + data: data, + point: point, + source: dd, + rawEvent: e, + dropNode: dropNode, + cancel: !dropNode, + dropStatus: false + }; + var retval = this.tree.fireEvent("beforenodedrop", dropEvent); + if(retval === false || dropEvent.cancel === true || !dropEvent.dropNode){ + target.ui.endDrop(); + return dropEvent.dropStatus; + } + + target = dropEvent.target; + if(point == 'append' && !target.isExpanded()){ + target.expand(false, null, function(){ + this.completeDrop(dropEvent); + }.createDelegate(this)); + }else{ + this.completeDrop(dropEvent); + } + return true; + }, + + // private + completeDrop : function(de){ + var ns = de.dropNode, p = de.point, t = de.target; + if(!Ext.isArray(ns)){ + ns = [ns]; + } + var n; + for(var i = 0, len = ns.length; i < len; i++){ + n = ns[i]; + if(p == "above"){ + t.parentNode.insertBefore(n, t); + }else if(p == "below"){ + t.parentNode.insertBefore(n, t.nextSibling); + }else{ + t.appendChild(n); + } + } + n.ui.focus(); + if(Ext.enableFx && this.tree.hlDrop){ + n.ui.highlight(); + } + t.ui.endDrop(); + this.tree.fireEvent("nodedrop", de); + }, + + // private + afterNodeMoved : function(dd, data, e, targetNode, dropNode){ + if(Ext.enableFx && this.tree.hlDrop){ + dropNode.ui.focus(); + dropNode.ui.highlight(); + } + this.tree.fireEvent("nodedrop", this.tree, targetNode, data, dd, e); + }, + + // private + getTree : function(){ + return this.tree; + }, + + // private + removeDropIndicators : function(n){ + if(n && n.ddel){ + var el = n.ddel; + Ext.fly(el).removeClass([ + "x-tree-drag-insert-above", + "x-tree-drag-insert-below", + "x-tree-drag-append"]); + this.lastInsertClass = "_noclass"; + } + }, + + // private + beforeDragDrop : function(target, e, id){ + this.cancelExpand(); + return true; + }, + + // private + afterRepair : function(data){ + if(data && Ext.enableFx){ + data.node.ui.highlight(); + } + this.hideProxy(); + } +}); + +}/** + * @class Ext.tree.TreeDragZone + * @extends Ext.dd.DragZone + * @constructor + * @param {String/HTMLElement/Element} tree The {@link Ext.tree.TreePanel} for which to enable dragging + * @param {Object} config + */ +if(Ext.dd.DragZone){ +Ext.tree.TreeDragZone = function(tree, config){ + Ext.tree.TreeDragZone.superclass.constructor.call(this, tree.innerCt, config); + /** + * The TreePanel for this drag zone + * @type Ext.tree.TreePanel + * @property + */ + this.tree = tree; +}; + +Ext.extend(Ext.tree.TreeDragZone, Ext.dd.DragZone, { + /** + * @cfg {String} ddGroup + * A named drag drop group to which this object belongs. If a group is specified, then this object will only + * interact with other drag drop objects in the same group (defaults to 'TreeDD'). + */ + ddGroup : "TreeDD", + + // private + onBeforeDrag : function(data, e){ + var n = data.node; + return n && n.draggable && !n.disabled; + }, + + // private + onInitDrag : function(e){ + var data = this.dragData; + this.tree.getSelectionModel().select(data.node); + this.tree.eventModel.disable(); + this.proxy.update(""); + data.node.ui.appendDDGhost(this.proxy.ghost.dom); + this.tree.fireEvent("startdrag", this.tree, data.node, e); + }, + + // private + getRepairXY : function(e, data){ + return data.node.ui.getDDRepairXY(); + }, + + // private + onEndDrag : function(data, e){ + this.tree.eventModel.enable.defer(100, this.tree.eventModel); + this.tree.fireEvent("enddrag", this.tree, data.node, e); + }, + + // private + onValidDrop : function(dd, e, id){ + this.tree.fireEvent("dragdrop", this.tree, this.dragData.node, dd, e); + this.hideProxy(); + }, + + // private + beforeInvalidDrop : function(e, id){ + // this scrolls the original position back into view + var sm = this.tree.getSelectionModel(); + sm.clearSelections(); + sm.select(this.dragData.node); + }, + + // private + afterRepair : function(){ + if (Ext.enableFx && this.tree.hlDrop) { + Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || "c3daf9"); + } + this.dragging = false; + } +}); +}/** + * @class Ext.tree.TreeEditor + * @extends Ext.Editor + * Provides editor functionality for inline tree node editing. Any valid {@link Ext.form.Field} subclass can be used + * as the editor field. + * @constructor + * @param {TreePanel} tree + * @param {Object} fieldConfig (optional) Either a prebuilt {@link Ext.form.Field} instance or a Field config object + * that will be applied to the default field instance (defaults to a {@link Ext.form.TextField}). + * @param {Object} config (optional) A TreeEditor config object + */ +Ext.tree.TreeEditor = function(tree, fc, config){ + fc = fc || {}; + var field = fc.events ? fc : new Ext.form.TextField(fc); + + Ext.tree.TreeEditor.superclass.constructor.call(this, field, config); + + this.tree = tree; + + if(!tree.rendered){ + tree.on('render', this.initEditor, this); + }else{ + this.initEditor(tree); + } +}; + +Ext.extend(Ext.tree.TreeEditor, Ext.Editor, { + /** + * @cfg {String} alignment + * The position to align to (see {@link Ext.Element#alignTo} for more details, defaults to "l-l"). + */ + alignment: "l-l", + // inherit + autoSize: false, + /** + * @cfg {Boolean} hideEl + * True to hide the bound element while the editor is displayed (defaults to false) + */ + hideEl : false, + /** + * @cfg {String} cls + * CSS class to apply to the editor (defaults to "x-small-editor x-tree-editor") + */ + cls: "x-small-editor x-tree-editor", + /** + * @cfg {Boolean} shim + * True to shim the editor if selects/iframes could be displayed beneath it (defaults to false) + */ + shim:false, + // inherit + shadow:"frame", + /** + * @cfg {Number} maxWidth + * The maximum width in pixels of the editor field (defaults to 250). Note that if the maxWidth would exceed + * the containing tree element's size, it will be automatically limited for you to the container width, taking + * scroll and client offsets into account prior to each edit. + */ + maxWidth: 250, + /** + * @cfg {Number} editDelay The number of milliseconds between clicks to register a double-click that will trigger + * editing on the current node (defaults to 350). If two clicks occur on the same node within this time span, + * the editor for the node will display, otherwise it will be processed as a regular click. + */ + editDelay : 350, + + initEditor : function(tree){ + tree.on({ + scope : this, + beforeclick: this.beforeNodeClick, + dblclick : this.onNodeDblClick + }); + + this.on({ + scope : this, + complete : this.updateNode, + beforestartedit: this.fitToTree, + specialkey : this.onSpecialKey + }); + + this.on('startedit', this.bindScroll, this, {delay:10}); + }, + + // private + fitToTree : function(ed, el){ + var td = this.tree.getTreeEl().dom, nd = el.dom; + if(td.scrollLeft > nd.offsetLeft){ // ensure the node left point is visible + td.scrollLeft = nd.offsetLeft; + } + var w = Math.min( + this.maxWidth, + (td.clientWidth > 20 ? td.clientWidth : td.offsetWidth) - Math.max(0, nd.offsetLeft-td.scrollLeft) - /*cushion*/5); + this.setSize(w, ''); + }, + + /** + * Edit the text of the passed {@link Ext.tree.TreeNode TreeNode}. + * @param node {Ext.tree.TreeNode} The TreeNode to edit. The TreeNode must be {@link Ext.tree.TreeNode#editable editable}. + */ + triggerEdit : function(node, defer){ + this.completeEdit(); + if(node.attributes.editable !== false){ + /** + * The {@link Ext.tree.TreeNode TreeNode} this editor is bound to. Read-only. + * @type Ext.tree.TreeNode + * @property editNode + */ + this.editNode = node; + if(this.tree.autoScroll){ + Ext.fly(node.ui.getEl()).scrollIntoView(this.tree.body); + } + var value = node.text || ''; + if (!Ext.isGecko && Ext.isEmpty(node.text)){ + node.setText(' '); + } + this.autoEditTimer = this.startEdit.defer(this.editDelay, this, [node.ui.textNode, value]); + return false; + } + }, + + // private + bindScroll : function(){ + this.tree.getTreeEl().on('scroll', this.cancelEdit, this); + }, + + // private + beforeNodeClick : function(node, e){ + clearTimeout(this.autoEditTimer); + if(this.tree.getSelectionModel().isSelected(node)){ + e.stopEvent(); + return this.triggerEdit(node); + } + }, + + onNodeDblClick : function(node, e){ + clearTimeout(this.autoEditTimer); + }, + + // private + updateNode : function(ed, value){ + this.tree.getTreeEl().un('scroll', this.cancelEdit, this); + this.editNode.setText(value); + }, + + // private + onHide : function(){ + Ext.tree.TreeEditor.superclass.onHide.call(this); + if(this.editNode){ + this.editNode.ui.focus.defer(50, this.editNode.ui); + } + }, + + // private + onSpecialKey : function(field, e){ + var k = e.getKey(); + if(k == e.ESC){ + e.stopEvent(); + this.cancelEdit(); + }else if(k == e.ENTER && !e.hasModifier()){ + e.stopEvent(); + this.completeEdit(); + } + }, + + onDestroy : function(){ + clearTimeout(this.autoEditTimer); + Ext.tree.TreeEditor.superclass.onDestroy.call(this); + var tree = this.tree; + tree.un('beforeclick', this.beforeNodeClick, this); + tree.un('dblclick', this.onNodeDblClick, this); + } +});/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.form.Field + * @extends Ext.BoxComponent + * Base class for form fields that provides default event handling, sizing, value handling and other functionality. + * @constructor + * Creates a new Field + * @param {Object} config Configuration options + * @xtype field + */ +Ext.form.Field = Ext.extend(Ext.BoxComponent, { + /** + *

      The label Element associated with this Field. Only available after this Field has been rendered by a + * {@link form Ext.layout.FormLayout} layout manager.

      + * @type Ext.Element + * @property label + */ + /** + * @cfg {String} inputType The type attribute for input fields -- e.g. radio, text, password, file (defaults + * to 'text'). The types 'file' and 'password' must be used to render those field types currently -- there are + * no separate Ext components for those. Note that if you use inputType:'file', {@link #emptyText} + * is not supported and should be avoided. + */ + /** + * @cfg {Number} tabIndex The tabIndex for this field. Note this only applies to fields that are rendered, + * not those which are built via applyTo (defaults to undefined). + */ + /** + * @cfg {Mixed} value A value to initialize this field with (defaults to undefined). + */ + /** + * @cfg {String} name The field's HTML name attribute (defaults to ''). + * Note: this property must be set if this field is to be automatically included with + * {@link Ext.form.BasicForm#submit form submit()}. + */ + /** + * @cfg {String} cls A custom CSS class to apply to the field's underlying element (defaults to ''). + */ + + /** + * @cfg {String} invalidClass The CSS class to use when marking a field invalid (defaults to 'x-form-invalid') + */ + invalidClass : 'x-form-invalid', + /** + * @cfg {String} invalidText The error text to use when marking a field invalid and no message is provided + * (defaults to 'The value in this field is invalid') + */ + invalidText : 'The value in this field is invalid', + /** + * @cfg {String} focusClass The CSS class to use when the field receives focus (defaults to 'x-form-focus') + */ + focusClass : 'x-form-focus', + /** + * @cfg {Boolean} preventMark + * true to disable {@link #markInvalid marking the field invalid}. + * Defaults to false. + */ + /** + * @cfg {String/Boolean} validationEvent The event that should initiate field validation. Set to false to disable + automatic validation (defaults to 'keyup'). + */ + validationEvent : 'keyup', + /** + * @cfg {Boolean} validateOnBlur Whether the field should validate when it loses focus (defaults to true). + */ + validateOnBlur : true, + /** + * @cfg {Number} validationDelay The length of time in milliseconds after user input begins until validation + * is initiated (defaults to 250) + */ + validationDelay : 250, + /** + * @cfg {String/Object} autoCreate

      A {@link Ext.DomHelper DomHelper} element spec, or true for a default + * element spec. Used to create the {@link Ext.Component#getEl Element} which will encapsulate this Component. + * See {@link Ext.Component#autoEl autoEl} for details. Defaults to:

      + *
      {tag: 'input', type: 'text', size: '20', autocomplete: 'off'}
      + */ + defaultAutoCreate : {tag: 'input', type: 'text', size: '20', autocomplete: 'off'}, + /** + * @cfg {String} fieldClass The default CSS class for the field (defaults to 'x-form-field') + */ + fieldClass : 'x-form-field', + /** + * @cfg {String} msgTarget

      The location where the message text set through {@link #markInvalid} should display. + * Must be one of the following values:

      + *
        + *
      • qtip Display a quick tip containing the message when the user hovers over the field. This is the default. + *
        {@link Ext.QuickTips#init Ext.QuickTips.init} must have been called for this setting to work. + *
      • title Display the message in a default browser title attribute popup.
      • + *
      • under Add a block div beneath the field containing the error message.
      • + *
      • side Add an error icon to the right of the field, displaying the message in a popup on hover.
      • + *
      • [element id] Add the error message directly to the innerHTML of the specified element.
      • + *
      + */ + msgTarget : 'qtip', + /** + * @cfg {String} msgFx Experimental The effect used when displaying a validation message under the field + * (defaults to 'normal'). + */ + msgFx : 'normal', + /** + * @cfg {Boolean} readOnly true to mark the field as readOnly in HTML + * (defaults to false). + *

      Note: this only sets the element's readOnly DOM attribute. + * Setting readOnly=true, for example, will not disable triggering a + * ComboBox or DateField; it gives you the option of forcing the user to choose + * via the trigger without typing in the text box. To hide the trigger use + * {@link Ext.form.TriggerField#hideTrigger hideTrigger}.

      + */ + readOnly : false, + /** + * @cfg {Boolean} disabled True to disable the field (defaults to false). + *

      Be aware that conformant with the HTML specification, + * disabled Fields will not be {@link Ext.form.BasicForm#submit submitted}.

      + */ + disabled : false, + /** + * @cfg {Boolean} submitValue False to clear the name attribute on the field so that it is not submitted during a form post. + * Defaults to true. + */ + submitValue: true, + + // private + isFormField : true, + + // private + msgDisplay: '', + + // private + hasFocus : false, + + // private + initComponent : function(){ + Ext.form.Field.superclass.initComponent.call(this); + this.addEvents( + /** + * @event focus + * Fires when this field receives input focus. + * @param {Ext.form.Field} this + */ + 'focus', + /** + * @event blur + * Fires when this field loses input focus. + * @param {Ext.form.Field} this + */ + 'blur', + /** + * @event specialkey + * Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. + * To handle other keys see {@link Ext.Panel#keys} or {@link Ext.KeyMap}. + * You can check {@link Ext.EventObject#getKey} to determine which key was pressed. + * For example:
      
      +var form = new Ext.form.FormPanel({
      +    ...
      +    items: [{
      +            fieldLabel: 'Field 1',
      +            name: 'field1',
      +            allowBlank: false
      +        },{
      +            fieldLabel: 'Field 2',
      +            name: 'field2',
      +            listeners: {
      +                specialkey: function(field, e){
      +                    // e.HOME, e.END, e.PAGE_UP, e.PAGE_DOWN,
      +                    // e.TAB, e.ESC, arrow keys: e.LEFT, e.RIGHT, e.UP, e.DOWN
      +                    if (e.{@link Ext.EventObject#getKey getKey()} == e.ENTER) {
      +                        var form = field.ownerCt.getForm();
      +                        form.submit();
      +                    }
      +                }
      +            }
      +        }
      +    ],
      +    ...
      +});
      +             * 
      + * @param {Ext.form.Field} this + * @param {Ext.EventObject} e The event object + */ + 'specialkey', + /** + * @event change + * Fires just before the field blurs if the field value has changed. + * @param {Ext.form.Field} this + * @param {Mixed} newValue The new value + * @param {Mixed} oldValue The original value + */ + 'change', + /** + * @event invalid + * Fires after the field has been marked as invalid. + * @param {Ext.form.Field} this + * @param {String} msg The validation message + */ + 'invalid', + /** + * @event valid + * Fires after the field has been validated with no errors. + * @param {Ext.form.Field} this + */ + 'valid' + ); + }, + + /** + * Returns the {@link Ext.form.Field#name name} or {@link Ext.form.ComboBox#hiddenName hiddenName} + * attribute of the field if available. + * @return {String} name The field {@link Ext.form.Field#name name} or {@link Ext.form.ComboBox#hiddenName hiddenName} + */ + getName : function(){ + return this.rendered && this.el.dom.name ? this.el.dom.name : this.name || this.id || ''; + }, + + // private + onRender : function(ct, position){ + if(!this.el){ + var cfg = this.getAutoCreate(); + + if(!cfg.name){ + cfg.name = this.name || this.id; + } + if(this.inputType){ + cfg.type = this.inputType; + } + this.autoEl = cfg; + } + Ext.form.Field.superclass.onRender.call(this, ct, position); + if(this.submitValue === false){ + this.el.dom.removeAttribute('name'); + } + var type = this.el.dom.type; + if(type){ + if(type == 'password'){ + type = 'text'; + } + this.el.addClass('x-form-'+type); + } + if(this.readOnly){ + this.setReadOnly(true); + } + if(this.tabIndex !== undefined){ + this.el.dom.setAttribute('tabIndex', this.tabIndex); + } + + this.el.addClass([this.fieldClass, this.cls]); + }, + + // private + getItemCt : function(){ + return this.itemCt; + }, + + // private + initValue : function(){ + if(this.value !== undefined){ + this.setValue(this.value); + }else if(!Ext.isEmpty(this.el.dom.value) && this.el.dom.value != this.emptyText){ + this.setValue(this.el.dom.value); + } + /** + * The original value of the field as configured in the {@link #value} configuration, or + * as loaded by the last form load operation if the form's {@link Ext.form.BasicForm#trackResetOnLoad trackResetOnLoad} + * setting is true. + * @type mixed + * @property originalValue + */ + this.originalValue = this.getValue(); + }, + + /** + *

      Returns true if the value of this Field has been changed from its original value. + * Will return false if the field is disabled or has not been rendered yet.

      + *

      Note that if the owning {@link Ext.form.BasicForm form} was configured with + * {@link Ext.form.BasicForm}.{@link Ext.form.BasicForm#trackResetOnLoad trackResetOnLoad} + * then the original value is updated when the values are loaded by + * {@link Ext.form.BasicForm}.{@link Ext.form.BasicForm#setValues setValues}.

      + * @return {Boolean} True if this field has been changed from its original value (and + * is not disabled), false otherwise. + */ + isDirty : function() { + if(this.disabled || !this.rendered) { + return false; + } + return String(this.getValue()) !== String(this.originalValue); + }, + + /** + * Sets the read only state of this field. + * @param {Boolean} readOnly Whether the field should be read only. + */ + setReadOnly : function(readOnly){ + if(this.rendered){ + this.el.dom.readOnly = readOnly; + } + this.readOnly = readOnly; + }, + + // private + afterRender : function(){ + Ext.form.Field.superclass.afterRender.call(this); + this.initEvents(); + this.initValue(); + }, + + // private + fireKey : function(e){ + if(e.isSpecialKey()){ + this.fireEvent('specialkey', this, e); + } + }, + + /** + * Resets the current field value to the originally loaded value and clears any validation messages. + * See {@link Ext.form.BasicForm}.{@link Ext.form.BasicForm#trackResetOnLoad trackResetOnLoad} + */ + reset : function(){ + this.setValue(this.originalValue); + this.clearInvalid(); + }, + + // private + initEvents : function(){ + this.mon(this.el, Ext.EventManager.useKeydown ? 'keydown' : 'keypress', this.fireKey, this); + this.mon(this.el, 'focus', this.onFocus, this); + + // standardise buffer across all browsers + OS-es for consistent event order. + // (the 10ms buffer for Editors fixes a weird FF/Win editor issue when changing OS window focus) + this.mon(this.el, 'blur', this.onBlur, this, this.inEditor ? {buffer:10} : null); + }, + + // private + preFocus: Ext.emptyFn, + + // private + onFocus : function(){ + this.preFocus(); + if(this.focusClass){ + this.el.addClass(this.focusClass); + } + if(!this.hasFocus){ + this.hasFocus = true; + /** + *

      The value that the Field had at the time it was last focused. This is the value that is passed + * to the {@link #change} event which is fired if the value has been changed when the Field is blurred.

      + *

      This will be undefined until the Field has been visited. Compare {@link #originalValue}.

      + * @type mixed + * @property startValue + */ + this.startValue = this.getValue(); + this.fireEvent('focus', this); + } + }, + + // private + beforeBlur : Ext.emptyFn, + + // private + onBlur : function(){ + this.beforeBlur(); + if(this.focusClass){ + this.el.removeClass(this.focusClass); + } + this.hasFocus = false; + if(this.validationEvent !== false && (this.validateOnBlur || this.validationEvent == 'blur')){ + this.validate(); + } + var v = this.getValue(); + if(String(v) !== String(this.startValue)){ + this.fireEvent('change', this, v, this.startValue); + } + this.fireEvent('blur', this); + this.postBlur(); + }, + + // private + postBlur : Ext.emptyFn, + + /** + * Returns whether or not the field value is currently valid by + * {@link #validateValue validating} the {@link #processValue processed value} + * of the field. Note: {@link #disabled} fields are ignored. + * @param {Boolean} preventMark True to disable marking the field invalid + * @return {Boolean} True if the value is valid, else false + */ + isValid : function(preventMark){ + if(this.disabled){ + return true; + } + var restore = this.preventMark; + this.preventMark = preventMark === true; + var v = this.validateValue(this.processValue(this.getRawValue())); + this.preventMark = restore; + return v; + }, + + /** + * Validates the field value + * @return {Boolean} True if the value is valid, else false + */ + validate : function(){ + if(this.disabled || this.validateValue(this.processValue(this.getRawValue()))){ + this.clearInvalid(); + return true; + } + return false; + }, + + /** + * This method should only be overridden if necessary to prepare raw values + * for validation (see {@link #validate} and {@link #isValid}). This method + * is expected to return the processed value for the field which will + * be used for validation (see validateValue method). + * @param {Mixed} value + */ + processValue : function(value){ + return value; + }, + + /** + * Uses getErrors to build an array of validation errors. If any errors are found, markInvalid is called + * with the first and false is returned, otherwise true is returned. Previously, subclasses were invited + * to provide an implementation of this to process validations - from 3.2 onwards getErrors should be + * overridden instead. + * @param {Mixed} The current value of the field + * @return {Boolean} True if all validations passed, false if one or more failed + */ + validateValue : function(value) { + //currently, we only show 1 error at a time for a field, so just use the first one + var error = this.getErrors(value)[0]; + + if (error == undefined) { + return true; + } else { + this.markInvalid(error); + return false; + } + }, + + /** + * Runs this field's validators and returns an array of error messages for any validation failures. + * This is called internally during validation and would not usually need to be used manually. + * Each subclass should override or augment the return value to provide their own errors + * @return {Array} All error messages for this field + */ + getErrors: function() { + return []; + }, + + /** + * Gets the active error message for this field. + * @return {String} Returns the active error message on the field, if there is no error, an empty string is returned. + */ + getActiveError : function(){ + return this.activeError || ''; + }, + + /** + *

      Display an error message associated with this field, using {@link #msgTarget} to determine how to + * display the message and applying {@link #invalidClass} to the field's UI element.

      + *

      Note: this method does not cause the Field's {@link #validate} method to return false + * if the value does pass validation. So simply marking a Field as invalid will not prevent + * submission of forms submitted with the {@link Ext.form.Action.Submit#clientValidation} option set.

      + * {@link #isValid invalid}. + * @param {String} msg (optional) The validation message (defaults to {@link #invalidText}) + */ + markInvalid : function(msg){ + //don't set the error icon if we're not rendered or marking is prevented + if (this.rendered && !this.preventMark) { + msg = msg || this.invalidText; + + var mt = this.getMessageHandler(); + if(mt){ + mt.mark(this, msg); + }else if(this.msgTarget){ + this.el.addClass(this.invalidClass); + var t = Ext.getDom(this.msgTarget); + if(t){ + t.innerHTML = msg; + t.style.display = this.msgDisplay; + } + } + } + + this.setActiveError(msg); + }, + + /** + * Clear any invalid styles/messages for this field + */ + clearInvalid : function(){ + //don't remove the error icon if we're not rendered or marking is prevented + if (this.rendered && !this.preventMark) { + this.el.removeClass(this.invalidClass); + var mt = this.getMessageHandler(); + if(mt){ + mt.clear(this); + }else if(this.msgTarget){ + this.el.removeClass(this.invalidClass); + var t = Ext.getDom(this.msgTarget); + if(t){ + t.innerHTML = ''; + t.style.display = 'none'; + } + } + } + + this.unsetActiveError(); + }, + + /** + * Sets the current activeError to the given string. Fires the 'invalid' event. + * This does not set up the error icon, only sets the message and fires the event. To show the error icon, + * use markInvalid instead, which calls this method internally + * @param {String} msg The error message + * @param {Boolean} suppressEvent True to suppress the 'invalid' event from being fired + */ + setActiveError: function(msg, suppressEvent) { + this.activeError = msg; + if (suppressEvent !== true) this.fireEvent('invalid', this, msg); + }, + + /** + * Clears the activeError and fires the 'valid' event. This is called internally by clearInvalid and would not + * usually need to be called manually + * @param {Boolean} suppressEvent True to suppress the 'invalid' event from being fired + */ + unsetActiveError: function(suppressEvent) { + delete this.activeError; + if (suppressEvent !== true) this.fireEvent('valid', this); + }, + + // private + getMessageHandler : function(){ + return Ext.form.MessageTargets[this.msgTarget]; + }, + + // private + getErrorCt : function(){ + return this.el.findParent('.x-form-element', 5, true) || // use form element wrap if available + this.el.findParent('.x-form-field-wrap', 5, true); // else direct field wrap + }, + + // Alignment for 'under' target + alignErrorEl : function(){ + this.errorEl.setWidth(this.getErrorCt().getWidth(true) - 20); + }, + + // Alignment for 'side' target + alignErrorIcon : function(){ + this.errorIcon.alignTo(this.el, 'tl-tr', [2, 0]); + }, + + /** + * Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}. + * @return {Mixed} value The field value + */ + getRawValue : function(){ + var v = this.rendered ? this.el.getValue() : Ext.value(this.value, ''); + if(v === this.emptyText){ + v = ''; + } + return v; + }, + + /** + * Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}. + * @return {Mixed} value The field value + */ + getValue : function(){ + if(!this.rendered) { + return this.value; + } + var v = this.el.getValue(); + if(v === this.emptyText || v === undefined){ + v = ''; + } + return v; + }, + + /** + * Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}. + * @param {Mixed} value The value to set + * @return {Mixed} value The field value that is set + */ + setRawValue : function(v){ + return this.rendered ? (this.el.dom.value = (Ext.isEmpty(v) ? '' : v)) : ''; + }, + + /** + * Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}. + * @param {Mixed} value The value to set + * @return {Ext.form.Field} this + */ + setValue : function(v){ + this.value = v; + if(this.rendered){ + this.el.dom.value = (Ext.isEmpty(v) ? '' : v); + this.validate(); + } + return this; + }, + + // private, does not work for all fields + append : function(v){ + this.setValue([this.getValue(), v].join('')); + } + + /** + * @cfg {Boolean} autoWidth @hide + */ + /** + * @cfg {Boolean} autoHeight @hide + */ + + /** + * @cfg {String} autoEl @hide + */ +}); + + +Ext.form.MessageTargets = { + 'qtip' : { + mark: function(field, msg){ + field.el.addClass(field.invalidClass); + field.el.dom.qtip = msg; + field.el.dom.qclass = 'x-form-invalid-tip'; + if(Ext.QuickTips){ // fix for floating editors interacting with DND + Ext.QuickTips.enable(); + } + }, + clear: function(field){ + field.el.removeClass(field.invalidClass); + field.el.dom.qtip = ''; + } + }, + 'title' : { + mark: function(field, msg){ + field.el.addClass(field.invalidClass); + field.el.dom.title = msg; + }, + clear: function(field){ + field.el.dom.title = ''; + } + }, + 'under' : { + mark: function(field, msg){ + field.el.addClass(field.invalidClass); + if(!field.errorEl){ + var elp = field.getErrorCt(); + if(!elp){ // field has no container el + field.el.dom.title = msg; + return; + } + field.errorEl = elp.createChild({cls:'x-form-invalid-msg'}); + field.on('resize', field.alignErrorEl, field); + field.on('destroy', function(){ + Ext.destroy(this.errorEl); + }, field); + } + field.alignErrorEl(); + field.errorEl.update(msg); + Ext.form.Field.msgFx[field.msgFx].show(field.errorEl, field); + }, + clear: function(field){ + field.el.removeClass(field.invalidClass); + if(field.errorEl){ + Ext.form.Field.msgFx[field.msgFx].hide(field.errorEl, field); + }else{ + field.el.dom.title = ''; + } + } + }, + 'side' : { + mark: function(field, msg){ + field.el.addClass(field.invalidClass); + if(!field.errorIcon){ + var elp = field.getErrorCt(); + // field has no container el + if(!elp){ + field.el.dom.title = msg; + return; + } + field.errorIcon = elp.createChild({cls:'x-form-invalid-icon'}); + if (field.ownerCt) { + field.ownerCt.on('afterlayout', field.alignErrorIcon, field); + field.ownerCt.on('expand', field.alignErrorIcon, field); + } + field.on('resize', field.alignErrorIcon, field); + field.on('destroy', function(){ + Ext.destroy(this.errorIcon); + }, field); + } + field.alignErrorIcon(); + field.errorIcon.dom.qtip = msg; + field.errorIcon.dom.qclass = 'x-form-invalid-tip'; + field.errorIcon.show(); + }, + clear: function(field){ + field.el.removeClass(field.invalidClass); + if(field.errorIcon){ + field.errorIcon.dom.qtip = ''; + field.errorIcon.hide(); + }else{ + field.el.dom.title = ''; + } + } + } +}; + +// anything other than normal should be considered experimental +Ext.form.Field.msgFx = { + normal : { + show: function(msgEl, f){ + msgEl.setDisplayed('block'); + }, + + hide : function(msgEl, f){ + msgEl.setDisplayed(false).update(''); + } + }, + + slide : { + show: function(msgEl, f){ + msgEl.slideIn('t', {stopFx:true}); + }, + + hide : function(msgEl, f){ + msgEl.slideOut('t', {stopFx:true,useDisplay:true}); + } + }, + + slideRight : { + show: function(msgEl, f){ + msgEl.fixDisplay(); + msgEl.alignTo(f.el, 'tl-tr'); + msgEl.slideIn('l', {stopFx:true}); + }, + + hide : function(msgEl, f){ + msgEl.slideOut('l', {stopFx:true,useDisplay:true}); + } + } +}; +Ext.reg('field', Ext.form.Field); +/** + * @class Ext.form.TextField + * @extends Ext.form.Field + *

      Basic text field. Can be used as a direct replacement for traditional text inputs, + * or as the base class for more sophisticated input controls (like {@link Ext.form.TextArea} + * and {@link Ext.form.ComboBox}).

      + *

      Validation

      + *

      The validation procedure is described in the documentation for {@link #validateValue}.

      + *

      Alter Validation Behavior

      + *

      Validation behavior for each field can be configured:

      + *
        + *
      • {@link Ext.form.TextField#invalidText invalidText} : the default validation message to + * show if any validation step above does not provide a message when invalid
      • + *
      • {@link Ext.form.TextField#maskRe maskRe} : filter out keystrokes before any validation occurs
      • + *
      • {@link Ext.form.TextField#stripCharsRe stripCharsRe} : filter characters after being typed in, + * but before being validated
      • + *
      • {@link Ext.form.Field#invalidClass invalidClass} : alternate style when invalid
      • + *
      • {@link Ext.form.Field#validateOnBlur validateOnBlur}, + * {@link Ext.form.Field#validationDelay validationDelay}, and + * {@link Ext.form.Field#validationEvent validationEvent} : modify how/when validation is triggered
      • + *
      + * + * @constructor Creates a new TextField + * @param {Object} config Configuration options + * + * @xtype textfield + */ +Ext.form.TextField = Ext.extend(Ext.form.Field, { + /** + * @cfg {String} vtypeText A custom error message to display in place of the default message provided + * for the {@link #vtype} currently set for this field (defaults to ''). Note: + * only applies if {@link #vtype} is set, else ignored. + */ + /** + * @cfg {RegExp} stripCharsRe A JavaScript RegExp object used to strip unwanted content from the value + * before validation (defaults to null). + */ + /** + * @cfg {Boolean} grow true if this field should automatically grow and shrink to its content + * (defaults to false) + */ + grow : false, + /** + * @cfg {Number} growMin The minimum width to allow when {@link #grow} = true (defaults + * to 30) + */ + growMin : 30, + /** + * @cfg {Number} growMax The maximum width to allow when {@link #grow} = true (defaults + * to 800) + */ + growMax : 800, + /** + * @cfg {String} vtype A validation type name as defined in {@link Ext.form.VTypes} (defaults to null) + */ + vtype : null, + /** + * @cfg {RegExp} maskRe An input mask regular expression that will be used to filter keystrokes that do + * not match (defaults to null) + */ + maskRe : null, + /** + * @cfg {Boolean} disableKeyFilter Specify true to disable input keystroke filtering (defaults + * to false) + */ + disableKeyFilter : false, + /** + * @cfg {Boolean} allowBlank Specify false to validate that the value's length is > 0 (defaults to + * true) + */ + allowBlank : true, + /** + * @cfg {Number} minLength Minimum input field length required (defaults to 0) + */ + minLength : 0, + /** + * @cfg {Number} maxLength Maximum input field length allowed by validation (defaults to Number.MAX_VALUE). + * This behavior is intended to provide instant feedback to the user by improving usability to allow pasting + * and editing or overtyping and back tracking. To restrict the maximum number of characters that can be + * entered into the field use {@link Ext.form.Field#autoCreate autoCreate} to add + * any attributes you want to a field, for example:
      
      +var myField = new Ext.form.NumberField({
      +    id: 'mobile',
      +    anchor:'90%',
      +    fieldLabel: 'Mobile',
      +    maxLength: 16, // for validation
      +    autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '10'}
      +});
      +
      + */ + maxLength : Number.MAX_VALUE, + /** + * @cfg {String} minLengthText Error text to display if the {@link #minLength minimum length} + * validation fails (defaults to 'The minimum length for this field is {minLength}') + */ + minLengthText : 'The minimum length for this field is {0}', + /** + * @cfg {String} maxLengthText Error text to display if the {@link #maxLength maximum length} + * validation fails (defaults to 'The maximum length for this field is {maxLength}') + */ + maxLengthText : 'The maximum length for this field is {0}', + /** + * @cfg {Boolean} selectOnFocus true to automatically select any existing field text when the field + * receives input focus (defaults to false) + */ + selectOnFocus : false, + /** + * @cfg {String} blankText The error text to display if the {@link #allowBlank} validation + * fails (defaults to 'This field is required') + */ + blankText : 'This field is required', + /** + * @cfg {Function} validator + *

      A custom validation function to be called during field validation ({@link #validateValue}) + * (defaults to null). If specified, this function will be called first, allowing the + * developer to override the default validation process.

      + *

      This function will be passed the following Parameters:

      + *
        + *
      • value: Mixed + *
        The current field value
      • + *
      + *

      This function is to Return:

      + *
        + *
      • true: Boolean + *
        true if the value is valid
      • + *
      • msg: String + *
        An error message if the value is invalid
      • + *
      + */ + validator : null, + /** + * @cfg {RegExp} regex A JavaScript RegExp object to be tested against the field value during validation + * (defaults to null). If the test fails, the field will be marked invalid using + * {@link #regexText}. + */ + regex : null, + /** + * @cfg {String} regexText The error text to display if {@link #regex} is used and the + * test fails during validation (defaults to '') + */ + regexText : '', + /** + * @cfg {String} emptyText The default text to place into an empty field (defaults to null). + * Note: that this value will be submitted to the server if this field is enabled and configured + * with a {@link #name}. + */ + emptyText : null, + /** + * @cfg {String} emptyClass The CSS class to apply to an empty field to style the {@link #emptyText} + * (defaults to 'x-form-empty-field'). This class is automatically added and removed as needed + * depending on the current field value. + */ + emptyClass : 'x-form-empty-field', + + /** + * @cfg {Boolean} enableKeyEvents true to enable the proxying of key events for the HTML input + * field (defaults to false) + */ + + initComponent : function(){ + Ext.form.TextField.superclass.initComponent.call(this); + this.addEvents( + /** + * @event autosize + * Fires when the {@link #autoSize} function is triggered. The field may or + * may not have actually changed size according to the default logic, but this event provides + * a hook for the developer to apply additional logic at runtime to resize the field if needed. + * @param {Ext.form.Field} this This text field + * @param {Number} width The new field width + */ + 'autosize', + + /** + * @event keydown + * Keydown input field event. This event only fires if {@link #enableKeyEvents} + * is set to true. + * @param {Ext.form.TextField} this This text field + * @param {Ext.EventObject} e + */ + 'keydown', + /** + * @event keyup + * Keyup input field event. This event only fires if {@link #enableKeyEvents} + * is set to true. + * @param {Ext.form.TextField} this This text field + * @param {Ext.EventObject} e + */ + 'keyup', + /** + * @event keypress + * Keypress input field event. This event only fires if {@link #enableKeyEvents} + * is set to true. + * @param {Ext.form.TextField} this This text field + * @param {Ext.EventObject} e + */ + 'keypress' + ); + }, + + // private + initEvents : function(){ + Ext.form.TextField.superclass.initEvents.call(this); + if(this.validationEvent == 'keyup'){ + this.validationTask = new Ext.util.DelayedTask(this.validate, this); + this.mon(this.el, 'keyup', this.filterValidation, this); + } + else if(this.validationEvent !== false && this.validationEvent != 'blur'){ + this.mon(this.el, this.validationEvent, this.validate, this, {buffer: this.validationDelay}); + } + if(this.selectOnFocus || this.emptyText){ + this.mon(this.el, 'mousedown', this.onMouseDown, this); + + if(this.emptyText){ + this.applyEmptyText(); + } + } + if(this.maskRe || (this.vtype && this.disableKeyFilter !== true && (this.maskRe = Ext.form.VTypes[this.vtype+'Mask']))){ + this.mon(this.el, 'keypress', this.filterKeys, this); + } + if(this.grow){ + this.mon(this.el, 'keyup', this.onKeyUpBuffered, this, {buffer: 50}); + this.mon(this.el, 'click', this.autoSize, this); + } + if(this.enableKeyEvents){ + this.mon(this.el, { + scope: this, + keyup: this.onKeyUp, + keydown: this.onKeyDown, + keypress: this.onKeyPress + }); + } + }, + + onMouseDown: function(e){ + if(!this.hasFocus){ + this.mon(this.el, 'mouseup', Ext.emptyFn, this, { single: true, preventDefault: true }); + } + }, + + processValue : function(value){ + if(this.stripCharsRe){ + var newValue = value.replace(this.stripCharsRe, ''); + if(newValue !== value){ + this.setRawValue(newValue); + return newValue; + } + } + return value; + }, + + filterValidation : function(e){ + if(!e.isNavKeyPress()){ + this.validationTask.delay(this.validationDelay); + } + }, + + //private + onDisable: function(){ + Ext.form.TextField.superclass.onDisable.call(this); + if(Ext.isIE){ + this.el.dom.unselectable = 'on'; + } + }, + + //private + onEnable: function(){ + Ext.form.TextField.superclass.onEnable.call(this); + if(Ext.isIE){ + this.el.dom.unselectable = ''; + } + }, + + // private + onKeyUpBuffered : function(e){ + if(this.doAutoSize(e)){ + this.autoSize(); + } + }, + + // private + doAutoSize : function(e){ + return !e.isNavKeyPress(); + }, + + // private + onKeyUp : function(e){ + this.fireEvent('keyup', this, e); + }, + + // private + onKeyDown : function(e){ + this.fireEvent('keydown', this, e); + }, + + // private + onKeyPress : function(e){ + this.fireEvent('keypress', this, e); + }, + + /** + * Resets the current field value to the originally-loaded value and clears any validation messages. + * Also adds {@link #emptyText} and {@link #emptyClass} if the + * original value was blank. + */ + reset : function(){ + Ext.form.TextField.superclass.reset.call(this); + this.applyEmptyText(); + }, + + applyEmptyText : function(){ + if(this.rendered && this.emptyText && this.getRawValue().length < 1 && !this.hasFocus){ + this.setRawValue(this.emptyText); + this.el.addClass(this.emptyClass); + } + }, + + // private + preFocus : function(){ + var el = this.el; + if(this.emptyText){ + if(el.dom.value == this.emptyText){ + this.setRawValue(''); + } + el.removeClass(this.emptyClass); + } + if(this.selectOnFocus){ + el.dom.select(); + } + }, + + // private + postBlur : function(){ + this.applyEmptyText(); + }, + + // private + filterKeys : function(e){ + if(e.ctrlKey){ + return; + } + var k = e.getKey(); + if(Ext.isGecko && (e.isNavKeyPress() || k == e.BACKSPACE || (k == e.DELETE && e.button == -1))){ + return; + } + var cc = String.fromCharCode(e.getCharCode()); + if(!Ext.isGecko && e.isSpecialKey() && !cc){ + return; + } + if(!this.maskRe.test(cc)){ + e.stopEvent(); + } + }, + + setValue : function(v){ + if(this.emptyText && this.el && !Ext.isEmpty(v)){ + this.el.removeClass(this.emptyClass); + } + Ext.form.TextField.superclass.setValue.apply(this, arguments); + this.applyEmptyText(); + this.autoSize(); + return this; + }, + + /** + *

      Validates a value according to the field's validation rules and returns an array of errors + * for any failing validations. Validation rules are processed in the following order:

      + *
        + * + *
      • 1. Field specific validator + *
        + *

        A validator offers a way to customize and reuse a validation specification. + * If a field is configured with a {@link #validator} + * function, it will be passed the current field value. The {@link #validator} + * function is expected to return either: + *

          + *
        • Boolean true if the value is valid (validation continues).
        • + *
        • a String to represent the invalid message if invalid (validation halts).
        • + *
        + *
      • + * + *
      • 2. Basic Validation + *
        + *

        If the {@link #validator} has not halted validation, + * basic validation proceeds as follows:

        + * + *
          + * + *
        • {@link #allowBlank} : (Invalid message = + * {@link #emptyText})
          + * Depending on the configuration of {@link #allowBlank}, a + * blank field will cause validation to halt at this step and return + * Boolean true or false accordingly. + *
        • + * + *
        • {@link #minLength} : (Invalid message = + * {@link #minLengthText})
          + * If the passed value does not satisfy the {@link #minLength} + * specified, validation halts. + *
        • + * + *
        • {@link #maxLength} : (Invalid message = + * {@link #maxLengthText})
          + * If the passed value does not satisfy the {@link #maxLength} + * specified, validation halts. + *
        • + * + *
        + *
      • + * + *
      • 3. Preconfigured Validation Types (VTypes) + *
        + *

        If none of the prior validation steps halts validation, a field + * configured with a {@link #vtype} will utilize the + * corresponding {@link Ext.form.VTypes VTypes} validation function. + * If invalid, either the field's {@link #vtypeText} or + * the VTypes vtype Text property will be used for the invalid message. + * Keystrokes on the field will be filtered according to the VTypes + * vtype Mask property.

        + *
      • + * + *
      • 4. Field specific regex test + *
        + *

        If none of the prior validation steps halts validation, a field's + * configured {@link #regex} test will be processed. + * The invalid message for this test is configured with + * {@link #regexText}.

        + *
      • + * + * @param {Mixed} value The value to validate. The processed raw value will be used if nothing is passed + * @return {Array} Array of any validation errors + */ + getErrors: function(value) { + var errors = Ext.form.TextField.superclass.getErrors.apply(this, arguments); + + value = value || this.processValue(this.getRawValue()); + + if (Ext.isFunction(this.validator)) { + var msg = this.validator(value); + if (msg !== true) { + errors.push(msg); + } + } + + if (value.length < 1 || value === this.emptyText) { + if (this.allowBlank) { + //if value is blank and allowBlank is true, there cannot be any additional errors + return errors; + } else { + errors.push(this.blankText); + } + } + + if (!this.allowBlank && (value.length < 1 || value === this.emptyText)) { // if it's blank + errors.push(this.blankText); + } + + if (value.length < this.minLength) { + errors.push(String.format(this.minLengthText, this.minLength)); + } + + if (value.length > this.maxLength) { + errors.push(String.format(this.maxLengthText, this.maxLength)); + } + + if (this.vtype) { + var vt = Ext.form.VTypes; + if(!vt[this.vtype](value, this)){ + errors.push(this.vtypeText || vt[this.vtype +'Text']); + } + } + + if (this.regex && !this.regex.test(value)) { + errors.push(this.regexText); + } + + return errors; + }, + + /** + * Selects text in this field + * @param {Number} start (optional) The index where the selection should start (defaults to 0) + * @param {Number} end (optional) The index where the selection should end (defaults to the text length) + */ + selectText : function(start, end){ + var v = this.getRawValue(); + var doFocus = false; + if(v.length > 0){ + start = start === undefined ? 0 : start; + end = end === undefined ? v.length : end; + var d = this.el.dom; + if(d.setSelectionRange){ + d.setSelectionRange(start, end); + }else if(d.createTextRange){ + var range = d.createTextRange(); + range.moveStart('character', start); + range.moveEnd('character', end-v.length); + range.select(); + } + doFocus = Ext.isGecko || Ext.isOpera; + }else{ + doFocus = true; + } + if(doFocus){ + this.focus(); + } + }, + + /** + * Automatically grows the field to accomodate the width of the text up to the maximum field width allowed. + * This only takes effect if {@link #grow} = true, and fires the {@link #autosize} event. + */ + autoSize : function(){ + if(!this.grow || !this.rendered){ + return; + } + if(!this.metrics){ + this.metrics = Ext.util.TextMetrics.createInstance(this.el); + } + var el = this.el; + var v = el.dom.value; + var d = document.createElement('div'); + d.appendChild(document.createTextNode(v)); + v = d.innerHTML; + Ext.removeNode(d); + d = null; + v += ' '; + var w = Math.min(this.growMax, Math.max(this.metrics.getWidth(v) + /* add extra padding */ 10, this.growMin)); + this.el.setWidth(w); + this.fireEvent('autosize', this, w); + }, + + onDestroy: function(){ + if(this.validationTask){ + this.validationTask.cancel(); + this.validationTask = null; + } + Ext.form.TextField.superclass.onDestroy.call(this); + } +}); +Ext.reg('textfield', Ext.form.TextField); +/** + * @class Ext.form.TriggerField + * @extends Ext.form.TextField + * Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default). + * The trigger has no default action, so you must assign a function to implement the trigger click handler by + * overriding {@link #onTriggerClick}. You can create a TriggerField directly, as it renders exactly like a combobox + * for which you can provide a custom implementation. For example: + *
        
        +var trigger = new Ext.form.TriggerField();
        +trigger.onTriggerClick = myTriggerFn;
        +trigger.applyToMarkup('my-field');
        +
        + * + * However, in general you will most likely want to use TriggerField as the base class for a reusable component. + * {@link Ext.form.DateField} and {@link Ext.form.ComboBox} are perfect examples of this. + * + * @constructor + * Create a new TriggerField. + * @param {Object} config Configuration options (valid {@Ext.form.TextField} config options will also be applied + * to the base TextField) + * @xtype trigger + */ +Ext.form.TriggerField = Ext.extend(Ext.form.TextField, { + /** + * @cfg {String} triggerClass + * An additional CSS class used to style the trigger button. The trigger will always get the + * class 'x-form-trigger' by default and triggerClass will be appended if specified. + */ + /** + * @cfg {Mixed} triggerConfig + *

        A {@link Ext.DomHelper DomHelper} config object specifying the structure of the + * trigger element for this Field. (Optional).

        + *

        Specify this when you need a customized element to act as the trigger button for a TriggerField.

        + *

        Note that when using this option, it is the developer's responsibility to ensure correct sizing, positioning + * and appearance of the trigger. Defaults to:

        + *
        {tag: "img", src: Ext.BLANK_IMAGE_URL, cls: "x-form-trigger " + this.triggerClass}
        + */ + /** + * @cfg {String/Object} autoCreate

        A {@link Ext.DomHelper DomHelper} element spec, or true for a default + * element spec. Used to create the {@link Ext.Component#getEl Element} which will encapsulate this Component. + * See {@link Ext.Component#autoEl autoEl} for details. Defaults to:

        + *
        {tag: "input", type: "text", size: "16", autocomplete: "off"}
        + */ + defaultAutoCreate : {tag: "input", type: "text", size: "16", autocomplete: "off"}, + /** + * @cfg {Boolean} hideTrigger true to hide the trigger element and display only the base + * text field (defaults to false) + */ + hideTrigger:false, + /** + * @cfg {Boolean} editable false to prevent the user from typing text directly into the field, + * the field will only respond to a click on the trigger to set the value. (defaults to true). + */ + editable: true, + /** + * @cfg {Boolean} readOnly true to prevent the user from changing the field, and + * hides the trigger. Superceeds the editable and hideTrigger options if the value is true. + * (defaults to false) + */ + readOnly: false, + /** + * @cfg {String} wrapFocusClass The class added to the to the wrap of the trigger element. Defaults to + * x-trigger-wrap-focus. + */ + wrapFocusClass: 'x-trigger-wrap-focus', + /** + * @hide + * @method autoSize + */ + autoSize: Ext.emptyFn, + // private + monitorTab : true, + // private + deferHeight : true, + // private + mimicing : false, + + actionMode: 'wrap', + + defaultTriggerWidth: 17, + + // private + onResize : function(w, h){ + Ext.form.TriggerField.superclass.onResize.call(this, w, h); + var tw = this.getTriggerWidth(); + if(Ext.isNumber(w)){ + this.el.setWidth(w - tw); + } + this.wrap.setWidth(this.el.getWidth() + tw); + }, + + getTriggerWidth: function(){ + var tw = this.trigger.getWidth(); + if(!this.hideTrigger && !this.readOnly && tw === 0){ + tw = this.defaultTriggerWidth; + } + return tw; + }, + + // private + alignErrorIcon : function(){ + if(this.wrap){ + this.errorIcon.alignTo(this.wrap, 'tl-tr', [2, 0]); + } + }, + + // private + onRender : function(ct, position){ + this.doc = Ext.isIE ? Ext.getBody() : Ext.getDoc(); + Ext.form.TriggerField.superclass.onRender.call(this, ct, position); + + this.wrap = this.el.wrap({cls: 'x-form-field-wrap x-form-field-trigger-wrap'}); + this.trigger = this.wrap.createChild(this.triggerConfig || + {tag: "img", src: Ext.BLANK_IMAGE_URL, cls: "x-form-trigger " + this.triggerClass}); + this.initTrigger(); + if(!this.width){ + this.wrap.setWidth(this.el.getWidth()+this.trigger.getWidth()); + } + this.resizeEl = this.positionEl = this.wrap; + }, + + getWidth: function() { + return(this.el.getWidth() + this.trigger.getWidth()); + }, + + updateEditState: function(){ + if(this.rendered){ + if (this.readOnly) { + this.el.dom.readOnly = true; + this.el.addClass('x-trigger-noedit'); + this.mun(this.el, 'click', this.onTriggerClick, this); + this.trigger.setDisplayed(false); + } else { + if (!this.editable) { + this.el.dom.readOnly = true; + this.el.addClass('x-trigger-noedit'); + this.mon(this.el, 'click', this.onTriggerClick, this); + } else { + this.el.dom.readOnly = false; + this.el.removeClass('x-trigger-noedit'); + this.mun(this.el, 'click', this.onTriggerClick, this); + } + this.trigger.setDisplayed(!this.hideTrigger); + } + this.onResize(this.width || this.wrap.getWidth()); + } + }, + + setHideTrigger: function(hideTrigger){ + if(hideTrigger != this.hideTrigger){ + this.hideTrigger = hideTrigger; + this.updateEditState(); + } + }, + + /** + * @param {Boolean} value True to allow the user to directly edit the field text + * Allow or prevent the user from directly editing the field text. If false is passed, + * the user will only be able to modify the field using the trigger. Will also add + * a click event to the text field which will call the trigger. This method + * is the runtime equivalent of setting the 'editable' config option at config time. + */ + setEditable: function(editable){ + if(editable != this.editable){ + this.editable = editable; + this.updateEditState(); + } + }, + + /** + * @param {Boolean} value True to prevent the user changing the field and explicitly + * hide the trigger. + * Setting this to true will superceed settings editable and hideTrigger. + * Setting this to false will defer back to editable and hideTrigger. This method + * is the runtime equivalent of setting the 'readOnly' config option at config time. + */ + setReadOnly: function(readOnly){ + if(readOnly != this.readOnly){ + this.readOnly = readOnly; + this.updateEditState(); + } + }, + + afterRender : function(){ + Ext.form.TriggerField.superclass.afterRender.call(this); + this.updateEditState(); + }, + + // private + initTrigger : function(){ + this.mon(this.trigger, 'click', this.onTriggerClick, this, {preventDefault:true}); + this.trigger.addClassOnOver('x-form-trigger-over'); + this.trigger.addClassOnClick('x-form-trigger-click'); + }, + + // private + onDestroy : function(){ + Ext.destroy(this.trigger, this.wrap); + if (this.mimicing){ + this.doc.un('mousedown', this.mimicBlur, this); + } + delete this.doc; + Ext.form.TriggerField.superclass.onDestroy.call(this); + }, + + // private + onFocus : function(){ + Ext.form.TriggerField.superclass.onFocus.call(this); + if(!this.mimicing){ + this.wrap.addClass(this.wrapFocusClass); + this.mimicing = true; + this.doc.on('mousedown', this.mimicBlur, this, {delay: 10}); + if(this.monitorTab){ + this.on('specialkey', this.checkTab, this); + } + } + }, + + // private + checkTab : function(me, e){ + if(e.getKey() == e.TAB){ + this.triggerBlur(); + } + }, + + // private + onBlur : Ext.emptyFn, + + // private + mimicBlur : function(e){ + if(!this.isDestroyed && !this.wrap.contains(e.target) && this.validateBlur(e)){ + this.triggerBlur(); + } + }, + + // private + triggerBlur : function(){ + this.mimicing = false; + this.doc.un('mousedown', this.mimicBlur, this); + if(this.monitorTab && this.el){ + this.un('specialkey', this.checkTab, this); + } + Ext.form.TriggerField.superclass.onBlur.call(this); + if(this.wrap){ + this.wrap.removeClass(this.wrapFocusClass); + } + }, + + beforeBlur : Ext.emptyFn, + + // private + // This should be overriden by any subclass that needs to check whether or not the field can be blurred. + validateBlur : function(e){ + return true; + }, + + /** + * The function that should handle the trigger's click event. This method does nothing by default + * until overridden by an implementing function. See Ext.form.ComboBox and Ext.form.DateField for + * sample implementations. + * @method + * @param {EventObject} e + */ + onTriggerClick : Ext.emptyFn + + /** + * @cfg {Boolean} grow @hide + */ + /** + * @cfg {Number} growMin @hide + */ + /** + * @cfg {Number} growMax @hide + */ +}); + +/** + * @class Ext.form.TwinTriggerField + * @extends Ext.form.TriggerField + * TwinTriggerField is not a public class to be used directly. It is meant as an abstract base class + * to be extended by an implementing class. For an example of implementing this class, see the custom + * SearchField implementation here: + * http://extjs.com/deploy/ext/examples/form/custom.html + */ +Ext.form.TwinTriggerField = Ext.extend(Ext.form.TriggerField, { + /** + * @cfg {Mixed} triggerConfig + *

        A {@link Ext.DomHelper DomHelper} config object specifying the structure of the trigger elements + * for this Field. (Optional).

        + *

        Specify this when you need a customized element to contain the two trigger elements for this Field. + * Each trigger element must be marked by the CSS class x-form-trigger (also see + * {@link #trigger1Class} and {@link #trigger2Class}).

        + *

        Note that when using this option, it is the developer's responsibility to ensure correct sizing, + * positioning and appearance of the triggers.

        + */ + /** + * @cfg {String} trigger1Class + * An additional CSS class used to style the trigger button. The trigger will always get the + * class 'x-form-trigger' by default and triggerClass will be appended if specified. + */ + /** + * @cfg {String} trigger2Class + * An additional CSS class used to style the trigger button. The trigger will always get the + * class 'x-form-trigger' by default and triggerClass will be appended if specified. + */ + + initComponent : function(){ + Ext.form.TwinTriggerField.superclass.initComponent.call(this); + + this.triggerConfig = { + tag:'span', cls:'x-form-twin-triggers', cn:[ + {tag: "img", src: Ext.BLANK_IMAGE_URL, cls: "x-form-trigger " + this.trigger1Class}, + {tag: "img", src: Ext.BLANK_IMAGE_URL, cls: "x-form-trigger " + this.trigger2Class} + ]}; + }, + + getTrigger : function(index){ + return this.triggers[index]; + }, + + initTrigger : function(){ + var ts = this.trigger.select('.x-form-trigger', true); + var triggerField = this; + ts.each(function(t, all, index){ + var triggerIndex = 'Trigger'+(index+1); + t.hide = function(){ + var w = triggerField.wrap.getWidth(); + this.dom.style.display = 'none'; + triggerField.el.setWidth(w-triggerField.trigger.getWidth()); + this['hidden' + triggerIndex] = true; + }; + t.show = function(){ + var w = triggerField.wrap.getWidth(); + this.dom.style.display = ''; + triggerField.el.setWidth(w-triggerField.trigger.getWidth()); + this['hidden' + triggerIndex] = false; + }; + + if(this['hide'+triggerIndex]){ + t.dom.style.display = 'none'; + this['hidden' + triggerIndex] = true; + } + this.mon(t, 'click', this['on'+triggerIndex+'Click'], this, {preventDefault:true}); + t.addClassOnOver('x-form-trigger-over'); + t.addClassOnClick('x-form-trigger-click'); + }, this); + this.triggers = ts.elements; + }, + + getTriggerWidth: function(){ + var tw = 0; + Ext.each(this.triggers, function(t, index){ + var triggerIndex = 'Trigger' + (index + 1), + w = t.getWidth(); + if(w === 0 && !this['hidden' + triggerIndex]){ + tw += this.defaultTriggerWidth; + }else{ + tw += w; + } + }, this); + return tw; + }, + + // private + onDestroy : function() { + Ext.destroy(this.triggers); + Ext.form.TwinTriggerField.superclass.onDestroy.call(this); + }, + + /** + * The function that should handle the trigger's click event. This method does nothing by default + * until overridden by an implementing function. See {@link Ext.form.TriggerField#onTriggerClick} + * for additional information. + * @method + * @param {EventObject} e + */ + onTrigger1Click : Ext.emptyFn, + /** + * The function that should handle the trigger's click event. This method does nothing by default + * until overridden by an implementing function. See {@link Ext.form.TriggerField#onTriggerClick} + * for additional information. + * @method + * @param {EventObject} e + */ + onTrigger2Click : Ext.emptyFn +}); +Ext.reg('trigger', Ext.form.TriggerField); +/** + * @class Ext.form.TextArea + * @extends Ext.form.TextField + * Multiline text field. Can be used as a direct replacement for traditional textarea fields, plus adds + * support for auto-sizing. + * @constructor + * Creates a new TextArea + * @param {Object} config Configuration options + * @xtype textarea + */ +Ext.form.TextArea = Ext.extend(Ext.form.TextField, { + /** + * @cfg {Number} growMin The minimum height to allow when {@link Ext.form.TextField#grow grow}=true + * (defaults to 60) + */ + growMin : 60, + /** + * @cfg {Number} growMax The maximum height to allow when {@link Ext.form.TextField#grow grow}=true + * (defaults to 1000) + */ + growMax: 1000, + growAppend : ' \n ', + + enterIsSpecial : false, + + /** + * @cfg {Boolean} preventScrollbars true to prevent scrollbars from appearing regardless of how much text is + * in the field. This option is only relevant when {@link #grow} is true. Equivalent to setting overflow: hidden, defaults to + * false. + */ + preventScrollbars: false, + /** + * @cfg {String/Object} autoCreate

        A {@link Ext.DomHelper DomHelper} element spec, or true for a default + * element spec. Used to create the {@link Ext.Component#getEl Element} which will encapsulate this Component. + * See {@link Ext.Component#autoEl autoEl} for details. Defaults to:

        + *
        {tag: "textarea", style: "width:100px;height:60px;", autocomplete: "off"}
        + */ + + // private + onRender : function(ct, position){ + if(!this.el){ + this.defaultAutoCreate = { + tag: "textarea", + style:"width:100px;height:60px;", + autocomplete: "off" + }; + } + Ext.form.TextArea.superclass.onRender.call(this, ct, position); + if(this.grow){ + this.textSizeEl = Ext.DomHelper.append(document.body, { + tag: "pre", cls: "x-form-grow-sizer" + }); + if(this.preventScrollbars){ + this.el.setStyle("overflow", "hidden"); + } + this.el.setHeight(this.growMin); + } + }, + + onDestroy : function(){ + Ext.removeNode(this.textSizeEl); + Ext.form.TextArea.superclass.onDestroy.call(this); + }, + + fireKey : function(e){ + if(e.isSpecialKey() && (this.enterIsSpecial || (e.getKey() != e.ENTER || e.hasModifier()))){ + this.fireEvent("specialkey", this, e); + } + }, + + // private + doAutoSize : function(e){ + return !e.isNavKeyPress() || e.getKey() == e.ENTER; + }, + + /** + * Automatically grows the field to accomodate the height of the text up to the maximum field height allowed. + * This only takes effect if grow = true, and fires the {@link #autosize} event if the height changes. + */ + autoSize: function(){ + if(!this.grow || !this.textSizeEl){ + return; + } + var el = this.el, + v = Ext.util.Format.htmlEncode(el.dom.value), + ts = this.textSizeEl, + h; + + Ext.fly(ts).setWidth(this.el.getWidth()); + if(v.length < 1){ + v = "  "; + }else{ + v += this.growAppend; + if(Ext.isIE){ + v = v.replace(/\n/g, ' 
        '); + } + } + ts.innerHTML = v; + h = Math.min(this.growMax, Math.max(ts.offsetHeight, this.growMin)); + if(h != this.lastHeight){ + this.lastHeight = h; + this.el.setHeight(h); + this.fireEvent("autosize", this, h); + } + } +}); +Ext.reg('textarea', Ext.form.TextArea);/** + * @class Ext.form.NumberField + * @extends Ext.form.TextField + * Numeric text field that provides automatic keystroke filtering and numeric validation. + * @constructor + * Creates a new NumberField + * @param {Object} config Configuration options + * @xtype numberfield + */ +Ext.form.NumberField = Ext.extend(Ext.form.TextField, { + /** + * @cfg {RegExp} stripCharsRe @hide + */ + /** + * @cfg {RegExp} maskRe @hide + */ + /** + * @cfg {String} fieldClass The default CSS class for the field (defaults to "x-form-field x-form-num-field") + */ + fieldClass: "x-form-field x-form-num-field", + /** + * @cfg {Boolean} allowDecimals False to disallow decimal values (defaults to true) + */ + allowDecimals : true, + /** + * @cfg {String} decimalSeparator Character(s) to allow as the decimal separator (defaults to '.') + */ + decimalSeparator : ".", + /** + * @cfg {Number} decimalPrecision The maximum precision to display after the decimal separator (defaults to 2) + */ + decimalPrecision : 2, + /** + * @cfg {Boolean} allowNegative False to prevent entering a negative sign (defaults to true) + */ + allowNegative : true, + /** + * @cfg {Number} minValue The minimum allowed value (defaults to Number.NEGATIVE_INFINITY) + */ + minValue : Number.NEGATIVE_INFINITY, + /** + * @cfg {Number} maxValue The maximum allowed value (defaults to Number.MAX_VALUE) + */ + maxValue : Number.MAX_VALUE, + /** + * @cfg {String} minText Error text to display if the minimum value validation fails (defaults to "The minimum value for this field is {minValue}") + */ + minText : "The minimum value for this field is {0}", + /** + * @cfg {String} maxText Error text to display if the maximum value validation fails (defaults to "The maximum value for this field is {maxValue}") + */ + maxText : "The maximum value for this field is {0}", + /** + * @cfg {String} nanText Error text to display if the value is not a valid number. For example, this can happen + * if a valid character like '.' or '-' is left in the field with no number (defaults to "{value} is not a valid number") + */ + nanText : "{0} is not a valid number", + /** + * @cfg {String} baseChars The base set of characters to evaluate as valid numbers (defaults to '0123456789'). + */ + baseChars : "0123456789", + + // private + initEvents : function(){ + var allowed = this.baseChars + ''; + if (this.allowDecimals) { + allowed += this.decimalSeparator; + } + if (this.allowNegative) { + allowed += '-'; + } + this.maskRe = new RegExp('[' + Ext.escapeRe(allowed) + ']'); + Ext.form.NumberField.superclass.initEvents.call(this); + }, + + /** + * Runs all of NumberFields validations and returns an array of any errors. Note that this first + * runs TextField's validations, so the returned array is an amalgamation of all field errors. + * The additional validations run test that the value is a number, and that it is within the + * configured min and max values. + * @param {Mixed} value The value to get errors for (defaults to the current field value) + * @return {Array} All validation errors for this field + */ + getErrors: function(value) { + var errors = Ext.form.NumberField.superclass.getErrors.apply(this, arguments); + + value = value || this.processValue(this.getRawValue()); + + if (value.length < 1) { // if it's blank and textfield didn't flag it then it's valid + return errors; + } + + value = String(value).replace(this.decimalSeparator, "."); + + if(isNaN(value)){ + errors.push(String.format(this.nanText, value)); + } + + var num = this.parseValue(value); + + if(num < this.minValue){ + errors.push(String.format(this.minText, this.minValue)); + } + + if(num > this.maxValue){ + errors.push(String.format(this.maxText, this.maxValue)); + } + + return errors; + }, + + getValue : function(){ + return this.fixPrecision(this.parseValue(Ext.form.NumberField.superclass.getValue.call(this))); + }, + + setValue : function(v){ + v = Ext.isNumber(v) ? v : parseFloat(String(v).replace(this.decimalSeparator, ".")); + v = isNaN(v) ? '' : String(v).replace(".", this.decimalSeparator); + return Ext.form.NumberField.superclass.setValue.call(this, v); + }, + + /** + * Replaces any existing {@link #minValue} with the new value. + * @param {Number} value The minimum value + */ + setMinValue : function(value){ + this.minValue = Ext.num(value, Number.NEGATIVE_INFINITY); + }, + + /** + * Replaces any existing {@link #maxValue} with the new value. + * @param {Number} value The maximum value + */ + setMaxValue : function(value){ + this.maxValue = Ext.num(value, Number.MAX_VALUE); + }, + + // private + parseValue : function(value){ + value = parseFloat(String(value).replace(this.decimalSeparator, ".")); + return isNaN(value) ? '' : value; + }, + + // private + fixPrecision : function(value){ + var nan = isNaN(value); + if(!this.allowDecimals || this.decimalPrecision == -1 || nan || !value){ + return nan ? '' : value; + } + return parseFloat(parseFloat(value).toFixed(this.decimalPrecision)); + }, + + beforeBlur : function(){ + var v = this.parseValue(this.getRawValue()); + if(!Ext.isEmpty(v)){ + this.setValue(this.fixPrecision(v)); + } + } +}); +Ext.reg('numberfield', Ext.form.NumberField);/** + * @class Ext.form.DateField + * @extends Ext.form.TriggerField + * Provides a date input field with a {@link Ext.DatePicker} dropdown and automatic date validation. + * @constructor + * Create a new DateField + * @param {Object} config + * @xtype datefield + */ +Ext.form.DateField = Ext.extend(Ext.form.TriggerField, { + /** + * @cfg {String} format + * The default date format string which can be overriden for localization support. The format must be + * valid according to {@link Date#parseDate} (defaults to 'm/d/Y'). + */ + format : "m/d/Y", + /** + * @cfg {String} altFormats + * Multiple date formats separated by "|" to try when parsing a user input value and it + * does not match the defined format (defaults to + * 'm/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d'). + */ + altFormats : "m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d", + /** + * @cfg {String} disabledDaysText + * The tooltip to display when the date falls on a disabled day (defaults to 'Disabled') + */ + disabledDaysText : "Disabled", + /** + * @cfg {String} disabledDatesText + * The tooltip text to display when the date falls on a disabled date (defaults to 'Disabled') + */ + disabledDatesText : "Disabled", + /** + * @cfg {String} minText + * The error text to display when the date in the cell is before {@link #minValue} (defaults to + * 'The date in this field must be after {minValue}'). + */ + minText : "The date in this field must be equal to or after {0}", + /** + * @cfg {String} maxText + * The error text to display when the date in the cell is after {@link #maxValue} (defaults to + * 'The date in this field must be before {maxValue}'). + */ + maxText : "The date in this field must be equal to or before {0}", + /** + * @cfg {String} invalidText + * The error text to display when the date in the field is invalid (defaults to + * '{value} is not a valid date - it must be in the format {format}'). + */ + invalidText : "{0} is not a valid date - it must be in the format {1}", + /** + * @cfg {String} triggerClass + * An additional CSS class used to style the trigger button. The trigger will always get the + * class 'x-form-trigger' and triggerClass will be appended if specified + * (defaults to 'x-form-date-trigger' which displays a calendar icon). + */ + triggerClass : 'x-form-date-trigger', + /** + * @cfg {Boolean} showToday + * false to hide the footer area of the DatePicker containing the Today button and disable + * the keyboard handler for spacebar that selects the current date (defaults to true). + */ + showToday : true, + /** + * @cfg {Date/String} minValue + * The minimum allowed date. Can be either a Javascript date object or a string date in a + * valid format (defaults to null). + */ + /** + * @cfg {Date/String} maxValue + * The maximum allowed date. Can be either a Javascript date object or a string date in a + * valid format (defaults to null). + */ + /** + * @cfg {Array} disabledDays + * An array of days to disable, 0 based (defaults to null). Some examples:
        
        +// disable Sunday and Saturday:
        +disabledDays:  [0, 6]
        +// disable weekdays:
        +disabledDays: [1,2,3,4,5]
        +     * 
        + */ + /** + * @cfg {Array} disabledDates + * An array of "dates" to disable, as strings. These strings will be used to build a dynamic regular + * expression so they are very powerful. Some examples:
        
        +// disable these exact dates:
        +disabledDates: ["03/08/2003", "09/16/2003"]
        +// disable these days for every year:
        +disabledDates: ["03/08", "09/16"]
        +// only match the beginning (useful if you are using short years):
        +disabledDates: ["^03/08"]
        +// disable every day in March 2006:
        +disabledDates: ["03/../2006"]
        +// disable every day in every March:
        +disabledDates: ["^03"]
        +     * 
        + * Note that the format of the dates included in the array should exactly match the {@link #format} config. + * In order to support regular expressions, if you are using a {@link #format date format} that has "." in + * it, you will have to escape the dot when restricting dates. For example: ["03\\.08\\.03"]. + */ + /** + * @cfg {String/Object} autoCreate + * A {@link Ext.DomHelper DomHelper element specification object}, or true for the default element + * specification object:
        
        +     * autoCreate: {tag: "input", type: "text", size: "10", autocomplete: "off"}
        +     * 
        + */ + + // private + defaultAutoCreate : {tag: "input", type: "text", size: "10", autocomplete: "off"}, + + // in the absence of a time value, a default value of 12 noon will be used + // (note: 12 noon was chosen because it steers well clear of all DST timezone changes) + initTime: '12', // 24 hour format + + initTimeFormat: 'H', + + // PUBLIC -- to be documented + safeParse : function(value, format) { + if (/[gGhH]/.test(format.replace(/(\\.)/g, ''))) { + // if parse format contains hour information, no DST adjustment is necessary + return Date.parseDate(value, format); + } else { + // set time to 12 noon, then clear the time + var parsedDate = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat); + + if (parsedDate) return parsedDate.clearTime(); + } + }, + + initComponent : function(){ + Ext.form.DateField.superclass.initComponent.call(this); + + this.addEvents( + /** + * @event select + * Fires when a date is selected via the date picker. + * @param {Ext.form.DateField} this + * @param {Date} date The date that was selected + */ + 'select' + ); + + if(Ext.isString(this.minValue)){ + this.minValue = this.parseDate(this.minValue); + } + if(Ext.isString(this.maxValue)){ + this.maxValue = this.parseDate(this.maxValue); + } + this.disabledDatesRE = null; + this.initDisabledDays(); + }, + + initEvents: function() { + Ext.form.DateField.superclass.initEvents.call(this); + this.keyNav = new Ext.KeyNav(this.el, { + "down": function(e) { + this.onTriggerClick(); + }, + scope: this, + forceKeyDown: true + }); + }, + + + // private + initDisabledDays : function(){ + if(this.disabledDates){ + var dd = this.disabledDates, + len = dd.length - 1, + re = "(?:"; + + Ext.each(dd, function(d, i){ + re += Ext.isDate(d) ? '^' + Ext.escapeRe(d.dateFormat(this.format)) + '$' : dd[i]; + if(i != len){ + re += '|'; + } + }, this); + this.disabledDatesRE = new RegExp(re + ')'); + } + }, + + /** + * Replaces any existing disabled dates with new values and refreshes the DatePicker. + * @param {Array} disabledDates An array of date strings (see the {@link #disabledDates} config + * for details on supported values) used to disable a pattern of dates. + */ + setDisabledDates : function(dd){ + this.disabledDates = dd; + this.initDisabledDays(); + if(this.menu){ + this.menu.picker.setDisabledDates(this.disabledDatesRE); + } + }, + + /** + * Replaces any existing disabled days (by index, 0-6) with new values and refreshes the DatePicker. + * @param {Array} disabledDays An array of disabled day indexes. See the {@link #disabledDays} + * config for details on supported values. + */ + setDisabledDays : function(dd){ + this.disabledDays = dd; + if(this.menu){ + this.menu.picker.setDisabledDays(dd); + } + }, + + /** + * Replaces any existing {@link #minValue} with the new value and refreshes the DatePicker. + * @param {Date} value The minimum date that can be selected + */ + setMinValue : function(dt){ + this.minValue = (Ext.isString(dt) ? this.parseDate(dt) : dt); + if(this.menu){ + this.menu.picker.setMinDate(this.minValue); + } + }, + + /** + * Replaces any existing {@link #maxValue} with the new value and refreshes the DatePicker. + * @param {Date} value The maximum date that can be selected + */ + setMaxValue : function(dt){ + this.maxValue = (Ext.isString(dt) ? this.parseDate(dt) : dt); + if(this.menu){ + this.menu.picker.setMaxDate(this.maxValue); + } + }, + + /** + * Runs all of NumberFields validations and returns an array of any errors. Note that this first + * runs TextField's validations, so the returned array is an amalgamation of all field errors. + * The additional validation checks are testing that the date format is valid, that the chosen + * date is within the min and max date constraints set, that the date chosen is not in the disabledDates + * regex and that the day chosed is not one of the disabledDays. + * @param {Mixed} value The value to get errors for (defaults to the current field value) + * @return {Array} All validation errors for this field + */ + getErrors: function(value) { + var errors = Ext.form.DateField.superclass.getErrors.apply(this, arguments); + + value = this.formatDate(value || this.processValue(this.getRawValue())); + + if (value.length < 1) { // if it's blank and textfield didn't flag it then it's valid + return errors; + } + + var svalue = value; + value = this.parseDate(value); + if (!value) { + errors.push(String.format(this.invalidText, svalue, this.format)); + return errors; + } + + var time = value.getTime(); + if (this.minValue && time < this.minValue.getTime()) { + errors.push(String.format(this.minText, this.formatDate(this.minValue))); + } + + if (this.maxValue && time > this.maxValue.getTime()) { + errors.push(String.format(this.maxText, this.formatDate(this.maxValue))); + } + + if (this.disabledDays) { + var day = value.getDay(); + + for(var i = 0; i < this.disabledDays.length; i++) { + if (day === this.disabledDays[i]) { + errors.push(this.disabledDaysText); + break; + } + } + } + + var fvalue = this.formatDate(value); + if (this.disabledDatesRE && this.disabledDatesRE.test(fvalue)) { + errors.push(String.format(this.disabledDatesText, fvalue)); + } + + return errors; + }, + + // private + // Provides logic to override the default TriggerField.validateBlur which just returns true + validateBlur : function(){ + return !this.menu || !this.menu.isVisible(); + }, + + /** + * Returns the current date value of the date field. + * @return {Date} The date value + */ + getValue : function(){ + return this.parseDate(Ext.form.DateField.superclass.getValue.call(this)) || ""; + }, + + /** + * Sets the value of the date field. You can pass a date object or any string that can be + * parsed into a valid date, using {@link #format} as the date format, according + * to the same rules as {@link Date#parseDate} (the default format used is "m/d/Y"). + *
        Usage: + *
        
        +//All of these calls set the same date value (May 4, 2006)
        +
        +//Pass a date object:
        +var dt = new Date('5/4/2006');
        +dateField.setValue(dt);
        +
        +//Pass a date string (default format):
        +dateField.setValue('05/04/2006');
        +
        +//Pass a date string (custom format):
        +dateField.format = 'Y-m-d';
        +dateField.setValue('2006-05-04');
        +
        + * @param {String/Date} date The date or valid date string + * @return {Ext.form.Field} this + */ + setValue : function(date){ + return Ext.form.DateField.superclass.setValue.call(this, this.formatDate(this.parseDate(date))); + }, + + // private + parseDate : function(value) { + if(!value || Ext.isDate(value)){ + return value; + } + + var v = this.safeParse(value, this.format), + af = this.altFormats, + afa = this.altFormatsArray; + + if (!v && af) { + afa = afa || af.split("|"); + + for (var i = 0, len = afa.length; i < len && !v; i++) { + v = this.safeParse(value, afa[i]); + } + } + return v; + }, + + // private + onDestroy : function(){ + Ext.destroy(this.menu, this.keyNav); + Ext.form.DateField.superclass.onDestroy.call(this); + }, + + // private + formatDate : function(date){ + return Ext.isDate(date) ? date.dateFormat(this.format) : date; + }, + + /** + * @method onTriggerClick + * @hide + */ + // private + // Implements the default empty TriggerField.onTriggerClick function to display the DatePicker + onTriggerClick : function(){ + if(this.disabled){ + return; + } + if(this.menu == null){ + this.menu = new Ext.menu.DateMenu({ + hideOnClick: false, + focusOnSelect: false + }); + } + this.onFocus(); + Ext.apply(this.menu.picker, { + minDate : this.minValue, + maxDate : this.maxValue, + disabledDatesRE : this.disabledDatesRE, + disabledDatesText : this.disabledDatesText, + disabledDays : this.disabledDays, + disabledDaysText : this.disabledDaysText, + format : this.format, + showToday : this.showToday, + minText : String.format(this.minText, this.formatDate(this.minValue)), + maxText : String.format(this.maxText, this.formatDate(this.maxValue)) + }); + this.menu.picker.setValue(this.getValue() || new Date()); + this.menu.show(this.el, "tl-bl?"); + this.menuEvents('on'); + }, + + //private + menuEvents: function(method){ + this.menu[method]('select', this.onSelect, this); + this.menu[method]('hide', this.onMenuHide, this); + this.menu[method]('show', this.onFocus, this); + }, + + onSelect: function(m, d){ + this.setValue(d); + this.fireEvent('select', this, d); + this.menu.hide(); + }, + + onMenuHide: function(){ + this.focus(false, 60); + this.menuEvents('un'); + }, + + // private + beforeBlur : function(){ + var v = this.parseDate(this.getRawValue()); + if(v){ + this.setValue(v); + } + } + + /** + * @cfg {Boolean} grow @hide + */ + /** + * @cfg {Number} growMin @hide + */ + /** + * @cfg {Number} growMax @hide + */ + /** + * @hide + * @method autoSize + */ +}); +Ext.reg('datefield', Ext.form.DateField);/** + * @class Ext.form.DisplayField + * @extends Ext.form.Field + * A display-only text field which is not validated and not submitted. + * @constructor + * Creates a new DisplayField. + * @param {Object} config Configuration options + * @xtype displayfield + */ +Ext.form.DisplayField = Ext.extend(Ext.form.Field, { + validationEvent : false, + validateOnBlur : false, + defaultAutoCreate : {tag: "div"}, + /** + * @cfg {String} fieldClass The default CSS class for the field (defaults to "x-form-display-field") + */ + fieldClass : "x-form-display-field", + /** + * @cfg {Boolean} htmlEncode false to skip HTML-encoding the text when rendering it (defaults to + * false). This might be useful if you want to include tags in the field's innerHTML rather than + * rendering them as string literals per the default logic. + */ + htmlEncode: false, + + // private + initEvents : Ext.emptyFn, + + isValid : function(){ + return true; + }, + + validate : function(){ + return true; + }, + + getRawValue : function(){ + var v = this.rendered ? this.el.dom.innerHTML : Ext.value(this.value, ''); + if(v === this.emptyText){ + v = ''; + } + if(this.htmlEncode){ + v = Ext.util.Format.htmlDecode(v); + } + return v; + }, + + getValue : function(){ + return this.getRawValue(); + }, + + getName: function() { + return this.name; + }, + + setRawValue : function(v){ + if(this.htmlEncode){ + v = Ext.util.Format.htmlEncode(v); + } + return this.rendered ? (this.el.dom.innerHTML = (Ext.isEmpty(v) ? '' : v)) : (this.value = v); + }, + + setValue : function(v){ + this.setRawValue(v); + return this; + } + /** + * @cfg {String} inputType + * @hide + */ + /** + * @cfg {Boolean} disabled + * @hide + */ + /** + * @cfg {Boolean} readOnly + * @hide + */ + /** + * @cfg {Boolean} validateOnBlur + * @hide + */ + /** + * @cfg {Number} validationDelay + * @hide + */ + /** + * @cfg {String/Boolean} validationEvent + * @hide + */ +}); + +Ext.reg('displayfield', Ext.form.DisplayField); +/** + * @class Ext.form.ComboBox + * @extends Ext.form.TriggerField + *

        A combobox control with support for autocomplete, remote-loading, paging and many other features.

        + *

        A ComboBox works in a similar manner to a traditional HTML <select> field. The difference is + * that to submit the {@link #valueField}, you must specify a {@link #hiddenName} to create a hidden input + * field to hold the value of the valueField. The {@link #displayField} is shown in the text field + * which is named according to the {@link #name}.

        + *

        Events

        + *

        To do something when something in ComboBox is selected, configure the select event:

        
        +var cb = new Ext.form.ComboBox({
        +    // all of your config options
        +    listeners:{
        +         scope: yourScope,
        +         'select': yourFunction
        +    }
        +});
        +
        +// Alternatively, you can assign events after the object is created:
        +var cb = new Ext.form.ComboBox(yourOptions);
        +cb.on('select', yourFunction, yourScope);
        + * 

        + * + *

        ComboBox in Grid

        + *

        If using a ComboBox in an {@link Ext.grid.EditorGridPanel Editor Grid} a {@link Ext.grid.Column#renderer renderer} + * will be needed to show the displayField when the editor is not active. Set up the renderer manually, or implement + * a reusable render, for example:

        
        +// create reusable renderer
        +Ext.util.Format.comboRenderer = function(combo){
        +    return function(value){
        +        var record = combo.findRecord(combo.{@link #valueField}, value);
        +        return record ? record.get(combo.{@link #displayField}) : combo.{@link #valueNotFoundText};
        +    }
        +}
        +
        +// create the combo instance
        +var combo = new Ext.form.ComboBox({
        +    {@link #typeAhead}: true,
        +    {@link #triggerAction}: 'all',
        +    {@link #lazyRender}:true,
        +    {@link #mode}: 'local',
        +    {@link #store}: new Ext.data.ArrayStore({
        +        id: 0,
        +        fields: [
        +            'myId',
        +            'displayText'
        +        ],
        +        data: [[1, 'item1'], [2, 'item2']]
        +    }),
        +    {@link #valueField}: 'myId',
        +    {@link #displayField}: 'displayText'
        +});
        +
        +// snippet of column model used within grid
        +var cm = new Ext.grid.ColumnModel([{
        +       ...
        +    },{
        +       header: "Some Header",
        +       dataIndex: 'whatever',
        +       width: 130,
        +       editor: combo, // specify reference to combo instance
        +       renderer: Ext.util.Format.comboRenderer(combo) // pass combo instance to reusable renderer
        +    },
        +    ...
        +]);
        + * 

        + * + *

        Filtering

        + *

        A ComboBox {@link #doQuery uses filtering itself}, for information about filtering the ComboBox + * store manually see {@link #lastQuery}.

        + * @constructor + * Create a new ComboBox. + * @param {Object} config Configuration options + * @xtype combo + */ +Ext.form.ComboBox = Ext.extend(Ext.form.TriggerField, { + /** + * @cfg {Mixed} transform The id, DOM node or element of an existing HTML SELECT to convert to a ComboBox. + * Note that if you specify this and the combo is going to be in an {@link Ext.form.BasicForm} or + * {@link Ext.form.FormPanel}, you must also set {@link #lazyRender} = true. + */ + /** + * @cfg {Boolean} lazyRender true to prevent the ComboBox from rendering until requested + * (should always be used when rendering into an {@link Ext.Editor} (e.g. {@link Ext.grid.EditorGridPanel Grids}), + * defaults to false). + */ + /** + * @cfg {String/Object} autoCreate

        A {@link Ext.DomHelper DomHelper} element spec, or true for a default + * element spec. Used to create the {@link Ext.Component#getEl Element} which will encapsulate this Component. + * See {@link Ext.Component#autoEl autoEl} for details. Defaults to:

        + *
        {tag: "input", type: "text", size: "24", autocomplete: "off"}
        + */ + /** + * @cfg {Ext.data.Store/Array} store The data source to which this combo is bound (defaults to undefined). + * Acceptable values for this property are: + *
          + *
        • any {@link Ext.data.Store Store} subclass
        • + *
        • an Array : Arrays will be converted to a {@link Ext.data.ArrayStore} internally, + * automatically generating {@link Ext.data.Field#name field names} to work with all data components. + *
            + *
          • 1-dimensional array : (e.g., ['Foo','Bar'])
            + * A 1-dimensional array will automatically be expanded (each array item will be used for both the combo + * {@link #valueField} and {@link #displayField})
          • + *
          • 2-dimensional array : (e.g., [['f','Foo'],['b','Bar']])
            + * For a multi-dimensional array, the value in index 0 of each item will be assumed to be the combo + * {@link #valueField}, while the value at index 1 is assumed to be the combo {@link #displayField}. + *
        + *

        See also {@link #mode}.

        + */ + /** + * @cfg {String} title If supplied, a header element is created containing this text and added into the top of + * the dropdown list (defaults to undefined, with no header element) + */ + + // private + defaultAutoCreate : {tag: "input", type: "text", size: "24", autocomplete: "off"}, + /** + * @cfg {Number} listWidth The width (used as a parameter to {@link Ext.Element#setWidth}) of the dropdown + * list (defaults to the width of the ComboBox field). See also {@link #minListWidth} + */ + /** + * @cfg {String} displayField The underlying {@link Ext.data.Field#name data field name} to bind to this + * ComboBox (defaults to undefined if {@link #mode} = 'remote' or 'field1' if + * {@link #transform transforming a select} or if the {@link #store field name is autogenerated based on + * the store configuration}). + *

        See also {@link #valueField}.

        + *

        Note: if using a ComboBox in an {@link Ext.grid.EditorGridPanel Editor Grid} a + * {@link Ext.grid.Column#renderer renderer} will be needed to show the displayField when the editor is not + * active.

        + */ + /** + * @cfg {String} valueField The underlying {@link Ext.data.Field#name data value name} to bind to this + * ComboBox (defaults to undefined if {@link #mode} = 'remote' or 'field2' if + * {@link #transform transforming a select} or if the {@link #store field name is autogenerated based on + * the store configuration}). + *

        Note: use of a valueField requires the user to make a selection in order for a value to be + * mapped. See also {@link #hiddenName}, {@link #hiddenValue}, and {@link #displayField}.

        + */ + /** + * @cfg {String} hiddenName If specified, a hidden form field with this name is dynamically generated to store the + * field's data value (defaults to the underlying DOM element's name). Required for the combo's value to automatically + * post during a form submission. See also {@link #valueField}. + *

        Note: the hidden field's id will also default to this name if {@link #hiddenId} is not specified. + * The ComboBox {@link Ext.Component#id id} and the {@link #hiddenId} should be different, since + * no two DOM nodes should share the same id. So, if the ComboBox {@link Ext.form.Field#name name} and + * hiddenName are the same, you should specify a unique {@link #hiddenId}.

        + */ + /** + * @cfg {String} hiddenId If {@link #hiddenName} is specified, hiddenId can also be provided + * to give the hidden field a unique id (defaults to the {@link #hiddenName}). The hiddenId + * and combo {@link Ext.Component#id id} should be different, since no two DOM + * nodes should share the same id. + */ + /** + * @cfg {String} hiddenValue Sets the initial value of the hidden field if {@link #hiddenName} is + * specified to contain the selected {@link #valueField}, from the Store. Defaults to the configured + * {@link Ext.form.Field#value value}. + */ + /** + * @cfg {String} listClass The CSS class to add to the predefined 'x-combo-list' class + * applied the dropdown list element (defaults to ''). + */ + listClass : '', + /** + * @cfg {String} selectedClass CSS class to apply to the selected item in the dropdown list + * (defaults to 'x-combo-selected') + */ + selectedClass : 'x-combo-selected', + /** + * @cfg {String} listEmptyText The empty text to display in the data view if no items are found. + * (defaults to '') + */ + listEmptyText: '', + /** + * @cfg {String} triggerClass An additional CSS class used to style the trigger button. The trigger will always + * get the class 'x-form-trigger' and triggerClass will be appended if specified + * (defaults to 'x-form-arrow-trigger' which displays a downward arrow icon). + */ + triggerClass : 'x-form-arrow-trigger', + /** + * @cfg {Boolean/String} shadow true or "sides" for the default effect, "frame" for + * 4-way shadow, and "drop" for bottom-right + */ + shadow : 'sides', + /** + * @cfg {String/Array} listAlign A valid anchor position value. See {@link Ext.Element#alignTo} for details + * on supported anchor positions and offsets. To specify x/y offsets as well, this value + * may be specified as an Array of {@link Ext.Element#alignTo} method arguments.

        + *
        [ 'tl-bl?', [6,0] ]
        (defaults to 'tl-bl?') + */ + listAlign : 'tl-bl?', + /** + * @cfg {Number} maxHeight The maximum height in pixels of the dropdown list before scrollbars are shown + * (defaults to 300) + */ + maxHeight : 300, + /** + * @cfg {Number} minHeight The minimum height in pixels of the dropdown list when the list is constrained by its + * distance to the viewport edges (defaults to 90) + */ + minHeight : 90, + /** + * @cfg {String} triggerAction The action to execute when the trigger is clicked. + *
          + *
        • 'query' : Default + *

          {@link #doQuery run the query} using the {@link Ext.form.Field#getRawValue raw value}.

        • + *
        • 'all' : + *

          {@link #doQuery run the query} specified by the {@link #allQuery} config option

        • + *
        + *

        See also {@link #queryParam}.

        + */ + triggerAction : 'query', + /** + * @cfg {Number} minChars The minimum number of characters the user must type before autocomplete and + * {@link #typeAhead} activate (defaults to 4 if {@link #mode} = 'remote' or 0 if + * {@link #mode} = 'local', does not apply if + * {@link Ext.form.TriggerField#editable editable} = false). + */ + minChars : 4, + /** + * @cfg {Boolean} autoSelect true to select the first result gathered by the data store (defaults + * to true). A false value would require a manual selection from the dropdown list to set the components value + * unless the value of ({@link #typeAheadDelay}) were true. + */ + autoSelect : true, + /** + * @cfg {Boolean} typeAhead true to populate and autoselect the remainder of the text being + * typed after a configurable delay ({@link #typeAheadDelay}) if it matches a known value (defaults + * to false) + */ + typeAhead : false, + /** + * @cfg {Number} queryDelay The length of time in milliseconds to delay between the start of typing and + * sending the query to filter the dropdown list (defaults to 500 if {@link #mode} = 'remote' + * or 10 if {@link #mode} = 'local') + */ + queryDelay : 500, + /** + * @cfg {Number} pageSize If greater than 0, a {@link Ext.PagingToolbar} is displayed in the + * footer of the dropdown list and the {@link #doQuery filter queries} will execute with page start and + * {@link Ext.PagingToolbar#pageSize limit} parameters. Only applies when {@link #mode} = 'remote' + * (defaults to 0). + */ + pageSize : 0, + /** + * @cfg {Boolean} selectOnFocus true to select any existing text in the field immediately on focus. + * Only applies when {@link Ext.form.TriggerField#editable editable} = true (defaults to + * false). + */ + selectOnFocus : false, + /** + * @cfg {String} queryParam Name of the query ({@link Ext.data.Store#baseParam baseParam} name for the store) + * as it will be passed on the querystring (defaults to 'query') + */ + queryParam : 'query', + /** + * @cfg {String} loadingText The text to display in the dropdown list while data is loading. Only applies + * when {@link #mode} = 'remote' (defaults to 'Loading...') + */ + loadingText : 'Loading...', + /** + * @cfg {Boolean} resizable true to add a resize handle to the bottom of the dropdown list + * (creates an {@link Ext.Resizable} with 'se' {@link Ext.Resizable#pinned pinned} handles). + * Defaults to false. + */ + resizable : false, + /** + * @cfg {Number} handleHeight The height in pixels of the dropdown list resize handle if + * {@link #resizable} = true (defaults to 8) + */ + handleHeight : 8, + /** + * @cfg {String} allQuery The text query to send to the server to return all records for the list + * with no filtering (defaults to '') + */ + allQuery: '', + /** + * @cfg {String} mode Acceptable values are: + *
          + *
        • 'remote' : Default + *

          Automatically loads the {@link #store} the first time the trigger + * is clicked. If you do not want the store to be automatically loaded the first time the trigger is + * clicked, set to 'local' and manually load the store. To force a requery of the store + * every time the trigger is clicked see {@link #lastQuery}.

        • + *
        • 'local' : + *

          ComboBox loads local data

          + *
          
          +var combo = new Ext.form.ComboBox({
          +    renderTo: document.body,
          +    mode: 'local',
          +    store: new Ext.data.ArrayStore({
          +        id: 0,
          +        fields: [
          +            'myId',  // numeric value is the key
          +            'displayText'
          +        ],
          +        data: [[1, 'item1'], [2, 'item2']]  // data is local
          +    }),
          +    valueField: 'myId',
          +    displayField: 'displayText',
          +    triggerAction: 'all'
          +});
          +     * 
        • + *
        + */ + mode: 'remote', + /** + * @cfg {Number} minListWidth The minimum width of the dropdown list in pixels (defaults to 70, will + * be ignored if {@link #listWidth} has a higher value) + */ + minListWidth : 70, + /** + * @cfg {Boolean} forceSelection true to restrict the selected value to one of the values in the list, + * false to allow the user to set arbitrary text into the field (defaults to false) + */ + forceSelection : false, + /** + * @cfg {Number} typeAheadDelay The length of time in milliseconds to wait until the typeahead text is displayed + * if {@link #typeAhead} = true (defaults to 250) + */ + typeAheadDelay : 250, + /** + * @cfg {String} valueNotFoundText When using a name/value combo, if the value passed to setValue is not found in + * the store, valueNotFoundText will be displayed as the field text if defined (defaults to undefined). If this + * default text is used, it means there is no value set and no validation will occur on this field. + */ + + /** + * @cfg {Boolean} lazyInit true to not initialize the list for this combo until the field is focused + * (defaults to true) + */ + lazyInit : true, + + /** + * @cfg {Boolean} clearFilterOnReset true to clear any filters on the store (when in local mode) when reset is called + * (defaults to true) + */ + clearFilterOnReset : true, + + /** + * @cfg {Boolean} submitValue False to clear the name attribute on the field so that it is not submitted during a form post. + * If a hiddenName is specified, setting this to true will cause both the hidden field and the element to be submitted. + * Defaults to undefined. + */ + submitValue: undefined, + + /** + * The value of the match string used to filter the store. Delete this property to force a requery. + * Example use: + *
        
        +var combo = new Ext.form.ComboBox({
        +    ...
        +    mode: 'remote',
        +    ...
        +    listeners: {
        +        // delete the previous query in the beforequery event or set
        +        // combo.lastQuery = null (this will reload the store the next time it expands)
        +        beforequery: function(qe){
        +            delete qe.combo.lastQuery;
        +        }
        +    }
        +});
        +     * 
        + * To make sure the filter in the store is not cleared the first time the ComboBox trigger is used + * configure the combo with lastQuery=''. Example use: + *
        
        +var combo = new Ext.form.ComboBox({
        +    ...
        +    mode: 'local',
        +    triggerAction: 'all',
        +    lastQuery: ''
        +});
        +     * 
        + * @property lastQuery + * @type String + */ + + // private + initComponent : function(){ + Ext.form.ComboBox.superclass.initComponent.call(this); + this.addEvents( + /** + * @event expand + * Fires when the dropdown list is expanded + * @param {Ext.form.ComboBox} combo This combo box + */ + 'expand', + /** + * @event collapse + * Fires when the dropdown list is collapsed + * @param {Ext.form.ComboBox} combo This combo box + */ + 'collapse', + + /** + * @event beforeselect + * Fires before a list item is selected. Return false to cancel the selection. + * @param {Ext.form.ComboBox} combo This combo box + * @param {Ext.data.Record} record The data record returned from the underlying store + * @param {Number} index The index of the selected item in the dropdown list + */ + 'beforeselect', + /** + * @event select + * Fires when a list item is selected + * @param {Ext.form.ComboBox} combo This combo box + * @param {Ext.data.Record} record The data record returned from the underlying store + * @param {Number} index The index of the selected item in the dropdown list + */ + 'select', + /** + * @event beforequery + * Fires before all queries are processed. Return false to cancel the query or set the queryEvent's + * cancel property to true. + * @param {Object} queryEvent An object that has these properties:
          + *
        • combo : Ext.form.ComboBox
          This combo box
        • + *
        • query : String
          The query
        • + *
        • forceAll : Boolean
          True to force "all" query
        • + *
        • cancel : Boolean
          Set to true to cancel the query
        • + *
        + */ + 'beforequery' + ); + if(this.transform){ + var s = Ext.getDom(this.transform); + if(!this.hiddenName){ + this.hiddenName = s.name; + } + if(!this.store){ + this.mode = 'local'; + var d = [], opts = s.options; + for(var i = 0, len = opts.length;i < len; i++){ + var o = opts[i], + value = (o.hasAttribute ? o.hasAttribute('value') : o.getAttributeNode('value').specified) ? o.value : o.text; + if(o.selected && Ext.isEmpty(this.value, true)) { + this.value = value; + } + d.push([value, o.text]); + } + this.store = new Ext.data.ArrayStore({ + 'id': 0, + fields: ['value', 'text'], + data : d, + autoDestroy: true + }); + this.valueField = 'value'; + this.displayField = 'text'; + } + s.name = Ext.id(); // wipe out the name in case somewhere else they have a reference + if(!this.lazyRender){ + this.target = true; + this.el = Ext.DomHelper.insertBefore(s, this.autoCreate || this.defaultAutoCreate); + this.render(this.el.parentNode, s); + } + Ext.removeNode(s); + } + //auto-configure store from local array data + else if(this.store){ + this.store = Ext.StoreMgr.lookup(this.store); + if(this.store.autoCreated){ + this.displayField = this.valueField = 'field1'; + if(!this.store.expandData){ + this.displayField = 'field2'; + } + this.mode = 'local'; + } + } + + this.selectedIndex = -1; + if(this.mode == 'local'){ + if(!Ext.isDefined(this.initialConfig.queryDelay)){ + this.queryDelay = 10; + } + if(!Ext.isDefined(this.initialConfig.minChars)){ + this.minChars = 0; + } + } + }, + + // private + onRender : function(ct, position){ + if(this.hiddenName && !Ext.isDefined(this.submitValue)){ + this.submitValue = false; + } + Ext.form.ComboBox.superclass.onRender.call(this, ct, position); + if(this.hiddenName){ + this.hiddenField = this.el.insertSibling({tag:'input', type:'hidden', name: this.hiddenName, + id: (this.hiddenId||this.hiddenName)}, 'before', true); + + } + if(Ext.isGecko){ + this.el.dom.setAttribute('autocomplete', 'off'); + } + + if(!this.lazyInit){ + this.initList(); + }else{ + this.on('focus', this.initList, this, {single: true}); + } + }, + + // private + initValue : function(){ + Ext.form.ComboBox.superclass.initValue.call(this); + if(this.hiddenField){ + this.hiddenField.value = + Ext.value(Ext.isDefined(this.hiddenValue) ? this.hiddenValue : this.value, ''); + } + }, + + getParentZIndex : function(){ + var zindex; + if (this.ownerCt){ + this.findParentBy(function(ct){ + zindex = parseInt(ct.getPositionEl().getStyle('z-index'), 10); + return !!zindex; + }); + } + return zindex; + }, + + // private + initList : function(){ + if(!this.list){ + var cls = 'x-combo-list', + listParent = Ext.getDom(this.getListParent() || Ext.getBody()), + zindex = parseInt(Ext.fly(listParent).getStyle('z-index'), 10); + + if (!zindex) { + zindex = this.getParentZIndex(); + } + + this.list = new Ext.Layer({ + parentEl: listParent, + shadow: this.shadow, + cls: [cls, this.listClass].join(' '), + constrain:false, + zindex: (zindex || 12000) + 5 + }); + + var lw = this.listWidth || Math.max(this.wrap.getWidth(), this.minListWidth); + this.list.setSize(lw, 0); + this.list.swallowEvent('mousewheel'); + this.assetHeight = 0; + if(this.syncFont !== false){ + this.list.setStyle('font-size', this.el.getStyle('font-size')); + } + if(this.title){ + this.header = this.list.createChild({cls:cls+'-hd', html: this.title}); + this.assetHeight += this.header.getHeight(); + } + + this.innerList = this.list.createChild({cls:cls+'-inner'}); + this.mon(this.innerList, 'mouseover', this.onViewOver, this); + this.mon(this.innerList, 'mousemove', this.onViewMove, this); + this.innerList.setWidth(lw - this.list.getFrameWidth('lr')); + + if(this.pageSize){ + this.footer = this.list.createChild({cls:cls+'-ft'}); + this.pageTb = new Ext.PagingToolbar({ + store: this.store, + pageSize: this.pageSize, + renderTo:this.footer + }); + this.assetHeight += this.footer.getHeight(); + } + + if(!this.tpl){ + /** + * @cfg {String/Ext.XTemplate} tpl

        The template string, or {@link Ext.XTemplate} instance to + * use to display each item in the dropdown list. The dropdown list is displayed in a + * DataView. See {@link #view}.

        + *

        The default template string is:

        
        +                  '<tpl for="."><div class="x-combo-list-item">{' + this.displayField + '}</div></tpl>'
        +                * 
        + *

        Override the default value to create custom UI layouts for items in the list. + * For example:

        
        +                  '<tpl for="."><div ext:qtip="{state}. {nick}" class="x-combo-list-item">{state}</div></tpl>'
        +                * 
        + *

        The template must contain one or more substitution parameters using field + * names from the Combo's {@link #store Store}. In the example above an + *

        ext:qtip
        attribute is added to display other fields from the Store.

        + *

        To preserve the default visual look of list items, add the CSS class name + *

        x-combo-list-item
        to the template's container element.

        + *

        Also see {@link #itemSelector} for additional details.

        + */ + this.tpl = '
        {' + this.displayField + '}
        '; + /** + * @cfg {String} itemSelector + *

        A simple CSS selector (e.g. div.some-class or span:first-child) that will be + * used to determine what nodes the {@link #view Ext.DataView} which handles the dropdown + * display will be working with.

        + *

        Note: this setting is required if a custom XTemplate has been + * specified in {@link #tpl} which assigns a class other than

        'x-combo-list-item'
        + * to dropdown list items
        + */ + } + + /** + * The {@link Ext.DataView DataView} used to display the ComboBox's options. + * @type Ext.DataView + */ + this.view = new Ext.DataView({ + applyTo: this.innerList, + tpl: this.tpl, + singleSelect: true, + selectedClass: this.selectedClass, + itemSelector: this.itemSelector || '.' + cls + '-item', + emptyText: this.listEmptyText, + deferEmptyText: false + }); + + this.mon(this.view, { + containerclick : this.onViewClick, + click : this.onViewClick, + scope :this + }); + + this.bindStore(this.store, true); + + if(this.resizable){ + this.resizer = new Ext.Resizable(this.list, { + pinned:true, handles:'se' + }); + this.mon(this.resizer, 'resize', function(r, w, h){ + this.maxHeight = h-this.handleHeight-this.list.getFrameWidth('tb')-this.assetHeight; + this.listWidth = w; + this.innerList.setWidth(w - this.list.getFrameWidth('lr')); + this.restrictHeight(); + }, this); + + this[this.pageSize?'footer':'innerList'].setStyle('margin-bottom', this.handleHeight+'px'); + } + } + }, + + /** + *

        Returns the element used to house this ComboBox's pop-up list. Defaults to the document body.

        + * A custom implementation may be provided as a configuration option if the floating list needs to be rendered + * to a different Element. An example might be rendering the list inside a Menu so that clicking + * the list does not hide the Menu:
        
        +var store = new Ext.data.ArrayStore({
        +    autoDestroy: true,
        +    fields: ['initials', 'fullname'],
        +    data : [
        +        ['FF', 'Fred Flintstone'],
        +        ['BR', 'Barney Rubble']
        +    ]
        +});
        +
        +var combo = new Ext.form.ComboBox({
        +    store: store,
        +    displayField: 'fullname',
        +    emptyText: 'Select a name...',
        +    forceSelection: true,
        +    getListParent: function() {
        +        return this.el.up('.x-menu');
        +    },
        +    iconCls: 'no-icon', //use iconCls if placing within menu to shift to right side of menu
        +    mode: 'local',
        +    selectOnFocus: true,
        +    triggerAction: 'all',
        +    typeAhead: true,
        +    width: 135
        +});
        +
        +var menu = new Ext.menu.Menu({
        +    id: 'mainMenu',
        +    items: [
        +        combo // A Field in a Menu
        +    ]
        +});
        +
        + */ + getListParent : function() { + return document.body; + }, + + /** + * Returns the store associated with this combo. + * @return {Ext.data.Store} The store + */ + getStore : function(){ + return this.store; + }, + + // private + bindStore : function(store, initial){ + if(this.store && !initial){ + if(this.store !== store && this.store.autoDestroy){ + this.store.destroy(); + }else{ + this.store.un('beforeload', this.onBeforeLoad, this); + this.store.un('load', this.onLoad, this); + this.store.un('exception', this.collapse, this); + } + if(!store){ + this.store = null; + if(this.view){ + this.view.bindStore(null); + } + if(this.pageTb){ + this.pageTb.bindStore(null); + } + } + } + if(store){ + if(!initial) { + this.lastQuery = null; + if(this.pageTb) { + this.pageTb.bindStore(store); + } + } + + this.store = Ext.StoreMgr.lookup(store); + this.store.on({ + scope: this, + beforeload: this.onBeforeLoad, + load: this.onLoad, + exception: this.collapse + }); + + if(this.view){ + this.view.bindStore(store); + } + } + }, + + reset : function(){ + Ext.form.ComboBox.superclass.reset.call(this); + if(this.clearFilterOnReset && this.mode == 'local'){ + this.store.clearFilter(); + } + }, + + // private + initEvents : function(){ + Ext.form.ComboBox.superclass.initEvents.call(this); + + /** + * @property keyNav + * @type Ext.KeyNav + *

        A {@link Ext.KeyNav KeyNav} object which handles navigation keys for this ComboBox. This performs actions + * based on keystrokes typed when the input field is focused.

        + *

        After the ComboBox has been rendered, you may override existing navigation key functionality, + * or add your own based upon key names as specified in the {@link Ext.KeyNav KeyNav} class.

        + *

        The function is executed in the scope (this reference of the ComboBox. Example:

        
        +myCombo.keyNav.esc = function(e) {  // Override ESC handling function
        +    this.collapse();                // Standard behaviour of Ext's ComboBox.
        +    this.setValue(this.startValue); // We reset to starting value on ESC
        +};
        +myCombo.keyNav.tab = function() {   // Override TAB handling function
        +    this.onViewClick(false);        // Select the currently highlighted row
        +};
        +
        + */ + this.keyNav = new Ext.KeyNav(this.el, { + "up" : function(e){ + this.inKeyMode = true; + this.selectPrev(); + }, + + "down" : function(e){ + if(!this.isExpanded()){ + this.onTriggerClick(); + }else{ + this.inKeyMode = true; + this.selectNext(); + } + }, + + "enter" : function(e){ + this.onViewClick(); + }, + + "esc" : function(e){ + this.collapse(); + }, + + "tab" : function(e){ + if (this.forceSelection === true) { + this.collapse(); + } else { + this.onViewClick(false); + } + return true; + }, + + scope : this, + + doRelay : function(e, h, hname){ + if(hname == 'down' || this.scope.isExpanded()){ + // this MUST be called before ComboBox#fireKey() + var relay = Ext.KeyNav.prototype.doRelay.apply(this, arguments); + if(!Ext.isIE && Ext.EventManager.useKeydown){ + // call Combo#fireKey() for browsers which use keydown event (except IE) + this.scope.fireKey(e); + } + return relay; + } + return true; + }, + + forceKeyDown : true, + defaultEventAction: 'stopEvent' + }); + this.queryDelay = Math.max(this.queryDelay || 10, + this.mode == 'local' ? 10 : 250); + this.dqTask = new Ext.util.DelayedTask(this.initQuery, this); + if(this.typeAhead){ + this.taTask = new Ext.util.DelayedTask(this.onTypeAhead, this); + } + if(!this.enableKeyEvents){ + this.mon(this.el, 'keyup', this.onKeyUp, this); + } + }, + + + // private + onDestroy : function(){ + if (this.dqTask){ + this.dqTask.cancel(); + this.dqTask = null; + } + this.bindStore(null); + Ext.destroy( + this.resizer, + this.view, + this.pageTb, + this.list + ); + Ext.destroyMembers(this, 'hiddenField'); + Ext.form.ComboBox.superclass.onDestroy.call(this); + }, + + // private + fireKey : function(e){ + if (!this.isExpanded()) { + Ext.form.ComboBox.superclass.fireKey.call(this, e); + } + }, + + // private + onResize : function(w, h){ + Ext.form.ComboBox.superclass.onResize.apply(this, arguments); + if(!isNaN(w) && this.isVisible() && this.list){ + this.doResize(w); + }else{ + this.bufferSize = w; + } + }, + + doResize: function(w){ + if(!Ext.isDefined(this.listWidth)){ + var lw = Math.max(w, this.minListWidth); + this.list.setWidth(lw); + this.innerList.setWidth(lw - this.list.getFrameWidth('lr')); + } + }, + + // private + onEnable : function(){ + Ext.form.ComboBox.superclass.onEnable.apply(this, arguments); + if(this.hiddenField){ + this.hiddenField.disabled = false; + } + }, + + // private + onDisable : function(){ + Ext.form.ComboBox.superclass.onDisable.apply(this, arguments); + if(this.hiddenField){ + this.hiddenField.disabled = true; + } + }, + + // private + onBeforeLoad : function(){ + if(!this.hasFocus){ + return; + } + this.innerList.update(this.loadingText ? + '
        '+this.loadingText+'
        ' : ''); + this.restrictHeight(); + this.selectedIndex = -1; + }, + + // private + onLoad : function(){ + if(!this.hasFocus){ + return; + } + if(this.store.getCount() > 0 || this.listEmptyText){ + this.expand(); + this.restrictHeight(); + if(this.lastQuery == this.allQuery){ + if(this.editable){ + this.el.dom.select(); + } + + if(this.autoSelect !== false && !this.selectByValue(this.value, true)){ + this.select(0, true); + } + }else{ + if(this.autoSelect !== false){ + this.selectNext(); + } + if(this.typeAhead && this.lastKey != Ext.EventObject.BACKSPACE && this.lastKey != Ext.EventObject.DELETE){ + this.taTask.delay(this.typeAheadDelay); + } + } + }else{ + this.collapse(); + } + + }, + + // private + onTypeAhead : function(){ + if(this.store.getCount() > 0){ + var r = this.store.getAt(0); + var newValue = r.data[this.displayField]; + var len = newValue.length; + var selStart = this.getRawValue().length; + if(selStart != len){ + this.setRawValue(newValue); + this.selectText(selStart, newValue.length); + } + } + }, + + // private + assertValue : function(){ + var val = this.getRawValue(), + rec = this.findRecord(this.displayField, val); + + if(!rec && this.forceSelection){ + if(val.length > 0 && val != this.emptyText){ + this.el.dom.value = Ext.value(this.lastSelectionText, ''); + this.applyEmptyText(); + }else{ + this.clearValue(); + } + }else{ + if(rec){ + // onSelect may have already set the value and by doing so + // set the display field properly. Let's not wipe out the + // valueField here by just sending the displayField. + if (val == rec.get(this.displayField) && this.value == rec.get(this.valueField)){ + return; + } + val = rec.get(this.valueField || this.displayField); + } + this.setValue(val); + } + }, + + // private + onSelect : function(record, index){ + if(this.fireEvent('beforeselect', this, record, index) !== false){ + this.setValue(record.data[this.valueField || this.displayField]); + this.collapse(); + this.fireEvent('select', this, record, index); + } + }, + + // inherit docs + getName: function(){ + var hf = this.hiddenField; + return hf && hf.name ? hf.name : this.hiddenName || Ext.form.ComboBox.superclass.getName.call(this); + }, + + /** + * Returns the currently selected field value or empty string if no value is set. + * @return {String} value The selected value + */ + getValue : function(){ + if(this.valueField){ + return Ext.isDefined(this.value) ? this.value : ''; + }else{ + return Ext.form.ComboBox.superclass.getValue.call(this); + } + }, + + /** + * Clears any text/value currently set in the field + */ + clearValue : function(){ + if(this.hiddenField){ + this.hiddenField.value = ''; + } + this.setRawValue(''); + this.lastSelectionText = ''; + this.applyEmptyText(); + this.value = ''; + }, + + /** + * Sets the specified value into the field. If the value finds a match, the corresponding record text + * will be displayed in the field. If the value does not match the data value of an existing item, + * and the valueNotFoundText config option is defined, it will be displayed as the default field text. + * Otherwise the field will be blank (although the value will still be set). + * @param {String} value The value to match + * @return {Ext.form.Field} this + */ + setValue : function(v){ + var text = v; + if(this.valueField){ + var r = this.findRecord(this.valueField, v); + if(r){ + text = r.data[this.displayField]; + }else if(Ext.isDefined(this.valueNotFoundText)){ + text = this.valueNotFoundText; + } + } + this.lastSelectionText = text; + if(this.hiddenField){ + this.hiddenField.value = Ext.value(v, ''); + } + Ext.form.ComboBox.superclass.setValue.call(this, text); + this.value = v; + return this; + }, + + // private + findRecord : function(prop, value){ + var record; + if(this.store.getCount() > 0){ + this.store.each(function(r){ + if(r.data[prop] == value){ + record = r; + return false; + } + }); + } + return record; + }, + + // private + onViewMove : function(e, t){ + this.inKeyMode = false; + }, + + // private + onViewOver : function(e, t){ + if(this.inKeyMode){ // prevent key nav and mouse over conflicts + return; + } + var item = this.view.findItemFromChild(t); + if(item){ + var index = this.view.indexOf(item); + this.select(index, false); + } + }, + + // private + onViewClick : function(doFocus){ + var index = this.view.getSelectedIndexes()[0], + s = this.store, + r = s.getAt(index); + if(r){ + this.onSelect(r, index); + }else { + this.collapse(); + } + if(doFocus !== false){ + this.el.focus(); + } + }, + + + // private + restrictHeight : function(){ + this.innerList.dom.style.height = ''; + var inner = this.innerList.dom, + pad = this.list.getFrameWidth('tb') + (this.resizable ? this.handleHeight : 0) + this.assetHeight, + h = Math.max(inner.clientHeight, inner.offsetHeight, inner.scrollHeight), + ha = this.getPosition()[1]-Ext.getBody().getScroll().top, + hb = Ext.lib.Dom.getViewHeight()-ha-this.getSize().height, + space = Math.max(ha, hb, this.minHeight || 0)-this.list.shadowOffset-pad-5; + + h = Math.min(h, space, this.maxHeight); + + this.innerList.setHeight(h); + this.list.beginUpdate(); + this.list.setHeight(h+pad); + this.list.alignTo.apply(this.list, [this.el].concat(this.listAlign)); + this.list.endUpdate(); + }, + + /** + * Returns true if the dropdown list is expanded, else false. + */ + isExpanded : function(){ + return this.list && this.list.isVisible(); + }, + + /** + * Select an item in the dropdown list by its data value. This function does NOT cause the select event to fire. + * The store must be loaded and the list expanded for this function to work, otherwise use setValue. + * @param {String} value The data value of the item to select + * @param {Boolean} scrollIntoView False to prevent the dropdown list from autoscrolling to display the + * selected item if it is not currently in view (defaults to true) + * @return {Boolean} True if the value matched an item in the list, else false + */ + selectByValue : function(v, scrollIntoView){ + if(!Ext.isEmpty(v, true)){ + var r = this.findRecord(this.valueField || this.displayField, v); + if(r){ + this.select(this.store.indexOf(r), scrollIntoView); + return true; + } + } + return false; + }, + + /** + * Select an item in the dropdown list by its numeric index in the list. This function does NOT cause the select event to fire. + * The store must be loaded and the list expanded for this function to work, otherwise use setValue. + * @param {Number} index The zero-based index of the list item to select + * @param {Boolean} scrollIntoView False to prevent the dropdown list from autoscrolling to display the + * selected item if it is not currently in view (defaults to true) + */ + select : function(index, scrollIntoView){ + this.selectedIndex = index; + this.view.select(index); + if(scrollIntoView !== false){ + var el = this.view.getNode(index); + if(el){ + this.innerList.scrollChildIntoView(el, false); + } + } + + }, + + // private + selectNext : function(){ + var ct = this.store.getCount(); + if(ct > 0){ + if(this.selectedIndex == -1){ + this.select(0); + }else if(this.selectedIndex < ct-1){ + this.select(this.selectedIndex+1); + } + } + }, + + // private + selectPrev : function(){ + var ct = this.store.getCount(); + if(ct > 0){ + if(this.selectedIndex == -1){ + this.select(0); + }else if(this.selectedIndex !== 0){ + this.select(this.selectedIndex-1); + } + } + }, + + // private + onKeyUp : function(e){ + var k = e.getKey(); + if(this.editable !== false && this.readOnly !== true && (k == e.BACKSPACE || !e.isSpecialKey())){ + + this.lastKey = k; + this.dqTask.delay(this.queryDelay); + } + Ext.form.ComboBox.superclass.onKeyUp.call(this, e); + }, + + // private + validateBlur : function(){ + return !this.list || !this.list.isVisible(); + }, + + // private + initQuery : function(){ + this.doQuery(this.getRawValue()); + }, + + // private + beforeBlur : function(){ + this.assertValue(); + }, + + // private + postBlur : function(){ + Ext.form.ComboBox.superclass.postBlur.call(this); + this.collapse(); + this.inKeyMode = false; + }, + + /** + * Execute a query to filter the dropdown list. Fires the {@link #beforequery} event prior to performing the + * query allowing the query action to be canceled if needed. + * @param {String} query The SQL query to execute + * @param {Boolean} forceAll true to force the query to execute even if there are currently fewer + * characters in the field than the minimum specified by the {@link #minChars} config option. It + * also clears any filter previously saved in the current store (defaults to false) + */ + doQuery : function(q, forceAll){ + q = Ext.isEmpty(q) ? '' : q; + var qe = { + query: q, + forceAll: forceAll, + combo: this, + cancel:false + }; + if(this.fireEvent('beforequery', qe)===false || qe.cancel){ + return false; + } + q = qe.query; + forceAll = qe.forceAll; + if(forceAll === true || (q.length >= this.minChars)){ + if(this.lastQuery !== q){ + this.lastQuery = q; + if(this.mode == 'local'){ + this.selectedIndex = -1; + if(forceAll){ + this.store.clearFilter(); + }else{ + this.store.filter(this.displayField, q); + } + this.onLoad(); + }else{ + this.store.baseParams[this.queryParam] = q; + this.store.load({ + params: this.getParams(q) + }); + this.expand(); + } + }else{ + this.selectedIndex = -1; + this.onLoad(); + } + } + }, + + // private + getParams : function(q){ + var p = {}; + //p[this.queryParam] = q; + if(this.pageSize){ + p.start = 0; + p.limit = this.pageSize; + } + return p; + }, + + /** + * Hides the dropdown list if it is currently expanded. Fires the {@link #collapse} event on completion. + */ + collapse : function(){ + if(!this.isExpanded()){ + return; + } + this.list.hide(); + Ext.getDoc().un('mousewheel', this.collapseIf, this); + Ext.getDoc().un('mousedown', this.collapseIf, this); + this.fireEvent('collapse', this); + }, + + // private + collapseIf : function(e){ + if(!this.isDestroyed && !e.within(this.wrap) && !e.within(this.list)){ + this.collapse(); + } + }, + + /** + * Expands the dropdown list if it is currently hidden. Fires the {@link #expand} event on completion. + */ + expand : function(){ + if(this.isExpanded() || !this.hasFocus){ + return; + } + + if(this.title || this.pageSize){ + this.assetHeight = 0; + if(this.title){ + this.assetHeight += this.header.getHeight(); + } + if(this.pageSize){ + this.assetHeight += this.footer.getHeight(); + } + } + + if(this.bufferSize){ + this.doResize(this.bufferSize); + delete this.bufferSize; + } + this.list.alignTo.apply(this.list, [this.el].concat(this.listAlign)); + + // zindex can change, re-check it and set it if necessary + var listParent = Ext.getDom(this.getListParent() || Ext.getBody()), + zindex = parseInt(Ext.fly(listParent).getStyle('z-index') ,10); + if (!zindex){ + zindex = this.getParentZIndex(); + } + if (zindex) { + this.list.setZIndex(zindex + 5); + } + this.list.show(); + if(Ext.isGecko2){ + this.innerList.setOverflow('auto'); // necessary for FF 2.0/Mac + } + this.mon(Ext.getDoc(), { + scope: this, + mousewheel: this.collapseIf, + mousedown: this.collapseIf + }); + this.fireEvent('expand', this); + }, + + /** + * @method onTriggerClick + * @hide + */ + // private + // Implements the default empty TriggerField.onTriggerClick function + onTriggerClick : function(){ + if(this.readOnly || this.disabled){ + return; + } + if(this.isExpanded()){ + this.collapse(); + this.el.focus(); + }else { + this.onFocus({}); + if(this.triggerAction == 'all') { + this.doQuery(this.allQuery, true); + } else { + this.doQuery(this.getRawValue()); + } + this.el.focus(); + } + } + + /** + * @hide + * @method autoSize + */ + /** + * @cfg {Boolean} grow @hide + */ + /** + * @cfg {Number} growMin @hide + */ + /** + * @cfg {Number} growMax @hide + */ + +}); +Ext.reg('combo', Ext.form.ComboBox); +/** + * @class Ext.form.Checkbox + * @extends Ext.form.Field + * Single checkbox field. Can be used as a direct replacement for traditional checkbox fields. + * @constructor + * Creates a new Checkbox + * @param {Object} config Configuration options + * @xtype checkbox + */ +Ext.form.Checkbox = Ext.extend(Ext.form.Field, { + /** + * @cfg {String} focusClass The CSS class to use when the checkbox receives focus (defaults to undefined) + */ + focusClass : undefined, + /** + * @cfg {String} fieldClass The default CSS class for the checkbox (defaults to 'x-form-field') + */ + fieldClass : 'x-form-field', + /** + * @cfg {Boolean} checked true if the checkbox should render initially checked (defaults to false) + */ + checked : false, + /** + * @cfg {String} boxLabel The text that appears beside the checkbox + */ + boxLabel: ' ', + /** + * @cfg {String/Object} autoCreate A DomHelper element spec, or true for a default element spec (defaults to + * {tag: 'input', type: 'checkbox', autocomplete: 'off'}) + */ + defaultAutoCreate : { tag: 'input', type: 'checkbox', autocomplete: 'off'}, + /** + * @cfg {String} boxLabel The text that appears beside the checkbox + */ + /** + * @cfg {String} inputValue The value that should go into the generated input element's value attribute + */ + /** + * @cfg {Function} handler A function called when the {@link #checked} value changes (can be used instead of + * handling the check event). The handler is passed the following parameters: + *
          + *
        • checkbox : Ext.form.Checkbox
          The Checkbox being toggled.
        • + *
        • checked : Boolean
          The new checked state of the checkbox.
        • + *
        + */ + /** + * @cfg {Object} scope An object to use as the scope ('this' reference) of the {@link #handler} function + * (defaults to this Checkbox). + */ + + // private + actionMode : 'wrap', + + // private + initComponent : function(){ + Ext.form.Checkbox.superclass.initComponent.call(this); + this.addEvents( + /** + * @event check + * Fires when the checkbox is checked or unchecked. + * @param {Ext.form.Checkbox} this This checkbox + * @param {Boolean} checked The new checked value + */ + 'check' + ); + }, + + // private + onResize : function(){ + Ext.form.Checkbox.superclass.onResize.apply(this, arguments); + if(!this.boxLabel && !this.fieldLabel){ + this.el.alignTo(this.wrap, 'c-c'); + } + }, + + // private + initEvents : function(){ + Ext.form.Checkbox.superclass.initEvents.call(this); + this.mon(this.el, { + scope: this, + click: this.onClick, + change: this.onClick + }); + }, + + /** + * @hide + * Overridden and disabled. The editor element does not support standard valid/invalid marking. + * @method + */ + markInvalid : Ext.emptyFn, + /** + * @hide + * Overridden and disabled. The editor element does not support standard valid/invalid marking. + * @method + */ + clearInvalid : Ext.emptyFn, + + // private + onRender : function(ct, position){ + Ext.form.Checkbox.superclass.onRender.call(this, ct, position); + if(this.inputValue !== undefined){ + this.el.dom.value = this.inputValue; + } + this.wrap = this.el.wrap({cls: 'x-form-check-wrap'}); + if(this.boxLabel){ + this.wrap.createChild({tag: 'label', htmlFor: this.el.id, cls: 'x-form-cb-label', html: this.boxLabel}); + } + if(this.checked){ + this.setValue(true); + }else{ + this.checked = this.el.dom.checked; + } + // Need to repaint for IE, otherwise positioning is broken + if(Ext.isIE){ + this.wrap.repaint(); + } + this.resizeEl = this.positionEl = this.wrap; + }, + + // private + onDestroy : function(){ + Ext.destroy(this.wrap); + Ext.form.Checkbox.superclass.onDestroy.call(this); + }, + + // private + initValue : function() { + this.originalValue = this.getValue(); + }, + + /** + * Returns the checked state of the checkbox. + * @return {Boolean} True if checked, else false + */ + getValue : function(){ + if(this.rendered){ + return this.el.dom.checked; + } + return this.checked; + }, + + // private + onClick : function(){ + if(this.el.dom.checked != this.checked){ + this.setValue(this.el.dom.checked); + } + }, + + /** + * Sets the checked state of the checkbox, fires the 'check' event, and calls a + * {@link #handler} (if configured). + * @param {Boolean/String} checked The following values will check the checkbox: + * true, 'true', '1', or 'on'. Any other value will uncheck the checkbox. + * @return {Ext.form.Field} this + */ + setValue : function(v){ + var checked = this.checked ; + this.checked = (v === true || v === 'true' || v == '1' || String(v).toLowerCase() == 'on'); + if(this.rendered){ + this.el.dom.checked = this.checked; + this.el.dom.defaultChecked = this.checked; + } + if(checked != this.checked){ + this.fireEvent('check', this, this.checked); + if(this.handler){ + this.handler.call(this.scope || this, this, this.checked); + } + } + return this; + } +}); +Ext.reg('checkbox', Ext.form.Checkbox); +/** + * @class Ext.form.CheckboxGroup + * @extends Ext.form.Field + *

        A grouping container for {@link Ext.form.Checkbox} controls.

        + *

        Sample usage:

        + *
        
        +var myCheckboxGroup = new Ext.form.CheckboxGroup({
        +    id:'myGroup',
        +    xtype: 'checkboxgroup',
        +    fieldLabel: 'Single Column',
        +    itemCls: 'x-check-group-alt',
        +    // Put all controls in a single column with width 100%
        +    columns: 1,
        +    items: [
        +        {boxLabel: 'Item 1', name: 'cb-col-1'},
        +        {boxLabel: 'Item 2', name: 'cb-col-2', checked: true},
        +        {boxLabel: 'Item 3', name: 'cb-col-3'}
        +    ]
        +});
        + * 
        + * @constructor + * Creates a new CheckboxGroup + * @param {Object} config Configuration options + * @xtype checkboxgroup + */ +Ext.form.CheckboxGroup = Ext.extend(Ext.form.Field, { + /** + * @cfg {Array} items An Array of {@link Ext.form.Checkbox Checkbox}es or Checkbox config objects + * to arrange in the group. + */ + /** + * @cfg {String/Number/Array} columns Specifies the number of columns to use when displaying grouped + * checkbox/radio controls using automatic layout. This config can take several types of values: + *
        • 'auto' :

          The controls will be rendered one per column on one row and the width + * of each column will be evenly distributed based on the width of the overall field container. This is the default.

        • + *
        • Number :

          If you specific a number (e.g., 3) that number of columns will be + * created and the contained controls will be automatically distributed based on the value of {@link #vertical}.

        • + *
        • Array : Object

          You can also specify an array of column widths, mixing integer + * (fixed width) and float (percentage width) values as needed (e.g., [100, .25, .75]). Any integer values will + * be rendered first, then any float values will be calculated as a percentage of the remaining space. Float + * values do not have to add up to 1 (100%) although if you want the controls to take up the entire field + * container you should do so.

        + */ + columns : 'auto', + /** + * @cfg {Boolean} vertical True to distribute contained controls across columns, completely filling each column + * top to bottom before starting on the next column. The number of controls in each column will be automatically + * calculated to keep columns as even as possible. The default value is false, so that controls will be added + * to columns one at a time, completely filling each row left to right before starting on the next row. + */ + vertical : false, + /** + * @cfg {Boolean} allowBlank False to validate that at least one item in the group is checked (defaults to true). + * If no items are selected at validation time, {@link @blankText} will be used as the error text. + */ + allowBlank : true, + /** + * @cfg {String} blankText Error text to display if the {@link #allowBlank} validation fails (defaults to "You must + * select at least one item in this group") + */ + blankText : "You must select at least one item in this group", + + // private + defaultType : 'checkbox', + + // private + groupCls : 'x-form-check-group', + + // private + initComponent: function(){ + this.addEvents( + /** + * @event change + * Fires when the state of a child checkbox changes. + * @param {Ext.form.CheckboxGroup} this + * @param {Array} checked An array containing the checked boxes. + */ + 'change' + ); + this.on('change', this.validate, this); + Ext.form.CheckboxGroup.superclass.initComponent.call(this); + }, + + // private + onRender : function(ct, position){ + if(!this.el){ + var panelCfg = { + autoEl: { + id: this.id + }, + cls: this.groupCls, + layout: 'column', + renderTo: ct, + bufferResize: false // Default this to false, since it doesn't really have a proper ownerCt. + }; + var colCfg = { + xtype: 'container', + defaultType: this.defaultType, + layout: 'form', + defaults: { + hideLabel: true, + anchor: '100%' + } + }; + + if(this.items[0].items){ + + // The container has standard ColumnLayout configs, so pass them in directly + + Ext.apply(panelCfg, { + layoutConfig: {columns: this.items.length}, + defaults: this.defaults, + items: this.items + }); + for(var i=0, len=this.items.length; i0 && i%rows==0){ + ri++; + } + if(this.items[i].fieldLabel){ + this.items[i].hideLabel = false; + } + cols[ri].items.push(this.items[i]); + }; + }else{ + for(var i=0, len=this.items.length; i
    + * See {@link Ext.form.Checkbox#setValue} for additional information. + * @param {Mixed} id The checkbox to check, or as described by example shown. + * @param {Boolean} value (optional) The value to set the item. + * @return {Ext.form.CheckboxGroup} this + */ + setValue: function(){ + if(this.rendered){ + this.onSetValue.apply(this, arguments); + }else{ + this.buffered = true; + this.value = arguments; + } + return this; + }, + + /** + * @private + * Sets the values of one or more of the items within the CheckboxGroup + * @param {String|Array|Object} id Can take multiple forms. Can be optionally: + *
      + *
    • An ID string to be used with a second argument
    • + *
    • An array of the form ['some', 'list', 'of', 'ids', 'to', 'mark', 'checked']
    • + *
    • An array in the form [true, true, false, true, false] etc, where each item relates to the check status of + * the checkbox at the same index
    • + *
    • An object containing ids of the checkboxes as keys and check values as properties
    • + *
    + * @param {String} value The value to set the field to if the first argument was a string + */ + onSetValue: function(id, value){ + if(arguments.length == 1){ + if(Ext.isArray(id)){ + Ext.each(id, function(val, idx){ + if (Ext.isObject(val) && val.setValue){ // array of checkbox components to be checked + val.setValue(true); + if (this.resetOriginal === true) { + val.originalValue = val.getValue(); + } + } else { // an array of boolean values + var item = this.items.itemAt(idx); + if(item){ + item.setValue(val); + } + } + }, this); + }else if(Ext.isObject(id)){ + // set of name/value pairs + for(var i in id){ + var f = this.getBox(i); + if(f){ + f.setValue(id[i]); + } + } + }else{ + this.setValueForItem(id); + } + }else{ + var f = this.getBox(id); + if(f){ + f.setValue(value); + } + } + }, + + // private + beforeDestroy: function(){ + Ext.destroy(this.panel); + Ext.form.CheckboxGroup.superclass.beforeDestroy.call(this); + + }, + + setValueForItem : function(val){ + val = String(val).split(','); + this.eachItem(function(item){ + if(val.indexOf(item.inputValue)> -1){ + item.setValue(true); + } + }); + }, + + // private + getBox : function(id){ + var box = null; + this.eachItem(function(f){ + if(id == f || f.dataIndex == id || f.id == id || f.getName() == id){ + box = f; + return false; + } + }); + return box; + }, + + /** + * Gets an array of the selected {@link Ext.form.Checkbox} in the group. + * @return {Array} An array of the selected checkboxes. + */ + getValue : function(){ + var out = []; + this.eachItem(function(item){ + if(item.checked){ + out.push(item); + } + }); + return out; + }, + + /** + * @private + * Convenience function which passes the given function to every item in the composite + * @param {Function} fn The function to call + * @param {Object} scope Optional scope object + */ + eachItem: function(fn, scope) { + if(this.items && this.items.each){ + this.items.each(fn, scope || this); + } + }, + + /** + * @cfg {String} name + * @hide + */ + + /** + * @method getRawValue + * @hide + */ + getRawValue : Ext.emptyFn, + + /** + * @method setRawValue + * @hide + */ + setRawValue : Ext.emptyFn + +}); + +Ext.reg('checkboxgroup', Ext.form.CheckboxGroup); +/** + * @class Ext.form.CompositeField + * @extends Ext.form.Field + * Composite field allowing a number of form Fields to be rendered on the same row. The fields are rendered + * using an hbox layout internally, so all of the normal HBox layout config items are available. Example usage: + *
    +{
    +    xtype: 'compositefield',
    +    labelWidth: 120
    +    items: [
    +        {
    +            xtype     : 'textfield',
    +            fieldLabel: 'Title',
    +            width     : 20
    +        },
    +        {
    +            xtype     : 'textfield',
    +            fieldLabel: 'First',
    +            flex      : 1
    +        },
    +        {
    +            xtype     : 'textfield',
    +            fieldLabel: 'Last',
    +            flex      : 1
    +        }
    +    ]
    +}
    + * 
    + * In the example above the composite's fieldLabel will be set to 'Title, First, Last' as it groups the fieldLabels + * of each of its children. This can be overridden by setting a fieldLabel on the compositefield itself: + *
    +{
    +    xtype: 'compositefield',
    +    fieldLabel: 'Custom label',
    +    items: [...]
    +}
    + * 
    + * Any Ext.form.* component can be placed inside a composite field. + */ +Ext.form.CompositeField = Ext.extend(Ext.form.Field, { + + /** + * @property defaultMargins + * @type String + * The margins to apply by default to each field in the composite + */ + defaultMargins: '0 5 0 0', + + /** + * @property skipLastItemMargin + * @type Boolean + * If true, the defaultMargins are not applied to the last item in the composite field set (defaults to true) + */ + skipLastItemMargin: true, + + /** + * @property isComposite + * @type Boolean + * Signifies that this is a Composite field + */ + isComposite: true, + + /** + * @property combineErrors + * @type Boolean + * True to combine errors from the individual fields into a single error message at the CompositeField level (defaults to true) + */ + combineErrors: true, + + //inherit docs + //Builds the composite field label + initComponent: function() { + var labels = [], + items = this.items, + item; + + for (var i=0, j = items.length; i < j; i++) { + item = items[i]; + + labels.push(item.fieldLabel); + + //apply any defaults + Ext.apply(item, this.defaults); + + //apply default margins to each item except the last + if (!(i == j - 1 && this.skipLastItemMargin)) { + Ext.applyIf(item, {margins: this.defaultMargins}); + } + } + + this.fieldLabel = this.fieldLabel || this.buildLabel(labels); + + /** + * @property fieldErrors + * @type Ext.util.MixedCollection + * MixedCollection of current errors on the Composite's subfields. This is used internally to track when + * to show and hide error messages at the Composite level. Listeners are attached to the MixedCollection's + * add, remove and replace events to update the error icon in the UI as errors are added or removed. + */ + this.fieldErrors = new Ext.util.MixedCollection(true, function(item) { + return item.field; + }); + + this.fieldErrors.on({ + scope : this, + add : this.updateInvalidMark, + remove : this.updateInvalidMark, + replace: this.updateInvalidMark + }); + + Ext.form.CompositeField.superclass.initComponent.apply(this, arguments); + }, + + /** + * @private + * Creates an internal container using hbox and renders the fields to it + */ + onRender: function(ct, position) { + if (!this.el) { + /** + * @property innerCt + * @type Ext.Container + * A container configured with hbox layout which is responsible for laying out the subfields + */ + var innerCt = this.innerCt = new Ext.Container({ + layout : 'hbox', + renderTo: ct, + items : this.items, + cls : 'x-form-composite', + defaultMargins: '0 3 0 0' + }); + + this.el = innerCt.getEl(); + + var fields = innerCt.findBy(function(c) { + return c.isFormField; + }, this); + + /** + * @property items + * @type Ext.util.MixedCollection + * Internal collection of all of the subfields in this Composite + */ + this.items = new Ext.util.MixedCollection(); + this.items.addAll(fields); + + //if we're combining subfield errors into a single message, override the markInvalid and clearInvalid + //methods of each subfield and show them at the Composite level instead + if (this.combineErrors) { + this.eachItem(function(field) { + Ext.apply(field, { + markInvalid : this.onFieldMarkInvalid.createDelegate(this, [field], 0), + clearInvalid: this.onFieldClearInvalid.createDelegate(this, [field], 0) + }); + }); + } + + //set the label 'for' to the first item + var l = this.el.parent().parent().child('label', true); + if (l) { + l.setAttribute('for', this.items.items[0].id); + } + } + + Ext.form.CompositeField.superclass.onRender.apply(this, arguments); + }, + + /** + * Called if combineErrors is true and a subfield's markInvalid method is called. + * By default this just adds the subfield's error to the internal fieldErrors MixedCollection + * @param {Ext.form.Field} field The field that was marked invalid + * @param {String} message The error message + */ + onFieldMarkInvalid: function(field, message) { + var name = field.getName(), + error = {field: name, error: message}; + + this.fieldErrors.replace(name, error); + + field.el.addClass(field.invalidClass); + }, + + /** + * Called if combineErrors is true and a subfield's clearInvalid method is called. + * By default this just updates the internal fieldErrors MixedCollection. + * @param {Ext.form.Field} field The field that was marked invalid + */ + onFieldClearInvalid: function(field) { + this.fieldErrors.removeKey(field.getName()); + + field.el.removeClass(field.invalidClass); + }, + + /** + * @private + * Called after a subfield is marked valid or invalid, this checks to see if any of the subfields are + * currently invalid. If any subfields are invalid it builds a combined error message marks the composite + * invalid, otherwise clearInvalid is called + */ + updateInvalidMark: function() { + var ieStrict = Ext.isIE6 && Ext.isStrict; + + if (this.fieldErrors.length == 0) { + this.clearInvalid(); + + //IE6 in strict mode has a layout bug when using 'under' as the error message target. This fixes it + if (ieStrict) { + this.clearInvalid.defer(50, this); + } + } else { + var message = this.buildCombinedErrorMessage(this.fieldErrors.items); + + this.sortErrors(); + this.markInvalid(message); + + //IE6 in strict mode has a layout bug when using 'under' as the error message target. This fixes it + if (ieStrict) { + this.markInvalid(message); + } + } + }, + + /** + * Performs validation checks on each subfield and returns false if any of them fail validation. + * @return {Boolean} False if any subfield failed validation + */ + validateValue: function() { + var valid = true; + + this.eachItem(function(field) { + if (!field.isValid()) valid = false; + }); + + return valid; + }, + + /** + * Takes an object containing error messages for contained fields, returning a combined error + * string (defaults to just placing each item on a new line). This can be overridden to provide + * custom combined error message handling. + * @param {Array} errors Array of errors in format: [{field: 'title', error: 'some error'}] + * @return {String} The combined error message + */ + buildCombinedErrorMessage: function(errors) { + var combined = [], + error; + + for (var i = 0, j = errors.length; i < j; i++) { + error = errors[i]; + + combined.push(String.format("{0}: {1}", error.field, error.error)); + } + + return combined.join("
    "); + }, + + /** + * Sorts the internal fieldErrors MixedCollection by the order in which the fields are defined. + * This is called before displaying errors to ensure that the errors are presented in the expected order. + * This function can be overridden to provide a custom sorting order if needed. + */ + sortErrors: function() { + var fields = this.items; + + this.fieldErrors.sort("ASC", function(a, b) { + var findByName = function(key) { + return function(field) { + return field.getName() == key; + }; + }; + + var aIndex = fields.findIndexBy(findByName(a.field)), + bIndex = fields.findIndexBy(findByName(b.field)); + + return aIndex < bIndex ? -1 : 1; + }); + }, + + /** + * Resets each field in the composite to their previous value + */ + reset: function() { + this.eachItem(function(item) { + item.reset(); + }); + + // Defer the clearInvalid so if BaseForm's collection is being iterated it will be called AFTER it is complete. + // Important because reset is being called on both the group and the individual items. + (function() { + this.clearInvalid(); + }).defer(50, this); + }, + + /** + * Calls clearInvalid on all child fields. This is a convenience function and should not often need to be called + * as fields usually take care of clearing themselves + */ + clearInvalidChildren: function() { + this.eachItem(function(item) { + item.clearInvalid(); + }); + }, + + /** + * Builds a label string from an array of subfield labels. + * By default this just joins the labels together with a comma + * @param {Array} segments Array of each of the labels in the composite field's subfields + * @return {String} The built label + */ + buildLabel: function(segments) { + return segments.join(", "); + }, + + /** + * Checks each field in the composite and returns true if any is dirty + * @return {Boolean} True if any field is dirty + */ + isDirty: function(){ + //override the behaviour to check sub items. + if (this.disabled || !this.rendered) { + return false; + } + + var dirty = false; + this.eachItem(function(item){ + if(item.isDirty()){ + dirty = true; + return false; + } + }); + return dirty; + }, + + /** + * @private + * Convenience function which passes the given function to every item in the composite + * @param {Function} fn The function to call + * @param {Object} scope Optional scope object + */ + eachItem: function(fn, scope) { + if(this.items && this.items.each){ + this.items.each(fn, scope || this); + } + }, + + /** + * @private + * Passes the resize call through to the inner panel + */ + onResize: function(adjWidth, adjHeight, rawWidth, rawHeight) { + var innerCt = this.innerCt; + + if (this.rendered && innerCt.rendered) { + innerCt.setSize(adjWidth, adjHeight); + } + + Ext.form.CompositeField.superclass.onResize.apply(this, arguments); + }, + + /** + * @private + * Forces the internal container to be laid out again + */ + doLayout: function(shallow, force) { + if (this.rendered) { + var innerCt = this.innerCt; + + innerCt.forceLayout = this.ownerCt.forceLayout; + innerCt.doLayout(shallow, force); + } + }, + + /** + * @private + */ + beforeDestroy: function(){ + Ext.destroy(this.innerCt); + + Ext.form.CompositeField.superclass.beforeDestroy.call(this); + }, + + //override the behaviour to check sub items. + setReadOnly : function(readOnly) { + readOnly = readOnly || true; + + if(this.rendered){ + this.eachItem(function(item){ + item.setReadOnly(readOnly); + }); + } + this.readOnly = readOnly; + }, + + onShow : function() { + Ext.form.CompositeField.superclass.onShow.call(this); + this.doLayout(); + }, + + //override the behaviour to check sub items. + onDisable : function(){ + this.eachItem(function(item){ + item.disable(); + }); + }, + + //override the behaviour to check sub items. + onEnable : function(){ + this.eachItem(function(item){ + item.enable(); + }); + } +}); + +Ext.reg('compositefield', Ext.form.CompositeField); +/** + * @class Ext.form.Radio + * @extends Ext.form.Checkbox + * Single radio field. Same as Checkbox, but provided as a convenience for automatically setting the input type. + * Radio grouping is handled automatically by the browser if you give each radio in a group the same name. + * @constructor + * Creates a new Radio + * @param {Object} config Configuration options + * @xtype radio + */ +Ext.form.Radio = Ext.extend(Ext.form.Checkbox, { + inputType: 'radio', + + /** + * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide + * @method + */ + markInvalid : Ext.emptyFn, + /** + * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide + * @method + */ + clearInvalid : Ext.emptyFn, + + /** + * If this radio is part of a group, it will return the selected value + * @return {String} + */ + getGroupValue : function(){ + var p = this.el.up('form') || Ext.getBody(); + var c = p.child('input[name='+this.el.dom.name+']:checked', true); + return c ? c.value : null; + }, + + // private + onClick : function(){ + if(this.el.dom.checked != this.checked){ + var els = this.getCheckEl().select('input[name=' + this.el.dom.name + ']'); + els.each(function(el){ + if(el.dom.id == this.id){ + this.setValue(true); + }else{ + Ext.getCmp(el.dom.id).setValue(false); + } + }, this); + } + }, + + /** + * Sets either the checked/unchecked status of this Radio, or, if a string value + * is passed, checks a sibling Radio of the same name whose value is the value specified. + * @param value {String/Boolean} Checked value, or the value of the sibling radio button to check. + * @return {Ext.form.Field} this + */ + setValue : function(v){ + if (typeof v == 'boolean') { + Ext.form.Radio.superclass.setValue.call(this, v); + } else if (this.rendered) { + var r = this.getCheckEl().child('input[name=' + this.el.dom.name + '][value=' + v + ']', true); + if(r){ + Ext.getCmp(r.id).setValue(true); + } + } + return this; + }, + + // private + getCheckEl: function(){ + if(this.inGroup){ + return this.el.up('.x-form-radio-group') + } + return this.el.up('form') || Ext.getBody(); + } +}); +Ext.reg('radio', Ext.form.Radio); +/** + * @class Ext.form.RadioGroup + * @extends Ext.form.CheckboxGroup + * A grouping container for {@link Ext.form.Radio} controls. + * @constructor + * Creates a new RadioGroup + * @param {Object} config Configuration options + * @xtype radiogroup + */ +Ext.form.RadioGroup = Ext.extend(Ext.form.CheckboxGroup, { + /** + * @cfg {Array} items An Array of {@link Ext.form.Radio Radio}s or Radio config objects + * to arrange in the group. + */ + /** + * @cfg {Boolean} allowBlank True to allow every item in the group to be blank (defaults to true). + * If allowBlank = false and no items are selected at validation time, {@link @blankText} will + * be used as the error text. + */ + allowBlank : true, + /** + * @cfg {String} blankText Error text to display if the {@link #allowBlank} validation fails + * (defaults to 'You must select one item in this group') + */ + blankText : 'You must select one item in this group', + + // private + defaultType : 'radio', + + // private + groupCls : 'x-form-radio-group', + + /** + * @event change + * Fires when the state of a child radio changes. + * @param {Ext.form.RadioGroup} this + * @param {Ext.form.Radio} checked The checked radio + */ + + /** + * Gets the selected {@link Ext.form.Radio} in the group, if it exists. + * @return {Ext.form.Radio} The selected radio. + */ + getValue : function(){ + var out = null; + this.eachItem(function(item){ + if(item.checked){ + out = item; + return false; + } + }); + return out; + }, + + /** + * Sets the checked radio in the group. + * @param {String/Ext.form.Radio} id The radio to check. + * @param {Boolean} value The value to set the radio. + * @return {Ext.form.RadioGroup} this + */ + onSetValue : function(id, value){ + if(arguments.length > 1){ + var f = this.getBox(id); + if(f){ + f.setValue(value); + if(f.checked){ + this.eachItem(function(item){ + if (item !== f){ + item.setValue(false); + } + }); + } + } + }else{ + this.setValueForItem(id); + } + }, + + setValueForItem : function(val){ + val = String(val).split(',')[0]; + this.eachItem(function(item){ + item.setValue(val == item.inputValue); + }); + }, + + // private + fireChecked : function(){ + if(!this.checkTask){ + this.checkTask = new Ext.util.DelayedTask(this.bufferChecked, this); + } + this.checkTask.delay(10); + }, + + // private + bufferChecked : function(){ + var out = null; + this.eachItem(function(item){ + if(item.checked){ + out = item; + return false; + } + }); + this.fireEvent('change', this, out); + }, + + onDestroy : function(){ + if(this.checkTask){ + this.checkTask.cancel(); + this.checkTask = null; + } + Ext.form.RadioGroup.superclass.onDestroy.call(this); + } + +}); + +Ext.reg('radiogroup', Ext.form.RadioGroup); +/** + * @class Ext.form.Hidden + * @extends Ext.form.Field + * A basic hidden field for storing hidden values in forms that need to be passed in the form submit. + * @constructor + * Create a new Hidden field. + * @param {Object} config Configuration options + * @xtype hidden + */ +Ext.form.Hidden = Ext.extend(Ext.form.Field, { + // private + inputType : 'hidden', + + // private + onRender : function(){ + Ext.form.Hidden.superclass.onRender.apply(this, arguments); + }, + + // private + initEvents : function(){ + this.originalValue = this.getValue(); + }, + + // These are all private overrides + setSize : Ext.emptyFn, + setWidth : Ext.emptyFn, + setHeight : Ext.emptyFn, + setPosition : Ext.emptyFn, + setPagePosition : Ext.emptyFn, + markInvalid : Ext.emptyFn, + clearInvalid : Ext.emptyFn +}); +Ext.reg('hidden', Ext.form.Hidden);/** + * @class Ext.form.BasicForm + * @extends Ext.util.Observable + *

    Encapsulates the DOM <form> element at the heart of the {@link Ext.form.FormPanel FormPanel} class, and provides + * input field management, validation, submission, and form loading services.

    + *

    By default, Ext Forms are submitted through Ajax, using an instance of {@link Ext.form.Action.Submit}. + * To enable normal browser submission of an Ext Form, use the {@link #standardSubmit} config option.

    + *

    File Uploads

    + *

    {@link #fileUpload File uploads} are not performed using Ajax submission, that + * is they are not performed using XMLHttpRequests. Instead the form is submitted in the standard + * manner with the DOM <form> element temporarily modified to have its + * target set to refer + * to a dynamically generated, hidden <iframe> which is inserted into the document + * but removed after the return data has been gathered.

    + *

    The server response is parsed by the browser to create the document for the IFRAME. If the + * server is using JSON to send the return object, then the + * Content-Type header + * must be set to "text/html" in order to tell the browser to insert the text unchanged into the document body.

    + *

    Characters which are significant to an HTML parser must be sent as HTML entities, so encode + * "<" as "&lt;", "&" as "&amp;" etc.

    + *

    The response text is retrieved from the document, and a fake XMLHttpRequest object + * is created containing a responseText property in order to conform to the + * requirements of event handlers and callbacks.

    + *

    Be aware that file upload packets are sent with the content type multipart/form + * and some server technologies (notably JEE) may require some custom processing in order to + * retrieve parameter names and parameter values from the packet content.

    + * @constructor + * @param {Mixed} el The form element or its id + * @param {Object} config Configuration options + */ +Ext.form.BasicForm = Ext.extend(Ext.util.Observable, { + + constructor: function(el, config){ + Ext.apply(this, config); + if(Ext.isString(this.paramOrder)){ + this.paramOrder = this.paramOrder.split(/[\s,|]/); + } + /** + * A {@link Ext.util.MixedCollection MixedCollection} containing all the Ext.form.Fields in this form. + * @type MixedCollection + * @property items + */ + this.items = new Ext.util.MixedCollection(false, function(o){ + return o.getItemId(); + }); + this.addEvents( + /** + * @event beforeaction + * Fires before any action is performed. Return false to cancel the action. + * @param {Form} this + * @param {Action} action The {@link Ext.form.Action} to be performed + */ + 'beforeaction', + /** + * @event actionfailed + * Fires when an action fails. + * @param {Form} this + * @param {Action} action The {@link Ext.form.Action} that failed + */ + 'actionfailed', + /** + * @event actioncomplete + * Fires when an action is completed. + * @param {Form} this + * @param {Action} action The {@link Ext.form.Action} that completed + */ + 'actioncomplete' + ); + + if(el){ + this.initEl(el); + } + Ext.form.BasicForm.superclass.constructor.call(this); + }, + + /** + * @cfg {String} method + * The request method to use (GET or POST) for form actions if one isn't supplied in the action options. + */ + /** + * @cfg {DataReader} reader + * An Ext.data.DataReader (e.g. {@link Ext.data.XmlReader}) to be used to read + * data when executing 'load' actions. This is optional as there is built-in + * support for processing JSON. For additional information on using an XMLReader + * see the example provided in examples/form/xml-form.html. + */ + /** + * @cfg {DataReader} errorReader + *

    An Ext.data.DataReader (e.g. {@link Ext.data.XmlReader}) to be used to + * read field error messages returned from 'submit' actions. This is optional + * as there is built-in support for processing JSON.

    + *

    The Records which provide messages for the invalid Fields must use the + * Field name (or id) as the Record ID, and must contain a field called 'msg' + * which contains the error message.

    + *

    The errorReader does not have to be a full-blown implementation of a + * DataReader. It simply needs to implement a read(xhr) function + * which returns an Array of Records in an object with the following + * structure:

    
    +{
    +    records: recordArray
    +}
    +
    + */ + /** + * @cfg {String} url + * The URL to use for form actions if one isn't supplied in the + * {@link #doAction doAction} options. + */ + /** + * @cfg {Boolean} fileUpload + * Set to true if this form is a file upload. + *

    File uploads are not performed using normal 'Ajax' techniques, that is they are not + * performed using XMLHttpRequests. Instead the form is submitted in the standard manner with the + * DOM <form> element temporarily modified to have its + * target set to refer + * to a dynamically generated, hidden <iframe> which is inserted into the document + * but removed after the return data has been gathered.

    + *

    The server response is parsed by the browser to create the document for the IFRAME. If the + * server is using JSON to send the return object, then the + * Content-Type header + * must be set to "text/html" in order to tell the browser to insert the text unchanged into the document body.

    + *

    Characters which are significant to an HTML parser must be sent as HTML entities, so encode + * "<" as "&lt;", "&" as "&amp;" etc.

    + *

    The response text is retrieved from the document, and a fake XMLHttpRequest object + * is created containing a responseText property in order to conform to the + * requirements of event handlers and callbacks.

    + *

    Be aware that file upload packets are sent with the content type multipart/form + * and some server technologies (notably JEE) may require some custom processing in order to + * retrieve parameter names and parameter values from the packet content.

    + */ + /** + * @cfg {Object} baseParams + *

    Parameters to pass with all requests. e.g. baseParams: {id: '123', foo: 'bar'}.

    + *

    Parameters are encoded as standard HTTP parameters using {@link Ext#urlEncode}.

    + */ + /** + * @cfg {Number} timeout Timeout for form actions in seconds (default is 30 seconds). + */ + timeout: 30, + + /** + * @cfg {Object} api (Optional) If specified load and submit actions will be handled + * with {@link Ext.form.Action.DirectLoad} and {@link Ext.form.Action.DirectSubmit}. + * Methods which have been imported by Ext.Direct can be specified here to load and submit + * forms. + * Such as the following:
    
    +api: {
    +    load: App.ss.MyProfile.load,
    +    submit: App.ss.MyProfile.submit
    +}
    +
    + *

    Load actions can use {@link #paramOrder} or {@link #paramsAsHash} + * to customize how the load method is invoked. + * Submit actions will always use a standard form submit. The formHandler configuration must + * be set on the associated server-side method which has been imported by Ext.Direct

    + */ + + /** + * @cfg {Array/String} paramOrder

    A list of params to be executed server side. + * Defaults to undefined. Only used for the {@link #api} + * load configuration.

    + *

    Specify the params in the order in which they must be executed on the + * server-side as either (1) an Array of String values, or (2) a String of params + * delimited by either whitespace, comma, or pipe. For example, + * any of the following would be acceptable:

    
    +paramOrder: ['param1','param2','param3']
    +paramOrder: 'param1 param2 param3'
    +paramOrder: 'param1,param2,param3'
    +paramOrder: 'param1|param2|param'
    +     
    + */ + paramOrder: undefined, + + /** + * @cfg {Boolean} paramsAsHash Only used for the {@link #api} + * load configuration. Send parameters as a collection of named + * arguments (defaults to false). Providing a + * {@link #paramOrder} nullifies this configuration. + */ + paramsAsHash: false, + + /** + * @cfg {String} waitTitle + * The default title to show for the waiting message box (defaults to 'Please Wait...') + */ + waitTitle: 'Please Wait...', + + // private + activeAction : null, + + /** + * @cfg {Boolean} trackResetOnLoad If set to true, {@link #reset}() resets to the last loaded + * or {@link #setValues}() data instead of when the form was first created. Defaults to false. + */ + trackResetOnLoad : false, + + /** + * @cfg {Boolean} standardSubmit + *

    If set to true, standard HTML form submits are used instead + * of XHR (Ajax) style form submissions. Defaults to false.

    + *

    Note: When using standardSubmit, the + * options to {@link #submit} are ignored because + * Ext's Ajax infrastracture is bypassed. To pass extra parameters (e.g. + * baseParams and params), utilize hidden fields + * to submit extra data, for example:

    + *
    
    +new Ext.FormPanel({
    +    standardSubmit: true,
    +    baseParams: {
    +        foo: 'bar'
    +    },
    +    {@link url}: 'myProcess.php',
    +    items: [{
    +        xtype: 'textfield',
    +        name: 'userName'
    +    }],
    +    buttons: [{
    +        text: 'Save',
    +        handler: function(){
    +            var fp = this.ownerCt.ownerCt,
    +                form = fp.getForm();
    +            if (form.isValid()) {
    +                // check if there are baseParams and if
    +                // hiddent items have been added already
    +                if (fp.baseParams && !fp.paramsAdded) {
    +                    // add hidden items for all baseParams
    +                    for (i in fp.baseParams) {
    +                        fp.add({
    +                            xtype: 'hidden',
    +                            name: i,
    +                            value: fp.baseParams[i]
    +                        });
    +                    }
    +                    fp.doLayout();
    +                    // set a custom flag to prevent re-adding
    +                    fp.paramsAdded = true;
    +                }
    +                form.{@link #submit}();
    +            }
    +        }
    +    }]
    +});
    +     * 
    + */ + /** + * By default wait messages are displayed with Ext.MessageBox.wait. You can target a specific + * element by passing it or its id or mask the form itself by passing in true. + * @type Mixed + * @property waitMsgTarget + */ + + // private + initEl : function(el){ + this.el = Ext.get(el); + this.id = this.el.id || Ext.id(); + if(!this.standardSubmit){ + this.el.on('submit', this.onSubmit, this); + } + this.el.addClass('x-form'); + }, + + /** + * Get the HTML form Element + * @return Ext.Element + */ + getEl: function(){ + return this.el; + }, + + // private + onSubmit : function(e){ + e.stopEvent(); + }, + + /** + * Destroys this object. + * @private + * @param {Boolean} bound true if the object is bound to a form panel. If this is the case + * the FormPanel will take care of destroying certain things, so we're just doubling up. + */ + destroy: function(bound){ + if(bound !== true){ + this.items.each(function(f){ + Ext.destroy(f); + }); + Ext.destroy(this.el); + } + this.items.clear(); + this.purgeListeners(); + }, + + /** + * Returns true if client-side validation on the form is successful. + * @return Boolean + */ + isValid : function(){ + var valid = true; + this.items.each(function(f){ + if(!f.validate()){ + valid = false; + } + }); + return valid; + }, + + /** + *

    Returns true if any fields in this form have changed from their original values.

    + *

    Note that if this BasicForm was configured with {@link #trackResetOnLoad} then the + * Fields' original values are updated when the values are loaded by {@link #setValues} + * or {@link #loadRecord}.

    + * @return Boolean + */ + isDirty : function(){ + var dirty = false; + this.items.each(function(f){ + if(f.isDirty()){ + dirty = true; + return false; + } + }); + return dirty; + }, + + /** + * Performs a predefined action ({@link Ext.form.Action.Submit} or + * {@link Ext.form.Action.Load}) or a custom extension of {@link Ext.form.Action} + * to perform application-specific processing. + * @param {String/Object} actionName The name of the predefined action type, + * or instance of {@link Ext.form.Action} to perform. + * @param {Object} options (optional) The options to pass to the {@link Ext.form.Action}. + * All of the config options listed below are supported by both the + * {@link Ext.form.Action.Submit submit} and {@link Ext.form.Action.Load load} + * actions unless otherwise noted (custom actions could also accept + * other config options):
      + * + *
    • url : String
      The url for the action (defaults + * to the form's {@link #url}.)
    • + * + *
    • method : String
      The form method to use (defaults + * to the form's method, or POST if not defined)
    • + * + *
    • params : String/Object

      The params to pass + * (defaults to the form's baseParams, or none if not defined)

      + *

      Parameters are encoded as standard HTTP parameters using {@link Ext#urlEncode}.

    • + * + *
    • headers : Object
      Request headers to set for the action + * (defaults to the form's default headers)
    • + * + *
    • success : Function
      The callback that will + * be invoked after a successful response (see top of + * {@link Ext.form.Action.Submit submit} and {@link Ext.form.Action.Load load} + * for a description of what constitutes a successful response). + * The function is passed the following parameters:
        + *
      • form : Ext.form.BasicForm
        The form that requested the action
      • + *
      • action : The {@link Ext.form.Action Action} object which performed the operation. + *
        The action object contains these properties of interest:
          + *
        • {@link Ext.form.Action#response response}
        • + *
        • {@link Ext.form.Action#result result} : interrogate for custom postprocessing
        • + *
        • {@link Ext.form.Action#type type}
        • + *
    • + * + *
    • failure : Function
      The callback that will be invoked after a + * failed transaction attempt. The function is passed the following parameters:
        + *
      • form : The {@link Ext.form.BasicForm} that requested the action.
      • + *
      • action : The {@link Ext.form.Action Action} object which performed the operation. + *
        The action object contains these properties of interest:
          + *
        • {@link Ext.form.Action#failureType failureType}
        • + *
        • {@link Ext.form.Action#response response}
        • + *
        • {@link Ext.form.Action#result result} : interrogate for custom postprocessing
        • + *
        • {@link Ext.form.Action#type type}
        • + *
    • + * + *
    • scope : Object
      The scope in which to call the + * callback functions (The this reference for the callback functions).
    • + * + *
    • clientValidation : Boolean
      Submit Action only. + * Determines whether a Form's fields are validated in a final call to + * {@link Ext.form.BasicForm#isValid isValid} prior to submission. Set to false + * to prevent this. If undefined, pre-submission field validation is performed.
    + * + * @return {BasicForm} this + */ + doAction : function(action, options){ + if(Ext.isString(action)){ + action = new Ext.form.Action.ACTION_TYPES[action](this, options); + } + if(this.fireEvent('beforeaction', this, action) !== false){ + this.beforeAction(action); + action.run.defer(100, action); + } + return this; + }, + + /** + * Shortcut to {@link #doAction do} a {@link Ext.form.Action.Submit submit action}. + * @param {Object} options The options to pass to the action (see {@link #doAction} for details).
    + *

    Note: this is ignored when using the {@link #standardSubmit} option.

    + *

    The following code:

    
    +myFormPanel.getForm().submit({
    +    clientValidation: true,
    +    url: 'updateConsignment.php',
    +    params: {
    +        newStatus: 'delivered'
    +    },
    +    success: function(form, action) {
    +       Ext.Msg.alert('Success', action.result.msg);
    +    },
    +    failure: function(form, action) {
    +        switch (action.failureType) {
    +            case Ext.form.Action.CLIENT_INVALID:
    +                Ext.Msg.alert('Failure', 'Form fields may not be submitted with invalid values');
    +                break;
    +            case Ext.form.Action.CONNECT_FAILURE:
    +                Ext.Msg.alert('Failure', 'Ajax communication failed');
    +                break;
    +            case Ext.form.Action.SERVER_INVALID:
    +               Ext.Msg.alert('Failure', action.result.msg);
    +       }
    +    }
    +});
    +
    + * would process the following server response for a successful submission:
    
    +{
    +    "success":true, // note this is Boolean, not string
    +    "msg":"Consignment updated"
    +}
    +
    + * and the following server response for a failed submission:
    
    +{
    +    "success":false, // note this is Boolean, not string
    +    "msg":"You do not have permission to perform this operation"
    +}
    +
    + * @return {BasicForm} this + */ + submit : function(options){ + options = options || {}; + if(this.standardSubmit){ + var v = options.clientValidation === false || this.isValid(); + if(v){ + var el = this.el.dom; + if(this.url && Ext.isEmpty(el.action)){ + el.action = this.url; + } + el.submit(); + } + return v; + } + var submitAction = String.format('{0}submit', this.api ? 'direct' : ''); + this.doAction(submitAction, options); + return this; + }, + + /** + * Shortcut to {@link #doAction do} a {@link Ext.form.Action.Load load action}. + * @param {Object} options The options to pass to the action (see {@link #doAction} for details) + * @return {BasicForm} this + */ + load : function(options){ + var loadAction = String.format('{0}load', this.api ? 'direct' : ''); + this.doAction(loadAction, options); + return this; + }, + + /** + * Persists the values in this form into the passed {@link Ext.data.Record} object in a beginEdit/endEdit block. + * @param {Record} record The record to edit + * @return {BasicForm} this + */ + updateRecord : function(record){ + record.beginEdit(); + var fs = record.fields; + fs.each(function(f){ + var field = this.findField(f.name); + if(field){ + record.set(f.name, field.getValue()); + } + }, this); + record.endEdit(); + return this; + }, + + /** + * Loads an {@link Ext.data.Record} into this form by calling {@link #setValues} with the + * {@link Ext.data.Record#data record data}. + * See also {@link #trackResetOnLoad}. + * @param {Record} record The record to load + * @return {BasicForm} this + */ + loadRecord : function(record){ + this.setValues(record.data); + return this; + }, + + // private + beforeAction : function(action){ + // Call HtmlEditor's syncValue before actions + this.items.each(function(f){ + if(f.isFormField && f.syncValue){ + f.syncValue(); + } + }); + var o = action.options; + if(o.waitMsg){ + if(this.waitMsgTarget === true){ + this.el.mask(o.waitMsg, 'x-mask-loading'); + }else if(this.waitMsgTarget){ + this.waitMsgTarget = Ext.get(this.waitMsgTarget); + this.waitMsgTarget.mask(o.waitMsg, 'x-mask-loading'); + }else{ + Ext.MessageBox.wait(o.waitMsg, o.waitTitle || this.waitTitle); + } + } + }, + + // private + afterAction : function(action, success){ + this.activeAction = null; + var o = action.options; + if(o.waitMsg){ + if(this.waitMsgTarget === true){ + this.el.unmask(); + }else if(this.waitMsgTarget){ + this.waitMsgTarget.unmask(); + }else{ + Ext.MessageBox.updateProgress(1); + Ext.MessageBox.hide(); + } + } + if(success){ + if(o.reset){ + this.reset(); + } + Ext.callback(o.success, o.scope, [this, action]); + this.fireEvent('actioncomplete', this, action); + }else{ + Ext.callback(o.failure, o.scope, [this, action]); + this.fireEvent('actionfailed', this, action); + } + }, + + /** + * Find a {@link Ext.form.Field} in this form. + * @param {String} id The value to search for (specify either a {@link Ext.Component#id id}, + * {@link Ext.grid.Column#dataIndex dataIndex}, {@link Ext.form.Field#getName name or hiddenName}). + * @return Field + */ + findField : function(id) { + var field = this.items.get(id); + + if (!Ext.isObject(field)) { + //searches for the field corresponding to the given id. Used recursively for composite fields + var findMatchingField = function(f) { + if (f.isFormField) { + if (f.dataIndex == id || f.id == id || f.getName() == id) { + field = f; + return false; + } else if (f.isComposite && f.rendered) { + return f.items.each(findMatchingField); + } + } + }; + + this.items.each(findMatchingField); + } + return field || null; + }, + + + /** + * Mark fields in this form invalid in bulk. + * @param {Array/Object} errors Either an array in the form [{id:'fieldId', msg:'The message'},...] or an object hash of {id: msg, id2: msg2} + * @return {BasicForm} this + */ + markInvalid : function(errors){ + if (Ext.isArray(errors)) { + for(var i = 0, len = errors.length; i < len; i++){ + var fieldError = errors[i]; + var f = this.findField(fieldError.id); + if(f){ + f.markInvalid(fieldError.msg); + } + } + } else { + var field, id; + for(id in errors){ + if(!Ext.isFunction(errors[id]) && (field = this.findField(id))){ + field.markInvalid(errors[id]); + } + } + } + + return this; + }, + + /** + * Set values for fields in this form in bulk. + * @param {Array/Object} values Either an array in the form:
    
    +[{id:'clientName', value:'Fred. Olsen Lines'},
    + {id:'portOfLoading', value:'FXT'},
    + {id:'portOfDischarge', value:'OSL'} ]
    + * or an object hash of the form:
    
    +{
    +    clientName: 'Fred. Olsen Lines',
    +    portOfLoading: 'FXT',
    +    portOfDischarge: 'OSL'
    +}
    + * @return {BasicForm} this + */ + setValues : function(values){ + if(Ext.isArray(values)){ // array of objects + for(var i = 0, len = values.length; i < len; i++){ + var v = values[i]; + var f = this.findField(v.id); + if(f){ + f.setValue(v.value); + if(this.trackResetOnLoad){ + f.originalValue = f.getValue(); + } + } + } + }else{ // object hash + var field, id; + for(id in values){ + if(!Ext.isFunction(values[id]) && (field = this.findField(id))){ + field.setValue(values[id]); + if(this.trackResetOnLoad){ + field.originalValue = field.getValue(); + } + } + } + } + return this; + }, + + /** + *

    Returns the fields in this form as an object with key/value pairs as they would be submitted using a standard form submit. + * If multiple fields exist with the same name they are returned as an array.

    + *

    Note: The values are collected from all enabled HTML input elements within the form, not from + * the Ext Field objects. This means that all returned values are Strings (or Arrays of Strings) and that the + * value can potentially be the emptyText of a field.

    + * @param {Boolean} asString (optional) Pass true to return the values as a string. (defaults to false, returning an Object) + * @return {String/Object} + */ + getValues : function(asString){ + var fs = Ext.lib.Ajax.serializeForm(this.el.dom); + if(asString === true){ + return fs; + } + return Ext.urlDecode(fs); + }, + + /** + * Retrieves the fields in the form as a set of key/value pairs, using the {@link Ext.form.Field#getValue getValue()} method. + * If multiple fields exist with the same name they are returned as an array. + * @param {Boolean} dirtyOnly (optional) True to return only fields that are dirty. + * @return {Object} The values in the form + */ + getFieldValues : function(dirtyOnly){ + var o = {}, + n, + key, + val; + this.items.each(function(f) { + if (dirtyOnly !== true || f.isDirty()) { + n = f.getName(); + key = o[n]; + val = f.getValue(); + + if(Ext.isDefined(key)){ + if(Ext.isArray(key)){ + o[n].push(val); + }else{ + o[n] = [key, val]; + } + }else{ + o[n] = val; + } + } + }); + return o; + }, + + /** + * Clears all invalid messages in this form. + * @return {BasicForm} this + */ + clearInvalid : function(){ + this.items.each(function(f){ + f.clearInvalid(); + }); + return this; + }, + + /** + * Resets this form. + * @return {BasicForm} this + */ + reset : function(){ + this.items.each(function(f){ + f.reset(); + }); + return this; + }, + + /** + * Add Ext.form Components to this form's Collection. This does not result in rendering of + * the passed Component, it just enables the form to validate Fields, and distribute values to + * Fields. + *

    You will not usually call this function. In order to be rendered, a Field must be added + * to a {@link Ext.Container Container}, usually an {@link Ext.form.FormPanel FormPanel}. + * The FormPanel to which the field is added takes care of adding the Field to the BasicForm's + * collection.

    + * @param {Field} field1 + * @param {Field} field2 (optional) + * @param {Field} etc (optional) + * @return {BasicForm} this + */ + add : function(){ + this.items.addAll(Array.prototype.slice.call(arguments, 0)); + return this; + }, + + /** + * Removes a field from the items collection (does NOT remove its markup). + * @param {Field} field + * @return {BasicForm} this + */ + remove : function(field){ + this.items.remove(field); + return this; + }, + + /** + * Removes all fields from the collection that have been destroyed. + */ + cleanDestroyed : function() { + this.items.filterBy(function(o) { return !!o.isDestroyed; }).each(this.remove, this); + }, + + /** + * Iterates through the {@link Ext.form.Field Field}s which have been {@link #add add}ed to this BasicForm, + * checks them for an id attribute, and calls {@link Ext.form.Field#applyToMarkup} on the existing dom element with that id. + * @return {BasicForm} this + */ + render : function(){ + this.items.each(function(f){ + if(f.isFormField && !f.rendered && document.getElementById(f.id)){ // if the element exists + f.applyToMarkup(f.id); + } + }); + return this; + }, + + /** + * Calls {@link Ext#apply} for all fields in this form with the passed object. + * @param {Object} values + * @return {BasicForm} this + */ + applyToFields : function(o){ + this.items.each(function(f){ + Ext.apply(f, o); + }); + return this; + }, + + /** + * Calls {@link Ext#applyIf} for all field in this form with the passed object. + * @param {Object} values + * @return {BasicForm} this + */ + applyIfToFields : function(o){ + this.items.each(function(f){ + Ext.applyIf(f, o); + }); + return this; + }, + + callFieldMethod : function(fnName, args){ + args = args || []; + this.items.each(function(f){ + if(Ext.isFunction(f[fnName])){ + f[fnName].apply(f, args); + } + }); + return this; + } +}); + +// back compat +Ext.BasicForm = Ext.form.BasicForm; +/** + * @class Ext.form.FormPanel + * @extends Ext.Panel + *

    Standard form container.

    + * + *

    Layout

    + *

    By default, FormPanel is configured with layout:'form' to use an {@link Ext.layout.FormLayout} + * layout manager, which styles and renders fields and labels correctly. When nesting additional Containers + * within a FormPanel, you should ensure that any descendant Containers which host input Fields use the + * {@link Ext.layout.FormLayout} layout manager.

    + * + *

    BasicForm

    + *

    Although not listed as configuration options of FormPanel, the FormPanel class accepts all + * of the config options required to configure its internal {@link Ext.form.BasicForm} for: + *

      + *
    • {@link Ext.form.BasicForm#fileUpload file uploads}
    • + *
    • functionality for {@link Ext.form.BasicForm#doAction loading, validating and submitting} the form
    • + *
    + * + *

    Note: If subclassing FormPanel, any configuration options for the BasicForm must be applied to + * the initialConfig property of the FormPanel. Applying {@link Ext.form.BasicForm BasicForm} + * configuration settings to this will not affect the BasicForm's configuration.

    + * + *

    Form Validation

    + *

    For information on form validation see the following:

    + *
      + *
    • {@link Ext.form.TextField}
    • + *
    • {@link Ext.form.VTypes}
    • + *
    • {@link Ext.form.BasicForm#doAction BasicForm.doAction clientValidation notes}
    • + *
    • {@link Ext.form.FormPanel#monitorValid monitorValid}
    • + *
    + * + *

    Form Submission

    + *

    By default, Ext Forms are submitted through Ajax, using {@link Ext.form.Action}. To enable normal browser + * submission of the {@link Ext.form.BasicForm BasicForm} contained in this FormPanel, see the + * {@link Ext.form.BasicForm#standardSubmit standardSubmit} option.

    + * + * @constructor + * @param {Object} config Configuration options + * @xtype form + */ +Ext.FormPanel = Ext.extend(Ext.Panel, { + /** + * @cfg {String} formId (optional) The id of the FORM tag (defaults to an auto-generated id). + */ + /** + * @cfg {Boolean} hideLabels + *

    true to hide field labels by default (sets display:none). Defaults to + * false.

    + *

    Also see {@link Ext.Component}.{@link Ext.Component#hideLabel hideLabel}. + */ + /** + * @cfg {Number} labelPad + * The default padding in pixels for field labels (defaults to 5). labelPad only + * applies if {@link #labelWidth} is also specified, otherwise it will be ignored. + */ + /** + * @cfg {String} labelSeparator + * See {@link Ext.Component}.{@link Ext.Component#labelSeparator labelSeparator} + */ + /** + * @cfg {Number} labelWidth The width of labels in pixels. This property cascades to child containers + * and can be overridden on any child container (e.g., a fieldset can specify a different labelWidth + * for its fields) (defaults to 100). + */ + /** + * @cfg {String} itemCls A css class to apply to the x-form-item of fields. This property cascades to child containers. + */ + /** + * @cfg {Array} buttons + * An array of {@link Ext.Button}s or {@link Ext.Button} configs used to add buttons to the footer of this FormPanel.
    + *

    Buttons in the footer of a FormPanel may be configured with the option formBind: true. This causes + * the form's {@link #monitorValid valid state monitor task} to enable/disable those Buttons depending on + * the form's valid/invalid state.

    + */ + + + /** + * @cfg {Number} minButtonWidth Minimum width of all buttons in pixels (defaults to 75). + */ + minButtonWidth : 75, + + /** + * @cfg {String} labelAlign The label alignment value used for the text-align specification + * for the container. Valid values are "left", "top" or "right" + * (defaults to "left"). This property cascades to child containers and can be + * overridden on any child container (e.g., a fieldset can specify a different labelAlign + * for its fields). + */ + labelAlign : 'left', + + /** + * @cfg {Boolean} monitorValid If true, the form monitors its valid state client-side and + * regularly fires the {@link #clientvalidation} event passing that state.
    + *

    When monitoring valid state, the FormPanel enables/disables any of its configured + * {@link #buttons} which have been configured with formBind: true depending + * on whether the {@link Ext.form.BasicForm#isValid form is valid} or not. Defaults to false

    + */ + monitorValid : false, + + /** + * @cfg {Number} monitorPoll The milliseconds to poll valid state, ignored if monitorValid is not true (defaults to 200) + */ + monitorPoll : 200, + + /** + * @cfg {String} layout Defaults to 'form'. Normally this configuration property should not be altered. + * For additional details see {@link Ext.layout.FormLayout} and {@link Ext.Container#layout Ext.Container.layout}. + */ + layout : 'form', + + // private + initComponent : function(){ + this.form = this.createForm(); + Ext.FormPanel.superclass.initComponent.call(this); + + this.bodyCfg = { + tag: 'form', + cls: this.baseCls + '-body', + method : this.method || 'POST', + id : this.formId || Ext.id() + }; + if(this.fileUpload) { + this.bodyCfg.enctype = 'multipart/form-data'; + } + this.initItems(); + + this.addEvents( + /** + * @event clientvalidation + * If the monitorValid config option is true, this event fires repetitively to notify of valid state + * @param {Ext.form.FormPanel} this + * @param {Boolean} valid true if the form has passed client-side validation + */ + 'clientvalidation' + ); + + this.relayEvents(this.form, ['beforeaction', 'actionfailed', 'actioncomplete']); + }, + + // private + createForm : function(){ + var config = Ext.applyIf({listeners: {}}, this.initialConfig); + return new Ext.form.BasicForm(null, config); + }, + + // private + initFields : function(){ + var f = this.form; + var formPanel = this; + var fn = function(c){ + if(formPanel.isField(c)){ + f.add(c); + }else if(c.findBy && c != formPanel){ + formPanel.applySettings(c); + //each check required for check/radio groups. + if(c.items && c.items.each){ + c.items.each(fn, this); + } + } + }; + this.items.each(fn, this); + }, + + // private + applySettings: function(c){ + var ct = c.ownerCt; + Ext.applyIf(c, { + labelAlign: ct.labelAlign, + labelWidth: ct.labelWidth, + itemCls: ct.itemCls + }); + }, + + // private + getLayoutTarget : function(){ + return this.form.el; + }, + + /** + * Provides access to the {@link Ext.form.BasicForm Form} which this Panel contains. + * @return {Ext.form.BasicForm} The {@link Ext.form.BasicForm Form} which this Panel contains. + */ + getForm : function(){ + return this.form; + }, + + // private + onRender : function(ct, position){ + this.initFields(); + Ext.FormPanel.superclass.onRender.call(this, ct, position); + this.form.initEl(this.body); + }, + + // private + beforeDestroy : function(){ + this.stopMonitoring(); + this.form.destroy(true); + Ext.FormPanel.superclass.beforeDestroy.call(this); + }, + + // Determine if a Component is usable as a form Field. + isField : function(c) { + return !!c.setValue && !!c.getValue && !!c.markInvalid && !!c.clearInvalid; + }, + + // private + initEvents : function(){ + Ext.FormPanel.superclass.initEvents.call(this); + // Listeners are required here to catch bubbling events from children. + this.on({ + scope: this, + add: this.onAddEvent, + remove: this.onRemoveEvent + }); + if(this.monitorValid){ // initialize after render + this.startMonitoring(); + } + }, + + // private + onAdd: function(c){ + Ext.FormPanel.superclass.onAdd.call(this, c); + this.processAdd(c); + }, + + // private + onAddEvent: function(ct, c){ + if(ct !== this){ + this.processAdd(c); + } + }, + + // private + processAdd : function(c){ + // If a single form Field, add it + if(this.isField(c)){ + this.form.add(c); + // If a Container, add any Fields it might contain + }else if(c.findBy){ + this.applySettings(c); + this.form.add.apply(this.form, c.findBy(this.isField)); + } + }, + + // private + onRemove: function(c){ + Ext.FormPanel.superclass.onRemove.call(this, c); + this.processRemove(c); + }, + + onRemoveEvent: function(ct, c){ + if(ct !== this){ + this.processRemove(c); + } + }, + + // private + processRemove: function(c){ + if(!this.destroying){ + // If a single form Field, remove it + if(this.isField(c)){ + this.form.remove(c); + // If a Container, its already destroyed by the time it gets here. Remove any references to destroyed fields. + }else if (c.findBy){ + Ext.each(c.findBy(this.isField), this.form.remove, this.form); + if (c.isDestroyed) { + this.form.cleanDestroyed(); + } + } + } + }, + + /** + * Starts monitoring of the valid state of this form. Usually this is done by passing the config + * option "monitorValid" + */ + startMonitoring : function(){ + if(!this.validTask){ + this.validTask = new Ext.util.TaskRunner(); + this.validTask.start({ + run : this.bindHandler, + interval : this.monitorPoll || 200, + scope: this + }); + } + }, + + /** + * Stops monitoring of the valid state of this form + */ + stopMonitoring : function(){ + if(this.validTask){ + this.validTask.stopAll(); + this.validTask = null; + } + }, + + /** + * This is a proxy for the underlying BasicForm's {@link Ext.form.BasicForm#load} call. + * @param {Object} options The options to pass to the action (see {@link Ext.form.BasicForm#doAction} for details) + */ + load : function(){ + this.form.load.apply(this.form, arguments); + }, + + // private + onDisable : function(){ + Ext.FormPanel.superclass.onDisable.call(this); + if(this.form){ + this.form.items.each(function(){ + this.disable(); + }); + } + }, + + // private + onEnable : function(){ + Ext.FormPanel.superclass.onEnable.call(this); + if(this.form){ + this.form.items.each(function(){ + this.enable(); + }); + } + }, + + // private + bindHandler : function(){ + var valid = true; + this.form.items.each(function(f){ + if(!f.isValid(true)){ + valid = false; + return false; + } + }); + if(this.fbar){ + var fitems = this.fbar.items.items; + for(var i = 0, len = fitems.length; i < len; i++){ + var btn = fitems[i]; + if(btn.formBind === true && btn.disabled === valid){ + btn.setDisabled(!valid); + } + } + } + this.fireEvent('clientvalidation', this, valid); + } +}); +Ext.reg('form', Ext.FormPanel); + +Ext.form.FormPanel = Ext.FormPanel; +/** + * @class Ext.form.FieldSet + * @extends Ext.Panel + * Standard container used for grouping items within a {@link Ext.form.FormPanel form}. + *
    
    +var form = new Ext.FormPanel({
    +    title: 'Simple Form with FieldSets',
    +    labelWidth: 75, // label settings here cascade unless overridden
    +    url: 'save-form.php',
    +    frame:true,
    +    bodyStyle:'padding:5px 5px 0',
    +    width: 700,
    +    renderTo: document.body,
    +    layout:'column', // arrange items in columns
    +    defaults: {      // defaults applied to items
    +        layout: 'form',
    +        border: false,
    +        bodyStyle: 'padding:4px'
    +    },
    +    items: [{
    +        // Fieldset in Column 1
    +        xtype:'fieldset',
    +        columnWidth: 0.5,
    +        title: 'Fieldset 1',
    +        collapsible: true,
    +        autoHeight:true,
    +        defaults: {
    +            anchor: '-20' // leave room for error icon
    +        },
    +        defaultType: 'textfield',
    +        items :[{
    +                fieldLabel: 'Field 1'
    +            }, {
    +                fieldLabel: 'Field 2'
    +            }, {
    +                fieldLabel: 'Field 3'
    +            }
    +        ]
    +    },{
    +        // Fieldset in Column 2 - Panel inside
    +        xtype:'fieldset',
    +        title: 'Show Panel', // title, header, or checkboxToggle creates fieldset header
    +        autoHeight:true,
    +        columnWidth: 0.5,
    +        checkboxToggle: true,
    +        collapsed: true, // fieldset initially collapsed
    +        layout:'anchor',
    +        items :[{
    +            xtype: 'panel',
    +            anchor: '100%',
    +            title: 'Panel inside a fieldset',
    +            frame: true,
    +            height: 100
    +        }]
    +    }]
    +});
    + * 
    + * @constructor + * @param {Object} config Configuration options + * @xtype fieldset + */ +Ext.form.FieldSet = Ext.extend(Ext.Panel, { + /** + * @cfg {Mixed} checkboxToggle true to render a checkbox into the fieldset frame just + * in front of the legend to expand/collapse the fieldset when the checkbox is toggled. (defaults + * to false). + *

    A {@link Ext.DomHelper DomHelper} element spec may also be specified to create the checkbox. + * If true is specified, the default DomHelper config object used to create the element + * is:

    
    +     * {tag: 'input', type: 'checkbox', name: this.checkboxName || this.id+'-checkbox'}
    +     * 
    + */ + /** + * @cfg {String} checkboxName The name to assign to the fieldset's checkbox if {@link #checkboxToggle} = true + * (defaults to '[checkbox id]-checkbox'). + */ + /** + * @cfg {Boolean} collapsible + * true to make the fieldset collapsible and have the expand/collapse toggle button automatically + * rendered into the legend element, false to keep the fieldset statically sized with no collapse + * button (defaults to false). Another option is to configure {@link #checkboxToggle}. + */ + /** + * @cfg {Number} labelWidth The width of labels. This property cascades to child containers. + */ + /** + * @cfg {String} itemCls A css class to apply to the x-form-item of fields (see + * {@link Ext.layout.FormLayout}.{@link Ext.layout.FormLayout#fieldTpl fieldTpl} for details). + * This property cascades to child containers. + */ + /** + * @cfg {String} baseCls The base CSS class applied to the fieldset (defaults to 'x-fieldset'). + */ + baseCls : 'x-fieldset', + /** + * @cfg {String} layout The {@link Ext.Container#layout} to use inside the fieldset (defaults to 'form'). + */ + layout : 'form', + /** + * @cfg {Boolean} animCollapse + * true to animate the transition when the panel is collapsed, false to skip the + * animation (defaults to false). + */ + animCollapse : false, + + // private + onRender : function(ct, position){ + if(!this.el){ + this.el = document.createElement('fieldset'); + this.el.id = this.id; + if (this.title || this.header || this.checkboxToggle) { + this.el.appendChild(document.createElement('legend')).className = this.baseCls + '-header'; + } + } + + Ext.form.FieldSet.superclass.onRender.call(this, ct, position); + + if(this.checkboxToggle){ + var o = typeof this.checkboxToggle == 'object' ? + this.checkboxToggle : + {tag: 'input', type: 'checkbox', name: this.checkboxName || this.id+'-checkbox'}; + this.checkbox = this.header.insertFirst(o); + this.checkbox.dom.checked = !this.collapsed; + this.mon(this.checkbox, 'click', this.onCheckClick, this); + } + }, + + // private + onCollapse : function(doAnim, animArg){ + if(this.checkbox){ + this.checkbox.dom.checked = false; + } + Ext.form.FieldSet.superclass.onCollapse.call(this, doAnim, animArg); + + }, + + // private + onExpand : function(doAnim, animArg){ + if(this.checkbox){ + this.checkbox.dom.checked = true; + } + Ext.form.FieldSet.superclass.onExpand.call(this, doAnim, animArg); + }, + + /** + * This function is called by the fieldset's checkbox when it is toggled (only applies when + * checkboxToggle = true). This method should never be called externally, but can be + * overridden to provide custom behavior when the checkbox is toggled if needed. + */ + onCheckClick : function(){ + this[this.checkbox.dom.checked ? 'expand' : 'collapse'](); + } + + /** + * @cfg {String/Number} activeItem + * @hide + */ + /** + * @cfg {Mixed} applyTo + * @hide + */ + /** + * @cfg {Boolean} bodyBorder + * @hide + */ + /** + * @cfg {Boolean} border + * @hide + */ + /** + * @cfg {Boolean/Number} bufferResize + * @hide + */ + /** + * @cfg {Boolean} collapseFirst + * @hide + */ + /** + * @cfg {String} defaultType + * @hide + */ + /** + * @cfg {String} disabledClass + * @hide + */ + /** + * @cfg {String} elements + * @hide + */ + /** + * @cfg {Boolean} floating + * @hide + */ + /** + * @cfg {Boolean} footer + * @hide + */ + /** + * @cfg {Boolean} frame + * @hide + */ + /** + * @cfg {Boolean} header + * @hide + */ + /** + * @cfg {Boolean} headerAsText + * @hide + */ + /** + * @cfg {Boolean} hideCollapseTool + * @hide + */ + /** + * @cfg {String} iconCls + * @hide + */ + /** + * @cfg {Boolean/String} shadow + * @hide + */ + /** + * @cfg {Number} shadowOffset + * @hide + */ + /** + * @cfg {Boolean} shim + * @hide + */ + /** + * @cfg {Object/Array} tbar + * @hide + */ + /** + * @cfg {Array} tools + * @hide + */ + /** + * @cfg {Ext.Template/Ext.XTemplate} toolTemplate + * @hide + */ + /** + * @cfg {String} xtype + * @hide + */ + /** + * @property header + * @hide + */ + /** + * @property footer + * @hide + */ + /** + * @method focus + * @hide + */ + /** + * @method getBottomToolbar + * @hide + */ + /** + * @method getTopToolbar + * @hide + */ + /** + * @method setIconClass + * @hide + */ + /** + * @event activate + * @hide + */ + /** + * @event beforeclose + * @hide + */ + /** + * @event bodyresize + * @hide + */ + /** + * @event close + * @hide + */ + /** + * @event deactivate + * @hide + */ +}); +Ext.reg('fieldset', Ext.form.FieldSet);/** + * @class Ext.form.HtmlEditor + * @extends Ext.form.Field + * Provides a lightweight HTML Editor component. Some toolbar features are not supported by Safari and will be + * automatically hidden when needed. These are noted in the config options where appropriate. + *

    The editor's toolbar buttons have tooltips defined in the {@link #buttonTips} property, but they are not + * enabled by default unless the global {@link Ext.QuickTips} singleton is {@link Ext.QuickTips#init initialized}. + *

    Note: The focus/blur and validation marking functionality inherited from Ext.form.Field is NOT + * supported by this editor. + *

    An Editor is a sensitive component that can't be used in all spots standard fields can be used. Putting an Editor within + * any element that has display set to 'none' can cause problems in Safari and Firefox due to their default iframe reloading bugs. + *

    Example usage: + *
    
    +// Simple example rendered with default options:
    +Ext.QuickTips.init();  // enable tooltips
    +new Ext.form.HtmlEditor({
    +    renderTo: Ext.getBody(),
    +    width: 800,
    +    height: 300
    +});
    +
    +// Passed via xtype into a container and with custom options:
    +Ext.QuickTips.init();  // enable tooltips
    +new Ext.Panel({
    +    title: 'HTML Editor',
    +    renderTo: Ext.getBody(),
    +    width: 600,
    +    height: 300,
    +    frame: true,
    +    layout: 'fit',
    +    items: {
    +        xtype: 'htmleditor',
    +        enableColors: false,
    +        enableAlignments: false
    +    }
    +});
    +
    + * @constructor + * Create a new HtmlEditor + * @param {Object} config + * @xtype htmleditor + */ + +Ext.form.HtmlEditor = Ext.extend(Ext.form.Field, { + /** + * @cfg {Boolean} enableFormat Enable the bold, italic and underline buttons (defaults to true) + */ + enableFormat : true, + /** + * @cfg {Boolean} enableFontSize Enable the increase/decrease font size buttons (defaults to true) + */ + enableFontSize : true, + /** + * @cfg {Boolean} enableColors Enable the fore/highlight color buttons (defaults to true) + */ + enableColors : true, + /** + * @cfg {Boolean} enableAlignments Enable the left, center, right alignment buttons (defaults to true) + */ + enableAlignments : true, + /** + * @cfg {Boolean} enableLists Enable the bullet and numbered list buttons. Not available in Safari. (defaults to true) + */ + enableLists : true, + /** + * @cfg {Boolean} enableSourceEdit Enable the switch to source edit button. Not available in Safari. (defaults to true) + */ + enableSourceEdit : true, + /** + * @cfg {Boolean} enableLinks Enable the create link button. Not available in Safari. (defaults to true) + */ + enableLinks : true, + /** + * @cfg {Boolean} enableFont Enable font selection. Not available in Safari. (defaults to true) + */ + enableFont : true, + /** + * @cfg {String} createLinkText The default text for the create link prompt + */ + createLinkText : 'Please enter the URL for the link:', + /** + * @cfg {String} defaultLinkValue The default value for the create link prompt (defaults to http:/ /) + */ + defaultLinkValue : 'http:/'+'/', + /** + * @cfg {Array} fontFamilies An array of available font families + */ + fontFamilies : [ + 'Arial', + 'Courier New', + 'Tahoma', + 'Times New Roman', + 'Verdana' + ], + defaultFont: 'tahoma', + /** + * @cfg {String} defaultValue A default value to be put into the editor to resolve focus issues (defaults to   (Non-breaking space) in Opera and IE6, ​ (Zero-width space) in all other browsers). + */ + defaultValue: (Ext.isOpera || Ext.isIE6) ? ' ' : '​', + + // private properties + actionMode: 'wrap', + validationEvent : false, + deferHeight: true, + initialized : false, + activated : false, + sourceEditMode : false, + onFocus : Ext.emptyFn, + iframePad:3, + hideMode:'offsets', + defaultAutoCreate : { + tag: "textarea", + style:"width:500px;height:300px;", + autocomplete: "off" + }, + + // private + initComponent : function(){ + this.addEvents( + /** + * @event initialize + * Fires when the editor is fully initialized (including the iframe) + * @param {HtmlEditor} this + */ + 'initialize', + /** + * @event activate + * Fires when the editor is first receives the focus. Any insertion must wait + * until after this event. + * @param {HtmlEditor} this + */ + 'activate', + /** + * @event beforesync + * Fires before the textarea is updated with content from the editor iframe. Return false + * to cancel the sync. + * @param {HtmlEditor} this + * @param {String} html + */ + 'beforesync', + /** + * @event beforepush + * Fires before the iframe editor is updated with content from the textarea. Return false + * to cancel the push. + * @param {HtmlEditor} this + * @param {String} html + */ + 'beforepush', + /** + * @event sync + * Fires when the textarea is updated with content from the editor iframe. + * @param {HtmlEditor} this + * @param {String} html + */ + 'sync', + /** + * @event push + * Fires when the iframe editor is updated with content from the textarea. + * @param {HtmlEditor} this + * @param {String} html + */ + 'push', + /** + * @event editmodechange + * Fires when the editor switches edit modes + * @param {HtmlEditor} this + * @param {Boolean} sourceEdit True if source edit, false if standard editing. + */ + 'editmodechange' + ); + }, + + // private + createFontOptions : function(){ + var buf = [], fs = this.fontFamilies, ff, lc; + for(var i = 0, len = fs.length; i< len; i++){ + ff = fs[i]; + lc = ff.toLowerCase(); + buf.push( + '' + ); + } + return buf.join(''); + }, + + /* + * Protected method that will not generally be called directly. It + * is called when the editor creates its toolbar. Override this method if you need to + * add custom toolbar buttons. + * @param {HtmlEditor} editor + */ + createToolbar : function(editor){ + var items = []; + var tipsEnabled = Ext.QuickTips && Ext.QuickTips.isEnabled(); + + + function btn(id, toggle, handler){ + return { + itemId : id, + cls : 'x-btn-icon', + iconCls: 'x-edit-'+id, + enableToggle:toggle !== false, + scope: editor, + handler:handler||editor.relayBtnCmd, + clickEvent:'mousedown', + tooltip: tipsEnabled ? editor.buttonTips[id] || undefined : undefined, + overflowText: editor.buttonTips[id].title || undefined, + tabIndex:-1 + }; + } + + + if(this.enableFont && !Ext.isSafari2){ + var fontSelectItem = new Ext.Toolbar.Item({ + autoEl: { + tag:'select', + cls:'x-font-select', + html: this.createFontOptions() + } + }); + + items.push( + fontSelectItem, + '-' + ); + } + + if(this.enableFormat){ + items.push( + btn('bold'), + btn('italic'), + btn('underline') + ); + } + + if(this.enableFontSize){ + items.push( + '-', + btn('increasefontsize', false, this.adjustFont), + btn('decreasefontsize', false, this.adjustFont) + ); + } + + if(this.enableColors){ + items.push( + '-', { + itemId:'forecolor', + cls:'x-btn-icon', + iconCls: 'x-edit-forecolor', + clickEvent:'mousedown', + tooltip: tipsEnabled ? editor.buttonTips.forecolor || undefined : undefined, + tabIndex:-1, + menu : new Ext.menu.ColorMenu({ + allowReselect: true, + focus: Ext.emptyFn, + value:'000000', + plain:true, + listeners: { + scope: this, + select: function(cp, color){ + this.execCmd('forecolor', Ext.isWebKit || Ext.isIE ? '#'+color : color); + this.deferFocus(); + } + }, + clickEvent:'mousedown' + }) + }, { + itemId:'backcolor', + cls:'x-btn-icon', + iconCls: 'x-edit-backcolor', + clickEvent:'mousedown', + tooltip: tipsEnabled ? editor.buttonTips.backcolor || undefined : undefined, + tabIndex:-1, + menu : new Ext.menu.ColorMenu({ + focus: Ext.emptyFn, + value:'FFFFFF', + plain:true, + allowReselect: true, + listeners: { + scope: this, + select: function(cp, color){ + if(Ext.isGecko){ + this.execCmd('useCSS', false); + this.execCmd('hilitecolor', color); + this.execCmd('useCSS', true); + this.deferFocus(); + }else{ + this.execCmd(Ext.isOpera ? 'hilitecolor' : 'backcolor', Ext.isWebKit || Ext.isIE ? '#'+color : color); + this.deferFocus(); + } + } + }, + clickEvent:'mousedown' + }) + } + ); + } + + if(this.enableAlignments){ + items.push( + '-', + btn('justifyleft'), + btn('justifycenter'), + btn('justifyright') + ); + } + + if(!Ext.isSafari2){ + if(this.enableLinks){ + items.push( + '-', + btn('createlink', false, this.createLink) + ); + } + + if(this.enableLists){ + items.push( + '-', + btn('insertorderedlist'), + btn('insertunorderedlist') + ); + } + if(this.enableSourceEdit){ + items.push( + '-', + btn('sourceedit', true, function(btn){ + this.toggleSourceEdit(!this.sourceEditMode); + }) + ); + } + } + + // build the toolbar + var tb = new Ext.Toolbar({ + renderTo: this.wrap.dom.firstChild, + items: items + }); + + if (fontSelectItem) { + this.fontSelect = fontSelectItem.el; + + this.mon(this.fontSelect, 'change', function(){ + var font = this.fontSelect.dom.value; + this.relayCmd('fontname', font); + this.deferFocus(); + }, this); + } + + // stop form submits + this.mon(tb.el, 'click', function(e){ + e.preventDefault(); + }); + + this.tb = tb; + this.tb.doLayout(); + }, + + onDisable: function(){ + this.wrap.mask(); + Ext.form.HtmlEditor.superclass.onDisable.call(this); + }, + + onEnable: function(){ + this.wrap.unmask(); + Ext.form.HtmlEditor.superclass.onEnable.call(this); + }, + + setReadOnly: function(readOnly){ + + Ext.form.HtmlEditor.superclass.setReadOnly.call(this, readOnly); + if(this.initialized){ + if(Ext.isIE){ + this.getEditorBody().contentEditable = !readOnly; + }else{ + this.setDesignMode(!readOnly); + } + var bd = this.getEditorBody(); + if(bd){ + bd.style.cursor = this.readOnly ? 'default' : 'text'; + } + this.disableItems(readOnly); + } + }, + + /** + * Protected method that will not generally be called directly. It + * is called when the editor initializes the iframe with HTML contents. Override this method if you + * want to change the initialization markup of the iframe (e.g. to add stylesheets). + * + * Note: IE8-Standards has unwanted scroller behavior, so the default meta tag forces IE7 compatibility + */ + getDocMarkup : function(){ + var h = Ext.fly(this.iframe).getHeight() - this.iframePad * 2; + return String.format('', this.iframePad, h); + }, + + // private + getEditorBody : function(){ + var doc = this.getDoc(); + return doc.body || doc.documentElement; + }, + + // private + getDoc : function(){ + return Ext.isIE ? this.getWin().document : (this.iframe.contentDocument || this.getWin().document); + }, + + // private + getWin : function(){ + return Ext.isIE ? this.iframe.contentWindow : window.frames[this.iframe.name]; + }, + + // private + onRender : function(ct, position){ + Ext.form.HtmlEditor.superclass.onRender.call(this, ct, position); + this.el.dom.style.border = '0 none'; + this.el.dom.setAttribute('tabIndex', -1); + this.el.addClass('x-hidden'); + if(Ext.isIE){ // fix IE 1px bogus margin + this.el.applyStyles('margin-top:-1px;margin-bottom:-1px;'); + } + this.wrap = this.el.wrap({ + cls:'x-html-editor-wrap', cn:{cls:'x-html-editor-tb'} + }); + + this.createToolbar(this); + + this.disableItems(true); + + this.tb.doLayout(); + + this.createIFrame(); + + if(!this.width){ + var sz = this.el.getSize(); + this.setSize(sz.width, this.height || sz.height); + } + this.resizeEl = this.positionEl = this.wrap; + }, + + createIFrame: function(){ + var iframe = document.createElement('iframe'); + iframe.name = Ext.id(); + iframe.frameBorder = '0'; + iframe.style.overflow = 'auto'; + + this.wrap.dom.appendChild(iframe); + this.iframe = iframe; + + this.monitorTask = Ext.TaskMgr.start({ + run: this.checkDesignMode, + scope: this, + interval:100 + }); + }, + + initFrame : function(){ + Ext.TaskMgr.stop(this.monitorTask); + var doc = this.getDoc(); + this.win = this.getWin(); + + doc.open(); + doc.write(this.getDocMarkup()); + doc.close(); + + var task = { // must defer to wait for browser to be ready + run : function(){ + var doc = this.getDoc(); + if(doc.body || doc.readyState == 'complete'){ + Ext.TaskMgr.stop(task); + this.setDesignMode(true); + this.initEditor.defer(10, this); + } + }, + interval : 10, + duration:10000, + scope: this + }; + Ext.TaskMgr.start(task); + }, + + + checkDesignMode : function(){ + if(this.wrap && this.wrap.dom.offsetWidth){ + var doc = this.getDoc(); + if(!doc){ + return; + } + if(!doc.editorInitialized || this.getDesignMode() != 'on'){ + this.initFrame(); + } + } + }, + + /* private + * set current design mode. To enable, mode can be true or 'on', off otherwise + */ + setDesignMode : function(mode){ + var doc ; + if(doc = this.getDoc()){ + if(this.readOnly){ + mode = false; + } + doc.designMode = (/on|true/i).test(String(mode).toLowerCase()) ?'on':'off'; + } + + }, + + // private + getDesignMode : function(){ + var doc = this.getDoc(); + if(!doc){ return ''; } + return String(doc.designMode).toLowerCase(); + + }, + + disableItems: function(disabled){ + if(this.fontSelect){ + this.fontSelect.dom.disabled = disabled; + } + this.tb.items.each(function(item){ + if(item.getItemId() != 'sourceedit'){ + item.setDisabled(disabled); + } + }); + }, + + // private + onResize : function(w, h){ + Ext.form.HtmlEditor.superclass.onResize.apply(this, arguments); + if(this.el && this.iframe){ + if(Ext.isNumber(w)){ + var aw = w - this.wrap.getFrameWidth('lr'); + this.el.setWidth(aw); + this.tb.setWidth(aw); + this.iframe.style.width = Math.max(aw, 0) + 'px'; + } + if(Ext.isNumber(h)){ + var ah = h - this.wrap.getFrameWidth('tb') - this.tb.el.getHeight(); + this.el.setHeight(ah); + this.iframe.style.height = Math.max(ah, 0) + 'px'; + var bd = this.getEditorBody(); + if(bd){ + bd.style.height = Math.max((ah - (this.iframePad*2)), 0) + 'px'; + } + } + } + }, + + /** + * Toggles the editor between standard and source edit mode. + * @param {Boolean} sourceEdit (optional) True for source edit, false for standard + */ + toggleSourceEdit : function(sourceEditMode){ + var iframeHeight, + elHeight, + ls; + + if (sourceEditMode === undefined) { + sourceEditMode = !this.sourceEditMode; + } + this.sourceEditMode = sourceEditMode === true; + var btn = this.tb.getComponent('sourceedit'); + + if (btn.pressed !== this.sourceEditMode) { + btn.toggle(this.sourceEditMode); + if (!btn.xtbHidden) { + return; + } + } + if (this.sourceEditMode) { + // grab the height of the containing panel before we hide the iframe + ls = this.getSize(); + + iframeHeight = Ext.get(this.iframe).getHeight(); + + this.disableItems(true); + this.syncValue(); + this.iframe.className = 'x-hidden'; + this.el.removeClass('x-hidden'); + this.el.dom.removeAttribute('tabIndex'); + this.el.focus(); + this.el.dom.style.height = iframeHeight + 'px'; + } + else { + elHeight = parseInt(this.el.dom.style.height, 10); + if (this.initialized) { + this.disableItems(this.readOnly); + } + this.pushValue(); + this.iframe.className = ''; + this.el.addClass('x-hidden'); + this.el.dom.setAttribute('tabIndex', -1); + this.deferFocus(); + + this.setSize(ls); + this.iframe.style.height = elHeight + 'px'; + } + this.fireEvent('editmodechange', this, this.sourceEditMode); + }, + + // private used internally + createLink : function() { + var url = prompt(this.createLinkText, this.defaultLinkValue); + if(url && url != 'http:/'+'/'){ + this.relayCmd('createlink', url); + } + }, + + // private + initEvents : function(){ + this.originalValue = this.getValue(); + }, + + /** + * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide + * @method + */ + markInvalid : Ext.emptyFn, + + /** + * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide + * @method + */ + clearInvalid : Ext.emptyFn, + + // docs inherit from Field + setValue : function(v){ + Ext.form.HtmlEditor.superclass.setValue.call(this, v); + this.pushValue(); + return this; + }, + + /** + * Protected method that will not generally be called directly. If you need/want + * custom HTML cleanup, this is the method you should override. + * @param {String} html The HTML to be cleaned + * @return {String} The cleaned HTML + */ + cleanHtml: function(html) { + html = String(html); + if(Ext.isWebKit){ // strip safari nonsense + html = html.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi, ''); + } + + /* + * Neat little hack. Strips out all the non-digit characters from the default + * value and compares it to the character code of the first character in the string + * because it can cause encoding issues when posted to the server. + */ + if(html.charCodeAt(0) == this.defaultValue.replace(/\D/g, '')){ + html = html.substring(1); + } + return html; + }, + + /** + * Protected method that will not generally be called directly. Syncs the contents + * of the editor iframe with the textarea. + */ + syncValue : function(){ + if(this.initialized){ + var bd = this.getEditorBody(); + var html = bd.innerHTML; + if(Ext.isWebKit){ + var bs = bd.getAttribute('style'); // Safari puts text-align styles on the body element! + var m = bs.match(/text-align:(.*?);/i); + if(m && m[1]){ + html = '
    ' + html + '
    '; + } + } + html = this.cleanHtml(html); + if(this.fireEvent('beforesync', this, html) !== false){ + this.el.dom.value = html; + this.fireEvent('sync', this, html); + } + } + }, + + //docs inherit from Field + getValue : function() { + this[this.sourceEditMode ? 'pushValue' : 'syncValue'](); + return Ext.form.HtmlEditor.superclass.getValue.call(this); + }, + + /** + * Protected method that will not generally be called directly. Pushes the value of the textarea + * into the iframe editor. + */ + pushValue : function(){ + if(this.initialized){ + var v = this.el.dom.value; + if(!this.activated && v.length < 1){ + v = this.defaultValue; + } + if(this.fireEvent('beforepush', this, v) !== false){ + this.getEditorBody().innerHTML = v; + if(Ext.isGecko){ + // Gecko hack, see: https://bugzilla.mozilla.org/show_bug.cgi?id=232791#c8 + this.setDesignMode(false); //toggle off first + this.setDesignMode(true); + } + this.fireEvent('push', this, v); + } + + } + }, + + // private + deferFocus : function(){ + this.focus.defer(10, this); + }, + + // docs inherit from Field + focus : function(){ + if(this.win && !this.sourceEditMode){ + this.win.focus(); + }else{ + this.el.focus(); + } + }, + + // private + initEditor : function(){ + //Destroying the component during/before initEditor can cause issues. + try{ + var dbody = this.getEditorBody(), + ss = this.el.getStyles('font-size', 'font-family', 'background-image', 'background-repeat', 'background-color', 'color'), + doc, + fn; + + ss['background-attachment'] = 'fixed'; // w3c + dbody.bgProperties = 'fixed'; // ie + + Ext.DomHelper.applyStyles(dbody, ss); + + doc = this.getDoc(); + + if(doc){ + try{ + Ext.EventManager.removeAll(doc); + }catch(e){} + } + + /* + * We need to use createDelegate here, because when using buffer, the delayed task is added + * as a property to the function. When the listener is removed, the task is deleted from the function. + * Since onEditorEvent is shared on the prototype, if we have multiple html editors, the first time one of the editors + * is destroyed, it causes the fn to be deleted from the prototype, which causes errors. Essentially, we're just anonymizing the function. + */ + fn = this.onEditorEvent.createDelegate(this); + Ext.EventManager.on(doc, { + mousedown: fn, + dblclick: fn, + click: fn, + keyup: fn, + buffer:100 + }); + + if(Ext.isGecko){ + Ext.EventManager.on(doc, 'keypress', this.applyCommand, this); + } + if(Ext.isIE || Ext.isWebKit || Ext.isOpera){ + Ext.EventManager.on(doc, 'keydown', this.fixKeys, this); + } + doc.editorInitialized = true; + this.initialized = true; + this.pushValue(); + this.setReadOnly(this.readOnly); + this.fireEvent('initialize', this); + }catch(e){} + }, + + // private + onDestroy : function(){ + if(this.monitorTask){ + Ext.TaskMgr.stop(this.monitorTask); + } + if(this.rendered){ + Ext.destroy(this.tb); + var doc = this.getDoc(); + if(doc){ + try{ + Ext.EventManager.removeAll(doc); + for (var prop in doc){ + delete doc[prop]; + } + }catch(e){} + } + if(this.wrap){ + this.wrap.dom.innerHTML = ''; + this.wrap.remove(); + } + } + + if(this.el){ + this.el.removeAllListeners(); + this.el.remove(); + } + this.purgeListeners(); + }, + + // private + onFirstFocus : function(){ + this.activated = true; + this.disableItems(this.readOnly); + if(Ext.isGecko){ // prevent silly gecko errors + this.win.focus(); + var s = this.win.getSelection(); + if(!s.focusNode || s.focusNode.nodeType != 3){ + var r = s.getRangeAt(0); + r.selectNodeContents(this.getEditorBody()); + r.collapse(true); + this.deferFocus(); + } + try{ + this.execCmd('useCSS', true); + this.execCmd('styleWithCSS', false); + }catch(e){} + } + this.fireEvent('activate', this); + }, + + // private + adjustFont: function(btn){ + var adjust = btn.getItemId() == 'increasefontsize' ? 1 : -1, + doc = this.getDoc(), + v = parseInt(doc.queryCommandValue('FontSize') || 2, 10); + if((Ext.isSafari && !Ext.isSafari2) || Ext.isChrome || Ext.isAir){ + // Safari 3 values + // 1 = 10px, 2 = 13px, 3 = 16px, 4 = 18px, 5 = 24px, 6 = 32px + if(v <= 10){ + v = 1 + adjust; + }else if(v <= 13){ + v = 2 + adjust; + }else if(v <= 16){ + v = 3 + adjust; + }else if(v <= 18){ + v = 4 + adjust; + }else if(v <= 24){ + v = 5 + adjust; + }else { + v = 6 + adjust; + } + v = v.constrain(1, 6); + }else{ + if(Ext.isSafari){ // safari + adjust *= 2; + } + v = Math.max(1, v+adjust) + (Ext.isSafari ? 'px' : 0); + } + this.execCmd('FontSize', v); + }, + + // private + onEditorEvent : function(e){ + this.updateToolbar(); + }, + + + /** + * Protected method that will not generally be called directly. It triggers + * a toolbar update by reading the markup state of the current selection in the editor. + */ + updateToolbar: function(){ + + if(this.readOnly){ + return; + } + + if(!this.activated){ + this.onFirstFocus(); + return; + } + + var btns = this.tb.items.map, + doc = this.getDoc(); + + if(this.enableFont && !Ext.isSafari2){ + var name = (doc.queryCommandValue('FontName')||this.defaultFont).toLowerCase(); + if(name != this.fontSelect.dom.value){ + this.fontSelect.dom.value = name; + } + } + if(this.enableFormat){ + btns.bold.toggle(doc.queryCommandState('bold')); + btns.italic.toggle(doc.queryCommandState('italic')); + btns.underline.toggle(doc.queryCommandState('underline')); + } + if(this.enableAlignments){ + btns.justifyleft.toggle(doc.queryCommandState('justifyleft')); + btns.justifycenter.toggle(doc.queryCommandState('justifycenter')); + btns.justifyright.toggle(doc.queryCommandState('justifyright')); + } + if(!Ext.isSafari2 && this.enableLists){ + btns.insertorderedlist.toggle(doc.queryCommandState('insertorderedlist')); + btns.insertunorderedlist.toggle(doc.queryCommandState('insertunorderedlist')); + } + + Ext.menu.MenuMgr.hideAll(); + + this.syncValue(); + }, + + // private + relayBtnCmd : function(btn){ + this.relayCmd(btn.getItemId()); + }, + + /** + * Executes a Midas editor command on the editor document and performs necessary focus and + * toolbar updates. This should only be called after the editor is initialized. + * @param {String} cmd The Midas command + * @param {String/Boolean} value (optional) The value to pass to the command (defaults to null) + */ + relayCmd : function(cmd, value){ + (function(){ + this.focus(); + this.execCmd(cmd, value); + this.updateToolbar(); + }).defer(10, this); + }, + + /** + * Executes a Midas editor command directly on the editor document. + * For visual commands, you should use {@link #relayCmd} instead. + * This should only be called after the editor is initialized. + * @param {String} cmd The Midas command + * @param {String/Boolean} value (optional) The value to pass to the command (defaults to null) + */ + execCmd : function(cmd, value){ + var doc = this.getDoc(); + doc.execCommand(cmd, false, value === undefined ? null : value); + this.syncValue(); + }, + + // private + applyCommand : function(e){ + if(e.ctrlKey){ + var c = e.getCharCode(), cmd; + if(c > 0){ + c = String.fromCharCode(c); + switch(c){ + case 'b': + cmd = 'bold'; + break; + case 'i': + cmd = 'italic'; + break; + case 'u': + cmd = 'underline'; + break; + } + if(cmd){ + this.win.focus(); + this.execCmd(cmd); + this.deferFocus(); + e.preventDefault(); + } + } + } + }, + + /** + * Inserts the passed text at the current cursor position. Note: the editor must be initialized and activated + * to insert text. + * @param {String} text + */ + insertAtCursor : function(text){ + if(!this.activated){ + return; + } + if(Ext.isIE){ + this.win.focus(); + var doc = this.getDoc(), + r = doc.selection.createRange(); + if(r){ + r.pasteHTML(text); + this.syncValue(); + this.deferFocus(); + } + }else{ + this.win.focus(); + this.execCmd('InsertHTML', text); + this.deferFocus(); + } + }, + + // private + fixKeys : function(){ // load time branching for fastest keydown performance + if(Ext.isIE){ + return function(e){ + var k = e.getKey(), + doc = this.getDoc(), + r; + if(k == e.TAB){ + e.stopEvent(); + r = doc.selection.createRange(); + if(r){ + r.collapse(true); + r.pasteHTML('    '); + this.deferFocus(); + } + }else if(k == e.ENTER){ + r = doc.selection.createRange(); + if(r){ + var target = r.parentElement(); + if(!target || target.tagName.toLowerCase() != 'li'){ + e.stopEvent(); + r.pasteHTML('
    '); + r.collapse(false); + r.select(); + } + } + } + }; + }else if(Ext.isOpera){ + return function(e){ + var k = e.getKey(); + if(k == e.TAB){ + e.stopEvent(); + this.win.focus(); + this.execCmd('InsertHTML','    '); + this.deferFocus(); + } + }; + }else if(Ext.isWebKit){ + return function(e){ + var k = e.getKey(); + if(k == e.TAB){ + e.stopEvent(); + this.execCmd('InsertText','\t'); + this.deferFocus(); + }else if(k == e.ENTER){ + e.stopEvent(); + this.execCmd('InsertHtml','

    '); + this.deferFocus(); + } + }; + } + }(), + + /** + * Returns the editor's toolbar. This is only available after the editor has been rendered. + * @return {Ext.Toolbar} + */ + getToolbar : function(){ + return this.tb; + }, + + /** + * Object collection of toolbar tooltips for the buttons in the editor. The key + * is the command id associated with that button and the value is a valid QuickTips object. + * For example: +
    
    +{
    +    bold : {
    +        title: 'Bold (Ctrl+B)',
    +        text: 'Make the selected text bold.',
    +        cls: 'x-html-editor-tip'
    +    },
    +    italic : {
    +        title: 'Italic (Ctrl+I)',
    +        text: 'Make the selected text italic.',
    +        cls: 'x-html-editor-tip'
    +    },
    +    ...
    +
    + * @type Object + */ + buttonTips : { + bold : { + title: 'Bold (Ctrl+B)', + text: 'Make the selected text bold.', + cls: 'x-html-editor-tip' + }, + italic : { + title: 'Italic (Ctrl+I)', + text: 'Make the selected text italic.', + cls: 'x-html-editor-tip' + }, + underline : { + title: 'Underline (Ctrl+U)', + text: 'Underline the selected text.', + cls: 'x-html-editor-tip' + }, + increasefontsize : { + title: 'Grow Text', + text: 'Increase the font size.', + cls: 'x-html-editor-tip' + }, + decreasefontsize : { + title: 'Shrink Text', + text: 'Decrease the font size.', + cls: 'x-html-editor-tip' + }, + backcolor : { + title: 'Text Highlight Color', + text: 'Change the background color of the selected text.', + cls: 'x-html-editor-tip' + }, + forecolor : { + title: 'Font Color', + text: 'Change the color of the selected text.', + cls: 'x-html-editor-tip' + }, + justifyleft : { + title: 'Align Text Left', + text: 'Align text to the left.', + cls: 'x-html-editor-tip' + }, + justifycenter : { + title: 'Center Text', + text: 'Center text in the editor.', + cls: 'x-html-editor-tip' + }, + justifyright : { + title: 'Align Text Right', + text: 'Align text to the right.', + cls: 'x-html-editor-tip' + }, + insertunorderedlist : { + title: 'Bullet List', + text: 'Start a bulleted list.', + cls: 'x-html-editor-tip' + }, + insertorderedlist : { + title: 'Numbered List', + text: 'Start a numbered list.', + cls: 'x-html-editor-tip' + }, + createlink : { + title: 'Hyperlink', + text: 'Make the selected text a hyperlink.', + cls: 'x-html-editor-tip' + }, + sourceedit : { + title: 'Source Edit', + text: 'Switch to source editing mode.', + cls: 'x-html-editor-tip' + } + } + + // hide stuff that is not compatible + /** + * @event blur + * @hide + */ + /** + * @event change + * @hide + */ + /** + * @event focus + * @hide + */ + /** + * @event specialkey + * @hide + */ + /** + * @cfg {String} fieldClass @hide + */ + /** + * @cfg {String} focusClass @hide + */ + /** + * @cfg {String} autoCreate @hide + */ + /** + * @cfg {String} inputType @hide + */ + /** + * @cfg {String} invalidClass @hide + */ + /** + * @cfg {String} invalidText @hide + */ + /** + * @cfg {String} msgFx @hide + */ + /** + * @cfg {String} validateOnBlur @hide + */ + /** + * @cfg {Boolean} allowDomMove @hide + */ + /** + * @cfg {String} applyTo @hide + */ + /** + * @cfg {String} autoHeight @hide + */ + /** + * @cfg {String} autoWidth @hide + */ + /** + * @cfg {String} cls @hide + */ + /** + * @cfg {String} disabled @hide + */ + /** + * @cfg {String} disabledClass @hide + */ + /** + * @cfg {String} msgTarget @hide + */ + /** + * @cfg {String} readOnly @hide + */ + /** + * @cfg {String} style @hide + */ + /** + * @cfg {String} validationDelay @hide + */ + /** + * @cfg {String} validationEvent @hide + */ + /** + * @cfg {String} tabIndex @hide + */ + /** + * @property disabled + * @hide + */ + /** + * @method applyToMarkup + * @hide + */ + /** + * @method disable + * @hide + */ + /** + * @method enable + * @hide + */ + /** + * @method validate + * @hide + */ + /** + * @event valid + * @hide + */ + /** + * @method setDisabled + * @hide + */ + /** + * @cfg keys + * @hide + */ +}); +Ext.reg('htmleditor', Ext.form.HtmlEditor); +/** + * @class Ext.form.TimeField + * @extends Ext.form.ComboBox + * Provides a time input field with a time dropdown and automatic time validation. Example usage: + *
    
    +new Ext.form.TimeField({
    +    minValue: '9:00 AM',
    +    maxValue: '6:00 PM',
    +    increment: 30
    +});
    +
    + * @constructor + * Create a new TimeField + * @param {Object} config + * @xtype timefield + */ +Ext.form.TimeField = Ext.extend(Ext.form.ComboBox, { + /** + * @cfg {Date/String} minValue + * The minimum allowed time. Can be either a Javascript date object with a valid time value or a string + * time in a valid format -- see {@link #format} and {@link #altFormats} (defaults to undefined). + */ + minValue : undefined, + /** + * @cfg {Date/String} maxValue + * The maximum allowed time. Can be either a Javascript date object with a valid time value or a string + * time in a valid format -- see {@link #format} and {@link #altFormats} (defaults to undefined). + */ + maxValue : undefined, + /** + * @cfg {String} minText + * The error text to display when the date in the cell is before minValue (defaults to + * 'The time in this field must be equal to or after {0}'). + */ + minText : "The time in this field must be equal to or after {0}", + /** + * @cfg {String} maxText + * The error text to display when the time is after maxValue (defaults to + * 'The time in this field must be equal to or before {0}'). + */ + maxText : "The time in this field must be equal to or before {0}", + /** + * @cfg {String} invalidText + * The error text to display when the time in the field is invalid (defaults to + * '{value} is not a valid time'). + */ + invalidText : "{0} is not a valid time", + /** + * @cfg {String} format + * The default time format string which can be overriden for localization support. The format must be + * valid according to {@link Date#parseDate} (defaults to 'g:i A', e.g., '3:15 PM'). For 24-hour time + * format try 'H:i' instead. + */ + format : "g:i A", + /** + * @cfg {String} altFormats + * Multiple date formats separated by "|" to try when parsing a user input value and it doesn't match the defined + * format (defaults to 'g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A'). + */ + altFormats : "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A", + /** + * @cfg {Number} increment + * The number of minutes between each time value in the list (defaults to 15). + */ + increment: 15, + + // private override + mode: 'local', + // private override + triggerAction: 'all', + // private override + typeAhead: false, + + // private - This is the date to use when generating time values in the absence of either minValue + // or maxValue. Using the current date causes DST issues on DST boundary dates, so this is an + // arbitrary "safe" date that can be any date aside from DST boundary dates. + initDate: '1/1/2008', + + initDateFormat: 'j/n/Y', + + // private + initComponent : function(){ + if(Ext.isDefined(this.minValue)){ + this.setMinValue(this.minValue, true); + } + if(Ext.isDefined(this.maxValue)){ + this.setMaxValue(this.maxValue, true); + } + if(!this.store){ + this.generateStore(true); + } + Ext.form.TimeField.superclass.initComponent.call(this); + }, + + /** + * Replaces any existing {@link #minValue} with the new time and refreshes the store. + * @param {Date/String} value The minimum time that can be selected + */ + setMinValue: function(value, /* private */ initial){ + this.setLimit(value, true, initial); + return this; + }, + + /** + * Replaces any existing {@link #maxValue} with the new time and refreshes the store. + * @param {Date/String} value The maximum time that can be selected + */ + setMaxValue: function(value, /* private */ initial){ + this.setLimit(value, false, initial); + return this; + }, + + // private + generateStore: function(initial){ + var min = this.minValue || new Date(this.initDate).clearTime(), + max = this.maxValue || new Date(this.initDate).clearTime().add('mi', (24 * 60) - 1), + times = []; + + while(min <= max){ + times.push(min.dateFormat(this.format)); + min = min.add('mi', this.increment); + } + this.bindStore(times, initial); + }, + + // private + setLimit: function(value, isMin, initial){ + var d; + if(Ext.isString(value)){ + d = this.parseDate(value); + }else if(Ext.isDate(value)){ + d = value; + } + if(d){ + var val = new Date(this.initDate).clearTime(); + val.setHours(d.getHours(), d.getMinutes(), d.getSeconds(), d.getMilliseconds()); + this[isMin ? 'minValue' : 'maxValue'] = val; + if(!initial){ + this.generateStore(); + } + } + }, + + // inherited docs + getValue : function(){ + var v = Ext.form.TimeField.superclass.getValue.call(this); + return this.formatDate(this.parseDate(v)) || ''; + }, + + // inherited docs + setValue : function(value){ + return Ext.form.TimeField.superclass.setValue.call(this, this.formatDate(this.parseDate(value))); + }, + + // private overrides + validateValue : Ext.form.DateField.prototype.validateValue, + + formatDate : Ext.form.DateField.prototype.formatDate, + + parseDate: function(value) { + if (!value || Ext.isDate(value)) { + return value; + } + + var id = this.initDate + ' ', + idf = this.initDateFormat + ' ', + v = Date.parseDate(id + value, idf + this.format), // *** handle DST. note: this.format is a TIME-only format + af = this.altFormats; + + if (!v && af) { + if (!this.altFormatsArray) { + this.altFormatsArray = af.split("|"); + } + for (var i = 0, afa = this.altFormatsArray, len = afa.length; i < len && !v; i++) { + v = Date.parseDate(id + value, idf + afa[i]); + } + } + + return v; + } +}); +Ext.reg('timefield', Ext.form.TimeField);/** + * @class Ext.form.SliderField + * @extends Ext.form.Field + * Wraps a {@link Ext.Slider Slider} so it can be used as a form field. + * @constructor + * Creates a new SliderField + * @param {Object} config Configuration options. Note that you can pass in any slider configuration options, as well as + * as any field configuration options. + * @xtype sliderfield + */ +Ext.form.SliderField = Ext.extend(Ext.form.Field, { + + /** + * @cfg {Boolean} useTips + * True to use an Ext.slider.Tip to display tips for the value. Defaults to true. + */ + useTips : true, + + /** + * @cfg {Function} tipText + * A function used to display custom text for the slider tip. Defaults to null, which will + * use the default on the plugin. + */ + tipText : null, + + // private override + actionMode: 'wrap', + + /** + * Initialize the component. + * @private + */ + initComponent : function() { + var cfg = Ext.copyTo({ + id: this.id + '-slider' + }, this.initialConfig, ['vertical', 'minValue', 'maxValue', 'decimalPrecision', 'keyIncrement', 'increment', 'clickToChange', 'animate']); + + // only can use it if it exists. + if (this.useTips) { + var plug = this.tipText ? {getText: this.tipText} : {}; + cfg.plugins = [new Ext.slider.Tip(plug)]; + } + this.slider = new Ext.Slider(cfg); + Ext.form.SliderField.superclass.initComponent.call(this); + }, + + /** + * Set up the hidden field + * @param {Object} ct The container to render to. + * @param {Object} position The position in the container to render to. + * @private + */ + onRender : function(ct, position){ + this.autoCreate = { + id: this.id, + name: this.name, + type: 'hidden', + tag: 'input' + }; + Ext.form.SliderField.superclass.onRender.call(this, ct, position); + this.wrap = this.el.wrap({cls: 'x-form-field-wrap'}); + this.resizeEl = this.positionEl = this.wrap; + this.slider.render(this.wrap); + }, + + /** + * Ensure that the slider size is set automatically when the field resizes. + * @param {Object} w The width + * @param {Object} h The height + * @param {Object} aw The adjusted width + * @param {Object} ah The adjusted height + * @private + */ + onResize : function(w, h, aw, ah){ + Ext.form.SliderField.superclass.onResize.call(this, w, h, aw, ah); + this.slider.setSize(w, h); + }, + + /** + * Initialize any events for this class. + * @private + */ + initEvents : function(){ + Ext.form.SliderField.superclass.initEvents.call(this); + this.slider.on('change', this.onChange, this); + }, + + /** + * Utility method to set the value of the field when the slider changes. + * @param {Object} slider The slider object. + * @param {Object} v The new value. + * @private + */ + onChange : function(slider, v){ + this.setValue(v, undefined, true); + }, + + /** + * Enable the slider when the field is enabled. + * @private + */ + onEnable : function(){ + Ext.form.SliderField.superclass.onEnable.call(this); + this.slider.enable(); + }, + + /** + * Disable the slider when the field is disabled. + * @private + */ + onDisable : function(){ + Ext.form.SliderField.superclass.onDisable.call(this); + this.slider.disable(); + }, + + /** + * Ensure the slider is destroyed when the field is destroyed. + * @private + */ + beforeDestroy : function(){ + Ext.destroy(this.slider); + Ext.form.SliderField.superclass.beforeDestroy.call(this); + }, + + /** + * If a side icon is shown, do alignment to the slider + * @private + */ + alignErrorIcon : function(){ + this.errorIcon.alignTo(this.slider.el, 'tl-tr', [2, 0]); + }, + + /** + * Sets the minimum field value. + * @param {Number} v The new minimum value. + * @return {Ext.form.SliderField} this + */ + setMinValue : function(v){ + this.slider.setMinValue(v); + return this; + }, + + /** + * Sets the maximum field value. + * @param {Number} v The new maximum value. + * @return {Ext.form.SliderField} this + */ + setMaxValue : function(v){ + this.slider.setMaxValue(v); + return this; + }, + + /** + * Sets the value for this field. + * @param {Number} v The new value. + * @param {Boolean} animate (optional) Whether to animate the transition. If not specified, it will default to the animate config. + * @return {Ext.form.SliderField} this + */ + setValue : function(v, animate, /* private */ silent){ + // silent is used if the setValue method is invoked by the slider + // which means we don't need to set the value on the slider. + if(!silent){ + this.slider.setValue(v, animate); + } + return Ext.form.SliderField.superclass.setValue.call(this, this.slider.getValue()); + }, + + /** + * Gets the current value for this field. + * @return {Number} The current value. + */ + getValue : function(){ + return this.slider.getValue(); + } +}); + +Ext.reg('sliderfield', Ext.form.SliderField);/** + * @class Ext.form.Label + * @extends Ext.BoxComponent + * Basic Label field. + * @constructor + * Creates a new Label + * @param {Ext.Element/String/Object} config The configuration options. If an element is passed, it is set as the internal + * element and its id used as the component id. If a string is passed, it is assumed to be the id of an existing element + * and is used as the component id. Otherwise, it is assumed to be a standard config object and is applied to the component. + * @xtype label + */ +Ext.form.Label = Ext.extend(Ext.BoxComponent, { + /** + * @cfg {String} text The plain text to display within the label (defaults to ''). If you need to include HTML + * tags within the label's innerHTML, use the {@link #html} config instead. + */ + /** + * @cfg {String} forId The id of the input element to which this label will be bound via the standard HTML 'for' + * attribute. If not specified, the attribute will not be added to the label. + */ + /** + * @cfg {String} html An HTML fragment that will be used as the label's innerHTML (defaults to ''). + * Note that if {@link #text} is specified it will take precedence and this value will be ignored. + */ + + // private + onRender : function(ct, position){ + if(!this.el){ + this.el = document.createElement('label'); + this.el.id = this.getId(); + this.el.innerHTML = this.text ? Ext.util.Format.htmlEncode(this.text) : (this.html || ''); + if(this.forId){ + this.el.setAttribute('for', this.forId); + } + } + Ext.form.Label.superclass.onRender.call(this, ct, position); + }, + + /** + * Updates the label's innerHTML with the specified string. + * @param {String} text The new label text + * @param {Boolean} encode (optional) False to skip HTML-encoding the text when rendering it + * to the label (defaults to true which encodes the value). This might be useful if you want to include + * tags in the label's innerHTML rather than rendering them as string literals per the default logic. + * @return {Label} this + */ + setText : function(t, encode){ + var e = encode === false; + this[!e ? 'text' : 'html'] = t; + delete this[e ? 'text' : 'html']; + if(this.rendered){ + this.el.dom.innerHTML = encode !== false ? Ext.util.Format.htmlEncode(t) : t; + } + return this; + } +}); + +Ext.reg('label', Ext.form.Label);/** + * @class Ext.form.Action + *

    The subclasses of this class provide actions to perform upon {@link Ext.form.BasicForm Form}s.

    + *

    Instances of this class are only created by a {@link Ext.form.BasicForm Form} when + * the Form needs to perform an action such as submit or load. The Configuration options + * listed for this class are set through the Form's action methods: {@link Ext.form.BasicForm#submit submit}, + * {@link Ext.form.BasicForm#load load} and {@link Ext.form.BasicForm#doAction doAction}

    + *

    The instance of Action which performed the action is passed to the success + * and failure callbacks of the Form's action methods ({@link Ext.form.BasicForm#submit submit}, + * {@link Ext.form.BasicForm#load load} and {@link Ext.form.BasicForm#doAction doAction}), + * and to the {@link Ext.form.BasicForm#actioncomplete actioncomplete} and + * {@link Ext.form.BasicForm#actionfailed actionfailed} event handlers.

    + */ +Ext.form.Action = function(form, options){ + this.form = form; + this.options = options || {}; +}; + +/** + * Failure type returned when client side validation of the Form fails + * thus aborting a submit action. Client side validation is performed unless + * {@link #clientValidation} is explicitly set to false. + * @type {String} + * @static + */ +Ext.form.Action.CLIENT_INVALID = 'client'; +/** + *

    Failure type returned when server side processing fails and the {@link #result}'s + * success property is set to false.

    + *

    In the case of a form submission, field-specific error messages may be returned in the + * {@link #result}'s errors property.

    + * @type {String} + * @static + */ +Ext.form.Action.SERVER_INVALID = 'server'; +/** + * Failure type returned when a communication error happens when attempting + * to send a request to the remote server. The {@link #response} may be examined to + * provide further information. + * @type {String} + * @static + */ +Ext.form.Action.CONNECT_FAILURE = 'connect'; +/** + * Failure type returned when the response's success + * property is set to false, or no field values are returned in the response's + * data property. + * @type {String} + * @static + */ +Ext.form.Action.LOAD_FAILURE = 'load'; + +Ext.form.Action.prototype = { +/** + * @cfg {String} url The URL that the Action is to invoke. + */ +/** + * @cfg {Boolean} reset When set to true, causes the Form to be + * {@link Ext.form.BasicForm.reset reset} on Action success. If specified, this happens + * before the {@link #success} callback is called and before the Form's + * {@link Ext.form.BasicForm.actioncomplete actioncomplete} event fires. + */ +/** + * @cfg {String} method The HTTP method to use to access the requested URL. Defaults to the + * {@link Ext.form.BasicForm}'s method, or if that is not specified, the underlying DOM form's method. + */ +/** + * @cfg {Mixed} params

    Extra parameter values to pass. These are added to the Form's + * {@link Ext.form.BasicForm#baseParams} and passed to the specified URL along with the Form's + * input fields.

    + *

    Parameters are encoded as standard HTTP parameters using {@link Ext#urlEncode}.

    + */ +/** + * @cfg {Number} timeout The number of seconds to wait for a server response before + * failing with the {@link #failureType} as {@link #Action.CONNECT_FAILURE}. If not specified, + * defaults to the configured {@link Ext.form.BasicForm#timeout timeout} of the + * {@link Ext.form.BasicForm form}. + */ +/** + * @cfg {Function} success The function to call when a valid success return packet is recieved. + * The function is passed the following parameters:
      + *
    • form : Ext.form.BasicForm
      The form that requested the action
    • + *
    • action : Ext.form.Action
      The Action class. The {@link #result} + * property of this object may be examined to perform custom postprocessing.
    • + *
    + */ +/** + * @cfg {Function} failure The function to call when a failure packet was recieved, or when an + * error ocurred in the Ajax communication. + * The function is passed the following parameters:
      + *
    • form : Ext.form.BasicForm
      The form that requested the action
    • + *
    • action : Ext.form.Action
      The Action class. If an Ajax + * error ocurred, the failure type will be in {@link #failureType}. The {@link #result} + * property of this object may be examined to perform custom postprocessing.
    • + *
    + */ +/** + * @cfg {Object} scope The scope in which to call the callback functions (The this reference + * for the callback functions). + */ +/** + * @cfg {String} waitMsg The message to be displayed by a call to {@link Ext.MessageBox#wait} + * during the time the action is being processed. + */ +/** + * @cfg {String} waitTitle The title to be displayed by a call to {@link Ext.MessageBox#wait} + * during the time the action is being processed. + */ + +/** + * @cfg {Boolean} submitEmptyText If set to true, the emptyText value will be sent with the form + * when it is submitted. Defaults to true. + */ + +/** + * The type of action this Action instance performs. + * Currently only "submit" and "load" are supported. + * @type {String} + */ + type : 'default', +/** + * The type of failure detected will be one of these: {@link #CLIENT_INVALID}, + * {@link #SERVER_INVALID}, {@link #CONNECT_FAILURE}, or {@link #LOAD_FAILURE}. Usage: + *
    
    +var fp = new Ext.form.FormPanel({
    +...
    +buttons: [{
    +    text: 'Save',
    +    formBind: true,
    +    handler: function(){
    +        if(fp.getForm().isValid()){
    +            fp.getForm().submit({
    +                url: 'form-submit.php',
    +                waitMsg: 'Submitting your data...',
    +                success: function(form, action){
    +                    // server responded with success = true
    +                    var result = action.{@link #result};
    +                },
    +                failure: function(form, action){
    +                    if (action.{@link #failureType} === Ext.form.Action.{@link #CONNECT_FAILURE}) {
    +                        Ext.Msg.alert('Error',
    +                            'Status:'+action.{@link #response}.status+': '+
    +                            action.{@link #response}.statusText);
    +                    }
    +                    if (action.failureType === Ext.form.Action.{@link #SERVER_INVALID}){
    +                        // server responded with success = false
    +                        Ext.Msg.alert('Invalid', action.{@link #result}.errormsg);
    +                    }
    +                }
    +            });
    +        }
    +    }
    +},{
    +    text: 'Reset',
    +    handler: function(){
    +        fp.getForm().reset();
    +    }
    +}]
    + * 
    + * @property failureType + * @type {String} + */ + /** + * The XMLHttpRequest object used to perform the action. + * @property response + * @type {Object} + */ + /** + * The decoded response object containing a boolean success property and + * other, action-specific properties. + * @property result + * @type {Object} + */ + + // interface method + run : function(options){ + + }, + + // interface method + success : function(response){ + + }, + + // interface method + handleResponse : function(response){ + + }, + + // default connection failure + failure : function(response){ + this.response = response; + this.failureType = Ext.form.Action.CONNECT_FAILURE; + this.form.afterAction(this, false); + }, + + // private + // shared code among all Actions to validate that there was a response + // with either responseText or responseXml + processResponse : function(response){ + this.response = response; + if(!response.responseText && !response.responseXML){ + return true; + } + this.result = this.handleResponse(response); + return this.result; + }, + + // utility functions used internally + getUrl : function(appendParams){ + var url = this.options.url || this.form.url || this.form.el.dom.action; + if(appendParams){ + var p = this.getParams(); + if(p){ + url = Ext.urlAppend(url, p); + } + } + return url; + }, + + // private + getMethod : function(){ + return (this.options.method || this.form.method || this.form.el.dom.method || 'POST').toUpperCase(); + }, + + // private + getParams : function(){ + var bp = this.form.baseParams; + var p = this.options.params; + if(p){ + if(typeof p == "object"){ + p = Ext.urlEncode(Ext.applyIf(p, bp)); + }else if(typeof p == 'string' && bp){ + p += '&' + Ext.urlEncode(bp); + } + }else if(bp){ + p = Ext.urlEncode(bp); + } + return p; + }, + + // private + createCallback : function(opts){ + var opts = opts || {}; + return { + success: this.success, + failure: this.failure, + scope: this, + timeout: (opts.timeout*1000) || (this.form.timeout*1000), + upload: this.form.fileUpload ? this.success : undefined + }; + } +}; + +/** + * @class Ext.form.Action.Submit + * @extends Ext.form.Action + *

    A class which handles submission of data from {@link Ext.form.BasicForm Form}s + * and processes the returned response.

    + *

    Instances of this class are only created by a {@link Ext.form.BasicForm Form} when + * {@link Ext.form.BasicForm#submit submit}ting.

    + *

    Response Packet Criteria

    + *

    A response packet may contain: + *

      + *
    • success property : Boolean + *
      The success property is required.
    • + *
    • errors property : Object + *
      The errors property, + * which is optional, contains error messages for invalid fields.
    • + *
    + *

    JSON Packets

    + *

    By default, response packets are assumed to be JSON, so a typical response + * packet may look like this:

    
    +{
    +    success: false,
    +    errors: {
    +        clientCode: "Client not found",
    +        portOfLoading: "This field must not be null"
    +    }
    +}
    + *

    Other data may be placed into the response for processing by the {@link Ext.form.BasicForm}'s callback + * or event handler methods. The object decoded from this JSON is available in the + * {@link Ext.form.Action#result result} property.

    + *

    Alternatively, if an {@link #errorReader} is specified as an {@link Ext.data.XmlReader XmlReader}:

    
    +    errorReader: new Ext.data.XmlReader({
    +            record : 'field',
    +            success: '@success'
    +        }, [
    +            'id', 'msg'
    +        ]
    +    )
    +
    + *

    then the results may be sent back in XML format:

    
    +<?xml version="1.0" encoding="UTF-8"?>
    +<message success="false">
    +<errors>
    +    <field>
    +        <id>clientCode</id>
    +        <msg><![CDATA[Code not found. <br /><i>This is a test validation message from the server </i>]]></msg>
    +    </field>
    +    <field>
    +        <id>portOfLoading</id>
    +        <msg><![CDATA[Port not found. <br /><i>This is a test validation message from the server </i>]]></msg>
    +    </field>
    +</errors>
    +</message>
    +
    + *

    Other elements may be placed into the response XML for processing by the {@link Ext.form.BasicForm}'s callback + * or event handler methods. The XML document is available in the {@link #errorReader}'s {@link Ext.data.XmlReader#xmlData xmlData} property.

    + */ +Ext.form.Action.Submit = function(form, options){ + Ext.form.Action.Submit.superclass.constructor.call(this, form, options); +}; + +Ext.extend(Ext.form.Action.Submit, Ext.form.Action, { + /** + * @cfg {Ext.data.DataReader} errorReader

    Optional. JSON is interpreted with + * no need for an errorReader.

    + *

    A Reader which reads a single record from the returned data. The DataReader's + * success property specifies how submission success is determined. The Record's + * data provides the error messages to apply to any invalid form Fields.

    + */ + /** + * @cfg {boolean} clientValidation Determines whether a Form's fields are validated + * in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission. + * Pass false in the Form's submit options to prevent this. If not defined, pre-submission field validation + * is performed. + */ + type : 'submit', + + // private + run : function(){ + var o = this.options, + method = this.getMethod(), + isGet = method == 'GET'; + if(o.clientValidation === false || this.form.isValid()){ + if (o.submitEmptyText === false) { + var fields = this.form.items, + emptyFields = []; + fields.each(function(f) { + if (f.el.getValue() == f.emptyText) { + emptyFields.push(f); + f.el.dom.value = ""; + } + }); + } + Ext.Ajax.request(Ext.apply(this.createCallback(o), { + form:this.form.el.dom, + url:this.getUrl(isGet), + method: method, + headers: o.headers, + params:!isGet ? this.getParams() : null, + isUpload: this.form.fileUpload + })); + if (o.submitEmptyText === false) { + Ext.each(emptyFields, function(f) { + if (f.applyEmptyText) { + f.applyEmptyText(); + } + }); + } + }else if (o.clientValidation !== false){ // client validation failed + this.failureType = Ext.form.Action.CLIENT_INVALID; + this.form.afterAction(this, false); + } + }, + + // private + success : function(response){ + var result = this.processResponse(response); + if(result === true || result.success){ + this.form.afterAction(this, true); + return; + } + if(result.errors){ + this.form.markInvalid(result.errors); + } + this.failureType = Ext.form.Action.SERVER_INVALID; + this.form.afterAction(this, false); + }, + + // private + handleResponse : function(response){ + if(this.form.errorReader){ + var rs = this.form.errorReader.read(response); + var errors = []; + if(rs.records){ + for(var i = 0, len = rs.records.length; i < len; i++) { + var r = rs.records[i]; + errors[i] = r.data; + } + } + if(errors.length < 1){ + errors = null; + } + return { + success : rs.success, + errors : errors + }; + } + return Ext.decode(response.responseText); + } +}); + + +/** + * @class Ext.form.Action.Load + * @extends Ext.form.Action + *

    A class which handles loading of data from a server into the Fields of an {@link Ext.form.BasicForm}.

    + *

    Instances of this class are only created by a {@link Ext.form.BasicForm Form} when + * {@link Ext.form.BasicForm#load load}ing.

    + *

    Response Packet Criteria

    + *

    A response packet must contain: + *

      + *
    • success property : Boolean
    • + *
    • data property : Object
    • + *
      The data property contains the values of Fields to load. + * The individual value object for each Field is passed to the Field's + * {@link Ext.form.Field#setValue setValue} method.
      + *
    + *

    JSON Packets

    + *

    By default, response packets are assumed to be JSON, so for the following form load call:

    
    +var myFormPanel = new Ext.form.FormPanel({
    +    title: 'Client and routing info',
    +    items: [{
    +        fieldLabel: 'Client',
    +        name: 'clientName'
    +    }, {
    +        fieldLabel: 'Port of loading',
    +        name: 'portOfLoading'
    +    }, {
    +        fieldLabel: 'Port of discharge',
    +        name: 'portOfDischarge'
    +    }]
    +});
    +myFormPanel.{@link Ext.form.FormPanel#getForm getForm}().{@link Ext.form.BasicForm#load load}({
    +    url: '/getRoutingInfo.php',
    +    params: {
    +        consignmentRef: myConsignmentRef
    +    },
    +    failure: function(form, action) {
    +        Ext.Msg.alert("Load failed", action.result.errorMessage);
    +    }
    +});
    +
    + * a success response packet may look like this:

    
    +{
    +    success: true,
    +    data: {
    +        clientName: "Fred. Olsen Lines",
    +        portOfLoading: "FXT",
    +        portOfDischarge: "OSL"
    +    }
    +}
    + * while a failure response packet may look like this:

    
    +{
    +    success: false,
    +    errorMessage: "Consignment reference not found"
    +}
    + *

    Other data may be placed into the response for processing the {@link Ext.form.BasicForm Form}'s + * callback or event handler methods. The object decoded from this JSON is available in the + * {@link Ext.form.Action#result result} property.

    + */ +Ext.form.Action.Load = function(form, options){ + Ext.form.Action.Load.superclass.constructor.call(this, form, options); + this.reader = this.form.reader; +}; + +Ext.extend(Ext.form.Action.Load, Ext.form.Action, { + // private + type : 'load', + + // private + run : function(){ + Ext.Ajax.request(Ext.apply( + this.createCallback(this.options), { + method:this.getMethod(), + url:this.getUrl(false), + headers: this.options.headers, + params:this.getParams() + })); + }, + + // private + success : function(response){ + var result = this.processResponse(response); + if(result === true || !result.success || !result.data){ + this.failureType = Ext.form.Action.LOAD_FAILURE; + this.form.afterAction(this, false); + return; + } + this.form.clearInvalid(); + this.form.setValues(result.data); + this.form.afterAction(this, true); + }, + + // private + handleResponse : function(response){ + if(this.form.reader){ + var rs = this.form.reader.read(response); + var data = rs.records && rs.records[0] ? rs.records[0].data : null; + return { + success : rs.success, + data : data + }; + } + return Ext.decode(response.responseText); + } +}); + + + +/** + * @class Ext.form.Action.DirectLoad + * @extends Ext.form.Action.Load + *

    Provides Ext.direct support for loading form data.

    + *

    This example illustrates usage of Ext.Direct to load a form through Ext.Direct.

    + *
    
    +var myFormPanel = new Ext.form.FormPanel({
    +    // configs for FormPanel
    +    title: 'Basic Information',
    +    renderTo: document.body,
    +    width: 300, height: 160,
    +    padding: 10,
    +
    +    // configs apply to child items
    +    defaults: {anchor: '100%'},
    +    defaultType: 'textfield',
    +    items: [{
    +        fieldLabel: 'Name',
    +        name: 'name'
    +    },{
    +        fieldLabel: 'Email',
    +        name: 'email'
    +    },{
    +        fieldLabel: 'Company',
    +        name: 'company'
    +    }],
    +
    +    // configs for BasicForm
    +    api: {
    +        // The server-side method to call for load() requests
    +        load: Profile.getBasicInfo,
    +        // The server-side must mark the submit handler as a 'formHandler'
    +        submit: Profile.updateBasicInfo
    +    },
    +    // specify the order for the passed params
    +    paramOrder: ['uid', 'foo']
    +});
    +
    +// load the form
    +myFormPanel.getForm().load({
    +    // pass 2 arguments to server side getBasicInfo method (len=2)
    +    params: {
    +        foo: 'bar',
    +        uid: 34
    +    }
    +});
    + * 
    + * The data packet sent to the server will resemble something like: + *
    
    +[
    +    {
    +        "action":"Profile","method":"getBasicInfo","type":"rpc","tid":2,
    +        "data":[34,"bar"] // note the order of the params
    +    }
    +]
    + * 
    + * The form will process a data packet returned by the server that is similar + * to the following format: + *
    
    +[
    +    {
    +        "action":"Profile","method":"getBasicInfo","type":"rpc","tid":2,
    +        "result":{
    +            "success":true,
    +            "data":{
    +                "name":"Fred Flintstone",
    +                "company":"Slate Rock and Gravel",
    +                "email":"fred.flintstone@slaterg.com"
    +            }
    +        }
    +    }
    +]
    + * 
    + */ +Ext.form.Action.DirectLoad = Ext.extend(Ext.form.Action.Load, { + constructor: function(form, opts) { + Ext.form.Action.DirectLoad.superclass.constructor.call(this, form, opts); + }, + type : 'directload', + + run : function(){ + var args = this.getParams(); + args.push(this.success, this); + this.form.api.load.apply(window, args); + }, + + getParams : function() { + var buf = [], o = {}; + var bp = this.form.baseParams; + var p = this.options.params; + Ext.apply(o, p, bp); + var paramOrder = this.form.paramOrder; + if(paramOrder){ + for(var i = 0, len = paramOrder.length; i < len; i++){ + buf.push(o[paramOrder[i]]); + } + }else if(this.form.paramsAsHash){ + buf.push(o); + } + return buf; + }, + // Direct actions have already been processed and therefore + // we can directly set the result; Direct Actions do not have + // a this.response property. + processResponse : function(result) { + this.result = result; + return result; + }, + + success : function(response, trans){ + if(trans.type == Ext.Direct.exceptions.SERVER){ + response = {}; + } + Ext.form.Action.DirectLoad.superclass.success.call(this, response); + } +}); + +/** + * @class Ext.form.Action.DirectSubmit + * @extends Ext.form.Action.Submit + *

    Provides Ext.direct support for submitting form data.

    + *

    This example illustrates usage of Ext.Direct to submit a form through Ext.Direct.

    + *
    
    +var myFormPanel = new Ext.form.FormPanel({
    +    // configs for FormPanel
    +    title: 'Basic Information',
    +    renderTo: document.body,
    +    width: 300, height: 160,
    +    padding: 10,
    +    buttons:[{
    +        text: 'Submit',
    +        handler: function(){
    +            myFormPanel.getForm().submit({
    +                params: {
    +                    foo: 'bar',
    +                    uid: 34
    +                }
    +            });
    +        }
    +    }],
    +
    +    // configs apply to child items
    +    defaults: {anchor: '100%'},
    +    defaultType: 'textfield',
    +    items: [{
    +        fieldLabel: 'Name',
    +        name: 'name'
    +    },{
    +        fieldLabel: 'Email',
    +        name: 'email'
    +    },{
    +        fieldLabel: 'Company',
    +        name: 'company'
    +    }],
    +
    +    // configs for BasicForm
    +    api: {
    +        // The server-side method to call for load() requests
    +        load: Profile.getBasicInfo,
    +        // The server-side must mark the submit handler as a 'formHandler'
    +        submit: Profile.updateBasicInfo
    +    },
    +    // specify the order for the passed params
    +    paramOrder: ['uid', 'foo']
    +});
    + * 
    + * The data packet sent to the server will resemble something like: + *
    
    +{
    +    "action":"Profile","method":"updateBasicInfo","type":"rpc","tid":"6",
    +    "result":{
    +        "success":true,
    +        "id":{
    +            "extAction":"Profile","extMethod":"updateBasicInfo",
    +            "extType":"rpc","extTID":"6","extUpload":"false",
    +            "name":"Aaron Conran","email":"aaron@extjs.com","company":"Ext JS, LLC"
    +        }
    +    }
    +}
    + * 
    + * The form will process a data packet returned by the server that is similar + * to the following: + *
    
    +// sample success packet (batched requests)
    +[
    +    {
    +        "action":"Profile","method":"updateBasicInfo","type":"rpc","tid":3,
    +        "result":{
    +            "success":true
    +        }
    +    }
    +]
    +
    +// sample failure packet (one request)
    +{
    +        "action":"Profile","method":"updateBasicInfo","type":"rpc","tid":"6",
    +        "result":{
    +            "errors":{
    +                "email":"already taken"
    +            },
    +            "success":false,
    +            "foo":"bar"
    +        }
    +}
    + * 
    + * Also see the discussion in {@link Ext.form.Action.DirectLoad}. + */ +Ext.form.Action.DirectSubmit = Ext.extend(Ext.form.Action.Submit, { + constructor : function(form, opts) { + Ext.form.Action.DirectSubmit.superclass.constructor.call(this, form, opts); + }, + type : 'directsubmit', + // override of Submit + run : function(){ + var o = this.options; + if(o.clientValidation === false || this.form.isValid()){ + // tag on any additional params to be posted in the + // form scope + this.success.params = this.getParams(); + this.form.api.submit(this.form.el.dom, this.success, this); + }else if (o.clientValidation !== false){ // client validation failed + this.failureType = Ext.form.Action.CLIENT_INVALID; + this.form.afterAction(this, false); + } + }, + + getParams : function() { + var o = {}; + var bp = this.form.baseParams; + var p = this.options.params; + Ext.apply(o, p, bp); + return o; + }, + // Direct actions have already been processed and therefore + // we can directly set the result; Direct Actions do not have + // a this.response property. + processResponse : function(result) { + this.result = result; + return result; + }, + + success : function(response, trans){ + if(trans.type == Ext.Direct.exceptions.SERVER){ + response = {}; + } + Ext.form.Action.DirectSubmit.superclass.success.call(this, response); + } +}); + +Ext.form.Action.ACTION_TYPES = { + 'load' : Ext.form.Action.Load, + 'submit' : Ext.form.Action.Submit, + 'directload' : Ext.form.Action.DirectLoad, + 'directsubmit' : Ext.form.Action.DirectSubmit +}; +/** + * @class Ext.form.VTypes + *

    This is a singleton object which contains a set of commonly used field validation functions. + * The validations provided are basic and intended to be easily customizable and extended.

    + *

    To add custom VTypes specify the {@link Ext.form.TextField#vtype vtype} validation + * test function, and optionally specify any corresponding error text to display and any keystroke + * filtering mask to apply. For example:

    + *
    
    +// custom Vtype for vtype:'time'
    +var timeTest = /^([1-9]|1[0-9]):([0-5][0-9])(\s[a|p]m)$/i;
    +Ext.apply(Ext.form.VTypes, {
    +    //  vtype validation function
    +    time: function(val, field) {
    +        return timeTest.test(val);
    +    },
    +    // vtype Text property: The error text to display when the validation function returns false
    +    timeText: 'Not a valid time.  Must be in the format "12:34 PM".',
    +    // vtype Mask property: The keystroke filter mask
    +    timeMask: /[\d\s:amp]/i
    +});
    + * 
    + * Another example: + *
    
    +// custom Vtype for vtype:'IPAddress'
    +Ext.apply(Ext.form.VTypes, {
    +    IPAddress:  function(v) {
    +        return /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(v);
    +    },
    +    IPAddressText: 'Must be a numeric IP address',
    +    IPAddressMask: /[\d\.]/i
    +});
    + * 
    + * @singleton + */ +Ext.form.VTypes = function(){ + // closure these in so they are only created once. + var alpha = /^[a-zA-Z_]+$/, + alphanum = /^[a-zA-Z0-9_]+$/, + email = /^(\w+)([\-+.][\w]+)*@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/, + url = /(((^https?)|(^ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i; + + // All these messages and functions are configurable + return { + /** + * The function used to validate email addresses. Note that this is a very basic validation -- complete + * validation per the email RFC specifications is very complex and beyond the scope of this class, although + * this function can be overridden if a more comprehensive validation scheme is desired. See the validation + * section of the Wikipedia article on email addresses + * for additional information. This implementation is intended to validate the following emails: + * 'barney@example.de', 'barney.rubble@example.com', 'barney-rubble@example.coop', 'barney+rubble@example.com' + * . + * @param {String} value The email address + * @return {Boolean} true if the RegExp test passed, and false if not. + */ + 'email' : function(v){ + return email.test(v); + }, + /** + * The error text to display when the email validation function returns false. Defaults to: + * 'This field should be an e-mail address in the format "user@example.com"' + * @type String + */ + 'emailText' : 'This field should be an e-mail address in the format "user@example.com"', + /** + * The keystroke filter mask to be applied on email input. See the {@link #email} method for + * information about more complex email validation. Defaults to: + * /[a-z0-9_\.\-@]/i + * @type RegExp + */ + 'emailMask' : /[a-z0-9_\.\-@\+]/i, + + /** + * The function used to validate URLs + * @param {String} value The URL + * @return {Boolean} true if the RegExp test passed, and false if not. + */ + 'url' : function(v){ + return url.test(v); + }, + /** + * The error text to display when the url validation function returns false. Defaults to: + * 'This field should be a URL in the format "http:/'+'/www.example.com"' + * @type String + */ + 'urlText' : 'This field should be a URL in the format "http:/'+'/www.example.com"', + + /** + * The function used to validate alpha values + * @param {String} value The value + * @return {Boolean} true if the RegExp test passed, and false if not. + */ + 'alpha' : function(v){ + return alpha.test(v); + }, + /** + * The error text to display when the alpha validation function returns false. Defaults to: + * 'This field should only contain letters and _' + * @type String + */ + 'alphaText' : 'This field should only contain letters and _', + /** + * The keystroke filter mask to be applied on alpha input. Defaults to: + * /[a-z_]/i + * @type RegExp + */ + 'alphaMask' : /[a-z_]/i, + + /** + * The function used to validate alphanumeric values + * @param {String} value The value + * @return {Boolean} true if the RegExp test passed, and false if not. + */ + 'alphanum' : function(v){ + return alphanum.test(v); + }, + /** + * The error text to display when the alphanumeric validation function returns false. Defaults to: + * 'This field should only contain letters, numbers and _' + * @type String + */ + 'alphanumText' : 'This field should only contain letters, numbers and _', + /** + * The keystroke filter mask to be applied on alphanumeric input. Defaults to: + * /[a-z0-9_]/i + * @type RegExp + */ + 'alphanumMask' : /[a-z0-9_]/i + }; +}(); diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-all.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-all.js new file mode 100644 index 00000000..de38538c --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/ext-all.js @@ -0,0 +1,501 @@ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +Ext.DomHelper=function(){var w=null,k=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,m=/^table|tbody|tr|td$/i,d=/tag|children|cn|html$/i,s=/td|tr|tbody/i,o=/([a-z0-9-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,u=/end/i,r,n="afterbegin",p="afterend",c="beforebegin",q="beforeend",a="",i="
    ",b=a+"",j=""+i,l=b+"",v=""+j;function h(A,C,B,D,z,x){var y=r.insertHtml(D,Ext.getDom(A),t(C));return B?Ext.get(y,true):y}function t(D){var z="",y,C,B,x,E;if(typeof D=="string"){z=D}else{if(Ext.isArray(D)){for(var A=0;A"}}}return z}function g(E,B,A,C){w.innerHTML=[B,A,C].join("");var x=-1,z=w,y;while(++x "'+C+'"'},insertBefore:function(x,z,y){return h(x,z,y,c)},insertAfter:function(x,z,y){return h(x,z,y,p,"nextSibling")},insertFirst:function(x,z,y){return h(x,z,y,n,"firstChild")},append:function(x,z,y){return h(x,z,y,q,"",true)},overwrite:function(x,z,y){x=Ext.getDom(x);x.innerHTML=t(z);return y?Ext.get(x.firstChild):x.firstChild},createHtml:t};return r}();Ext.apply(Ext.DomHelper,function(){var e,a="afterbegin",h="afterend",i="beforebegin",d="beforeend",b=/tag|children|cn|html$/i;function g(m,p,n,q,l,j){m=Ext.getDom(m);var k;if(e.useDom){k=c(p,null);if(j){m.appendChild(k)}else{(l=="firstChild"?m:m.parentNode).insertBefore(k,m[l]||m)}}else{k=Ext.DomHelper.insertHtml(q,m,Ext.DomHelper.createHtml(p))}return n?Ext.get(k,true):k}function c(j,r){var k,u=document,p,s,m,t;if(Ext.isArray(j)){k=u.createDocumentFragment();for(var q=0,n=j.length;q1){for(var g=0,b=c.length;g+~]\s?|\s|$)/,tagTokenRe=/^(#)?([\w-\*]+)/,nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/,isIE=window.ActiveXObject?true:false,key=30803;eval("var batch = 30803;");function child(parent,index){var i=0,n=parent.firstChild;while(n){if(n.nodeType==1){if(++i==index){return n}}n=n.nextSibling}return null}function next(n){while((n=n.nextSibling)&&n.nodeType!=1){}return n}function prev(n){while((n=n.previousSibling)&&n.nodeType!=1){}return n}function children(parent){var n=parent.firstChild,nodeIndex=-1,nextNode;while(n){nextNode=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){parent.removeChild(n)}else{n.nodeIndex=++nodeIndex}n=nextNode}return this}function byClassName(nodeSet,cls){if(!cls){return nodeSet}var result=[],ri=-1;for(var i=0,ci;ci=nodeSet[i];i++){if((" "+ci.className+" ").indexOf(cls)!=-1){result[++ri]=ci}}return result}function attrValue(n,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]}function getNodes(ns,mode,tagName){var result=[],ri=-1,cs;if(!ns){return result}tagName=tagName||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!mode){for(var i=0,ni;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(var j=0,ci;ci=cs[j];j++){result[++ri]=ci}}}else{if(mode=="/"||mode==">"){var utag=tagName.toUpperCase();for(var i=0,ni,cn;ni=ns[i];i++){cn=ni.childNodes;for(var j=0,cj;cj=cn[j];j++){if(cj.nodeName==utag||cj.nodeName==tagName||tagName=="*"){result[++ri]=cj}}}}else{if(mode=="+"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=="*")){result[++ri]=n}}}else{if(mode=="~"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)){if(n.nodeName==utag||n.nodeName==tagName||tagName=="*"){result[++ri]=n}}}}}}}return result}function concat(a,b){if(b.slice){return a.concat(b)}for(var i=0,l=b.length;i1){return nodup(results)}return results},isXml:function(el){var docEl=(el?el.ownerDocument||el:0).documentElement;return docEl?docEl.nodeName!=="HTML":false},select:document.querySelectorAll?function(path,root,type){root=root||document;if(!Ext.DomQuery.isXml(root)){try{var cs=root.querySelectorAll(path);return Ext.toArray(cs)}catch(ex){}}return Ext.DomQuery.jsSelect.call(this,path,root,type)}:function(path,root,type){return Ext.DomQuery.jsSelect.call(this,path,root,type)},selectNode:function(path,root){return Ext.DomQuery.select(path,root)[0]},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"");if(!valueCache[path]){valueCache[path]=Ext.DomQuery.compile(path,"select")}var n=valueCache[path](root),v;n=n[0]?n[0]:n;if(typeof n.normalize=="function"){n.normalize()}v=(n&&n.firstChild?n.firstChild.nodeValue:null);return((v===null||v===undefined||v==="")?defaultValue:v)},selectNumber:function(path,root,defaultValue){var v=Ext.DomQuery.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=document.getElementById(el)}var isArray=Ext.isArray(el),result=Ext.DomQuery.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0)},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"");if(!simpleCache[ss]){simpleCache[ss]=Ext.DomQuery.compile(ss,"simple")}var result=simpleCache[ss](els);return nonMatches?quickDiff(result,els):result},matchers:[{re:/^\.([\w-]+)/,select:'n = byClassName(n, " {1} ");'},{re:/^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w-]+)/,select:'n = byId(n, "{1}");'},{re:/^@([\w-]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],operators:{"=":function(a,v){return a==v},"!=":function(a,v){return a!=v},"^=":function(a,v){return a&&a.substr(0,v.length)==v},"$=":function(a,v){return a&&a.substr(a.length-v.length)==v},"*=":function(a,v){return a&&a.indexOf(v)!==-1},"%=":function(a,v){return(a%v)==0},"|=":function(a,v){return a&&(a==v||a.substr(0,v.length+1)==v+"-")},"~=":function(a,v){return a&&(" "+a+" ").indexOf(" "+v+" ")!=-1}},pseudos:{"first-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.previousSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"last-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"nth-child":function(c,a){var r=[],ri=-1,m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a),f=(m[1]||1)-0,l=m[2]-0;for(var i=0,n;n=c[i];i++){var pn=n.parentNode;if(batch!=pn._batch){var j=0;for(var cn=pn.firstChild;cn;cn=cn.nextSibling){if(cn.nodeType==1){cn.nodeIndex=++j}}pn._batch=batch}if(f==1){if(l==0||n.nodeIndex==l){r[++ri]=n}}else{if((n.nodeIndex+l)%f==0){r[++ri]=n}}}return r},"only-child":function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(!prev(ci)&&!next(ci)){r[++ri]=ci}}return r},empty:function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var cns=ci.childNodes,j=0,cn,empty=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){empty=false;break}}if(empty){r[++ri]=ci}}return r},contains:function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if((ci.textContent||ci.innerText||"").indexOf(v)!=-1){r[++ri]=ci}}return r},nodeValue:function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.firstChild&&ci.firstChild.nodeValue==v){r[++ri]=ci}}return r},checked:function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.checked==true){r[++ri]=ci}}return r},not:function(c,ss){return Ext.DomQuery.filter(c,ss,true)},any:function(c,selectors){var ss=selectors.split("|"),r=[],ri=-1,s;for(var i=0,ci;ci=c[i];i++){for(var j=0;s=ss[j];j++){if(Ext.DomQuery.is(ci,s)){r[++ri]=ci;break}}}return r},odd:function(c){return this["nth-child"](c,"odd")},even:function(c){return this["nth-child"](c,"even")},nth:function(c,a){return c[a-1]||[]},first:function(c){return c[0]||[]},last:function(c){return c[c.length-1]||[]},has:function(c,ss){var s=Ext.DomQuery.select,r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(s(ss,ci).length>0){r[++ri]=ci}}return r},next:function(c,ss){var is=Ext.DomQuery.is,r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=next(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},prev:function(c,ss){var is=Ext.DomQuery.is,r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=prev(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r}}}}();Ext.query=Ext.DomQuery.select;Ext.util.DelayedTask=function(d,c,a){var e=this,g,b=function(){clearInterval(g);g=null;d.apply(c,a||[])};e.delay=function(i,k,j,h){e.cancel();d=k||d;c=j||c;a=h||a;g=setInterval(b,i)};e.cancel=function(){if(g){clearInterval(g);g=null}}};(function(){var h=Ext.util,j=Ext.each,g=true,i=false;h.Observable=function(){var k=this,l=k.events;if(k.listeners){k.on(k.listeners);delete k.listeners}k.events=l||{}};h.Observable.prototype={filterOptRe:/^(?:scope|delay|buffer|single)$/,fireEvent:function(){var k=Array.prototype.slice.call(arguments,0),m=k[0].toLowerCase(),n=this,l=g,p=n.events[m],s,o,r;if(n.eventsSuspended===g){if(o=n.eventQueue){o.push(k)}}else{if(typeof p=="object"){if(p.bubble){if(p.fire.apply(p,k.slice(1))===i){return i}r=n.getBubbleTarget&&n.getBubbleTarget();if(r&&r.enableBubble){s=r.events[m];if(!s||typeof s!="object"||!s.bubble){r.enableBubble(m)}return r.fireEvent.apply(r,k)}}else{k.shift();l=p.fire.apply(p,k)}}}return l},addListener:function(m,q,s,l){var p=this,n,t,r,k;if(typeof m=="object"){l=m;for(n in l){t=l[n];if(!p.filterOptRe.test(n)){p.addListener(n,t.fn||t,t.scope||l.scope,t.fn?t:l)}}}else{m=m.toLowerCase();k=p.events[m]||g;if(typeof k=="boolean"){p.events[m]=k=new h.Event(p,m)}k.addListener(q,s,typeof l=="object"?l:{})}},removeListener:function(k,m,l){var n=this.events[k.toLowerCase()];if(typeof n=="object"){n.removeListener(m,l)}},purgeListeners:function(){var m=this.events,k,l;for(l in m){k=m[l];if(typeof k=="object"){k.clearListeners()}}},addEvents:function(n){var m=this;m.events=m.events||{};if(typeof n=="string"){var k=arguments,l=k.length;while(l--){m.events[k[l]]=m.events[k[l]]||g}}else{Ext.applyIf(m.events,n)}},hasListener:function(k){var l=this.events[k.toLowerCase()];return typeof l=="object"&&l.listeners.length>0},suspendEvents:function(k){this.eventsSuspended=g;if(k&&!this.eventQueue){this.eventQueue=[]}},resumeEvents:function(){var k=this,l=k.eventQueue||[];k.eventsSuspended=i;delete k.eventQueue;j(l,function(m){k.fireEvent.apply(k,m)})}};var d=h.Observable.prototype;d.on=d.addListener;d.un=d.removeListener;h.Observable.releaseCapture=function(k){k.fireEvent=d.fireEvent};function e(l,m,k){return function(){if(m.target==arguments[0]){l.apply(k,Array.prototype.slice.call(arguments,0))}}}function b(n,p,k,m){k.task=new h.DelayedTask();return function(){k.task.delay(p.buffer,n,m,Array.prototype.slice.call(arguments,0))}}function c(m,n,l,k){return function(){n.removeListener(l,k);return m.apply(k,arguments)}}function a(n,p,k,m){return function(){var l=new h.DelayedTask();if(!k.tasks){k.tasks=[]}k.tasks.push(l);l.delay(p.delay||10,n,m,Array.prototype.slice.call(arguments,0))}}h.Event=function(l,k){this.name=k;this.obj=l;this.listeners=[]};h.Event.prototype={addListener:function(o,n,m){var p=this,k;n=n||p.obj;if(!p.isListening(o,n)){k=p.createListener(o,n,m);if(p.firing){p.listeners=p.listeners.slice(0)}p.listeners.push(k)}},createListener:function(p,n,q){q=q||{},n=n||this.obj;var k={fn:p,scope:n,options:q},m=p;if(q.target){m=e(m,q,n)}if(q.delay){m=a(m,q,k,n)}if(q.single){m=c(m,this,p,n)}if(q.buffer){m=b(m,q,k,n)}k.fireFn=m;return k},findListener:function(o,n){var p=this.listeners,m=p.length,k;n=n||this.obj;while(m--){k=p[m];if(k){if(k.fn==o&&k.scope==n){return m}}}return -1},isListening:function(l,k){return this.findListener(l,k)!=-1},removeListener:function(r,q){var p,m,n,s=this,o=i;if((p=s.findListener(r,q))!=-1){if(s.firing){s.listeners=s.listeners.slice(0)}m=s.listeners[p];if(m.task){m.task.cancel();delete m.task}n=m.tasks&&m.tasks.length;if(n){while(n--){m.tasks[n].cancel()}delete m.tasks}s.listeners.splice(p,1);o=g}return o},clearListeners:function(){var n=this,k=n.listeners,m=k.length;while(m--){n.removeListener(k[m].fn,k[m].scope)}},fire:function(){var q=this,p=q.listeners,k=p.length,o=0,m;if(k>0){q.firing=g;var n=Array.prototype.slice.call(arguments,0);for(;o=525:!((Ext.isGecko&&!Ext.isWindows)||Ext.isOpera);return{doResizeEvent:function(){var l=a.getViewHeight(),k=a.getViewWidth();if(g!=l||h!=k){c.fire(h=k,g=l)}},onWindowResize:function(m,l,k){if(!c){c=new Ext.util.Event();j=new Ext.util.DelayedTask(this.doResizeEvent);Ext.EventManager.on(window,"resize",this.fireWindowResize,this)}c.addListener(m,l,k)},fireWindowResize:function(){if(c){j.delay(100)}},onTextResize:function(n,m,k){if(!e){e=new Ext.util.Event();var l=new Ext.Element(document.createElement("div"));l.dom.className="x-text-resize";l.dom.innerHTML="X";l.appendTo(document.body);b=l.dom.offsetHeight;setInterval(function(){if(l.dom.offsetHeight!=b){e.fire(b,b=l.dom.offsetHeight)}},this.textResizeInterval)}e.addListener(n,m,k)},removeResizeListener:function(l,k){if(c){c.removeListener(l,k)}},fireResize:function(){if(c){c.fire(a.getViewWidth(),a.getViewHeight())}},textResizeInterval:50,ieDeferSrc:false,useKeydown:d}}());Ext.EventManager.on=Ext.EventManager.addListener;Ext.apply(Ext.EventObjectImpl.prototype,{BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,CONTROL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGEUP:33,PAGE_DOWN:34,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,isNavKeyPress:function(){var b=this,a=this.normalizeKey(b.keyCode);return(a>=33&&a<=40)||a==b.RETURN||a==b.TAB||a==b.ESC},isSpecialKey:function(){var a=this.normalizeKey(this.keyCode);return(this.type=="keypress"&&this.ctrlKey)||this.isNavKeyPress()||(a==this.BACKSPACE)||(a>=16&&a<=20)||(a>=44&&a<=46)},getPoint:function(){return new Ext.lib.Point(this.xy[0],this.xy[1])},hasModifier:function(){return((this.ctrlKey||this.altKey)||this.shiftKey)}});(function(){var j=document;Ext.Element=function(o,p){var q=typeof o=="string"?j.getElementById(o):o,r;if(!q){return null}r=q.id;if(!p&&r&&Ext.elCache[r]){return Ext.elCache[r].el}this.dom=q;this.id=r||Ext.id(q)};var a=Ext.lib.Dom,g=Ext.DomHelper,m=Ext.lib.Event,e=Ext.lib.Anim,h=Ext.Element,b=Ext.elCache;h.prototype={set:function(t,q){var r=this.dom,p,s,q=(q!==false)&&!!r.setAttribute;for(p in t){if(t.hasOwnProperty(p)){s=t[p];if(p=="style"){g.applyStyles(r,s)}else{if(p=="cls"){r.className=s}else{if(q){r.setAttribute(p,s)}else{r[p]=s}}}}}return this},defaultUnit:"px",is:function(o){return Ext.DomQuery.is(this.dom,o)},focus:function(r,q){var o=this,q=q||o.dom;try{if(Number(r)){o.focus.defer(r,null,[null,q])}else{q.focus()}}catch(p){}return o},blur:function(){try{this.dom.blur()}catch(o){}return this},getValue:function(o){var p=this.dom.value;return o?parseInt(p,10):p},addListener:function(o,r,q,p){Ext.EventManager.on(this.dom,o,r,q||this,p);return this},removeListener:function(o,q,p){Ext.EventManager.removeListener(this.dom,o,q,p||this);return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);return this},purgeAllListeners:function(){Ext.EventManager.purgeElement(this,true);return this},addUnits:function(o){if(o===""||o=="auto"||o===undefined){o=o||""}else{if(!isNaN(o)||!k.test(o)){o=o+(this.defaultUnit||"px")}}return o},load:function(p,q,o){Ext.Ajax.request(Ext.apply({params:q,url:p.url||p,callback:o,el:this.dom,indicatorText:p.indicatorText||""},Ext.isObject(p)?p:{}));return this},isBorderBox:function(){return i[(this.dom.tagName||"").toLowerCase()]||Ext.isBorderBox},remove:function(){var o=this,p=o.dom;if(p){delete o.dom;Ext.removeNode(p)}},hover:function(p,o,r,q){var s=this;s.on("mouseenter",p,r||s.dom,q);s.on("mouseleave",o,r||s.dom,q);return s},contains:function(o){return !o?false:Ext.lib.Dom.isAncestor(this.dom,o.dom?o.dom:o)},getAttributeNS:function(p,o){return this.getAttribute(o,p)},getAttribute:Ext.isIE?function(o,q){var r=this.dom,p=typeof r[q+":"+o];if(["undefined","unknown"].indexOf(p)==-1){return r[q+":"+o]}return r[o]}:function(o,p){var q=this.dom;return q.getAttributeNS(p,o)||q.getAttribute(p+":"+o)||q.getAttribute(o)||q[o]},update:function(o){if(this.dom){this.dom.innerHTML=o}return this}};var n=h.prototype;h.addMethods=function(p){Ext.apply(n,p)};n.on=n.addListener;n.un=n.removeListener;n.autoBoxAdjust=true;var k=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,d;h.get=function(p){var o,s,r;if(!p){return null}if(typeof p=="string"){if(!(s=j.getElementById(p))){return null}if(b[p]&&b[p].el){o=b[p].el;o.dom=s}else{o=h.addToCache(new h(s))}return o}else{if(p.tagName){if(!(r=p.id)){r=Ext.id(p)}if(b[r]&&b[r].el){o=b[r].el;o.dom=p}else{o=h.addToCache(new h(p))}return o}else{if(p instanceof h){if(p!=d){if(Ext.isIE&&(p.id==undefined||p.id=="")){p.dom=p.dom}else{p.dom=j.getElementById(p.id)||p.dom}}return p}else{if(p.isComposite){return p}else{if(Ext.isArray(p)){return h.select(p)}else{if(p==j){if(!d){var q=function(){};q.prototype=h.prototype;d=new q();d.dom=j}return d}}}}}}return null};h.addToCache=function(o,p){p=p||o.id;b[p]={el:o,data:{},events:{}};return o};h.data=function(p,o,q){p=h.get(p);if(!p){return null}var r=b[p.id].data;if(arguments.length==2){return r[o]}else{return(r[o]=q)}};function l(){if(!Ext.enableGarbageCollector){clearInterval(h.collectorThreadId)}else{var p,r,u,s;for(p in b){s=b[p];if(s.skipGC){continue}r=s.el;u=r.dom;if(!u||!u.parentNode||(!u.offsetParent&&!j.getElementById(p))){if(Ext.enableListenerCollection){Ext.EventManager.removeAll(u)}delete b[p]}}if(Ext.isIE){var q={};for(p in b){q[p]=b[p]}b=Ext.elCache=q}}}h.collectorThreadId=setInterval(l,30000);var c=function(){};c.prototype=h.prototype;h.Flyweight=function(o){this.dom=o};h.Flyweight.prototype=new c();h.Flyweight.prototype.isFlyweight=true;h._flyweights={};h.fly=function(q,o){var p=null;o=o||"_global";if(q=Ext.getDom(q)){(h._flyweights[o]=h._flyweights[o]||new h.Flyweight()).dom=q;p=h._flyweights[o]}return p};Ext.get=h.get;Ext.fly=h.fly;var i=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};if(Ext.isIE||Ext.isGecko){i.button=1}})();Ext.Element.addMethods({swallowEvent:function(a,b){var d=this;function c(g){g.stopPropagation();if(b){g.preventDefault()}}if(Ext.isArray(a)){Ext.each(a,function(g){d.on(g,c)});return d}d.on(a,c);return d},relayEvent:function(a,b){this.on(a,function(c){b.fireEvent(a,c)})},clean:function(b){var d=this,e=d.dom,g=e.firstChild,c=-1;if(Ext.Element.data(e,"isCleaned")&&b!==true){return d}while(g){var a=g.nextSibling;if(g.nodeType==3&&!/\S/.test(g.nodeValue)){e.removeChild(g)}else{g.nodeIndex=++c}g=a}Ext.Element.data(e,"isCleaned",true);return d},load:function(){var a=this.getUpdater();a.update.apply(a,arguments);return this},getUpdater:function(){return this.updateManager||(this.updateManager=new Ext.Updater(this))},update:function(html,loadScripts,callback){if(!this.dom){return this}html=html||"";if(loadScripts!==true){this.dom.innerHTML=html;if(typeof callback=="function"){callback()}return this}var id=Ext.id(),dom=this.dom;html+='';Ext.lib.Event.onAvailable(id,function(){var DOC=document,hd=DOC.getElementsByTagName("head")[0],re=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,srcRe=/\ssrc=([\'\"])(.*?)\1/i,typeRe=/\stype=([\'\"])(.*?)\1/i,match,attrs,srcMatch,typeMatch,el,s;while((match=re.exec(html))){attrs=match[1];srcMatch=attrs?attrs.match(srcRe):false;if(srcMatch&&srcMatch[2]){s=DOC.createElement("script");s.src=srcMatch[2];typeMatch=attrs.match(typeRe);if(typeMatch&&typeMatch[2]){s.type=typeMatch[2]}hd.appendChild(s)}else{if(match[2]&&match[2].length>0){if(window.execScript){window.execScript(match[2])}else{window.eval(match[2])}}}}el=DOC.getElementById(id);if(el){Ext.removeNode(el)}if(typeof callback=="function"){callback()}});dom.innerHTML=html.replace(/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,"");return this},removeAllListeners:function(){this.removeAnchor();Ext.EventManager.removeAll(this.dom);return this},createProxy:function(a,e,d){a=(typeof a=="object")?a:{tag:"div",cls:a};var c=this,b=e?Ext.DomHelper.append(e,a,true):Ext.DomHelper.insertBefore(c.dom,a,true);if(d&&c.setBox&&c.getBox){b.setBox(c.getBox())}return b}});Ext.Element.prototype.getUpdateManager=Ext.Element.prototype.getUpdater;Ext.Element.addMethods({getAnchorXY:function(e,l,q){e=(e||"tl").toLowerCase();q=q||{};var k=this,b=k.dom==document.body||k.dom==document,n=q.width||b?Ext.lib.Dom.getViewWidth():k.getWidth(),i=q.height||b?Ext.lib.Dom.getViewHeight():k.getHeight(),p,a=Math.round,c=k.getXY(),m=k.getScroll(),j=b?m.left:!l?c[0]:0,g=b?m.top:!l?c[1]:0,d={c:[a(n*0.5),a(i*0.5)],t:[a(n*0.5),0],l:[0,a(i*0.5)],r:[n,a(i*0.5)],b:[a(n*0.5),i],tl:[0,0],bl:[0,i],br:[n,i],tr:[n,0]};p=d[e];return[p[0]+j,p[1]+g]},anchorTo:function(b,h,c,a,k,l){var i=this,e=i.dom,j=!Ext.isEmpty(k),d=function(){Ext.fly(e).alignTo(b,h,c,a);Ext.callback(l,Ext.fly(e))},g=this.getAnchor();this.removeAnchor();Ext.apply(g,{fn:d,scroll:j});Ext.EventManager.onWindowResize(d,null);if(j){Ext.EventManager.on(window,"scroll",d,null,{buffer:!isNaN(k)?k:50})}d.call(i);return i},removeAnchor:function(){var b=this,a=this.getAnchor();if(a&&a.fn){Ext.EventManager.removeResizeListener(a.fn);if(a.scroll){Ext.EventManager.un(window,"scroll",a.fn)}delete a.fn}return b},getAnchor:function(){var b=Ext.Element.data,c=this.dom;if(!c){return}var a=b(c,"_anchor");if(!a){a=b(c,"_anchor",{})}return a},getAlignToXY:function(g,A,B){g=Ext.get(g);if(!g||!g.dom){throw"Element.alignToXY with an element that doesn't exist"}B=B||[0,0];A=(!A||A=="?"?"tl-bl?":(!/-/.test(A)&&A!==""?"tl-"+A:A||"tl-bl")).toLowerCase();var K=this,H=K.dom,M,L,n,l,s,F,v,t=Ext.lib.Dom.getViewWidth()-10,G=Ext.lib.Dom.getViewHeight()-10,b,i,j,k,u,z,N=document,J=N.documentElement,q=N.body,E=(J.scrollLeft||q.scrollLeft||0)+5,D=(J.scrollTop||q.scrollTop||0)+5,I=false,e="",a="",C=A.match(/^([a-z]+)-([a-z]+)(\?)?$/);if(!C){throw"Element.alignTo with an invalid alignment "+A}e=C[1];a=C[2];I=!!C[3];M=K.getAnchorXY(e,true);L=g.getAnchorXY(a,false);n=L[0]-M[0]+B[0];l=L[1]-M[1]+B[1];if(I){s=K.getWidth();F=K.getHeight();v=g.getRegion();b=e.charAt(0);i=e.charAt(e.length-1);j=a.charAt(0);k=a.charAt(a.length-1);u=((b=="t"&&j=="b")||(b=="b"&&j=="t"));z=((i=="r"&&k=="l")||(i=="l"&&k=="r"));if(n+s>t+E){n=z?v.left-s:t+E-s}if(nG+D){l=u?v.top-F:G+D-F}if(lA){o=A-p;l=true}if((n+B)>g){n=g-B;l=true}if(o "+g,this.dom);return h?i:a(i)},parent:function(g,h){return this.matchNode(d,d,g,h)},next:function(g,h){return this.matchNode(b,b,g,h)},prev:function(g,h){return this.matchNode(c,c,g,h)},first:function(g,h){return this.matchNode(b,"firstChild",g,h)},last:function(g,h){return this.matchNode(c,"lastChild",g,h)},matchNode:function(h,k,g,i){var j=this.dom[k];while(j){if(j.nodeType==1&&(!g||e.is(j,g))){return !i?a(j):j}j=j[h]}return null}}}());Ext.Element.addMethods({select:function(a,b){return Ext.Element.select(a,b,this.dom)}});Ext.Element.addMethods(function(){var c=Ext.getDom,a=Ext.get,b=Ext.DomHelper;return{appendChild:function(d){return a(d).appendTo(this)},appendTo:function(d){c(d).appendChild(this.dom);return this},insertBefore:function(d){(d=c(d)).parentNode.insertBefore(this.dom,d);return this},insertAfter:function(d){(d=c(d)).parentNode.insertBefore(this.dom,d.nextSibling);return this},insertFirst:function(e,d){e=e||{};if(e.nodeType||e.dom||typeof e=="string"){e=c(e);this.dom.insertBefore(e,this.dom.firstChild);return !d?a(e):e}else{return this.createChild(e,this.dom.firstChild,d)}},replace:function(d){d=a(d);this.insertBefore(d);d.remove();return this},replaceWith:function(d){var e=this;if(d.nodeType||d.dom||typeof d=="string"){d=c(d);e.dom.parentNode.insertBefore(d,e.dom)}else{d=b.insertBefore(e.dom,d)}delete Ext.elCache[e.id];Ext.removeNode(e.dom);e.id=Ext.id(e.dom=d);Ext.Element.addToCache(e.isFlyweight?new Ext.Element(e.dom):e);return e},createChild:function(e,d,g){e=e||{tag:"div"};return d?b.insertBefore(d,e,g!==true):b[!this.dom.firstChild?"overwrite":"append"](this.dom,e,g!==true)},wrap:function(d,e){var g=b.insertBefore(this.dom,d||{tag:"div"},!e);g.dom?g.dom.appendChild(this.dom):g.appendChild(this.dom);return g},insertHtml:function(e,g,d){var h=b.insertHtml(e,this.dom,g);return d?Ext.get(h):h}}}());Ext.apply(Ext.Element.prototype,function(){var c=Ext.getDom,a=Ext.get,b=Ext.DomHelper;return{insertSibling:function(i,g,h){var j=this,e,d=(g||"before").toLowerCase()=="after",k;if(Ext.isArray(i)){k=j;Ext.each(i,function(l){e=Ext.fly(k,"_internal").insertSibling(l,g,h);if(d){k=e}});return e}i=i||{};if(i.nodeType||i.dom){e=j.dom.parentNode.insertBefore(c(i),d?j.dom.nextSibling:j.dom);if(!h){e=a(e)}}else{if(d&&!j.dom.nextSibling){e=b.append(j.dom.parentNode,i,!h)}else{e=b[d?"insertAfter":"insertBefore"](j.dom,i,!h)}}return e}}}());Ext.Element.addMethods(function(){var i={},z=/(-[a-z])/gi,c={},t=document.defaultView,w=Ext.isIE?"styleFloat":"cssFloat",E=/alpha\(opacity=(.*)\)/i,m=/^\s+|\s+$/g,v=/\s+/,b=/\w/g,C=Ext.Element,e="padding",d="margin",A="border",u="-left",r="-right",y="-top",p="-bottom",k="-width",s=Math,B="hidden",g="isClipped",l="overflow",o="overflow-x",n="overflow-y",D="originalClip",j={l:A+u+k,r:A+r+k,t:A+y+k,b:A+p+k},h={l:e+u,r:e+r,t:e+y,b:e+p},a={l:d+u,r:d+r,t:d+y,b:d+p},F=Ext.Element.data;function q(G,H){return H.charAt(1).toUpperCase()}function x(G){return i[G]||(i[G]=G=="float"?w:G.replace(z,q))}return{adjustWidth:function(G){var H=this;var I=(typeof G=="number");if(I&&H.autoBoxAdjust&&!H.isBorderBox()){G-=(H.getBorderWidth("lr")+H.getPadding("lr"))}return(I&&G<0)?0:G},adjustHeight:function(G){var H=this;var I=(typeof G=="number");if(I&&H.autoBoxAdjust&&!H.isBorderBox()){G-=(H.getBorderWidth("tb")+H.getPadding("tb"))}return(I&&G<0)?0:G},addClass:function(K){var L=this,J,G,I,H=[];if(!Ext.isArray(K)){if(typeof K=="string"&&!this.hasClass(K)){L.dom.className+=" "+K}}else{for(J=0,G=K.length;J5?I.toLowerCase():H)},setStyle:function(K,J){var H,I,G;if(typeof K!="object"){H={};H[K]=J;K=H}for(I in K){J=K[I];I=="opacity"?this.setOpacity(J):this.dom.style[x(I)]=J}return this},setOpacity:function(H,G){var K=this,I=K.dom.style;if(!G||!K.anim){if(Ext.isIE){var J=H<1?"alpha(opacity="+H*100+")":"",L=I.filter.replace(E,"").replace(m,"");I.zoom=1;I.filter=L+(L.length>0?" ":"")+J}else{I.opacity=H}}else{K.anim({opacity:{to:H}},K.preanim(arguments,1),null,0.35,"easeIn")}return K},clearOpacity:function(){var G=this.dom.style;if(Ext.isIE){if(!Ext.isEmpty(G.filter)){G.filter=G.filter.replace(E,"").replace(m,"")}}else{G.opacity=G["-moz-opacity"]=G["-khtml-opacity"]=""}return this},getHeight:function(I){var H=this,K=H.dom,J=Ext.isIE&&H.isStyle("display","none"),G=s.max(K.offsetHeight,J?0:K.clientHeight)||0;G=!I?G:G-H.getBorderWidth("tb")-H.getPadding("tb");return G<0?0:G},getWidth:function(H){var I=this,K=I.dom,J=Ext.isIE&&I.isStyle("display","none"),G=s.max(K.offsetWidth,J?0:K.clientWidth)||0;G=!H?G:G-I.getBorderWidth("lr")-I.getPadding("lr");return G<0?0:G},setWidth:function(H,G){var I=this;H=I.adjustWidth(H);!G||!I.anim?I.dom.style.width=I.addUnits(H):I.anim({width:{to:H}},I.preanim(arguments,1));return I},setHeight:function(G,H){var I=this;G=I.adjustHeight(G);!H||!I.anim?I.dom.style.height=I.addUnits(G):I.anim({height:{to:G}},I.preanim(arguments,1));return I},getBorderWidth:function(G){return this.addStyles(G,j)},getPadding:function(G){return this.addStyles(G,h)},clip:function(){var G=this,H=G.dom;if(!F(H,g)){F(H,g,true);F(H,D,{o:G.getStyle(l),x:G.getStyle(o),y:G.getStyle(n)});G.setStyle(l,B);G.setStyle(o,B);G.setStyle(n,B)}return G},unclip:function(){var G=this,I=G.dom;if(F(I,g)){F(I,g,false);var H=F(I,D);if(H.o){G.setStyle(l,H.o)}if(H.x){G.setStyle(o,H.x)}if(H.y){G.setStyle(n,H.y)}}return G},addStyles:function(N,M){var K=0,L=N.match(b),J,I,H,G=L.length;for(H=0;H"+String.format(Ext.Element.boxMarkup,c)+"
    "));Ext.DomQuery.selectNode("."+c+"-mc",d.dom).appendChild(this.dom);return d},setSize:function(e,c,d){var g=this;if(typeof e=="object"){c=e.height;e=e.width}e=g.adjustWidth(e);c=g.adjustHeight(c);if(!d||!g.anim){g.dom.style.width=g.addUnits(e);g.dom.style.height=g.addUnits(c)}else{g.anim({width:{to:e},height:{to:c}},g.preanim(arguments,2))}return g},getComputedHeight:function(){var d=this,c=Math.max(d.dom.offsetHeight,d.dom.clientHeight);if(!c){c=parseFloat(d.getStyle("height"))||0;if(!d.isBorderBox()){c+=d.getFrameWidth("tb")}}return c},getComputedWidth:function(){var c=Math.max(this.dom.offsetWidth,this.dom.clientWidth);if(!c){c=parseFloat(this.getStyle("width"))||0;if(!this.isBorderBox()){c+=this.getFrameWidth("lr")}}return c},getFrameWidth:function(d,c){return c&&this.isBorderBox()?0:(this.getPadding(d)+this.getBorderWidth(d))},addClassOnOver:function(c){this.hover(function(){Ext.fly(this,a).addClass(c)},function(){Ext.fly(this,a).removeClass(c)});return this},addClassOnFocus:function(c){this.on("focus",function(){Ext.fly(this,a).addClass(c)},this.dom);this.on("blur",function(){Ext.fly(this,a).removeClass(c)},this.dom);return this},addClassOnClick:function(c){var d=this.dom;this.on("mousedown",function(){Ext.fly(d,a).addClass(c);var g=Ext.getDoc(),e=function(){Ext.fly(d,a).removeClass(c);g.removeListener("mouseup",e)};g.on("mouseup",e)});return this},getViewSize:function(){var g=document,h=this.dom,c=(h==g||h==g.body);if(c){var e=Ext.lib.Dom;return{width:e.getViewWidth(),height:e.getViewHeight()}}else{return{width:h.clientWidth,height:h.clientHeight}}},getStyleSize:function(){var j=this,c,i,l=document,m=this.dom,e=(m==l||m==l.body),g=m.style;if(e){var k=Ext.lib.Dom;return{width:k.getViewWidth(),height:k.getViewHeight()}}if(g.width&&g.width!="auto"){c=parseFloat(g.width);if(j.isBorderBox()){c-=j.getFrameWidth("lr")}}if(g.height&&g.height!="auto"){i=parseFloat(g.height);if(j.isBorderBox()){i-=j.getFrameWidth("tb")}}return{width:c||j.getWidth(true),height:i||j.getHeight(true)}},getSize:function(c){return{width:this.getWidth(c),height:this.getHeight(c)}},repaint:function(){var c=this.dom;this.addClass("x-repaint");setTimeout(function(){Ext.fly(c).removeClass("x-repaint")},1);return this},unselectable:function(){this.dom.unselectable="on";return this.swallowEvent("selectstart",true).applyStyles("-moz-user-select:none;-khtml-user-select:none;").addClass("x-unselectable")},getMargins:function(d){var e=this,c,g={t:"top",l:"left",r:"right",b:"bottom"},h={};if(!d){for(c in e.margins){h[g[c]]=parseFloat(e.getStyle(e.margins[c]))||0}return h}else{return e.addStyles.call(e,d,e.margins)}}}}());(function(){var a=Ext.lib.Dom,b="left",g="right",d="top",i="bottom",h="position",c="static",e="relative",j="auto",k="z-index";Ext.Element.addMethods({getX:function(){return a.getX(this.dom)},getY:function(){return a.getY(this.dom)},getXY:function(){return a.getXY(this.dom)},getOffsetsTo:function(l){var n=this.getXY(),m=Ext.fly(l,"_internal").getXY();return[n[0]-m[0],n[1]-m[1]]},setX:function(l,m){return this.setXY([l,this.getY()],this.animTest(arguments,m,1))},setY:function(m,l){return this.setXY([this.getX(),m],this.animTest(arguments,l,1))},setLeft:function(l){this.setStyle(b,this.addUnits(l));return this},setTop:function(l){this.setStyle(d,this.addUnits(l));return this},setRight:function(l){this.setStyle(g,this.addUnits(l));return this},setBottom:function(l){this.setStyle(i,this.addUnits(l));return this},setXY:function(n,l){var m=this;if(!l||!m.anim){a.setXY(m.dom,n)}else{m.anim({points:{to:n}},m.preanim(arguments,1),"motion")}return m},setLocation:function(l,n,m){return this.setXY([l,n],this.animTest(arguments,m,2))},moveTo:function(l,n,m){return this.setXY([l,n],this.animTest(arguments,m,2))},getLeft:function(l){return !l?this.getX():parseInt(this.getStyle(b),10)||0},getRight:function(l){var m=this;return !l?m.getX()+m.getWidth():(m.getLeft(true)+m.getWidth())||0},getTop:function(l){return !l?this.getY():parseInt(this.getStyle(d),10)||0},getBottom:function(l){var m=this;return !l?m.getY()+m.getHeight():(m.getTop(true)+m.getHeight())||0},position:function(p,o,l,n){var m=this;if(!p&&m.isStyle(h,c)){m.setStyle(h,e)}else{if(p){m.setStyle(h,p)}}if(o){m.setStyle(k,o)}if(l||n){m.setXY([l||false,n||false])}},clearPositioning:function(l){l=l||"";this.setStyle({left:l,right:l,top:l,bottom:l,"z-index":"",position:c});return this},getPositioning:function(){var m=this.getStyle(b);var n=this.getStyle(d);return{position:this.getStyle(h),left:m,right:m?"":this.getStyle(g),top:n,bottom:n?"":this.getStyle(i),"z-index":this.getStyle(k)}},setPositioning:function(l){var n=this,m=n.dom.style;n.setStyle(l);if(l.right==j){m.right=""}if(l.bottom==j){m.bottom=""}return n},translatePoints:function(m,u){u=isNaN(m[1])?u:m[1];m=isNaN(m[0])?m:m[0];var q=this,r=q.isStyle(h,e),s=q.getXY(),n=parseInt(q.getStyle(b),10),p=parseInt(q.getStyle(d),10);n=!isNaN(n)?n:(r?0:q.dom.offsetLeft);p=!isNaN(p)?p:(r?0:q.dom.offsetTop);return{left:(m-s[0]+n),top:(u-s[1]+p)}},animTest:function(m,l,n){return !!l&&this.preanim?this.preanim(m,n):false}})})();Ext.Element.addMethods({setBox:function(e,g,b){var d=this,a=e.width,c=e.height;if((g&&!d.autoBoxAdjust)&&!d.isBorderBox()){a-=(d.getBorderWidth("lr")+d.getPadding("lr"));c-=(d.getBorderWidth("tb")+d.getPadding("tb"))}d.setBounds(e.x,e.y,a,c,d.animTest.call(d,arguments,b,2));return d},getBox:function(j,p){var m=this,v,e,o,d=m.getBorderWidth,q=m.getPadding,g,a,u,n;if(!p){v=m.getXY()}else{e=parseInt(m.getStyle("left"),10)||0;o=parseInt(m.getStyle("top"),10)||0;v=[e,o]}var c=m.dom,s=c.offsetWidth,i=c.offsetHeight,k;if(!j){k={x:v[0],y:v[1],0:v[0],1:v[1],width:s,height:i}}else{g=d.call(m,"l")+q.call(m,"l");a=d.call(m,"r")+q.call(m,"r");u=d.call(m,"t")+q.call(m,"t");n=d.call(m,"b")+q.call(m,"b");k={x:v[0]+g,y:v[1]+u,0:v[0]+g,1:v[1]+u,width:s-(g+a),height:i-(u+n)}}k.right=k.x+k.width;k.bottom=k.y+k.height;return k},move:function(j,b,c){var g=this,m=g.getXY(),k=m[0],i=m[1],d=[k-b,i],l=[k+b,i],h=[k,i-b],a=[k,i+b],e={l:d,left:d,r:l,right:l,t:h,top:h,up:h,b:a,bottom:a,down:a};j=j.toLowerCase();g.moveTo(e[j][0],e[j][1],g.animTest.call(g,arguments,c,2))},setLeftTop:function(d,c){var b=this,a=b.dom.style;a.left=b.addUnits(d);a.top=b.addUnits(c);return b},getRegion:function(){return Ext.lib.Dom.getRegion(this.dom)},setBounds:function(b,g,d,a,c){var e=this;if(!c||!e.anim){e.setSize(d,a);e.setLocation(b,g)}else{e.anim({points:{to:[b,g]},width:{to:e.adjustWidth(d)},height:{to:e.adjustHeight(a)}},e.preanim(arguments,4),"motion")}return e},setRegion:function(b,a){return this.setBounds(b.left,b.top,b.right-b.left,b.bottom-b.top,this.animTest.call(this,arguments,a,1))}});Ext.Element.addMethods({isScrollable:function(){var a=this.dom;return a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth},scrollTo:function(a,b){this.dom["scroll"+(/top/i.test(a)?"Top":"Left")]=b;return this},getScroll:function(){var i=this.dom,h=document,a=h.body,c=h.documentElement,b,g,e;if(i==h||i==a){if(Ext.isIE&&Ext.isStrict){b=c.scrollLeft;g=c.scrollTop}else{b=window.pageXOffset;g=window.pageYOffset}e={left:b||(a?a.scrollLeft:0),top:g||(a?a.scrollTop:0)}}else{e={left:i.scrollLeft,top:i.scrollTop}}return e}});Ext.Element.addMethods({scrollTo:function(b,d,a){var e=/top/i.test(b),c=this,g=c.dom,h;if(!a||!c.anim){h="scroll"+(e?"Top":"Left"),g[h]=d}else{h="scroll"+(e?"Left":"Top"),c.anim({scroll:{to:e?[g[h],d]:[d,g[h]]}},c.preanim(arguments,2),"scroll")}return c},scrollIntoView:function(e,i){var p=Ext.getDom(e)||Ext.getBody().dom,h=this.dom,g=this.getOffsetsTo(p),k=g[0]+p.scrollLeft,u=g[1]+p.scrollTop,q=u+h.offsetHeight,d=k+h.offsetWidth,a=p.clientHeight,m=parseInt(p.scrollTop,10),s=parseInt(p.scrollLeft,10),j=m+a,n=s+p.clientWidth;if(h.offsetHeight>a||uj){p.scrollTop=q-a}}p.scrollTop=p.scrollTop;if(i!==false){if(h.offsetWidth>p.clientWidth||kn){p.scrollLeft=d-p.clientWidth}}p.scrollLeft=p.scrollLeft}return this},scrollChildIntoView:function(b,a){Ext.fly(b,"_scrollChildIntoView").scrollIntoView(this,a)},scroll:function(m,b,d){if(!this.isScrollable()){return}var e=this.dom,g=e.scrollLeft,p=e.scrollTop,n=e.scrollWidth,k=e.scrollHeight,i=e.clientWidth,a=e.clientHeight,c=false,o,j={l:Math.min(g+b,n-i),r:o=Math.max(g-b,0),t:Math.max(p-b,0),b:Math.min(p+b,k-a)};j.d=j.b;j.u=j.t;m=m.substr(0,1);if((o=j[m])>-1){c=true;this.scrollTo(m=="l"||m=="r"?"left":"top",o,this.preanim(arguments,2))}return c}});Ext.Element.VISIBILITY=1;Ext.Element.DISPLAY=2;Ext.Element.addMethods(function(){var h="visibility",d="display",b="hidden",k="offsets",j="none",a="originalDisplay",c="visibilityMode",e=Ext.Element.DISPLAY,g=Ext.Element.data,i=function(n){var m=g(n,a);if(m===undefined){g(n,a,m="")}return m},l=function(o){var n=g(o,c);if(n===undefined){g(o,c,n=1)}return n};return{originalDisplay:"",visibilityMode:1,setVisibilityMode:function(m){g(this.dom,c,m);return this},animate:function(n,p,o,q,m){this.anim(n,{duration:p,callback:o,easing:q},m);return this},anim:function(p,q,n,s,o,m){n=n||"run";q=q||{};var r=this,t=Ext.lib.Anim[n](r.dom,p,(q.duration||s)||0.35,(q.easing||o)||"easeOut",function(){if(m){m.call(r)}if(q.callback){q.callback.call(q.scope||r,r,q)}},r);q.anim=t;return t},preanim:function(m,n){return !m[n]?false:(typeof m[n]=="object"?m[n]:{duration:m[n+1],callback:m[n+2],easing:m[n+3]})},isVisible:function(){return !this.isStyle(h,b)&&!this.isStyle(d,j)},setVisible:function(r,o){var p=this,n,m,s,q=p.dom;if(typeof o=="string"){n=o==d;m=o==h;s=o==k;o=false}else{n=l(this.dom)==e;m=!n}if(!o||!p.anim){if(n){p.setDisplayed(r)}else{if(s){if(!r){p.hideModeStyles={position:p.getStyle("position"),top:p.getStyle("top"),left:p.getStyle("left")};p.applyStyles({position:"absolute",top:"-10000px",left:"-10000px"})}else{p.applyStyles(p.hideModeStyles||{position:"",top:"",left:""})}}else{p.fixDisplay();q.style.visibility=r?"visible":b}}}else{if(r){p.setOpacity(0.01);p.setVisible(true)}p.anim({opacity:{to:(r?1:0)}},p.preanim(arguments,1),null,0.35,"easeIn",function(){if(!r){q.style[n?d:h]=(n)?j:b;Ext.fly(q).setOpacity(1)}})}return p},toggle:function(m){var n=this;n.setVisible(!n.isVisible(),n.preanim(arguments,0));return n},setDisplayed:function(m){if(typeof m=="boolean"){m=m?i(this.dom):j}this.setStyle(d,m);return this},fixDisplay:function(){var m=this;if(m.isStyle(d,j)){m.setStyle(h,b);m.setStyle(d,i(this.dom));if(m.isStyle(d,j)){m.setStyle(d,"block")}}},hide:function(m){if(typeof m=="string"){this.setVisible(false,m);return this}this.setVisible(false,this.preanim(arguments,0));return this},show:function(m){if(typeof m=="string"){this.setVisible(true,m);return this}this.setVisible(true,this.preanim(arguments,0));return this}}}());Ext.Element.addMethods(function(){var d="visibility",b="display",a="hidden",h="none",c="x-masked",g="x-masked-relative",e=Ext.Element.data;return{isVisible:function(i){var j=!this.isStyle(d,a)&&!this.isStyle(b,h),k=this.dom.parentNode;if(i!==true||!j){return j}while(k&&!/^body/i.test(k.tagName)){if(!Ext.fly(k,"_isVisible").isVisible()){return false}k=k.parentNode}return true},isDisplayed:function(){return !this.isStyle(b,h)},enableDisplayMode:function(i){this.setVisibilityMode(Ext.Element.DISPLAY);if(!Ext.isEmpty(i)){e(this.dom,"originalDisplay",i)}return this},mask:function(j,n){var p=this,l=p.dom,o=Ext.DomHelper,m="ext-el-mask-msg",i,q;if(!/^body/i.test(l.tagName)&&p.getStyle("position")=="static"){p.addClass(g)}if((i=e(l,"maskMsg"))){i.remove()}if((i=e(l,"mask"))){i.remove()}q=o.append(l,{cls:"ext-el-mask"},true);e(l,"mask",q);p.addClass(c);q.setDisplayed(true);if(typeof j=="string"){var k=o.append(l,{cls:m,cn:{tag:"div"}},true);e(l,"maskMsg",k);k.dom.className=n?m+" "+n:m;k.dom.firstChild.innerHTML=j;k.setDisplayed(true);k.center(p)}if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&p.getStyle("height")=="auto"){q.setSize(undefined,p.getHeight())}return q},unmask:function(){var k=this,l=k.dom,i=e(l,"mask"),j=e(l,"maskMsg");if(i){if(j){j.remove();e(l,"maskMsg",undefined)}i.remove();e(l,"mask",undefined)}k.removeClass([c,g])},isMasked:function(){var i=e(this.dom,"mask");return i&&i.isVisible()},createShim:function(){var i=document.createElement("iframe"),j;i.frameBorder="0";i.className="ext-shim";i.src=Ext.SSL_SECURE_URL;j=Ext.get(this.dom.parentNode.insertBefore(i,this.dom));j.autoBoxAdjust=false;return j}}}());Ext.Element.addMethods({addKeyListener:function(b,d,c){var a;if(typeof b!="object"||Ext.isArray(b)){a={key:b,fn:d,scope:c}}else{a={key:b.key,shift:b.shift,ctrl:b.ctrl,alt:b.alt,fn:d,scope:c}}return new Ext.KeyMap(this,a)},addKeyMap:function(a){return new Ext.KeyMap(this,a)}});(function(){var y=null,A=undefined,k=true,t=false,j="setX",h="setY",a="setXY",n="left",l="bottom",s="top",m="right",q="height",g="width",i="points",w="hidden",z="absolute",u="visible",e="motion",o="position",r="easeOut",d=new Ext.Element.Flyweight(),v={},x=function(B){return B||{}},p=function(B){d.dom=B;d.id=Ext.id(B);return d},c=function(B){if(!v[B]){v[B]=[]}return v[B]},b=function(C,B){v[C]=B};Ext.enableFx=k;Ext.Fx={switchStatements:function(C,D,B){return D.apply(this,B[C])},slideIn:function(H,E){E=x(E);var J=this,G=J.dom,M=G.style,O,B,L,D,C,M,I,N,K,F;H=H||"t";J.queueFx(E,function(){O=p(G).getXY();p(G).fixDisplay();B=p(G).getFxRestore();L={x:O[0],y:O[1],0:O[0],1:O[1],width:G.offsetWidth,height:G.offsetHeight};L.right=L.x+L.width;L.bottom=L.y+L.height;p(G).setWidth(L.width).setHeight(L.height);D=p(G).fxWrap(B.pos,E,w);M.visibility=u;M.position=z;function P(){p(G).fxUnwrap(D,B.pos,E);M.width=B.width;M.height=B.height;p(G).afterFx(E)}N={to:[L.x,L.y]};K={to:L.width};F={to:L.height};function Q(U,R,V,S,X,Z,ac,ab,aa,W,T){var Y={};p(U).setWidth(V).setHeight(S);if(p(U)[X]){p(U)[X](Z)}R[ac]=R[ab]="0";if(aa){Y.width=aa}if(W){Y.height=W}if(T){Y.points=T}return Y}I=p(G).switchStatements(H.toLowerCase(),Q,{t:[D,M,L.width,0,y,y,n,l,y,F,y],l:[D,M,0,L.height,y,y,m,s,K,y,y],r:[D,M,L.width,L.height,j,L.right,n,s,y,y,N],b:[D,M,L.width,L.height,h,L.bottom,n,s,y,F,N],tl:[D,M,0,0,y,y,m,l,K,F,N],bl:[D,M,0,0,h,L.y+L.height,m,s,K,F,N],br:[D,M,0,0,a,[L.right,L.bottom],n,s,K,F,N],tr:[D,M,0,0,j,L.x+L.width,n,l,K,F,N]});M.visibility=u;p(D).show();arguments.callee.anim=p(D).fxanim(I,E,e,0.5,r,P)});return J},slideOut:function(F,D){D=x(D);var H=this,E=H.dom,K=E.style,L=H.getXY(),C,B,I,J,G={to:0};F=F||"t";H.queueFx(D,function(){B=p(E).getFxRestore();I={x:L[0],y:L[1],0:L[0],1:L[1],width:E.offsetWidth,height:E.offsetHeight};I.right=I.x+I.width;I.bottom=I.y+I.height;p(E).setWidth(I.width).setHeight(I.height);C=p(E).fxWrap(B.pos,D,u);K.visibility=u;K.position=z;p(C).setWidth(I.width).setHeight(I.height);function M(){D.useDisplay?p(E).setDisplayed(t):p(E).hide();p(E).fxUnwrap(C,B.pos,D);K.width=B.width;K.height=B.height;p(E).afterFx(D)}function N(O,W,U,X,S,V,R,T,Q){var P={};O[W]=O[U]="0";P[X]=S;if(V){P[V]=R}if(T){P[T]=Q}return P}J=p(E).switchStatements(F.toLowerCase(),N,{t:[K,n,l,q,G],l:[K,m,s,g,G],r:[K,n,s,g,G,i,{to:[I.right,I.y]}],b:[K,n,s,q,G,i,{to:[I.x,I.bottom]}],tl:[K,m,l,g,G,q,G],bl:[K,m,s,g,G,q,G,i,{to:[I.x,I.bottom]}],br:[K,n,s,g,G,q,G,i,{to:[I.x+I.width,I.bottom]}],tr:[K,n,l,g,G,q,G,i,{to:[I.right,I.y]}]});arguments.callee.anim=p(C).fxanim(J,D,e,0.5,r,M)});return H},puff:function(H){H=x(H);var F=this,G=F.dom,C=G.style,D,B,E;F.queueFx(H,function(){D=p(G).getWidth();B=p(G).getHeight();p(G).clearOpacity();p(G).show();E=p(G).getFxRestore();function I(){H.useDisplay?p(G).setDisplayed(t):p(G).hide();p(G).clearOpacity();p(G).setPositioning(E.pos);C.width=E.width;C.height=E.height;C.fontSize="";p(G).afterFx(H)}arguments.callee.anim=p(G).fxanim({width:{to:p(G).adjustWidth(D*2)},height:{to:p(G).adjustHeight(B*2)},points:{by:[-D*0.5,-B*0.5]},opacity:{to:0},fontSize:{to:200,unit:"%"}},H,e,0.5,r,I)});return F},switchOff:function(F){F=x(F);var D=this,E=D.dom,B=E.style,C;D.queueFx(F,function(){p(E).clearOpacity();p(E).clip();C=p(E).getFxRestore();function G(){F.useDisplay?p(E).setDisplayed(t):p(E).hide();p(E).clearOpacity();p(E).setPositioning(C.pos);B.width=C.width;B.height=C.height;p(E).afterFx(F)}p(E).fxanim({opacity:{to:0.3}},y,y,0.1,y,function(){p(E).clearOpacity();(function(){p(E).fxanim({height:{to:1},points:{by:[0,p(E).getHeight()*0.5]}},F,e,0.3,"easeIn",G)}).defer(100)})});return D},highlight:function(D,H){H=x(H);var F=this,G=F.dom,B=H.attr||"backgroundColor",C={},E;F.queueFx(H,function(){p(G).clearOpacity();p(G).show();function I(){G.style[B]=E;p(G).afterFx(H)}E=G.style[B];C[B]={from:D||"ffff9c",to:H.endColor||p(G).getColor(B)||"ffffff"};arguments.callee.anim=p(G).fxanim(C,H,"color",1,"easeIn",I)});return F},frame:function(B,E,H){H=x(H);var D=this,G=D.dom,C,F;D.queueFx(H,function(){B=B||"#C3DAF9";if(B.length==6){B="#"+B}E=E||1;p(G).show();var L=p(G).getXY(),J={x:L[0],y:L[1],0:L[0],1:L[1],width:G.offsetWidth,height:G.offsetHeight},I=function(){C=p(document.body||document.documentElement).createChild({style:{position:z,"z-index":35000,border:"0px solid "+B}});return C.queueFx({},K)};arguments.callee.anim={isAnimated:true,stop:function(){E=0;C.stopFx()}};function K(){var M=Ext.isBorderBox?2:1;F=C.anim({top:{from:J.y,to:J.y-20},left:{from:J.x,to:J.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:J.height,to:J.height+20*M},width:{from:J.width,to:J.width+20*M}},{duration:H.duration||1,callback:function(){C.remove();--E>0?I():p(G).afterFx(H)}});arguments.callee.anim={isAnimated:true,stop:function(){F.stop()}}}I()});return D},pause:function(D){var C=this.dom,B;this.queueFx({},function(){B=setTimeout(function(){p(C).afterFx({})},D*1000);arguments.callee.anim={isAnimated:true,stop:function(){clearTimeout(B);p(C).afterFx({})}}});return this},fadeIn:function(D){D=x(D);var B=this,C=B.dom,E=D.endOpacity||1;B.queueFx(D,function(){p(C).setOpacity(0);p(C).fixDisplay();C.style.visibility=u;arguments.callee.anim=p(C).fxanim({opacity:{to:E}},D,y,0.5,r,function(){if(E==1){p(C).clearOpacity()}p(C).afterFx(D)})});return B},fadeOut:function(E){E=x(E);var C=this,D=C.dom,B=D.style,F=E.endOpacity||0;C.queueFx(E,function(){arguments.callee.anim=p(D).fxanim({opacity:{to:F}},E,y,0.5,r,function(){if(F==0){Ext.Element.data(D,"visibilityMode")==Ext.Element.DISPLAY||E.useDisplay?B.display="none":B.visibility=w;p(D).clearOpacity()}p(D).afterFx(E)})});return C},scale:function(B,C,D){this.shift(Ext.apply({},D,{width:B,height:C}));return this},shift:function(D){D=x(D);var C=this.dom,B={};this.queueFx(D,function(){for(var E in D){if(D[E]!=A){B[E]={to:D[E]}}}B.width?B.width.to=p(C).adjustWidth(D.width):B;B.height?B.height.to=p(C).adjustWidth(D.height):B;if(B.x||B.y||B.xy){B.points=B.xy||{to:[B.x?B.x.to:p(C).getX(),B.y?B.y.to:p(C).getY()]}}arguments.callee.anim=p(C).fxanim(B,D,e,0.35,r,function(){p(C).afterFx(D)})});return this},ghost:function(E,C){C=x(C);var G=this,D=G.dom,J=D.style,H={opacity:{to:0},points:{}},K=H.points,B,I,F;E=E||"b";G.queueFx(C,function(){B=p(D).getFxRestore();I=p(D).getWidth();F=p(D).getHeight();function L(){C.useDisplay?p(D).setDisplayed(t):p(D).hide();p(D).clearOpacity();p(D).setPositioning(B.pos);J.width=B.width;J.height=B.height;p(D).afterFx(C)}K.by=p(D).switchStatements(E.toLowerCase(),function(N,M){return[N,M]},{t:[0,-F],l:[-I,0],r:[I,0],b:[0,F],tl:[-I,-F],bl:[-I,F],br:[I,F],tr:[I,-F]});arguments.callee.anim=p(D).fxanim(H,C,e,0.5,r,L)});return G},syncFx:function(){var B=this;B.fxDefaults=Ext.apply(B.fxDefaults||{},{block:t,concurrent:k,stopFx:t});return B},sequenceFx:function(){var B=this;B.fxDefaults=Ext.apply(B.fxDefaults||{},{block:t,concurrent:t,stopFx:t});return B},nextFx:function(){var B=c(this.dom.id)[0];if(B){B.call(this)}},hasActiveFx:function(){return c(this.dom.id)[0]},stopFx:function(B){var C=this,E=C.dom.id;if(C.hasActiveFx()){var D=c(E)[0];if(D&&D.anim){if(D.anim.isAnimated){b(E,[D]);D.anim.stop(B!==undefined?B:k)}else{b(E,[])}}}return C},beforeFx:function(B){if(this.hasActiveFx()&&!B.concurrent){if(B.stopFx){this.stopFx();return k}return t}return k},hasFxBlock:function(){var B=c(this.dom.id);return B&&B[0]&&B[0].block},queueFx:function(E,B){var C=p(this.dom);if(!C.hasFxBlock()){Ext.applyIf(E,C.fxDefaults);if(!E.concurrent){var D=C.beforeFx(E);B.block=E.block;c(C.dom.id).push(B);if(D){C.nextFx()}}else{B.call(C)}}return C},fxWrap:function(H,F,D){var E=this.dom,C,B;if(!F.wrap||!(C=Ext.getDom(F.wrap))){if(F.fixPosition){B=p(E).getXY()}var G=document.createElement("div");G.style.visibility=D;C=E.parentNode.insertBefore(G,E);p(C).setPositioning(H);if(p(C).isStyle(o,"static")){p(C).position("relative")}p(E).clearPositioning("auto");p(C).clip();C.appendChild(E);if(B){p(C).setXY(B)}}return C},fxUnwrap:function(C,F,E){var D=this.dom;p(D).clearPositioning();p(D).setPositioning(F);if(!E.wrap){var B=p(C).dom.parentNode;B.insertBefore(D,C);p(C).remove()}},getFxRestore:function(){var B=this.dom.style;return{pos:this.getPositioning(),width:B.width,height:B.height}},afterFx:function(C){var B=this.dom,D=B.id;if(C.afterStyle){p(B).setStyle(C.afterStyle)}if(C.afterCls){p(B).addClass(C.afterCls)}if(C.remove==k){p(B).remove()}if(C.callback){C.callback.call(C.scope,p(B))}if(!C.concurrent){c(D).shift();p(B).nextFx()}},fxanim:function(E,F,C,G,D,B){C=C||"run";F=F||{};var H=Ext.lib.Anim[C](this.dom,E,(F.duration||G)||0.35,(F.easing||D)||r,B,this);F.anim=H;return H}};Ext.Fx.resize=Ext.Fx.scale;Ext.Element.addMethods(Ext.Fx)})();Ext.CompositeElementLite=function(b,a){this.elements=[];this.add(b,a);this.el=new Ext.Element.Flyweight()};Ext.CompositeElementLite.prototype={isComposite:true,getElement:function(a){var b=this.el;b.dom=a;b.id=a.id;return b},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(d,b){var e=this,g=e.elements;if(!d){return this}if(typeof d=="string"){d=Ext.Element.selectorFunction(d,b)}else{if(d.isComposite){d=d.elements}else{if(!Ext.isIterable(d)){d=[d]}}}for(var c=0,a=d.length;c-1){c=Ext.getDom(c);if(a){g=this.elements[b];g.parentNode.insertBefore(c,g);Ext.removeNode(g)}this.elements.splice(b,1,c)}return this},clear:function(){this.elements=[]}};Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener;(function(){var c,b=Ext.Element.prototype,a=Ext.CompositeElementLite.prototype;for(c in b){if(Ext.isFunction(b[c])){(function(d){a[d]=a[d]||function(){return this.invoke(d,arguments)}}).call(a,c)}}})();if(Ext.DomQuery){Ext.Element.selectorFunction=Ext.DomQuery.select}Ext.Element.select=function(a,b){var c;if(typeof a=="string"){c=Ext.Element.selectorFunction(a,b)}else{if(a.length!==undefined){c=a}else{throw"Invalid selector"}}return new Ext.CompositeElementLite(c)};Ext.select=Ext.Element.select;Ext.apply(Ext.CompositeElementLite.prototype,{addElements:function(c,a){if(!c){return this}if(typeof c=="string"){c=Ext.Element.selectorFunction(c,a)}var b=this.elements;Ext.each(c,function(d){b.push(Ext.get(d))});return this},first:function(){return this.item(0)},last:function(){return this.item(this.getCount()-1)},contains:function(a){return this.indexOf(a)!=-1},removeElement:function(d,e){var c=this,a=this.elements,b;Ext.each(d,function(g){if((b=(a[g]||a[g=c.indexOf(g)]))){if(e){if(b.dom){b.remove()}else{Ext.removeNode(b)}}a.splice(g,1)}});return this}});Ext.CompositeElement=Ext.extend(Ext.CompositeElementLite,{constructor:function(b,a){this.elements=[];this.add(b,a)},getElement:function(a){return a},transformElement:function(a){return Ext.get(a)}});Ext.Element.select=function(a,d,b){var c;if(typeof a=="string"){c=Ext.Element.selectorFunction(a,b)}else{if(a.length!==undefined){c=a}else{throw"Invalid selector"}}return(d===true)?new Ext.CompositeElement(c):new Ext.CompositeElementLite(c)};Ext.select=Ext.Element.select;(function(){var b="beforerequest",e="requestcomplete",d="requestexception",h=undefined,c="load",i="POST",a="GET",g=window;Ext.data.Connection=function(j){Ext.apply(this,j);this.addEvents(b,e,d);Ext.data.Connection.superclass.constructor.call(this)};Ext.extend(Ext.data.Connection,Ext.util.Observable,{timeout:30000,autoAbort:false,disableCaching:true,disableCachingParam:"_dc",request:function(n){var s=this;if(s.fireEvent(b,s,n)){if(n.el){if(!Ext.isEmpty(n.indicatorText)){s.indicatorText='
    '+n.indicatorText+"
    "}if(s.indicatorText){Ext.getDom(n.el).innerHTML=s.indicatorText}n.success=(Ext.isFunction(n.success)?n.success:function(){}).createInterceptor(function(o){Ext.getDom(n.el).innerHTML=o.responseText})}var l=n.params,k=n.url||s.url,j,q={success:s.handleResponse,failure:s.handleFailure,scope:s,argument:{options:n},timeout:n.timeout||s.timeout},m,t;if(Ext.isFunction(l)){l=l.call(n.scope||g,n)}l=Ext.urlEncode(s.extraParams,Ext.isObject(l)?Ext.urlEncode(l):l);if(Ext.isFunction(k)){k=k.call(n.scope||g,n)}if((m=Ext.getDom(n.form))){k=k||m.action;if(n.isUpload||/multipart\/form-data/i.test(m.getAttribute("enctype"))){return s.doFormUpload.call(s,n,l,k)}t=Ext.lib.Ajax.serializeForm(m);l=l?(l+"&"+t):t}j=n.method||s.method||((l||n.xmlData||n.jsonData)?i:a);if(j===a&&(s.disableCaching&&n.disableCaching!==false)||n.disableCaching===true){var r=n.disableCachingParam||s.disableCachingParam;k=Ext.urlAppend(k,r+"="+(new Date().getTime()))}n.headers=Ext.apply(n.headers||{},s.defaultHeaders||{});if(n.autoAbort===true||s.autoAbort){s.abort()}if((j==a||n.xmlData||n.jsonData)&&l){k=Ext.urlAppend(k,l);l=""}return(s.transId=Ext.lib.Ajax.request(j,k,q,l,n))}else{return n.callback?n.callback.apply(n.scope,[n,h,h]):null}},isLoading:function(j){return j?Ext.lib.Ajax.isCallInProgress(j):!!this.transId},abort:function(j){if(j||this.isLoading()){Ext.lib.Ajax.abort(j||this.transId)}},handleResponse:function(j){this.transId=false;var k=j.argument.options;j.argument=k?k.argument:null;this.fireEvent(e,this,j,k);if(k.success){k.success.call(k.scope,j,k)}if(k.callback){k.callback.call(k.scope,k,true,j)}},handleFailure:function(j,l){this.transId=false;var k=j.argument.options;j.argument=k?k.argument:null;this.fireEvent(d,this,j,k,l);if(k.failure){k.failure.call(k.scope,j,k)}if(k.callback){k.callback.call(k.scope,k,false,j)}},doFormUpload:function(q,j,k){var l=Ext.id(),v=document,r=v.createElement("iframe"),m=Ext.getDom(q.form),u=[],t,p="multipart/form-data",n={target:m.target,method:m.method,encoding:m.encoding,enctype:m.enctype,action:m.action};Ext.fly(r).set({id:l,name:l,cls:"x-hidden",src:Ext.SSL_SECURE_URL});v.body.appendChild(r);if(Ext.isIE){document.frames[l].name=l}Ext.fly(m).set({target:l,method:i,enctype:p,encoding:p,action:k||n.action});Ext.iterate(Ext.urlDecode(j,false),function(w,o){t=v.createElement("input");Ext.fly(t).set({type:"hidden",value:o,name:w});m.appendChild(t);u.push(t)});function s(){var x=this,w={responseText:"",responseXML:null,argument:q.argument},A,z;try{A=r.contentWindow.document||r.contentDocument||g.frames[l].document;if(A){if(A.body){if(/textarea/i.test((z=A.body.firstChild||{}).tagName)){w.responseText=z.value}else{w.responseText=A.body.innerHTML}}w.responseXML=A.XMLDocument||A}}catch(y){}Ext.EventManager.removeListener(r,c,s,x);x.fireEvent(e,x,w,q);function o(D,C,B){if(Ext.isFunction(D)){D.apply(C,B)}}o(q.success,q.scope,[w,q]);o(q.callback,q.scope,[q,true,w]);if(!x.debugUploads){setTimeout(function(){Ext.removeNode(r)},100)}}Ext.EventManager.on(r,c,s,this);m.submit();Ext.fly(m).set(n);Ext.each(u,function(o){Ext.removeNode(o)})}})})();Ext.Ajax=new Ext.data.Connection({autoAbort:false,serializeForm:function(a){return Ext.lib.Ajax.serializeForm(a)}});Ext.UpdateManager=Ext.Updater=Ext.extend(Ext.util.Observable,function(){var b="beforeupdate",d="update",c="failure";function a(h){var i=this;i.transaction=null;if(h.argument.form&&h.argument.reset){try{h.argument.form.reset()}catch(j){}}if(i.loadScripts){i.renderer.render(i.el,h,i,g.createDelegate(i,[h]))}else{i.renderer.render(i.el,h,i);g.call(i,h)}}function g(h,i,j){this.fireEvent(i||d,this.el,h);if(Ext.isFunction(h.argument.callback)){h.argument.callback.call(h.argument.scope,this.el,Ext.isEmpty(j)?true:false,h,h.argument.options)}}function e(h){g.call(this,h,c,!!(this.transaction=null))}return{constructor:function(i,h){var j=this;i=Ext.get(i);if(!h&&i.updateManager){return i.updateManager}j.el=i;j.defaultUrl=null;j.addEvents(b,d,c);Ext.apply(j,Ext.Updater.defaults);j.transaction=null;j.refreshDelegate=j.refresh.createDelegate(j);j.updateDelegate=j.update.createDelegate(j);j.formUpdateDelegate=(j.formUpdate||function(){}).createDelegate(j);j.renderer=j.renderer||j.getDefaultRenderer();Ext.Updater.superclass.constructor.call(j)},setRenderer:function(h){this.renderer=h},getRenderer:function(){return this.renderer},getDefaultRenderer:function(){return new Ext.Updater.BasicRenderer()},setDefaultUrl:function(h){this.defaultUrl=h},getEl:function(){return this.el},update:function(i,n,p,l){var k=this,h,j;if(k.fireEvent(b,k.el,i,n)!==false){if(Ext.isObject(i)){h=i;i=h.url;n=n||h.params;p=p||h.callback;l=l||h.discardUrl;j=h.scope;if(!Ext.isEmpty(h.nocache)){k.disableCaching=h.nocache}if(!Ext.isEmpty(h.text)){k.indicatorText='
    '+h.text+"
    "}if(!Ext.isEmpty(h.scripts)){k.loadScripts=h.scripts}if(!Ext.isEmpty(h.timeout)){k.timeout=h.timeout}}k.showLoading();if(!l){k.defaultUrl=i}if(Ext.isFunction(i)){i=i.call(k)}var m=Ext.apply({},{url:i,params:(Ext.isFunction(n)&&j)?n.createDelegate(j):n,success:a,failure:e,scope:k,callback:undefined,timeout:(k.timeout*1000),disableCaching:k.disableCaching,argument:{options:h,url:i,form:null,callback:p,scope:j||window,params:n}},h);k.transaction=Ext.Ajax.request(m)}},formUpdate:function(k,h,j,l){var i=this;if(i.fireEvent(b,i.el,k,h)!==false){if(Ext.isFunction(h)){h=h.call(i)}k=Ext.getDom(k);i.transaction=Ext.Ajax.request({form:k,url:h,success:a,failure:e,scope:i,timeout:(i.timeout*1000),argument:{url:h,form:k,callback:l,reset:j}});i.showLoading.defer(1,i)}},startAutoRefresh:function(i,j,l,m,h){var k=this;if(h){k.update(j||k.defaultUrl,l,m,true)}if(k.autoRefreshProcId){clearInterval(k.autoRefreshProcId)}k.autoRefreshProcId=setInterval(k.update.createDelegate(k,[j||k.defaultUrl,l,m,true]),i*1000)},stopAutoRefresh:function(){if(this.autoRefreshProcId){clearInterval(this.autoRefreshProcId);delete this.autoRefreshProcId}},isAutoRefreshing:function(){return !!this.autoRefreshProcId},showLoading:function(){if(this.showLoadIndicator){this.el.dom.innerHTML=this.indicatorText}},abort:function(){if(this.transaction){Ext.Ajax.abort(this.transaction)}},isUpdating:function(){return this.transaction?Ext.Ajax.isLoading(this.transaction):false},refresh:function(h){if(this.defaultUrl){this.update(this.defaultUrl,null,h,true)}}}}());Ext.Updater.defaults={timeout:30,disableCaching:false,showLoadIndicator:true,indicatorText:'
    Loading...
    ',loadScripts:false,sslBlankUrl:Ext.SSL_SECURE_URL};Ext.Updater.updateElement=function(d,c,e,b){var a=Ext.get(d).getUpdater();Ext.apply(a,b);a.update(c,e,b?b.callback:null)};Ext.Updater.BasicRenderer=function(){};Ext.Updater.BasicRenderer.prototype={render:function(c,a,b,d){c.update(a.responseText,b.loadScripts,d)}};(function(){Date.useStrict=false;function b(d){var c=Array.prototype.slice.call(arguments,1);return d.replace(/\{(\d+)\}/g,function(e,g){return c[g]})}Date.formatCodeToRegex=function(d,c){var e=Date.parseCodes[d];if(e){e=typeof e=="function"?e():e;Date.parseCodes[d]=e}return e?Ext.applyIf({c:e.c?b(e.c,c||"{0}"):e.c},e):{g:0,c:null,s:Ext.escapeRe(d)}};var a=Date.formatCodeToRegex;Ext.apply(Date,{parseFunctions:{"M$":function(d,c){var e=new RegExp("\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/");var g=(d||"").match(e);return g?new Date(((g[1]||"")+g[2])*1):null}},parseRegexes:[],formatFunctions:{"M$":function(){return"\\/Date("+this.getTime()+")\\/"}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},getShortMonthName:function(c){return Date.monthNames[c].substring(0,3)},getShortDayName:function(c){return Date.dayNames[c].substring(0,3)},getMonthNumber:function(c){return Date.monthNumbers[c.substring(0,1).toUpperCase()+c.substring(1,3).toLowerCase()]},formatCodes:{d:"String.leftPad(this.getDate(), 2, '0')",D:"Date.getShortDayName(this.getDay())",j:"this.getDate()",l:"Date.dayNames[this.getDay()]",N:"(this.getDay() ? this.getDay() : 7)",S:"this.getSuffix()",w:"this.getDay()",z:"this.getDayOfYear()",W:"String.leftPad(this.getWeekOfYear(), 2, '0')",F:"Date.monthNames[this.getMonth()]",m:"String.leftPad(this.getMonth() + 1, 2, '0')",M:"Date.getShortMonthName(this.getMonth())",n:"(this.getMonth() + 1)",t:"this.getDaysInMonth()",L:"(this.isLeapYear() ? 1 : 0)",o:"(this.getFullYear() + (this.getWeekOfYear() == 1 && this.getMonth() > 0 ? +1 : (this.getWeekOfYear() >= 52 && this.getMonth() < 11 ? -1 : 0)))",Y:"this.getFullYear()",y:"('' + this.getFullYear()).substring(2, 4)",a:"(this.getHours() < 12 ? 'am' : 'pm')",A:"(this.getHours() < 12 ? 'AM' : 'PM')",g:"((this.getHours() % 12) ? this.getHours() % 12 : 12)",G:"this.getHours()",h:"String.leftPad((this.getHours() % 12) ? this.getHours() % 12 : 12, 2, '0')",H:"String.leftPad(this.getHours(), 2, '0')",i:"String.leftPad(this.getMinutes(), 2, '0')",s:"String.leftPad(this.getSeconds(), 2, '0')",u:"String.leftPad(this.getMilliseconds(), 3, '0')",O:"this.getGMTOffset()",P:"this.getGMTOffset(true)",T:"this.getTimezone()",Z:"(this.getTimezoneOffset() * -60)",c:function(){for(var k="Y-m-dTH:i:sP",h=[],g=0,d=k.length;g= 0 && y >= 0){","v = new Date(y, 0, 1, h, i, s, ms);","v = !strict? v : (strict === true && (z <= 364 || (v.isLeapYear() && z <= 365))? v.add(Date.DAY, z) : null);","}else if(strict === true && !Date.isValid(y, m + 1, d, h, i, s, ms)){","v = null;","}else{","v = new Date(y, m, d, h, i, s, ms);","}","}","}","if(v){","if(zz != null){","v = v.add(Date.SECOND, -v.getTimezoneOffset() * 60 - zz);","}else if(o){","v = v.add(Date.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));","}","}","return v;"].join("\n");return function(m){var e=Date.parseRegexes.length,n=1,g=[],l=[],k=false,d="";for(var j=0;j Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"},a:{g:1,c:"if (results[{0}] == 'am') {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(am|pm)"},A:{g:1,c:"if (results[{0}] == 'AM') {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM)"},g:function(){return a("G")},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(\\d{1,2})"},h:function(){return a("H")},H:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},i:{g:1,c:"i = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},s:{g:1,c:"s = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},u:{g:1,c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n",s:"(\\d+)"},O:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),","mn = o.substring(3,5) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + String.leftPad(hr, 2, '0') + String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{4})"},P:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),","mn = o.substring(4,6) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + String.leftPad(hr, 2, '0') + String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{2}:\\d{2})"},T:{g:0,c:null,s:"[A-Z]{1,4}"},Z:{g:1,c:"zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var e=[],c=[a("Y",1),a("m",2),a("d",3),a("h",4),a("i",5),a("s",6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:["if(results[8]) {","if(results[8] == 'Z'){","zz = 0;","}else if (results[8].indexOf(':') > -1){",a("P",8).c,"}else{",a("O",8).c,"}","}"].join("\n")}];for(var g=0,d=c.length;g0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+(a?":":"")+String.leftPad(Math.abs(this.getTimezoneOffset()%60),2,"0")},getDayOfYear:function(){var b=0,e=this.clone(),a=this.getMonth(),c;for(c=0,e.setDate(1),e.setMonth(0);c28){a=Math.min(a,this.getFirstDateOfMonth().add("mo",c).getLastDateOfMonth().getDate())}e.setDate(a);e.setMonth(this.getMonth()+c);break;case Date.YEAR:e.setFullYear(this.getFullYear()+c);break}return e},between:function(c,a){var b=this.getTime();return c.getTime()<=b&&b<=a.getTime()}});Date.prototype.format=Date.prototype.dateFormat;if(Ext.isSafari&&(navigator.userAgent.match(/WebKit\/(\d+)/)[1]||NaN)<420){Ext.apply(Date.prototype,{_xMonth:Date.prototype.setMonth,_xDate:Date.prototype.setDate,setMonth:function(a){if(a<=-1){var d=Math.ceil(-a),c=Math.ceil(d/12),b=(d%12)?12-d%12:0;this.setFullYear(this.getFullYear()-c);return this._xMonth(b)}else{return this._xMonth(a)}},setDate:function(a){return this.setTime(this.getTime()-(this.getDate()-a)*86400000)}})}Ext.util.MixedCollection=function(b,a){this.items=[];this.map={};this.keys=[];this.length=0;this.addEvents("clear","add","replace","remove","sort");this.allowFunctions=b===true;if(a){this.getKey=a}Ext.util.MixedCollection.superclass.constructor.call(this)};Ext.extend(Ext.util.MixedCollection,Ext.util.Observable,{allowFunctions:false,add:function(b,c){if(arguments.length==1){c=arguments[0];b=this.getKey(c)}if(typeof b!="undefined"&&b!==null){var a=this.map[b];if(typeof a!="undefined"){return this.replace(b,c)}this.map[b]=c}this.length++;this.items.push(c);this.keys.push(b);this.fireEvent("add",this.length-1,c,b);return c},getKey:function(a){return a.id},replace:function(c,d){if(arguments.length==1){d=arguments[0];c=this.getKey(d)}var a=this.map[c];if(typeof c=="undefined"||c===null||typeof a=="undefined"){return this.add(c,d)}var b=this.indexOfKey(c);this.items[b]=d;this.map[c]=d;this.fireEvent("replace",c,a,d);return d},addAll:function(e){if(arguments.length>1||Ext.isArray(e)){var b=arguments.length>1?arguments:e;for(var d=0,a=b.length;d=this.length){return this.add(b,c)}this.length++;this.items.splice(a,0,c);if(typeof b!="undefined"&&b!==null){this.map[b]=c}this.keys.splice(a,0,b);this.fireEvent("add",a,c,b);return c},remove:function(a){return this.removeAt(this.indexOf(a))},removeAt:function(a){if(a=0){this.length--;var c=this.items[a];this.items.splice(a,1);var b=this.keys[a];if(typeof b!="undefined"){delete this.map[b]}this.keys.splice(a,1);this.fireEvent("remove",c,b);return c}return false},removeKey:function(a){return this.removeAt(this.indexOfKey(a))},getCount:function(){return this.length},indexOf:function(a){return this.items.indexOf(a)},indexOfKey:function(a){return this.keys.indexOf(a)},item:function(b){var a=this.map[b],c=a!==undefined?a:(typeof b=="number")?this.items[b]:undefined;return typeof c!="function"||this.allowFunctions?c:null},itemAt:function(a){return this.items[a]},key:function(a){return this.map[a]},contains:function(a){return this.indexOf(a)!=-1},containsKey:function(a){return typeof this.map[a]!="undefined"},clear:function(){this.length=0;this.items=[];this.keys=[];this.map={};this.fireEvent("clear")},first:function(){return this.items[0]},last:function(){return this.items[this.length-1]},_sort:function(k,a,j){var d,e,b=String(a).toUpperCase()=="DESC"?-1:1,h=[],l=this.keys,g=this.items;j=j||function(i,c){return i-c};for(d=0,e=g.length;de?1:(g=a;c--){d[d.length]=b[c]}}return d},filter:function(c,b,d,a){if(Ext.isEmpty(b,false)){return this.clone()}b=this.createValueMatcher(b,d,a);return this.filterBy(function(e){return e&&b.test(e[c])})},filterBy:function(g,e){var h=new Ext.util.MixedCollection();h.getKey=this.getKey;var b=this.keys,d=this.items;for(var c=0,a=d.length;c]+>/gi,stripScriptsRe=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe=/\r?\n/g;return{ellipsis:function(value,len,word){if(value&&value.length>len){if(word){var vs=value.substr(0,len-2),index=Math.max(vs.lastIndexOf(" "),vs.lastIndexOf("."),vs.lastIndexOf("!"),vs.lastIndexOf("?"));if(index==-1||index<(len-15)){return value.substr(0,len-3)+"..."}else{return vs.substr(0,index)+"..."}}else{return value.substr(0,len-3)+"..."}}return value},undef:function(value){return value!==undefined?value:""},defaultValue:function(value,defaultValue){return value!==undefined&&value!==""?value:defaultValue},htmlEncode:function(value){return !value?value:String(value).replace(/&/g,"&").replace(/>/g,">").replace(/").replace(/</g,"<").replace(/"/g,'"').replace(/&/g,"&")},trim:function(value){return String(value).replace(trimRe,"")},substr:function(value,start,length){return String(value).substr(start,length)},lowercase:function(value){return String(value).toLowerCase()},uppercase:function(value){return String(value).toUpperCase()},capitalize:function(value){return !value?value:value.charAt(0).toUpperCase()+value.substr(1).toLowerCase()},call:function(value,fn){if(arguments.length>2){var args=Array.prototype.slice.call(arguments,2);args.unshift(value);return eval(fn).apply(window,args)}else{return eval(fn).call(window,value)}},usMoney:function(v){v=(Math.round((v-0)*100))/100;v=(v==Math.floor(v))?v+".00":((v*10==Math.floor(v*10))?v+"0":v);v=String(v);var ps=v.split("."),whole=ps[0],sub=ps[1]?"."+ps[1]:".00",r=/(\d+)(\d{3})/;while(r.test(whole)){whole=whole.replace(r,"$1,$2")}v=whole+sub;if(v.charAt(0)=="-"){return"-$"+v.substr(1)}return"$"+v},date:function(v,format){if(!v){return""}if(!Ext.isDate(v)){v=new Date(Date.parse(v))}return v.dateFormat(format||"m/d/Y")},dateRenderer:function(format){return function(v){return Ext.util.Format.date(v,format)}},stripTags:function(v){return !v?v:String(v).replace(stripTagsRE,"")},stripScripts:function(v){return !v?v:String(v).replace(stripScriptsRe,"")},fileSize:function(size){if(size<1024){return size+" bytes"}else{if(size<1048576){return(Math.round(((size*10)/1024))/10)+" KB"}else{return(Math.round(((size*10)/1048576))/10)+" MB"}}},math:function(){var fns={};return function(v,a){if(!fns[a]){fns[a]=new Function("v","return v "+a+";")}return fns[a](v)}}(),round:function(value,precision){var result=Number(value);if(typeof precision=="number"){precision=Math.pow(10,precision);result=Math.round(value*precision)/precision}return result},number:function(v,format){if(!format){return v}v=Ext.num(v,NaN);if(isNaN(v)){return""}var comma=",",dec=".",i18n=false,neg=v<0;v=Math.abs(v);if(format.substr(format.length-2)=="/i"){format=format.substr(0,format.length-2);i18n=true;comma=".";dec=","}var hasComma=format.indexOf(comma)!=-1,psplit=(i18n?format.replace(/[^\d\,]/g,""):format.replace(/[^\d\.]/g,"")).split(dec);if(1")}}}();Ext.XTemplate=function(){Ext.XTemplate.superclass.constructor.apply(this,arguments);var y=this,j=y.html,q=/]*>((?:(?=([^<]+))\2|<(?!tpl\b[^>]*>))*?)<\/tpl>/,d=/^]*?for="(.*?)"/,v=/^]*?if="(.*?)"/,x=/^]*?exec="(.*?)"/,r,p=0,k=[],o="values",w="parent",l="xindex",n="xcount",e="return ",c="with(values){ ";j=["",j,""].join("");while((r=j.match(q))){var b=r[0].match(d),a=r[0].match(v),A=r[0].match(x),g=null,h=null,t=null,z=b&&b[1]?b[1]:"";if(a){g=a&&a[1]?a[1]:null;if(g){h=new Function(o,w,l,n,c+e+(Ext.util.Format.htmlDecode(g))+"; }")}}if(A){g=A&&A[1]?A[1]:null;if(g){t=new Function(o,w,l,n,c+(Ext.util.Format.htmlDecode(g))+"; }")}}if(z){switch(z){case".":z=new Function(o,w,c+e+o+"; }");break;case"..":z=new Function(o,w,c+e+w+"; }");break;default:z=new Function(o,w,c+e+z+"; }")}}k.push({id:p,target:z,exec:t,test:h,body:r[1]||""});j=j.replace(r[0],"{xtpl"+p+"}");++p}for(var u=k.length-1;u>=0;--u){y.compileTpl(k[u])}y.master=k[k.length-1];y.tpls=k};Ext.extend(Ext.XTemplate,Ext.Template,{re:/\{([\w-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g,codeRe:/\{\[((?:\\\]|.|\n)*?)\]\}/g,applySubTemplate:function(a,k,j,d,c){var h=this,g,m=h.tpls[a],l,b=[];if((m.test&&!m.test.call(h,k,j,d,c))||(m.exec&&m.exec.call(h,k,j,d,c))){return""}l=m.target?m.target.call(h,k,j):k;g=l.length;j=m.target?k:j;if(m.target&&Ext.isArray(l)){for(var e=0,g=l.length;e=0;--g){d[k[g].selectorText.toLowerCase()]=k[g]}}catch(i){}},getRules:function(h){if(d===null||h){d={};var k=c.styleSheets;for(var j=0,g=k.length;j=37&&a<=40){b.stopEvent()}},destroy:function(){this.disable()},enable:function(){if(this.disabled){if(Ext.isSafari2){this.el.on("keyup",this.stopKeyUp,this)}this.el.on(this.isKeydown()?"keydown":"keypress",this.relay,this);this.disabled=false}},disable:function(){if(!this.disabled){if(Ext.isSafari2){this.el.un("keyup",this.stopKeyUp,this)}this.el.un(this.isKeydown()?"keydown":"keypress",this.relay,this);this.disabled=true}},setDisabled:function(a){this[a?"disable":"enable"]()},isKeydown:function(){return this.forceKeyDown||Ext.EventManager.useKeydown}};Ext.KeyMap=function(c,b,a){this.el=Ext.get(c);this.eventName=a||"keydown";this.bindings=[];if(b){this.addBinding(b)}this.enable()};Ext.KeyMap.prototype={stopEvent:false,addBinding:function(b){if(Ext.isArray(b)){Ext.each(b,function(j){this.addBinding(j)},this);return}var k=b.key,g=b.fn||b.handler,l=b.scope;if(b.stopEvent){this.stopEvent=b.stopEvent}if(typeof k=="string"){var h=[];var e=k.toUpperCase();for(var c=0,d=e.length;c2)?a[2]:null;var h=(i>3)?a[3]:"/";var d=(i>4)?a[4]:null;var g=(i>5)?a[5]:false;document.cookie=c+"="+escape(e)+((b===null)?"":("; expires="+b.toGMTString()))+((h===null)?"":("; path="+h))+((d===null)?"":("; domain="+d))+((g===true)?"; secure":"")},get:function(d){var b=d+"=";var g=b.length;var a=document.cookie.length;var e=0;var c=0;while(e0){return this.ownerCt.items.itemAt(a-1)}}return null},getBubbleTarget:function(){return this.ownerCt}});Ext.reg("component",Ext.Component);Ext.Action=Ext.extend(Object,{constructor:function(a){this.initialConfig=a;this.itemId=a.itemId=(a.itemId||a.id||Ext.id());this.items=[]},isAction:true,setText:function(a){this.initialConfig.text=a;this.callEach("setText",[a])},getText:function(){return this.initialConfig.text},setIconClass:function(a){this.initialConfig.iconCls=a;this.callEach("setIconClass",[a])},getIconClass:function(){return this.initialConfig.iconCls},setDisabled:function(a){this.initialConfig.disabled=a;this.callEach("setDisabled",[a])},enable:function(){this.setDisabled(false)},disable:function(){this.setDisabled(true)},isDisabled:function(){return this.initialConfig.disabled},setHidden:function(a){this.initialConfig.hidden=a;this.callEach("setVisible",[!a])},show:function(){this.setHidden(false)},hide:function(){this.setHidden(true)},isHidden:function(){return this.initialConfig.hidden},setHandler:function(b,a){this.initialConfig.handler=b;this.initialConfig.scope=a;this.callEach("setHandler",[b,a])},each:function(b,a){Ext.each(this.items,b,a)},callEach:function(e,b){var d=this.items;for(var c=0,a=d.length;cj+o.left){k=j-l-c;g=true}if((i+e)>d+o.top){i=d-e-c;g=true}if(k=m){i=m-e-5}}n=[k,i];this.storeXY(n);a.setXY.call(this,n);this.sync()}}return this},isVisible:function(){return this.visible},showAction:function(){this.visible=true;if(this.useDisplay===true){this.setDisplayed("")}else{if(this.lastXY){a.setXY.call(this,this.lastXY)}else{if(this.lastLT){a.setLeftTop.call(this,this.lastLT[0],this.lastLT[1])}}}},hideAction:function(){this.visible=false;if(this.useDisplay===true){this.setDisplayed(false)}else{this.setLeftTop(-10000,-10000)}},setVisible:function(i,h,k,l,j){if(i){this.showAction()}if(h&&i){var g=function(){this.sync(true);if(l){l()}}.createDelegate(this);a.setVisible.call(this,true,true,k,g,j)}else{if(!i){this.hideUnders(true)}var g=l;if(h){g=function(){this.hideAction();if(l){l()}}.createDelegate(this)}a.setVisible.call(this,i,h,k,g,j);if(i){this.sync(true)}else{if(!h){this.hideAction()}}}return this},storeXY:function(c){delete this.lastLT;this.lastXY=c},storeLeftTop:function(d,c){delete this.lastXY;this.lastLT=[d,c]},beforeFx:function(){this.beforeAction();return Ext.Layer.superclass.beforeFx.apply(this,arguments)},afterFx:function(){Ext.Layer.superclass.afterFx.apply(this,arguments);this.sync(this.isVisible())},beforeAction:function(){if(!this.updating&&this.shadow){this.shadow.hide()}},setLeft:function(c){this.storeLeftTop(c,this.getTop(true));a.setLeft.apply(this,arguments);this.sync();return this},setTop:function(c){this.storeLeftTop(this.getLeft(true),c);a.setTop.apply(this,arguments);this.sync();return this},setLeftTop:function(d,c){this.storeLeftTop(d,c);a.setLeftTop.apply(this,arguments);this.sync();return this},setXY:function(j,h,k,l,i){this.fixDisplay();this.beforeAction();this.storeXY(j);var g=this.createCB(l);a.setXY.call(this,j,h,k,g,i);if(!h){g()}return this},createCB:function(e){var d=this;return function(){d.constrainXY();d.sync(true);if(e){e()}}},setX:function(g,h,j,k,i){this.setXY([g,this.getY()],h,j,k,i);return this},setY:function(k,g,i,j,h){this.setXY([this.getX(),k],g,i,j,h);return this},setSize:function(j,k,i,m,n,l){this.beforeAction();var g=this.createCB(n);a.setSize.call(this,j,k,i,m,g,l);if(!i){g()}return this},setWidth:function(i,h,k,l,j){this.beforeAction();var g=this.createCB(l);a.setWidth.call(this,i,h,k,g,j);if(!h){g()}return this},setHeight:function(j,i,l,m,k){this.beforeAction();var g=this.createCB(m);a.setHeight.call(this,j,i,l,g,k);if(!i){g()}return this},setBounds:function(o,m,p,i,n,k,l,j){this.beforeAction();var g=this.createCB(l);if(!n){this.storeXY([o,m]);a.setXY.call(this,[o,m]);a.setSize.call(this,p,i,n,k,g,j);g()}else{a.setBounds.call(this,o,m,p,i,n,k,g,j)}return this},setZIndex:function(c){this.zindex=c;this.setStyle("z-index",c+2);if(this.shadow){this.shadow.setZIndex(c+1)}if(this.shim){this.shim.setStyle("z-index",c)}return this}})})();Ext.Shadow=function(d){Ext.apply(this,d);if(typeof this.mode!="string"){this.mode=this.defaultMode}var e=this.offset,c={h:0};var b=Math.floor(this.offset/2);switch(this.mode.toLowerCase()){case"drop":c.w=0;c.l=c.t=e;c.t-=1;if(Ext.isIE){c.l-=this.offset+b;c.t-=this.offset+b;c.w-=b;c.h-=b;c.t+=1}break;case"sides":c.w=(e*2);c.l=-e;c.t=e-1;if(Ext.isIE){c.l-=(this.offset-b);c.t-=this.offset+b;c.l+=1;c.w-=(this.offset-b)*2;c.w-=b+1;c.h-=1}break;case"frame":c.w=c.h=(e*2);c.l=c.t=-e;c.t+=1;c.h-=2;if(Ext.isIE){c.l-=(this.offset-b);c.t-=(this.offset-b);c.l+=1;c.w-=(this.offset+b+1);c.h-=(this.offset+b);c.h+=1}break}this.adjusts=c};Ext.Shadow.prototype={offset:4,defaultMode:"drop",show:function(a){a=Ext.get(a);if(!this.el){this.el=Ext.Shadow.Pool.pull();if(this.el.dom.nextSibling!=a.dom){this.el.insertBefore(a)}}this.el.setStyle("z-index",this.zIndex||parseInt(a.getStyle("z-index"),10)-1);if(Ext.isIE){this.el.dom.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity=50) progid:DXImageTransform.Microsoft.Blur(pixelradius="+(this.offset)+")"}this.realign(a.getLeft(true),a.getTop(true),a.getWidth(),a.getHeight());this.el.dom.style.display="block"},isVisible:function(){return this.el?true:false},realign:function(b,r,q,g){if(!this.el){return}var n=this.adjusts,k=this.el.dom,u=k.style;var i=0;u.left=(b+n.l)+"px";u.top=(r+n.t)+"px";var p=(q+n.w),e=(g+n.h),j=p+"px",o=e+"px";if(u.width!=j||u.height!=o){u.width=j;u.height=o;if(!Ext.isIE){var m=k.childNodes;var c=Math.max(0,(p-12))+"px";m[0].childNodes[1].style.width=c;m[1].childNodes[1].style.width=c;m[2].childNodes[1].style.width=c;m[1].style.height=Math.max(0,(e-12))+"px"}}},hide:function(){if(this.el){this.el.dom.style.display="none";Ext.Shadow.Pool.push(this.el);delete this.el}},setZIndex:function(a){this.zIndex=a;if(this.el){this.el.setStyle("z-index",a)}}};Ext.Shadow.Pool=function(){var b=[];var a=Ext.isIE?'
    ':'
    ';return{pull:function(){var c=b.shift();if(!c){c=Ext.get(Ext.DomHelper.insertHtml("beforeBegin",document.body.firstChild,a));c.autoBoxAdjust=false}return c},push:function(c){b.push(c)}}}();Ext.BoxComponent=Ext.extend(Ext.Component,{initComponent:function(){Ext.BoxComponent.superclass.initComponent.call(this);this.addEvents("resize","move")},boxReady:false,deferHeight:false,setSize:function(b,d){if(typeof b=="object"){d=b.height;b=b.width}if(Ext.isDefined(b)&&Ext.isDefined(this.boxMinWidth)&&(bthis.boxMaxWidth)){b=this.boxMaxWidth}if(Ext.isDefined(d)&&Ext.isDefined(this.boxMaxHeight)&&(d>this.boxMaxHeight)){d=this.boxMaxHeight}if(!this.boxReady){this.width=b;this.height=d;return this}if(this.cacheSizes!==false&&this.lastSize&&this.lastSize.width==b&&this.lastSize.height==d){return this}this.lastSize={width:b,height:d};var c=this.adjustSize(b,d),g=c.width,a=c.height,e;if(g!==undefined||a!==undefined){e=this.getResizeEl();if(!this.deferHeight&&g!==undefined&&a!==undefined){e.setSize(g,a)}else{if(!this.deferHeight&&a!==undefined){e.setHeight(a)}else{if(g!==undefined){e.setWidth(g)}}}this.onResize(g,a,b,d);this.fireEvent("resize",this,g,a,b,d)}return this},setWidth:function(a){return this.setSize(a)},setHeight:function(a){return this.setSize(undefined,a)},getSize:function(){return this.getResizeEl().getSize()},getWidth:function(){return this.getResizeEl().getWidth()},getHeight:function(){return this.getResizeEl().getHeight()},getOuterSize:function(){var a=this.getResizeEl();return{width:a.getWidth()+a.getMargins("lr"),height:a.getHeight()+a.getMargins("tb")}},getPosition:function(a){var b=this.getPositionEl();if(a===true){return[b.getLeft(true),b.getTop(true)]}return this.xy||b.getXY()},getBox:function(a){var c=this.getPosition(a);var b=this.getSize();b.x=c[0];b.y=c[1];return b},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},getResizeEl:function(){return this.resizeEl||this.el},setAutoScroll:function(a){if(this.rendered){this.getContentTarget().setOverflow(a?"auto":"")}this.autoScroll=a;return this},setPosition:function(a,g){if(a&&typeof a[1]=="number"){g=a[1];a=a[0]}this.x=a;this.y=g;if(!this.boxReady){return this}var b=this.adjustPosition(a,g);var e=b.x,d=b.y;var c=this.getPositionEl();if(e!==undefined||d!==undefined){if(e!==undefined&&d!==undefined){c.setLeftTop(e,d)}else{if(e!==undefined){c.setLeft(e)}else{if(d!==undefined){c.setTop(d)}}}this.onPosition(e,d);this.fireEvent("move",this,e,d)}return this},setPagePosition:function(a,c){if(a&&typeof a[1]=="number"){c=a[1];a=a[0]}this.pageX=a;this.pageY=c;if(!this.boxReady){return}if(a===undefined||c===undefined){return}var b=this.getPositionEl().translatePoints(a,c);this.setPosition(b.left,b.top);return this},afterRender:function(){Ext.BoxComponent.superclass.afterRender.call(this);if(this.resizeEl){this.resizeEl=Ext.get(this.resizeEl)}if(this.positionEl){this.positionEl=Ext.get(this.positionEl)}this.boxReady=true;Ext.isDefined(this.autoScroll)&&this.setAutoScroll(this.autoScroll);this.setSize(this.width,this.height);if(this.x||this.y){this.setPosition(this.x,this.y)}else{if(this.pageX||this.pageY){this.setPagePosition(this.pageX,this.pageY)}}},syncSize:function(){delete this.lastSize;this.setSize(this.autoWidth?undefined:this.getResizeEl().getWidth(),this.autoHeight?undefined:this.getResizeEl().getHeight());return this},onResize:function(d,b,a,c){},onPosition:function(a,b){},adjustSize:function(a,b){if(this.autoWidth){a="auto"}if(this.autoHeight){b="auto"}return{width:a,height:b}},adjustPosition:function(a,b){return{x:a,y:b}}});Ext.reg("box",Ext.BoxComponent);Ext.Spacer=Ext.extend(Ext.BoxComponent,{autoEl:"div"});Ext.reg("spacer",Ext.Spacer);Ext.SplitBar=function(c,e,b,d,a){this.el=Ext.get(c,true);this.el.dom.unselectable="on";this.resizingEl=Ext.get(e,true);this.orientation=b||Ext.SplitBar.HORIZONTAL;this.minSize=0;this.maxSize=2000;this.animate=false;this.useShim=false;this.shim=null;if(!a){this.proxy=Ext.SplitBar.createProxy(this.orientation)}else{this.proxy=Ext.get(a).dom}this.dd=new Ext.dd.DDProxy(this.el.dom.id,"XSplitBars",{dragElId:this.proxy.id});this.dd.b4StartDrag=this.onStartProxyDrag.createDelegate(this);this.dd.endDrag=this.onEndProxyDrag.createDelegate(this);this.dragSpecs={};this.adapter=new Ext.SplitBar.BasicLayoutAdapter();this.adapter.init(this);if(this.orientation==Ext.SplitBar.HORIZONTAL){this.placement=d||(this.el.getX()>this.resizingEl.getX()?Ext.SplitBar.LEFT:Ext.SplitBar.RIGHT);this.el.addClass("x-splitbar-h")}else{this.placement=d||(this.el.getY()>this.resizingEl.getY()?Ext.SplitBar.TOP:Ext.SplitBar.BOTTOM);this.el.addClass("x-splitbar-v")}this.addEvents("resize","moved","beforeresize","beforeapply");Ext.SplitBar.superclass.constructor.call(this)};Ext.extend(Ext.SplitBar,Ext.util.Observable,{onStartProxyDrag:function(a,e){this.fireEvent("beforeresize",this);this.overlay=Ext.DomHelper.append(document.body,{cls:"x-drag-overlay",html:" "},true);this.overlay.unselectable();this.overlay.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true));this.overlay.show();Ext.get(this.proxy).setDisplayed("block");var c=this.adapter.getElementSize(this);this.activeMinSize=this.getMinimumSize();this.activeMaxSize=this.getMaximumSize();var d=c-this.activeMinSize;var b=Math.max(this.activeMaxSize-c,0);if(this.orientation==Ext.SplitBar.HORIZONTAL){this.dd.resetConstraints();this.dd.setXConstraint(this.placement==Ext.SplitBar.LEFT?d:b,this.placement==Ext.SplitBar.LEFT?b:d,this.tickSize);this.dd.setYConstraint(0,0)}else{this.dd.resetConstraints();this.dd.setXConstraint(0,0);this.dd.setYConstraint(this.placement==Ext.SplitBar.TOP?d:b,this.placement==Ext.SplitBar.TOP?b:d,this.tickSize)}this.dragSpecs.startSize=c;this.dragSpecs.startPoint=[a,e];Ext.dd.DDProxy.prototype.b4StartDrag.call(this.dd,a,e)},onEndProxyDrag:function(c){Ext.get(this.proxy).setDisplayed(false);var b=Ext.lib.Event.getXY(c);if(this.overlay){Ext.destroy(this.overlay);delete this.overlay}var a;if(this.orientation==Ext.SplitBar.HORIZONTAL){a=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.LEFT?b[0]-this.dragSpecs.startPoint[0]:this.dragSpecs.startPoint[0]-b[0])}else{a=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.TOP?b[1]-this.dragSpecs.startPoint[1]:this.dragSpecs.startPoint[1]-b[1])}a=Math.min(Math.max(a,this.activeMinSize),this.activeMaxSize);if(a!=this.dragSpecs.startSize){if(this.fireEvent("beforeapply",this,a)!==false){this.adapter.setElementSize(this,a);this.fireEvent("moved",this,a);this.fireEvent("resize",this,a)}}},getAdapter:function(){return this.adapter},setAdapter:function(a){this.adapter=a;this.adapter.init(this)},getMinimumSize:function(){return this.minSize},setMinimumSize:function(a){this.minSize=a},getMaximumSize:function(){return this.maxSize},setMaximumSize:function(a){this.maxSize=a},setCurrentSize:function(b){var a=this.animate;this.animate=false;this.adapter.setElementSize(this,b);this.animate=a},destroy:function(a){Ext.destroy(this.shim,Ext.get(this.proxy));this.dd.unreg();if(a){this.el.remove()}this.purgeListeners()}});Ext.SplitBar.createProxy=function(b){var c=new Ext.Element(document.createElement("div"));document.body.appendChild(c.dom);c.unselectable();var a="x-splitbar-proxy";c.addClass(a+" "+(b==Ext.SplitBar.HORIZONTAL?a+"-h":a+"-v"));return c.dom};Ext.SplitBar.BasicLayoutAdapter=function(){};Ext.SplitBar.BasicLayoutAdapter.prototype={init:function(a){},getElementSize:function(a){if(a.orientation==Ext.SplitBar.HORIZONTAL){return a.resizingEl.getWidth()}else{return a.resizingEl.getHeight()}},setElementSize:function(b,a,c){if(b.orientation==Ext.SplitBar.HORIZONTAL){if(!b.animate){b.resizingEl.setWidth(a);if(c){c(b,a)}}else{b.resizingEl.setWidth(a,true,0.1,c,"easeOut")}}else{if(!b.animate){b.resizingEl.setHeight(a);if(c){c(b,a)}}else{b.resizingEl.setHeight(a,true,0.1,c,"easeOut")}}}};Ext.SplitBar.AbsoluteLayoutAdapter=function(a){this.basic=new Ext.SplitBar.BasicLayoutAdapter();this.container=Ext.get(a)};Ext.SplitBar.AbsoluteLayoutAdapter.prototype={init:function(a){this.basic.init(a)},getElementSize:function(a){return this.basic.getElementSize(a)},setElementSize:function(b,a,c){this.basic.setElementSize(b,a,this.moveSplitter.createDelegate(this,[b]))},moveSplitter:function(a){var b=Ext.SplitBar;switch(a.placement){case b.LEFT:a.el.setX(a.resizingEl.getRight());break;case b.RIGHT:a.el.setStyle("right",(this.container.getWidth()-a.resizingEl.getLeft())+"px");break;case b.TOP:a.el.setY(a.resizingEl.getBottom());break;case b.BOTTOM:a.el.setY(a.resizingEl.getTop()-a.el.getHeight());break}}};Ext.SplitBar.VERTICAL=1;Ext.SplitBar.HORIZONTAL=2;Ext.SplitBar.LEFT=1;Ext.SplitBar.RIGHT=2;Ext.SplitBar.TOP=3;Ext.SplitBar.BOTTOM=4;Ext.Container=Ext.extend(Ext.BoxComponent,{bufferResize:50,autoDestroy:true,forceLayout:false,defaultType:"panel",resizeEvent:"resize",bubbleEvents:["add","remove"],initComponent:function(){Ext.Container.superclass.initComponent.call(this);this.addEvents("afterlayout","beforeadd","beforeremove","add","remove");var a=this.items;if(a){delete this.items;this.add(a)}},initItems:function(){if(!this.items){this.items=new Ext.util.MixedCollection(false,this.getComponentId);this.getLayout()}},setLayout:function(a){if(this.layout&&this.layout!=a){this.layout.setContainer(null)}this.layout=a;this.initItems();a.setContainer(this)},afterRender:function(){Ext.Container.superclass.afterRender.call(this);if(!this.layout){this.layout="auto"}if(Ext.isObject(this.layout)&&!this.layout.layout){this.layoutConfig=this.layout;this.layout=this.layoutConfig.type}if(Ext.isString(this.layout)){this.layout=new Ext.Container.LAYOUTS[this.layout.toLowerCase()](this.layoutConfig)}this.setLayout(this.layout);if(this.activeItem!==undefined){var a=this.activeItem;delete this.activeItem;this.layout.setActiveItem(a)}if(!this.ownerCt){this.doLayout(false,true)}if(this.monitorResize===true){Ext.EventManager.onWindowResize(this.doLayout,this,[false])}},getLayoutTarget:function(){return this.el},getComponentId:function(a){return a.getItemId()},add:function(b){this.initItems();var e=arguments.length>1;if(e||Ext.isArray(b)){var a=[];Ext.each(e?arguments:b,function(h){a.push(this.add(h))},this);return a}var g=this.lookupComponent(this.applyDefaults(b));var d=this.items.length;if(this.fireEvent("beforeadd",this,g,d)!==false&&this.onBeforeAdd(g)!==false){this.items.add(g);g.onAdded(this,d);this.onAdd(g);this.fireEvent("add",this,g,d)}return g},onAdd:function(a){},onAdded:function(a,b){this.ownerCt=a;this.initRef();this.cascade(function(d){d.initRef()});this.fireEvent("added",this,a,b)},insert:function(h,g){this.initItems();var e=arguments,d=e.length;if(d>2){var b=[];for(var j=d-1;j>=1;--j){b.push(this.insert(h,e[j]))}return b}var k=this.lookupComponent(this.applyDefaults(g));h=Math.min(h,this.items.length);if(this.fireEvent("beforeadd",this,k,h)!==false&&this.onBeforeAdd(k)!==false){if(k.ownerCt==this){this.items.remove(k)}this.items.insert(h,k);k.onAdded(this,h);this.onAdd(k);this.fireEvent("add",this,k,h)}return k},applyDefaults:function(b){var a=this.defaults;if(a){if(Ext.isFunction(a)){a=a.call(this,b)}if(Ext.isString(b)){b=Ext.ComponentMgr.get(b);Ext.apply(b,a)}else{if(!b.events){Ext.applyIf(b,a)}else{Ext.apply(b,a)}}}return b},onBeforeAdd:function(a){if(a.ownerCt){a.ownerCt.remove(a,false)}if(this.hideBorders===true){a.border=(a.border===true)}},remove:function(a,b){this.initItems();var d=this.getComponent(a);if(d&&this.fireEvent("beforeremove",this,d)!==false){this.doRemove(d,b);this.fireEvent("remove",this,d)}return d},onRemove:function(a){},doRemove:function(e,d){var b=this.layout,a=b&&this.rendered;if(a){b.onRemove(e)}this.items.remove(e);e.onRemoved();this.onRemove(e);if(d===true||(d!==false&&this.autoDestroy)){e.destroy()}if(a){b.afterRemove(e)}},removeAll:function(c){this.initItems();var e,g=[],b=[];this.items.each(function(h){g.push(h)});for(var d=0,a=g.length;d','','
    ','
    ',"
    ");a.disableFormats=true;return a.compile()})(),destroy:function(){if(this.resizeTask&&this.resizeTask.cancel){this.resizeTask.cancel()}if(!Ext.isEmpty(this.targetCls)){var a=this.container.getLayoutTarget();if(a){a.removeClass(this.targetCls)}}}});Ext.layout.AutoLayout=Ext.extend(Ext.layout.ContainerLayout,{type:"auto",monitorResize:true,onLayout:function(d,g){Ext.layout.AutoLayout.superclass.onLayout.call(this,d,g);var e=this.getRenderedItems(d),a=e.length,b,h;for(b=0;b0){b.setSize(a)}}});Ext.Container.LAYOUTS.fit=Ext.layout.FitLayout;Ext.layout.CardLayout=Ext.extend(Ext.layout.FitLayout,{deferredRender:false,layoutOnCardChange:false,renderHidden:true,type:"card",setActiveItem:function(d){var a=this.activeItem,b=this.container;d=b.getComponent(d);if(d&&a!=d){if(a){a.hide();if(a.hidden!==true){return false}a.fireEvent("deactivate",a)}var c=d.doLayout&&(this.layoutOnCardChange||!d.rendered);this.activeItem=d;delete d.deferLayout;d.show();this.layout();if(c){d.doLayout()}d.fireEvent("activate",d)}},renderAll:function(a,b){if(this.deferredRender){this.renderItem(this.activeItem,undefined,b)}else{Ext.layout.CardLayout.superclass.renderAll.call(this,a,b)}}});Ext.Container.LAYOUTS.card=Ext.layout.CardLayout;Ext.layout.AnchorLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"anchor",defaultAnchor:"100%",parseAnchorRE:/^(r|right|b|bottom)$/i,getLayoutTargetSize:function(){var a=this.container.getLayoutTarget();if(!a){return{}}return a.getStyleSize()},onLayout:function(m,p){Ext.layout.AnchorLayout.superclass.onLayout.call(this,m,p);var v=this.getLayoutTargetSize();var t=v.width,l=v.height;if(t<20&&l<20){return}var d,r;if(m.anchorSize){if(typeof m.anchorSize=="number"){d=m.anchorSize}else{d=m.anchorSize.width;r=m.anchorSize.height}}else{d=m.initialConfig.width;r=m.initialConfig.height}var o=this.getRenderedItems(m),n=o.length,j,q,s,g,b,e,u,k=[];for(j=0;j 
    ');b.disableFormats=true;b.compile();Ext.layout.BorderLayout.Region.prototype.toolTemplate=b}this.collapsedEl=this.targetEl.createChild({cls:"x-layout-collapsed x-layout-collapsed-"+this.position,id:this.panel.id+"-xcollapsed"});this.collapsedEl.enableDisplayMode("block");if(this.collapseMode=="mini"){this.collapsedEl.addClass("x-layout-cmini-"+this.position);this.miniCollapsedEl=this.collapsedEl.createChild({cls:"x-layout-mini x-layout-mini-"+this.position,html:" "});this.miniCollapsedEl.addClassOnOver("x-layout-mini-over");this.collapsedEl.addClassOnOver("x-layout-collapsed-over");this.collapsedEl.on("click",this.onExpandClick,this,{stopEvent:true})}else{if(this.collapsible!==false&&!this.hideCollapseTool){var a=this.toolTemplate.append(this.collapsedEl.dom,{id:"expand-"+this.position},true);a.addClassOnOver("x-tool-expand-"+this.position+"-over");a.on("click",this.onExpandClick,this,{stopEvent:true})}if(this.floatable!==false||this.titleCollapse){this.collapsedEl.addClassOnOver("x-layout-collapsed-over");this.collapsedEl.on("click",this[this.floatable?"collapseClick":"onExpandClick"],this)}}}return this.collapsedEl},onExpandClick:function(a){if(this.isSlid){this.panel.expand(false)}else{this.panel.expand()}},onCollapseClick:function(a){this.panel.collapse()},beforeCollapse:function(c,a){this.lastAnim=a;if(this.splitEl){this.splitEl.hide()}this.getCollapsedEl().show();var b=this.panel.getEl();this.originalZIndex=b.getStyle("z-index");b.setStyle("z-index",100);this.isCollapsed=true;this.layout.layout()},onCollapse:function(a){this.panel.el.setStyle("z-index",1);if(this.lastAnim===false||this.panel.animCollapse===false){this.getCollapsedEl().dom.style.visibility="visible"}else{this.getCollapsedEl().slideIn(this.panel.slideAnchor,{duration:0.2})}this.state.collapsed=true;this.panel.saveState()},beforeExpand:function(a){if(this.isSlid){this.afterSlideIn()}var b=this.getCollapsedEl();this.el.show();if(this.position=="east"||this.position=="west"){this.panel.setSize(undefined,b.getHeight())}else{this.panel.setSize(b.getWidth(),undefined)}b.hide();b.dom.style.visibility="hidden";this.panel.el.setStyle("z-index",this.floatingZIndex)},onExpand:function(){this.isCollapsed=false;if(this.splitEl){this.splitEl.show()}this.layout.layout();this.panel.el.setStyle("z-index",this.originalZIndex);this.state.collapsed=false;this.panel.saveState()},collapseClick:function(a){if(this.isSlid){a.stopPropagation();this.slideIn()}else{a.stopPropagation();this.slideOut()}},onHide:function(){if(this.isCollapsed){this.getCollapsedEl().hide()}else{if(this.splitEl){this.splitEl.hide()}}},onShow:function(){if(this.isCollapsed){this.getCollapsedEl().show()}else{if(this.splitEl){this.splitEl.show()}}},isVisible:function(){return !this.panel.hidden},getMargins:function(){return this.isCollapsed&&this.cmargins?this.cmargins:this.margins},getSize:function(){return this.isCollapsed?this.getCollapsedEl().getSize():this.panel.getSize()},setPanel:function(a){this.panel=a},getMinWidth:function(){return this.minWidth},getMinHeight:function(){return this.minHeight},applyLayoutCollapsed:function(a){var b=this.getCollapsedEl();b.setLeftTop(a.x,a.y);b.setSize(a.width,a.height)},applyLayout:function(a){if(this.isCollapsed){this.applyLayoutCollapsed(a)}else{this.panel.setPosition(a.x,a.y);this.panel.setSize(a.width,a.height)}},beforeSlide:function(){this.panel.beforeEffect()},afterSlide:function(){this.panel.afterEffect()},initAutoHide:function(){if(this.autoHide!==false){if(!this.autoHideHd){this.autoHideSlideTask=new Ext.util.DelayedTask(this.slideIn,this);this.autoHideHd={mouseout:function(a){if(!a.within(this.el,true)){this.autoHideSlideTask.delay(500)}},mouseover:function(a){this.autoHideSlideTask.cancel()},scope:this}}this.el.on(this.autoHideHd);this.collapsedEl.on(this.autoHideHd)}},clearAutoHide:function(){if(this.autoHide!==false){this.el.un("mouseout",this.autoHideHd.mouseout);this.el.un("mouseover",this.autoHideHd.mouseover);this.collapsedEl.un("mouseout",this.autoHideHd.mouseout);this.collapsedEl.un("mouseover",this.autoHideHd.mouseover)}},clearMonitor:function(){Ext.getDoc().un("click",this.slideInIf,this)},slideOut:function(){if(this.isSlid||this.el.hasActiveFx()){return}this.isSlid=true;var b=this.panel.tools,c,a;if(b&&b.toggle){b.toggle.hide()}this.el.show();a=this.panel.collapsed;this.panel.collapsed=false;if(this.position=="east"||this.position=="west"){c=this.panel.deferHeight;this.panel.deferHeight=false;this.panel.setSize(undefined,this.collapsedEl.getHeight());this.panel.deferHeight=c}else{this.panel.setSize(this.collapsedEl.getWidth(),undefined)}this.panel.collapsed=a;this.restoreLT=[this.el.dom.style.left,this.el.dom.style.top];this.el.alignTo(this.collapsedEl,this.getCollapseAnchor());this.el.setStyle("z-index",this.floatingZIndex+2);this.panel.el.replaceClass("x-panel-collapsed","x-panel-floating");if(this.animFloat!==false){this.beforeSlide();this.el.slideIn(this.getSlideAnchor(),{callback:function(){this.afterSlide();this.initAutoHide();Ext.getDoc().on("click",this.slideInIf,this)},scope:this,block:true})}else{this.initAutoHide();Ext.getDoc().on("click",this.slideInIf,this)}},afterSlideIn:function(){this.clearAutoHide();this.isSlid=false;this.clearMonitor();this.el.setStyle("z-index","");this.panel.el.replaceClass("x-panel-floating","x-panel-collapsed");this.el.dom.style.left=this.restoreLT[0];this.el.dom.style.top=this.restoreLT[1];var a=this.panel.tools;if(a&&a.toggle){a.toggle.show()}},slideIn:function(a){if(!this.isSlid||this.el.hasActiveFx()){Ext.callback(a);return}this.isSlid=false;if(this.animFloat!==false){this.beforeSlide();this.el.slideOut(this.getSlideAnchor(),{callback:function(){this.el.hide();this.afterSlide();this.afterSlideIn();Ext.callback(a)},scope:this,block:true})}else{this.el.hide();this.afterSlideIn()}},slideInIf:function(a){if(!a.within(this.el)){this.slideIn()}},anchors:{west:"left",east:"right",north:"top",south:"bottom"},sanchors:{west:"l",east:"r",north:"t",south:"b"},canchors:{west:"tl-tr",east:"tr-tl",north:"tl-bl",south:"bl-tl"},getAnchor:function(){return this.anchors[this.position]},getCollapseAnchor:function(){return this.canchors[this.position]},getSlideAnchor:function(){return this.sanchors[this.position]},getAlignAdj:function(){var a=this.cmargins;switch(this.position){case"west":return[0,0];break;case"east":return[0,0];break;case"north":return[0,0];break;case"south":return[0,0];break}},getExpandAdj:function(){var b=this.collapsedEl,a=this.cmargins;switch(this.position){case"west":return[-(a.right+b.getWidth()+a.left),0];break;case"east":return[a.right+b.getWidth()+a.left,0];break;case"north":return[0,-(a.top+a.bottom+b.getHeight())];break;case"south":return[0,a.top+a.bottom+b.getHeight()];break}},destroy:function(){if(this.autoHideSlideTask&&this.autoHideSlideTask.cancel){this.autoHideSlideTask.cancel()}Ext.destroy(this.miniCollapsedEl,this.collapsedEl)}};Ext.layout.BorderLayout.SplitRegion=function(b,a,c){Ext.layout.BorderLayout.SplitRegion.superclass.constructor.call(this,b,a,c);this.applyLayout=this.applyFns[c]};Ext.extend(Ext.layout.BorderLayout.SplitRegion,Ext.layout.BorderLayout.Region,{splitTip:"Drag to resize.",collapsibleSplitTip:"Drag to resize. Double click to hide.",useSplitTips:false,splitSettings:{north:{orientation:Ext.SplitBar.VERTICAL,placement:Ext.SplitBar.TOP,maxFn:"getVMaxSize",minProp:"minHeight",maxProp:"maxHeight"},south:{orientation:Ext.SplitBar.VERTICAL,placement:Ext.SplitBar.BOTTOM,maxFn:"getVMaxSize",minProp:"minHeight",maxProp:"maxHeight"},east:{orientation:Ext.SplitBar.HORIZONTAL,placement:Ext.SplitBar.RIGHT,maxFn:"getHMaxSize",minProp:"minWidth",maxProp:"maxWidth"},west:{orientation:Ext.SplitBar.HORIZONTAL,placement:Ext.SplitBar.LEFT,maxFn:"getHMaxSize",minProp:"minWidth",maxProp:"maxWidth"}},applyFns:{west:function(c){if(this.isCollapsed){return this.applyLayoutCollapsed(c)}var d=this.splitEl.dom,b=d.style;this.panel.setPosition(c.x,c.y);var a=d.offsetWidth;b.left=(c.x+c.width-a)+"px";b.top=(c.y)+"px";b.height=Math.max(0,c.height)+"px";this.panel.setSize(c.width-a,c.height)},east:function(c){if(this.isCollapsed){return this.applyLayoutCollapsed(c)}var d=this.splitEl.dom,b=d.style;var a=d.offsetWidth;this.panel.setPosition(c.x+a,c.y);b.left=(c.x)+"px";b.top=(c.y)+"px";b.height=Math.max(0,c.height)+"px";this.panel.setSize(c.width-a,c.height)},north:function(c){if(this.isCollapsed){return this.applyLayoutCollapsed(c)}var d=this.splitEl.dom,b=d.style;var a=d.offsetHeight;this.panel.setPosition(c.x,c.y);b.left=(c.x)+"px";b.top=(c.y+c.height-a)+"px";b.width=Math.max(0,c.width)+"px";this.panel.setSize(c.width,c.height-a)},south:function(c){if(this.isCollapsed){return this.applyLayoutCollapsed(c)}var d=this.splitEl.dom,b=d.style;var a=d.offsetHeight;this.panel.setPosition(c.x,c.y+a);b.left=(c.x)+"px";b.top=(c.y)+"px";b.width=Math.max(0,c.width)+"px";this.panel.setSize(c.width,c.height-a)}},render:function(a,c){Ext.layout.BorderLayout.SplitRegion.superclass.render.call(this,a,c);var d=this.position;this.splitEl=a.createChild({cls:"x-layout-split x-layout-split-"+d,html:" ",id:this.panel.id+"-xsplit"});if(this.collapseMode=="mini"){this.miniSplitEl=this.splitEl.createChild({cls:"x-layout-mini x-layout-mini-"+d,html:" "});this.miniSplitEl.addClassOnOver("x-layout-mini-over");this.miniSplitEl.on("click",this.onCollapseClick,this,{stopEvent:true})}var b=this.splitSettings[d];this.split=new Ext.SplitBar(this.splitEl.dom,c.el,b.orientation);this.split.tickSize=this.tickSize;this.split.placement=b.placement;this.split.getMaximumSize=this[b.maxFn].createDelegate(this);this.split.minSize=this.minSize||this[b.minProp];this.split.on("beforeapply",this.onSplitMove,this);this.split.useShim=this.useShim===true;this.maxSize=this.maxSize||this[b.maxProp];if(c.hidden){this.splitEl.hide()}if(this.useSplitTips){this.splitEl.dom.title=this.collapsible?this.collapsibleSplitTip:this.splitTip}if(this.collapsible){this.splitEl.on("dblclick",this.onCollapseClick,this)}},getSize:function(){if(this.isCollapsed){return this.collapsedEl.getSize()}var a=this.panel.getSize();if(this.position=="north"||this.position=="south"){a.height+=this.splitEl.dom.offsetHeight}else{a.width+=this.splitEl.dom.offsetWidth}return a},getHMaxSize:function(){var b=this.maxSize||10000;var a=this.layout.center;return Math.min(b,(this.el.getWidth()+a.el.getWidth())-a.getMinWidth())},getVMaxSize:function(){var b=this.maxSize||10000;var a=this.layout.center;return Math.min(b,(this.el.getHeight()+a.el.getHeight())-a.getMinHeight())},onSplitMove:function(b,a){var c=this.panel.getSize();this.lastSplitSize=a;if(this.position=="north"||this.position=="south"){this.panel.setSize(c.width,a);this.state.height=a}else{this.panel.setSize(a,c.height);this.state.width=a}this.layout.layout();this.panel.saveState();return false},getSplitBar:function(){return this.split},destroy:function(){Ext.destroy(this.miniSplitEl,this.split,this.splitEl);Ext.layout.BorderLayout.SplitRegion.superclass.destroy.call(this)}});Ext.Container.LAYOUTS.border=Ext.layout.BorderLayout;Ext.layout.FormLayout=Ext.extend(Ext.layout.AnchorLayout,{labelSeparator:":",trackLabels:false,type:"form",onRemove:function(d){Ext.layout.FormLayout.superclass.onRemove.call(this,d);if(this.trackLabels){d.un("show",this.onFieldShow,this);d.un("hide",this.onFieldHide,this)}var b=d.getPositionEl(),a=d.getItemCt&&d.getItemCt();if(d.rendered&&a){if(b&&b.dom){b.insertAfter(a)}Ext.destroy(a);Ext.destroyMembers(d,"label","itemCt");if(d.customItemCt){Ext.destroyMembers(d,"getItemCt","customItemCt")}}},setContainer:function(a){Ext.layout.FormLayout.superclass.setContainer.call(this,a);if(a.labelAlign){a.addClass("x-form-label-"+a.labelAlign)}if(a.hideLabels){Ext.apply(this,{labelStyle:"display:none",elementStyle:"padding-left:0;",labelAdjust:0})}else{this.labelSeparator=a.labelSeparator||this.labelSeparator;a.labelWidth=a.labelWidth||100;if(Ext.isNumber(a.labelWidth)){var b=Ext.isNumber(a.labelPad)?a.labelPad:5;Ext.apply(this,{labelAdjust:a.labelWidth+b,labelStyle:"width:"+a.labelWidth+"px;",elementStyle:"padding-left:"+(a.labelWidth+b)+"px"})}if(a.labelAlign=="top"){Ext.apply(this,{labelStyle:"width:auto;",labelAdjust:0,elementStyle:"padding-left:0;"})}}},isHide:function(a){return a.hideLabel||this.container.hideLabels},onFieldShow:function(a){a.getItemCt().removeClass("x-hide-"+a.hideMode);if(a.isComposite){a.doLayout()}},onFieldHide:function(a){a.getItemCt().addClass("x-hide-"+a.hideMode)},getLabelStyle:function(e){var b="",c=[this.labelStyle,e];for(var d=0,a=c.length;d=b)||(this.cells[c]&&this.cells[c][a])){if(b&&a>=b){c++;a=0}else{a++}}return[a,c]},renderItem:function(e,a,d){if(!this.table){this.table=d.createChild(Ext.apply({tag:"table",cls:"x-table-layout",cellspacing:0,cn:{tag:"tbody"}},this.tableAttrs),null,true)}if(e&&!e.rendered){e.render(this.getNextCell(e));this.configureItem(e,a)}else{if(e&&!this.isValidParent(e,d)){var b=this.getNextCell(e);b.insertBefore(e.getPositionEl().dom,null);e.container=Ext.get(b);this.configureItem(e,a)}}},isValidParent:function(b,a){return b.getPositionEl().up("table",5).dom.parentNode===(a.dom||a)}});Ext.Container.LAYOUTS.table=Ext.layout.TableLayout;Ext.layout.AbsoluteLayout=Ext.extend(Ext.layout.AnchorLayout,{extraCls:"x-abs-layout-item",type:"absolute",onLayout:function(a,b){b.position();this.paddingLeft=b.getPadding("l");this.paddingTop=b.getPadding("t");Ext.layout.AbsoluteLayout.superclass.onLayout.call(this,a,b)},adjustWidthAnchor:function(b,a){return b?b-a.getPosition(true)[0]+this.paddingLeft:b},adjustHeightAnchor:function(b,a){return b?b-a.getPosition(true)[1]+this.paddingTop:b}});Ext.Container.LAYOUTS.absolute=Ext.layout.AbsoluteLayout;Ext.layout.BoxLayout=Ext.extend(Ext.layout.ContainerLayout,{defaultMargins:{left:0,top:0,right:0,bottom:0},padding:"0",pack:"start",monitorResize:true,type:"box",scrollOffset:0,extraCls:"x-box-item",targetCls:"x-box-layout-ct",innerCls:"x-box-inner",constructor:function(a){Ext.layout.BoxLayout.superclass.constructor.call(this,a);if(Ext.isString(this.defaultMargins)){this.defaultMargins=this.parseMargins(this.defaultMargins)}},onLayout:function(a,d){Ext.layout.BoxLayout.superclass.onLayout.call(this,a,d);var b=this.getVisibleItems(a),c=this.getLayoutTargetSize();this.layoutTargetLastSize=c;this.childBoxCache=this.calculateChildBoxes(b,c);this.updateInnerCtSize(c,this.childBoxCache);this.updateChildBoxes(this.childBoxCache.boxes);this.handleTargetOverflow(c,a,d)},updateChildBoxes:function(c){for(var b=0,e=c.length;b0){s.left=p+G+(r/2)}}y+=s.height+t.bottom}return{boxes:j,meta:{maxWidth:E}}}});Ext.Container.LAYOUTS.vbox=Ext.layout.VBoxLayout;Ext.layout.HBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"top",type:"hbox",updateInnerCtSize:function(b,d){var a=b.width,c=d.meta.maxHeight+this.padding.top+this.padding.bottom;if(this.align=="stretch"){c=b.height}else{if(this.align=="middle"){c=Math.max(b.height,c)}}this.innerCt.setSize(a||undefined,c||undefined)},calculateChildBoxes:function(z,e){var n=z.length,x=this.padding,C=x.top,r=x.left,s=C+x.bottom,a=r+x.right,B=e.width-this.scrollOffset,y=e.height,h=Math.max(0,y-s),o=this.pack=="start",p=this.pack=="center",q=this.pack=="end",I=0,A=0,D=0,m=[],l,d,g,c,w,F,E,v,H,j,t;for(E=0;E0){v.top=C+j+(u/2)}}r+=v.width+w.right}return{boxes:m,meta:{maxHeight:A}}}});Ext.Container.LAYOUTS.hbox=Ext.layout.HBoxLayout;Ext.layout.ToolbarLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"toolbar",triggerWidth:18,noItemsMenuText:'
    (None)
    ',lastOverflow:false,tableHTML:['',"","",'",'","","","
    ','',"",'',"","
    ","
    ','',"","","","","","","
    ",'',"",'',"","
    ","
    ",'',"",'',"","
    ","
    ","
    "].join(""),onLayout:function(e,j){if(!this.leftTr){var h=e.buttonAlign=="center"?"center":"left";j.addClass("x-toolbar-layout-ct");j.insertHtml("beforeEnd",String.format(this.tableHTML,h));this.leftTr=j.child("tr.x-toolbar-left-row",true);this.rightTr=j.child("tr.x-toolbar-right-row",true);this.extrasTr=j.child("tr.x-toolbar-extras-row",true);if(this.hiddenItem==undefined){this.hiddenItems=[]}}var k=e.buttonAlign=="right"?this.rightTr:this.leftTr,l=e.items.items,d=0;for(var b=0,g=l.length,m;b=0&&(d=e[a]);a--){if(!d.firstChild){b.removeChild(d)}}},insertCell:function(e,b,a){var d=document.createElement("td");d.className="x-toolbar-cell";b.insertBefore(d,b.childNodes[a]||null);return d},hideItem:function(a){this.hiddenItems.push(a);a.xtbHidden=true;a.xtbWidth=a.getPositionEl().dom.parentNode.offsetWidth;a.hide()},unhideItem:function(a){a.show();a.xtbHidden=false;this.hiddenItems.remove(a)},getItemWidth:function(a){return a.hidden?(a.xtbWidth||0):a.getPositionEl().dom.parentNode.offsetWidth},fitToSize:function(k){if(this.container.enableOverflow===false){return}var b=k.dom.clientWidth,j=k.dom.firstChild.offsetWidth,m=b-this.triggerWidth,a=this.lastWidth||0,c=this.hiddenItems,e=c.length!=0,n=b>=a;this.lastWidth=b;if(j>b||(e&&n)){var l=this.container.items.items,h=l.length,d=0,o;for(var g=0;gm){if(!(o.hidden||o.xtbHidden)){this.hideItem(o)}}else{if(o.xtbHidden){this.unhideItem(o)}}}}}e=c.length!=0;if(e){this.initMore();if(!this.lastOverflow){this.container.fireEvent("overflowchange",this.container,true);this.lastOverflow=true}}else{if(this.more){this.clearMenu();this.more.destroy();delete this.more;if(this.lastOverflow){this.container.fireEvent("overflowchange",this.container,false);this.lastOverflow=false}}}},createMenuConfig:function(c,a){var b=Ext.apply({},c.initialConfig),d=c.toggleGroup;Ext.copyTo(b,c,["iconCls","icon","itemId","disabled","handler","scope","menu"]);Ext.apply(b,{text:c.overflowText||c.text,hideOnClick:a});if(d||c.enableToggle){Ext.apply(b,{group:d,checked:c.pressed,listeners:{checkchange:function(g,e){c.toggle(e)}}})}delete b.ownerCt;delete b.xtype;delete b.id;return b},addComponentToMenu:function(b,a){if(a instanceof Ext.Toolbar.Separator){b.add("-")}else{if(Ext.isFunction(a.isXType)){if(a.isXType("splitbutton")){b.add(this.createMenuConfig(a,true))}else{if(a.isXType("button")){b.add(this.createMenuConfig(a,!a.menu))}else{if(a.isXType("buttongroup")){a.items.each(function(c){this.addComponentToMenu(b,c)},this)}}}}}},clearMenu:function(){var a=this.moreMenu;if(a&&a.items){a.items.each(function(b){delete b.menu})}},beforeMoreShow:function(h){var b=this.container.items.items,a=b.length,g,e;var c=function(j,i){return j.isXType("buttongroup")&&!(i instanceof Ext.Toolbar.Separator)};this.clearMenu();h.removeAll();for(var d=0;d','','',"","")}if(g&&!g.rendered){if(Ext.isNumber(b)){b=e.dom.childNodes[b]}var d=this.getItemArgs(g);g.render(g.positionEl=b?this.itemTpl.insertBefore(b,d,true):this.itemTpl.append(e,d,true));g.positionEl.menuItemId=g.getItemId();if(!d.isMenuItem&&d.needsIcon){g.positionEl.addClass("x-menu-list-item-indent")}this.configureItem(g,b)}else{if(g&&!this.isValidParent(g,e)){if(Ext.isNumber(b)){b=e.dom.childNodes[b]}e.dom.insertBefore(g.getActionEl().dom,b||null)}}},getItemArgs:function(b){var a=b instanceof Ext.menu.Item;return{isMenuItem:a,needsIcon:!a&&(b.icon||b.iconCls),icon:b.icon||Ext.BLANK_IMAGE_URL,iconCls:"x-menu-item-icon "+(b.iconCls||""),itemId:"x-menu-el-"+b.id,itemCls:"x-menu-list-item "}},isValidParent:function(b,a){return b.el.up("li.x-menu-list-item",5).dom.parentNode===(a.dom||a)},onLayout:function(a,b){Ext.layout.MenuLayout.superclass.onLayout.call(this,a,b);this.doAutoSize()},doAutoSize:function(){var c=this.container,a=c.width;if(c.floating){if(a){c.setWidth(a)}else{if(Ext.isIE){c.setWidth(Ext.isStrict&&(Ext.isIE7||Ext.isIE8)?"auto":c.minWidth);var d=c.getEl(),b=d.dom.offsetWidth;c.setWidth(c.getLayoutTarget().getWidth()+d.getFrameWidth("lr"))}}}}});Ext.Container.LAYOUTS.menu=Ext.layout.MenuLayout;Ext.Viewport=Ext.extend(Ext.Container,{initComponent:function(){Ext.Viewport.superclass.initComponent.call(this);document.getElementsByTagName("html")[0].className+=" x-viewport";this.el=Ext.getBody();this.el.setHeight=Ext.emptyFn;this.el.setWidth=Ext.emptyFn;this.el.setSize=Ext.emptyFn;this.el.dom.scroll="no";this.allowDomMove=false;this.autoWidth=true;this.autoHeight=true;Ext.EventManager.onWindowResize(this.fireResize,this);this.renderTo=this.el},fireResize:function(a,b){this.fireEvent("resize",this,a,b,a,b)}});Ext.reg("viewport",Ext.Viewport);Ext.Panel=Ext.extend(Ext.Container,{baseCls:"x-panel",collapsedCls:"x-panel-collapsed",maskDisabled:true,animCollapse:Ext.enableFx,headerAsText:true,buttonAlign:"right",collapsed:false,collapseFirst:true,minButtonWidth:75,elements:"body",preventBodyReset:false,padding:undefined,resizeEvent:"bodyresize",toolTarget:"header",collapseEl:"bwrap",slideAnchor:"t",disabledClass:"",deferHeight:true,expandDefaults:{duration:0.25},collapseDefaults:{duration:0.25},initComponent:function(){Ext.Panel.superclass.initComponent.call(this);this.addEvents("bodyresize","titlechange","iconchange","collapse","expand","beforecollapse","beforeexpand","beforeclose","close","activate","deactivate");if(this.unstyled){this.baseCls="x-plain"}this.toolbars=[];if(this.tbar){this.elements+=",tbar";this.topToolbar=this.createToolbar(this.tbar);this.tbar=null}if(this.bbar){this.elements+=",bbar";this.bottomToolbar=this.createToolbar(this.bbar);this.bbar=null}if(this.header===true){this.elements+=",header";this.header=null}else{if(this.headerCfg||(this.title&&this.header!==false)){this.elements+=",header"}}if(this.footerCfg||this.footer===true){this.elements+=",footer";this.footer=null}if(this.buttons){this.fbar=this.buttons;this.buttons=null}if(this.fbar){this.createFbar(this.fbar)}if(this.autoLoad){this.on("render",this.doAutoLoad,this,{delay:10})}},createFbar:function(b){var a=this.minButtonWidth;this.elements+=",footer";this.fbar=this.createToolbar(b,{buttonAlign:this.buttonAlign,toolbarCls:"x-panel-fbar",enableOverflow:false,defaults:function(d){return{minWidth:d.minWidth||a}}});this.fbar.items.each(function(d){d.minWidth=d.minWidth||this.minButtonWidth},this);this.buttons=this.fbar.items.items},createToolbar:function(b,c){var a;if(Ext.isArray(b)){b={items:b}}a=b.events?Ext.apply(b,c):this.createComponent(Ext.apply({},b,c),"toolbar");this.toolbars.push(a);return a},createElement:function(a,c){if(this[a]){c.appendChild(this[a].dom);return}if(a==="bwrap"||this.elements.indexOf(a)!=-1){if(this[a+"Cfg"]){this[a]=Ext.fly(c).createChild(this[a+"Cfg"])}else{var b=document.createElement("div");b.className=this[a+"Cls"];this[a]=Ext.get(c.appendChild(b))}if(this[a+"CssClass"]){this[a].addClass(this[a+"CssClass"])}if(this[a+"Style"]){this[a].applyStyles(this[a+"Style"])}}},onRender:function(g,e){Ext.Panel.superclass.onRender.call(this,g,e);this.createClasses();var a=this.el,h=a.dom,k,i;if(this.collapsible&&!this.hideCollapseTool){this.tools=this.tools?this.tools.slice(0):[];this.tools[this.collapseFirst?"unshift":"push"]({id:"toggle",handler:this.toggleCollapse,scope:this})}if(this.tools){i=this.tools;this.elements+=(this.header!==false)?",header":""}this.tools={};a.addClass(this.baseCls);if(h.firstChild){this.header=a.down("."+this.headerCls);this.bwrap=a.down("."+this.bwrapCls);var j=this.bwrap?this.bwrap:a;this.tbar=j.down("."+this.tbarCls);this.body=j.down("."+this.bodyCls);this.bbar=j.down("."+this.bbarCls);this.footer=j.down("."+this.footerCls);this.fromMarkup=true}if(this.preventBodyReset===true){a.addClass("x-panel-reset")}if(this.cls){a.addClass(this.cls)}if(this.buttons){this.elements+=",footer"}if(this.frame){a.insertHtml("afterBegin",String.format(Ext.Element.boxMarkup,this.baseCls));this.createElement("header",h.firstChild.firstChild.firstChild);this.createElement("bwrap",h);k=this.bwrap.dom;var c=h.childNodes[1],b=h.childNodes[2];k.appendChild(c);k.appendChild(b);var l=k.firstChild.firstChild.firstChild;this.createElement("tbar",l);this.createElement("body",l);this.createElement("bbar",l);this.createElement("footer",k.lastChild.firstChild.firstChild);if(!this.footer){this.bwrap.dom.lastChild.className+=" x-panel-nofooter"}this.ft=Ext.get(this.bwrap.dom.lastChild);this.mc=Ext.get(l)}else{this.createElement("header",h);this.createElement("bwrap",h);k=this.bwrap.dom;this.createElement("tbar",k);this.createElement("body",k);this.createElement("bbar",k);this.createElement("footer",k);if(!this.header){this.body.addClass(this.bodyCls+"-noheader");if(this.tbar){this.tbar.addClass(this.tbarCls+"-noheader")}}}if(Ext.isDefined(this.padding)){this.body.setStyle("padding",this.body.addUnits(this.padding))}if(this.border===false){this.el.addClass(this.baseCls+"-noborder");this.body.addClass(this.bodyCls+"-noborder");if(this.header){this.header.addClass(this.headerCls+"-noborder")}if(this.footer){this.footer.addClass(this.footerCls+"-noborder")}if(this.tbar){this.tbar.addClass(this.tbarCls+"-noborder")}if(this.bbar){this.bbar.addClass(this.bbarCls+"-noborder")}}if(this.bodyBorder===false){this.body.addClass(this.bodyCls+"-noborder")}this.bwrap.enableDisplayMode("block");if(this.header){this.header.unselectable();if(this.headerAsText){this.header.dom.innerHTML=''+this.header.dom.innerHTML+"";if(this.iconCls){this.setIconClass(this.iconCls)}}}if(this.floating){this.makeFloating(this.floating)}if(this.collapsible&&this.titleCollapse&&this.header){this.mon(this.header,"click",this.toggleCollapse,this);this.header.setStyle("cursor","pointer")}if(i){this.addTool.apply(this,i)}if(this.fbar){this.footer.addClass("x-panel-btns");this.fbar.ownerCt=this;this.fbar.render(this.footer);this.footer.createChild({cls:"x-clear"})}if(this.tbar&&this.topToolbar){this.topToolbar.ownerCt=this;this.topToolbar.render(this.tbar)}if(this.bbar&&this.bottomToolbar){this.bottomToolbar.ownerCt=this;this.bottomToolbar.render(this.bbar)}},setIconClass:function(b){var a=this.iconCls;this.iconCls=b;if(this.rendered&&this.header){if(this.frame){this.header.addClass("x-panel-icon");this.header.replaceClass(a,this.iconCls)}else{var e=this.header,c=e.child("img.x-panel-inline-icon");if(c){Ext.fly(c).replaceClass(a,this.iconCls)}else{var d=e.child("span."+this.headerTextCls);if(d){Ext.DomHelper.insertBefore(d.dom,{tag:"img",src:Ext.BLANK_IMAGE_URL,cls:"x-panel-inline-icon "+this.iconCls})}}}}this.fireEvent("iconchange",this,b,a)},makeFloating:function(a){this.floating=true;this.el=new Ext.Layer(Ext.apply({},a,{shadow:Ext.isDefined(this.shadow)?this.shadow:"sides",shadowOffset:this.shadowOffset,constrain:false,shim:this.shim===false?false:undefined}),this.el)},getTopToolbar:function(){return this.topToolbar},getBottomToolbar:function(){return this.bottomToolbar},getFooterToolbar:function(){return this.fbar},addButton:function(a,c,b){if(!this.fbar){this.createFbar([])}if(c){if(Ext.isString(a)){a={text:a}}a=Ext.apply({handler:c,scope:b},a)}return this.fbar.add(a)},addTool:function(){if(!this.rendered){if(!this.tools){this.tools=[]}Ext.each(arguments,function(a){this.tools.push(a)},this);return}if(!this[this.toolTarget]){return}if(!this.toolTemplate){var h=new Ext.Template('
     
    ');h.disableFormats=true;h.compile();Ext.Panel.prototype.toolTemplate=h}for(var g=0,d=arguments,c=d.length;g0){Ext.each(this.toolbars,function(c){c.doLayout(undefined,a)});this.syncHeight()}},syncHeight:function(){var b=this.toolbarHeight,c=this.body,a=this.lastSize.height,d;if(this.autoHeight||!Ext.isDefined(a)||a=="auto"){return}if(b!=this.getToolbarHeight()){b=Math.max(0,a-this.getFrameHeight());c.setHeight(b);d=c.getSize();this.toolbarHeight=this.getToolbarHeight();this.onBodyResize(d.width,d.height)}},onShow:function(){if(this.floating){return this.el.show()}Ext.Panel.superclass.onShow.call(this)},onHide:function(){if(this.floating){return this.el.hide()}Ext.Panel.superclass.onHide.call(this)},createToolHandler:function(c,a,d,b){return function(g){c.removeClass(d);if(a.stopEvent!==false){g.stopEvent()}if(a.handler){a.handler.call(a.scope||c,g,c,b,a)}}},afterRender:function(){if(this.floating&&!this.hidden){this.el.show()}if(this.title){this.setTitle(this.title)}Ext.Panel.superclass.afterRender.call(this);if(this.collapsed){this.collapsed=false;this.collapse(false)}this.initEvents()},getKeyMap:function(){if(!this.keyMap){this.keyMap=new Ext.KeyMap(this.el,this.keys)}return this.keyMap},initEvents:function(){if(this.keys){this.getKeyMap()}if(this.draggable){this.initDraggable()}if(this.toolbars.length>0){Ext.each(this.toolbars,function(a){a.doLayout();a.on({scope:this,afterlayout:this.syncHeight,remove:this.syncHeight})},this);this.syncHeight()}},initDraggable:function(){this.dd=new Ext.Panel.DD(this,Ext.isBoolean(this.draggable)?null:this.draggable)},beforeEffect:function(a){if(this.floating){this.el.beforeAction()}if(a!==false){this.el.addClass("x-panel-animated")}},afterEffect:function(a){this.syncShadow();this.el.removeClass("x-panel-animated")},createEffect:function(c,b,d){var e={scope:d,block:true};if(c===true){e.callback=b;return e}else{if(!c.callback){e.callback=b}else{e.callback=function(){b.call(d);Ext.callback(c.callback,c.scope)}}}return Ext.applyIf(e,c)},collapse:function(b){if(this.collapsed||this.el.hasFxBlock()||this.fireEvent("beforecollapse",this,b)===false){return}var a=b===true||(b!==false&&this.animCollapse);this.beforeEffect(a);this.onCollapse(a,b);return this},onCollapse:function(a,b){if(a){this[this.collapseEl].slideOut(this.slideAnchor,Ext.apply(this.createEffect(b||true,this.afterCollapse,this),this.collapseDefaults))}else{this[this.collapseEl].hide(this.hideMode);this.afterCollapse(false)}},afterCollapse:function(a){this.collapsed=true;this.el.addClass(this.collapsedCls);if(a!==false){this[this.collapseEl].hide(this.hideMode)}this.afterEffect(a);this.cascade(function(b){if(b.lastSize){b.lastSize={width:undefined,height:undefined}}});this.fireEvent("collapse",this)},expand:function(b){if(!this.collapsed||this.el.hasFxBlock()||this.fireEvent("beforeexpand",this,b)===false){return}var a=b===true||(b!==false&&this.animCollapse);this.el.removeClass(this.collapsedCls);this.beforeEffect(a);this.onExpand(a,b);return this},onExpand:function(a,b){if(a){this[this.collapseEl].slideIn(this.slideAnchor,Ext.apply(this.createEffect(b||true,this.afterExpand,this),this.expandDefaults))}else{this[this.collapseEl].show(this.hideMode);this.afterExpand(false)}},afterExpand:function(a){this.collapsed=false;if(a!==false){this[this.collapseEl].show(this.hideMode)}this.afterEffect(a);if(this.deferLayout){delete this.deferLayout;this.doLayout(true)}this.fireEvent("expand",this)},toggleCollapse:function(a){this[this.collapsed?"expand":"collapse"](a);return this},onDisable:function(){if(this.rendered&&this.maskDisabled){this.el.mask()}Ext.Panel.superclass.onDisable.call(this)},onEnable:function(){if(this.rendered&&this.maskDisabled){this.el.unmask()}Ext.Panel.superclass.onEnable.call(this)},onResize:function(g,d,c,e){var a=g,b=d;if(Ext.isDefined(a)||Ext.isDefined(b)){if(!this.collapsed){if(Ext.isNumber(a)){this.body.setWidth(a=this.adjustBodyWidth(a-this.getFrameWidth()))}else{if(a=="auto"){a=this.body.setWidth("auto").dom.offsetWidth}else{a=this.body.dom.offsetWidth}}if(this.tbar){this.tbar.setWidth(a);if(this.topToolbar){this.topToolbar.setSize(a)}}if(this.bbar){this.bbar.setWidth(a);if(this.bottomToolbar){this.bottomToolbar.setSize(a);if(Ext.isIE){this.bbar.setStyle("position","static");this.bbar.setStyle("position","")}}}if(this.footer){this.footer.setWidth(a);if(this.fbar){this.fbar.setSize(Ext.isIE?(a-this.footer.getFrameWidth("lr")):"auto")}}if(Ext.isNumber(b)){b=Math.max(0,b-this.getFrameHeight());this.body.setHeight(b)}else{if(b=="auto"){this.body.setHeight(b)}}if(this.disabled&&this.el._mask){this.el._mask.setSize(this.el.dom.clientWidth,this.el.getHeight())}}else{this.queuedBodySize={width:a,height:b};if(!this.queuedExpand&&this.allowQueuedExpand!==false){this.queuedExpand=true;this.on("expand",function(){delete this.queuedExpand;this.onResize(this.queuedBodySize.width,this.queuedBodySize.height)},this,{single:true})}}this.onBodyResize(a,b)}this.syncShadow();Ext.Panel.superclass.onResize.call(this,g,d,c,e)},onBodyResize:function(a,b){this.fireEvent("bodyresize",this,a,b)},getToolbarHeight:function(){var a=0;if(this.rendered){Ext.each(this.toolbars,function(b){a+=b.getHeight()},this)}return a},adjustBodyHeight:function(a){return a},adjustBodyWidth:function(a){return a},onPosition:function(){this.syncShadow()},getFrameWidth:function(){var b=this.el.getFrameWidth("lr")+this.bwrap.getFrameWidth("lr");if(this.frame){var a=this.bwrap.dom.firstChild;b+=(Ext.fly(a).getFrameWidth("l")+Ext.fly(a.firstChild).getFrameWidth("r"));b+=this.mc.getFrameWidth("lr")}return b},getFrameHeight:function(){var a=Math.max(0,this.getHeight()-this.body.getHeight());if(isNaN(a)){a=0}return a},getInnerWidth:function(){return this.getSize().width-this.getFrameWidth()},getInnerHeight:function(){return this.body.getHeight()},syncShadow:function(){if(this.floating){this.el.sync(true)}},getLayoutTarget:function(){return this.body},getContentTarget:function(){return this.body},setTitle:function(b,a){this.title=b;if(this.header&&this.headerAsText){this.header.child("span").update(b)}if(a){this.setIconClass(a)}this.fireEvent("titlechange",this,b);return this},getUpdater:function(){return this.body.getUpdater()},load:function(){var a=this.body.getUpdater();a.update.apply(a,arguments);return this},beforeDestroy:function(){Ext.Panel.superclass.beforeDestroy.call(this);if(this.header){this.header.removeAllListeners()}if(this.tools){for(var a in this.tools){Ext.destroy(this.tools[a])}}if(this.toolbars.length>0){Ext.each(this.toolbars,function(b){b.un("afterlayout",this.syncHeight,this);b.un("remove",this.syncHeight,this)},this)}if(Ext.isArray(this.buttons)){while(this.buttons.length){Ext.destroy(this.buttons[0])}}if(this.rendered){Ext.destroy(this.ft,this.header,this.footer,this.tbar,this.bbar,this.body,this.mc,this.bwrap,this.dd);if(this.fbar){Ext.destroy(this.fbar,this.fbar.el)}}Ext.destroy(this.toolbars)},createClasses:function(){this.headerCls=this.baseCls+"-header";this.headerTextCls=this.baseCls+"-header-text";this.bwrapCls=this.baseCls+"-bwrap";this.tbarCls=this.baseCls+"-tbar";this.bodyCls=this.baseCls+"-body";this.bbarCls=this.baseCls+"-bbar";this.footerCls=this.baseCls+"-footer"},createGhost:function(a,e,b){var d=document.createElement("div");d.className="x-panel-ghost "+(a?a:"");if(this.header){d.appendChild(this.el.dom.firstChild.cloneNode(true))}Ext.fly(d.appendChild(document.createElement("ul"))).setHeight(this.bwrap.getHeight());d.style.width=this.el.dom.offsetWidth+"px";if(!b){this.container.dom.appendChild(d)}else{Ext.getDom(b).appendChild(d)}if(e!==false&&this.el.useShim!==false){var c=new Ext.Layer({shadow:false,useDisplay:true,constrain:false},d);c.show();return c}else{return new Ext.Element(d)}},doAutoLoad:function(){var a=this.body.getUpdater();if(this.renderer){a.setRenderer(this.renderer)}a.update(Ext.isObject(this.autoLoad)?this.autoLoad:{url:this.autoLoad})},getTool:function(a){return this.tools[a]}});Ext.reg("panel",Ext.Panel);Ext.Editor=function(b,a){if(b.field){this.field=Ext.create(b.field,"textfield");a=Ext.apply({},b);delete a.field}else{this.field=b}Ext.Editor.superclass.constructor.call(this,a)};Ext.extend(Ext.Editor,Ext.Component,{allowBlur:true,value:"",alignment:"c-c?",offsets:[0,0],shadow:"frame",constrain:false,swallowKeys:true,completeOnEnter:true,cancelOnEsc:true,updateEl:false,initComponent:function(){Ext.Editor.superclass.initComponent.call(this);this.addEvents("beforestartedit","startedit","beforecomplete","complete","canceledit","specialkey")},onRender:function(b,a){this.el=new Ext.Layer({shadow:this.shadow,cls:"x-editor",parentEl:b,shim:this.shim,shadowOffset:this.shadowOffset||4,id:this.id,constrain:this.constrain});if(this.zIndex){this.el.setZIndex(this.zIndex)}this.el.setStyle("overflow",Ext.isGecko?"auto":"hidden");if(this.field.msgTarget!="title"){this.field.msgTarget="qtip"}this.field.inEditor=true;this.mon(this.field,{scope:this,blur:this.onBlur,specialkey:this.onSpecialKey});if(this.field.grow){this.mon(this.field,"autosize",this.el.sync,this.el,{delay:1})}this.field.render(this.el).show();this.field.getEl().dom.name="";if(this.swallowKeys){this.field.el.swallowEvent(["keypress","keydown"])}},onSpecialKey:function(g,d){var b=d.getKey(),a=this.completeOnEnter&&b==d.ENTER,c=this.cancelOnEsc&&b==d.ESC;if(a||c){d.stopEvent();if(a){this.completeEdit()}else{this.cancelEdit()}if(g.triggerBlur){g.triggerBlur()}}this.fireEvent("specialkey",g,d)},startEdit:function(b,c){if(this.editing){this.completeEdit()}this.boundEl=Ext.get(b);var a=c!==undefined?c:this.boundEl.dom.innerHTML;if(!this.rendered){this.render(this.parentEl||document.body)}if(this.fireEvent("beforestartedit",this,this.boundEl,a)!==false){this.startValue=a;this.field.reset();this.field.setValue(a);this.realign(true);this.editing=true;this.show()}},doAutoSize:function(){if(this.autoSize){var b=this.boundEl.getSize(),a=this.field.getSize();switch(this.autoSize){case"width":this.setSize(b.width,a.height);break;case"height":this.setSize(a.width,b.height);break;case"none":this.setSize(a.width,a.height);break;default:this.setSize(b.width,b.height)}}},setSize:function(a,b){delete this.field.lastSize;this.field.setSize(a,b);if(this.el){if(Ext.isGecko2||Ext.isOpera){this.el.setSize(a,b)}this.el.sync()}},realign:function(a){if(a===true){this.doAutoSize()}this.el.alignTo(this.boundEl,this.alignment,this.offsets)},completeEdit:function(a){if(!this.editing){return}if(this.field.assertValue){this.field.assertValue()}var b=this.getValue();if(!this.field.isValid()){if(this.revertInvalid!==false){this.cancelEdit(a)}return}if(String(b)===String(this.startValue)&&this.ignoreNoChange){this.hideEdit(a);return}if(this.fireEvent("beforecomplete",this,b,this.startValue)!==false){b=this.getValue();if(this.updateEl&&this.boundEl){this.boundEl.update(b)}this.hideEdit(a);this.fireEvent("complete",this,b,this.startValue)}},onShow:function(){this.el.show();if(this.hideEl!==false){this.boundEl.hide()}this.field.show().focus(false,true);this.fireEvent("startedit",this.boundEl,this.startValue)},cancelEdit:function(a){if(this.editing){var b=this.getValue();this.setValue(this.startValue);this.hideEdit(a);this.fireEvent("canceledit",this,b,this.startValue)}},hideEdit:function(a){if(a!==true){this.editing=false;this.hide()}},onBlur:function(){if(this.allowBlur===true&&this.editing&&this.selectSameEditor!==true){this.completeEdit()}},onHide:function(){if(this.editing){this.completeEdit();return}this.field.blur();if(this.field.collapse){this.field.collapse()}this.el.hide();if(this.hideEl!==false){this.boundEl.show()}},setValue:function(a){this.field.setValue(a)},getValue:function(){return this.field.getValue()},beforeDestroy:function(){Ext.destroyMembers(this,"field");delete this.parentEl;delete this.boundEl}});Ext.reg("editor",Ext.Editor);Ext.ColorPalette=Ext.extend(Ext.Component,{itemCls:"x-color-palette",value:null,clickEvent:"click",ctype:"Ext.ColorPalette",allowReselect:false,colors:["000000","993300","333300","003300","003366","000080","333399","333333","800000","FF6600","808000","008000","008080","0000FF","666699","808080","FF0000","FF9900","99CC00","339966","33CCCC","3366FF","800080","969696","FF00FF","FFCC00","FFFF00","00FF00","00FFFF","00CCFF","993366","C0C0C0","FF99CC","FFCC99","FFFF99","CCFFCC","CCFFFF","99CCFF","CC99FF","FFFFFF"],initComponent:function(){Ext.ColorPalette.superclass.initComponent.call(this);this.addEvents("select");if(this.handler){this.on("select",this.handler,this.scope,true)}},onRender:function(b,a){this.autoEl={tag:"div",cls:this.itemCls};Ext.ColorPalette.superclass.onRender.call(this,b,a);var c=this.tpl||new Ext.XTemplate(' ');c.overwrite(this.el,this.colors);this.mon(this.el,this.clickEvent,this.handleClick,this,{delegate:"a"});if(this.clickEvent!="click"){this.mon(this.el,"click",Ext.emptyFn,this,{delegate:"a",preventDefault:true})}},afterRender:function(){Ext.ColorPalette.superclass.afterRender.call(this);if(this.value){var a=this.value;this.value=null;this.select(a,true)}},handleClick:function(b,a){b.preventDefault();if(!this.disabled){var d=a.className.match(/(?:^|\s)color-(.{6})(?:\s|$)/)[1];this.select(d.toUpperCase())}},select:function(b,a){b=b.replace("#","");if(b!=this.value||this.allowReselect){var c=this.el;if(this.value){c.child("a.color-"+this.value).removeClass("x-color-palette-sel")}c.child("a.color-"+b).addClass("x-color-palette-sel");this.value=b;if(a!==true){this.fireEvent("select",this,b)}}}});Ext.reg("colorpalette",Ext.ColorPalette);Ext.DatePicker=Ext.extend(Ext.BoxComponent,{todayText:"Today",okText:" OK ",cancelText:"Cancel",todayTip:"{0} (Spacebar)",minText:"This date is before the minimum date",maxText:"This date is after the maximum date",format:"m/d/y",disabledDaysText:"Disabled",disabledDatesText:"Disabled",monthNames:Date.monthNames,dayNames:Date.dayNames,nextText:"Next Month (Control+Right)",prevText:"Previous Month (Control+Left)",monthYearText:"Choose a month (Control+Up/Down to move years)",startDay:0,showToday:true,focusOnSelect:true,initHour:12,initComponent:function(){Ext.DatePicker.superclass.initComponent.call(this);this.value=this.value?this.value.clearTime(true):new Date().clearTime();this.addEvents("select");if(this.handler){this.on("select",this.handler,this.scope||this)}this.initDisabledDays()},initDisabledDays:function(){if(!this.disabledDatesRE&&this.disabledDates){var b=this.disabledDates,a=b.length-1,c="(?:";Ext.each(b,function(g,e){c+=Ext.isDate(g)?"^"+Ext.escapeRe(g.dateFormat(this.format))+"$":b[e];if(e!=a){c+="|"}},this);this.disabledDatesRE=new RegExp(c+")")}},setDisabledDates:function(a){if(Ext.isArray(a)){this.disabledDates=a;this.disabledDatesRE=null}else{this.disabledDatesRE=a}this.initDisabledDays();this.update(this.value,true)},setDisabledDays:function(a){this.disabledDays=a;this.update(this.value,true)},setMinDate:function(a){this.minDate=a;this.update(this.value,true)},setMaxDate:function(a){this.maxDate=a;this.update(this.value,true)},setValue:function(a){this.value=a.clearTime(true);this.update(this.value)},getValue:function(){return this.value},focus:function(){this.update(this.activeDate)},onEnable:function(a){Ext.DatePicker.superclass.onEnable.call(this);this.doDisabled(false);this.update(a?this.value:this.activeDate);if(Ext.isIE){this.el.repaint()}},onDisable:function(){Ext.DatePicker.superclass.onDisable.call(this);this.doDisabled(true);if(Ext.isIE&&!Ext.isIE8){Ext.each([].concat(this.textNodes,this.el.query("th span")),function(a){Ext.fly(a).repaint()})}},doDisabled:function(a){this.keyNav.setDisabled(a);this.prevRepeater.setDisabled(a);this.nextRepeater.setDisabled(a);if(this.showToday){this.todayKeyListener.setDisabled(a);this.todayBtn.setDisabled(a)}},onRender:function(e,b){var a=['','','",this.showToday?'':"",'
      
    '],c=this.dayNames,h;for(h=0;h<7;h++){var k=this.startDay+h;if(k>6){k=k-7}a.push("")}a[a.length]="";for(h=0;h<42;h++){if(h%7===0&&h!==0){a[a.length]=""}a[a.length]=''}a.push("
    ",c[k].substr(0,1),"
    ');var j=document.createElement("div");j.className="x-date-picker";j.innerHTML=a.join("");e.dom.insertBefore(j,b);this.el=Ext.get(j);this.eventEl=Ext.get(j.firstChild);this.prevRepeater=new Ext.util.ClickRepeater(this.el.child("td.x-date-left a"),{handler:this.showPrevMonth,scope:this,preventDefault:true,stopDefault:true});this.nextRepeater=new Ext.util.ClickRepeater(this.el.child("td.x-date-right a"),{handler:this.showNextMonth,scope:this,preventDefault:true,stopDefault:true});this.monthPicker=this.el.down("div.x-date-mp");this.monthPicker.enableDisplayMode("block");this.keyNav=new Ext.KeyNav(this.eventEl,{left:function(d){if(d.ctrlKey){this.showPrevMonth()}else{this.update(this.activeDate.add("d",-1))}},right:function(d){if(d.ctrlKey){this.showNextMonth()}else{this.update(this.activeDate.add("d",1))}},up:function(d){if(d.ctrlKey){this.showNextYear()}else{this.update(this.activeDate.add("d",-7))}},down:function(d){if(d.ctrlKey){this.showPrevYear()}else{this.update(this.activeDate.add("d",7))}},pageUp:function(d){this.showNextMonth()},pageDown:function(d){this.showPrevMonth()},enter:function(d){d.stopPropagation();return true},scope:this});this.el.unselectable();this.cells=this.el.select("table.x-date-inner tbody td");this.textNodes=this.el.query("table.x-date-inner tbody span");this.mbtn=new Ext.Button({text:" ",tooltip:this.monthYearText,renderTo:this.el.child("td.x-date-middle",true)});this.mbtn.el.child("em").addClass("x-btn-arrow");if(this.showToday){this.todayKeyListener=this.eventEl.addKeyListener(Ext.EventObject.SPACE,this.selectToday,this);var g=(new Date()).dateFormat(this.format);this.todayBtn=new Ext.Button({renderTo:this.el.child("td.x-date-bottom",true),text:String.format(this.todayText,g),tooltip:String.format(this.todayTip,g),handler:this.selectToday,scope:this})}this.mon(this.eventEl,"mousewheel",this.handleMouseWheel,this);this.mon(this.eventEl,"click",this.handleDateClick,this,{delegate:"a.x-date-date"});this.mon(this.mbtn,"click",this.showMonthPicker,this);this.onEnable(true)},createMonthPicker:function(){if(!this.monthPicker.dom.firstChild){var a=[''];for(var b=0;b<6;b++){a.push('",'",b===0?'':'')}a.push('","
    ',Date.getShortMonthName(b),"',Date.getShortMonthName(b+6),"
    ");this.monthPicker.update(a.join(""));this.mon(this.monthPicker,"click",this.onMonthClick,this);this.mon(this.monthPicker,"dblclick",this.onMonthDblClick,this);this.mpMonths=this.monthPicker.select("td.x-date-mp-month");this.mpYears=this.monthPicker.select("td.x-date-mp-year");this.mpMonths.each(function(c,d,e){e+=1;if((e%2)===0){c.dom.xmonth=5+Math.round(e*0.5)}else{c.dom.xmonth=Math.round((e-1)*0.5)}})}},showMonthPicker:function(){if(!this.disabled){this.createMonthPicker();var a=this.el.getSize();this.monthPicker.setSize(a);this.monthPicker.child("table").setSize(a);this.mpSelMonth=(this.activeDate||this.value).getMonth();this.updateMPMonth(this.mpSelMonth);this.mpSelYear=(this.activeDate||this.value).getFullYear();this.updateMPYear(this.mpSelYear);this.monthPicker.slideIn("t",{duration:0.2})}},updateMPYear:function(e){this.mpyear=e;var c=this.mpYears.elements;for(var b=1;b<=10;b++){var d=c[b-1],a;if((b%2)===0){a=e+Math.round(b*0.5);d.firstChild.innerHTML=a;d.xyear=a}else{a=e-(5-Math.round(b*0.5));d.firstChild.innerHTML=a;d.xyear=a}this.mpYears.item(b-1)[a==this.mpSelYear?"addClass":"removeClass"]("x-date-mp-sel")}},updateMPMonth:function(a){this.mpMonths.each(function(b,c,d){b[b.dom.xmonth==a?"addClass":"removeClass"]("x-date-mp-sel")})},selectMPMonth:function(a){},onMonthClick:function(g,b){g.stopEvent();var c=new Ext.Element(b),a;if(c.is("button.x-date-mp-cancel")){this.hideMonthPicker()}else{if(c.is("button.x-date-mp-ok")){var h=new Date(this.mpSelYear,this.mpSelMonth,(this.activeDate||this.value).getDate());if(h.getMonth()!=this.mpSelMonth){h=new Date(this.mpSelYear,this.mpSelMonth,1).getLastDateOfMonth()}this.update(h);this.hideMonthPicker()}else{if((a=c.up("td.x-date-mp-month",2))){this.mpMonths.removeClass("x-date-mp-sel");a.addClass("x-date-mp-sel");this.mpSelMonth=a.dom.xmonth}else{if((a=c.up("td.x-date-mp-year",2))){this.mpYears.removeClass("x-date-mp-sel");a.addClass("x-date-mp-sel");this.mpSelYear=a.dom.xyear}else{if(c.is("a.x-date-mp-prev")){this.updateMPYear(this.mpyear-10)}else{if(c.is("a.x-date-mp-next")){this.updateMPYear(this.mpyear+10)}}}}}}},onMonthDblClick:function(d,b){d.stopEvent();var c=new Ext.Element(b),a;if((a=c.up("td.x-date-mp-month",2))){this.update(new Date(this.mpSelYear,a.dom.xmonth,(this.activeDate||this.value).getDate()));this.hideMonthPicker()}else{if((a=c.up("td.x-date-mp-year",2))){this.update(new Date(a.dom.xyear,this.mpSelMonth,(this.activeDate||this.value).getDate()));this.hideMonthPicker()}}},hideMonthPicker:function(a){if(this.monthPicker){if(a===true){this.monthPicker.hide()}else{this.monthPicker.slideOut("t",{duration:0.2})}}},showPrevMonth:function(a){this.update(this.activeDate.add("mo",-1))},showNextMonth:function(a){this.update(this.activeDate.add("mo",1))},showPrevYear:function(){this.update(this.activeDate.add("y",-1))},showNextYear:function(){this.update(this.activeDate.add("y",1))},handleMouseWheel:function(a){a.stopEvent();if(!this.disabled){var b=a.getWheelDelta();if(b>0){this.showPrevMonth()}else{if(b<0){this.showNextMonth()}}}},handleDateClick:function(b,a){b.stopEvent();if(!this.disabled&&a.dateValue&&!Ext.fly(a.parentNode).hasClass("x-date-disabled")){this.cancelFocus=this.focusOnSelect===false;this.setValue(new Date(a.dateValue));delete this.cancelFocus;this.fireEvent("select",this,this.value)}},selectToday:function(){if(this.todayBtn&&!this.todayBtn.disabled){this.setValue(new Date().clearTime());this.fireEvent("select",this,this.value)}},update:function(G,A){if(this.rendered){var a=this.activeDate,p=this.isVisible();this.activeDate=G;if(!A&&a&&this.el){var o=G.getTime();if(a.getMonth()==G.getMonth()&&a.getFullYear()==G.getFullYear()){this.cells.removeClass("x-date-selected");this.cells.each(function(d){if(d.dom.firstChild.dateValue==o){d.addClass("x-date-selected");if(p&&!this.cancelFocus){Ext.fly(d.dom.firstChild).focus(50)}return false}},this);return}}var k=G.getDaysInMonth(),q=G.getFirstDateOfMonth(),g=q.getDay()-this.startDay;if(g<0){g+=7}k+=g;var B=G.add("mo",-1),h=B.getDaysInMonth()-g,e=this.cells.elements,r=this.textNodes,D=(new Date(B.getFullYear(),B.getMonth(),h,this.initHour)),C=new Date().clearTime().getTime(),v=G.clearTime(true).getTime(),u=this.minDate?this.minDate.clearTime(true):Number.NEGATIVE_INFINITY,y=this.maxDate?this.maxDate.clearTime(true):Number.POSITIVE_INFINITY,F=this.disabledDatesRE,s=this.disabledDatesText,I=this.disabledDays?this.disabledDays.join(""):false,E=this.disabledDaysText,z=this.format;if(this.showToday){var m=new Date().clearTime(),c=(my||(F&&z&&F.test(m.dateFormat(z)))||(I&&I.indexOf(m.getDay())!=-1));if(!this.disabled){this.todayBtn.setDisabled(c);this.todayKeyListener[c?"disable":"enable"]()}}var l=function(J,d){d.title="";var i=D.clearTime(true).getTime();d.firstChild.dateValue=i;if(i==C){d.className+=" x-date-today";d.title=J.todayText}if(i==v){d.className+=" x-date-selected";if(p){Ext.fly(d.firstChild).focus(50)}}if(iy){d.className=" x-date-disabled";d.title=J.maxText;return}if(I){if(I.indexOf(D.getDay())!=-1){d.title=E;d.className=" x-date-disabled"}}if(F&&z){var w=D.dateFormat(z);if(F.test(w)){d.title=s.replace("%0",w);d.className=" x-date-disabled"}}};var x=0;for(;x=a.value){d=a.value}}c.setValue(b,d,false);c.fireEvent("drag",c,g,this)},getNewValue:function(){var a=this.slider,b=a.innerEl.translatePoints(this.tracker.getXY());return Ext.util.Format.round(a.reverseValue(b.left),a.decimalPrecision)},onDragEnd:function(c){var a=this.slider,b=this.value;this.el.removeClass("x-slider-thumb-drag");this.dragging=false;a.fireEvent("dragend",a,c);if(this.dragStartValue!=b){a.fireEvent("changecomplete",a,b,this)}}});Ext.slider.MultiSlider=Ext.extend(Ext.BoxComponent,{vertical:false,minValue:0,maxValue:100,decimalPrecision:0,keyIncrement:1,increment:0,clickRange:[5,15],clickToChange:true,animate:true,dragging:false,constrainThumbs:true,topThumbZIndex:10000,initComponent:function(){if(!Ext.isDefined(this.value)){this.value=this.minValue}this.thumbs=[];Ext.slider.MultiSlider.superclass.initComponent.call(this);this.keyIncrement=Math.max(this.increment,this.keyIncrement);this.addEvents("beforechange","change","changecomplete","dragstart","drag","dragend");if(this.values==undefined||Ext.isEmpty(this.values)){this.values=[0]}var a=this.values;for(var b=0;bthis.clickRange[0]&&c.top=c){d+=c}else{if(a*2<-c){d-=c}}}return d.constrain(this.minValue,this.maxValue)},afterRender:function(){Ext.slider.MultiSlider.superclass.afterRender.apply(this,arguments);for(var c=0;ce?e:c.value}this.syncThumb()},setValue:function(d,c,b,g){var a=this.thumbs[d],e=a.el;c=this.normalizeValue(c);if(c!==a.value&&this.fireEvent("beforechange",this,c,a.value,a)!==false){a.value=c;if(this.rendered){this.moveThumb(d,this.translateValue(c),b!==false);this.fireEvent("change",this,c,a);if(g){this.fireEvent("changecomplete",this,c,a)}}}},translateValue:function(a){var b=this.getRatio();return(a*b)-(this.minValue*b)-this.halfThumb},reverseValue:function(b){var a=this.getRatio();return(b+(this.minValue*a))/a},moveThumb:function(d,c,b){var a=this.thumbs[d].el;if(!b||this.animate===false){a.setLeft(c)}else{a.shift({left:c,stopFx:true,duration:0.35})}},focus:function(){this.focusEl.focus(10)},onResize:function(c,e){var b=this.thumbs,a=b.length,d=0;for(;dthis.clickRange[0]&&c.left','
    ','
    ','
    ',"
     
    ","
    ","
    ",'
    ',"
     
    ","
    ","
    ","
    ");this.el=a?c.insertBefore(a,{cls:this.baseCls},true):c.append(d,{cls:this.baseCls},true);if(this.id){this.el.dom.id=this.id}var b=this.el.dom.firstChild;this.progressBar=Ext.get(b.firstChild);if(this.textEl){this.textEl=Ext.get(this.textEl);delete this.textTopEl}else{this.textTopEl=Ext.get(this.progressBar.dom.firstChild);var e=Ext.get(b.childNodes[1]);this.textTopEl.setStyle("z-index",99).addClass("x-hidden");this.textEl=new Ext.CompositeElement([this.textTopEl.dom.firstChild,e.dom.firstChild]);this.textEl.setWidth(b.offsetWidth)}this.progressBar.setHeight(b.offsetHeight)},afterRender:function(){Ext.ProgressBar.superclass.afterRender.call(this);if(this.value){this.updateProgress(this.value,this.text)}else{this.updateText(this.text)}},updateProgress:function(c,d,b){this.value=c||0;if(d){this.updateText(d)}if(this.rendered&&!this.isDestroyed){var a=Math.floor(c*this.el.dom.firstChild.offsetWidth);this.progressBar.setWidth(a,b===true||(b!==false&&this.animate));if(this.textTopEl){this.textTopEl.removeClass("x-hidden").setWidth(a)}}this.fireEvent("update",this,c,d);return this},wait:function(b){if(!this.waitTimer){var a=this;b=b||{};this.updateText(b.text);this.waitTimer=Ext.TaskMgr.start({run:function(c){var d=b.increment||10;c-=1;this.updateProgress(((((c+d)%d)+1)*(100/d))*0.01,null,b.animate)},interval:b.interval||1000,duration:b.duration,onStop:function(){if(b.fn){b.fn.apply(b.scope||this)}this.reset()},scope:a})}return this},isWaiting:function(){return this.waitTimer!==null},updateText:function(a){this.text=a||" ";if(this.rendered){this.textEl.update(this.text)}return this},syncProgressBar:function(){if(this.value){this.updateProgress(this.value,this.text)}return this},setSize:function(a,c){Ext.ProgressBar.superclass.setSize.call(this,a,c);if(this.textTopEl){var b=this.el.dom.firstChild;this.textEl.setSize(b.offsetWidth,b.offsetHeight)}this.syncProgressBar();return this},reset:function(a){this.updateProgress(0);if(this.textTopEl){this.textTopEl.addClass("x-hidden")}this.clearTimer();if(a===true){this.hide()}return this},clearTimer:function(){if(this.waitTimer){this.waitTimer.onStop=null;Ext.TaskMgr.stop(this.waitTimer);this.waitTimer=null}},onDestroy:function(){this.clearTimer();if(this.rendered){if(this.textEl.isComposite){this.textEl.clear()}Ext.destroyMembers(this,"textEl","progressBar","textTopEl")}Ext.ProgressBar.superclass.onDestroy.call(this)}});Ext.reg("progress",Ext.ProgressBar); +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +(function(){var a=Ext.EventManager;var b=Ext.lib.Dom;Ext.dd.DragDrop=function(e,c,d){if(e){this.init(e,c,d)}};Ext.dd.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},moveOnly:false,unlock:function(){this.locked=false},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(c,d){},startDrag:function(c,d){},b4Drag:function(c){},onDrag:function(c){},onDragEnter:function(c,d){},b4DragOver:function(c){},onDragOver:function(c,d){},b4DragOut:function(c){},onDragOut:function(c,d){},b4DragDrop:function(c){},onDragDrop:function(c,d){},onInvalidDrop:function(c){},b4EndDrag:function(c){},endDrag:function(c){},b4MouseDown:function(c){},onMouseDown:function(c){},onMouseUp:function(c){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,h,o){if(Ext.isNumber(h)){h={left:h,right:h,top:h,bottom:h}}h=h||this.defaultPadding;var l=Ext.get(this.getEl()).getBox(),d=Ext.get(j),n=d.getScroll(),k,e=d.dom;if(e==document.body){k={x:n.left,y:n.top,width:Ext.lib.Dom.getViewWidth(),height:Ext.lib.Dom.getViewHeight()}}else{var m=d.getXY();k={x:m[0],y:m[1],width:e.clientWidth,height:e.clientHeight}}var i=l.y-k.y,g=l.x-k.x;this.resetConstraints();this.setXConstraint(g-(h.left||0),k.width-g-l.width-(h.right||0),this.xTickSize);this.setYConstraint(i-(h.top||0),k.height-i-l.height-(h.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(e,c,d){this.initTarget(e,c,d);a.on(this.id,"mousedown",this.handleMouseDown,this)},initTarget:function(e,c,d){this.config=d||{};this.DDM=Ext.dd.DDM;this.groups={};if(typeof e!=="string"){e=Ext.id(e)}this.id=e;this.addToGroup((c)?c:"default");this.handleElId=e;this.setDragElId(e);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(e,c,g,d){if(!c&&0!==c){this.padding=[e,e,e,e]}else{if(!g&&0!==g){this.padding=[e,c,e,c]}else{this.padding=[e,c,g,d]}}},setInitPosition:function(g,e){var h=this.getEl();if(!this.DDM.verifyEl(h)){return}var d=g||0;var c=e||0;var i=b.getXY(h);this.initPageX=i[0]-d;this.initPageY=i[1]-c;this.lastPageX=i[0];this.lastPageY=i[1];this.setStartPosition(i)},setStartPosition:function(d){var c=d||b.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=c[0];this.startPageY=c[1]},addToGroup:function(c){this.groups[c]=true;this.DDM.regDragDrop(this,c)},removeFromGroup:function(c){if(this.groups[c]){delete this.groups[c]}this.DDM.removeDDFromGroup(this,c)},setDragElId:function(c){this.dragElId=c},setHandleElId:function(c){if(typeof c!=="string"){c=Ext.id(c)}this.handleElId=c;this.DDM.regHandle(this.id,c)},setOuterHandleElId:function(c){if(typeof c!=="string"){c=Ext.id(c)}a.on(c,"mousedown",this.handleMouseDown,this);this.setHandleElId(c);this.hasOuterHandles=true},unreg:function(){a.un(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},destroy:function(){this.unreg()},isLocked:function(){return(this.DDM.isLocked()||this.locked)},handleMouseDown:function(g,d){if(this.primaryButtonOnly&&g.button!=0){return}if(this.isLocked()){return}this.DDM.refreshCache(this.groups);var c=new Ext.lib.Point(Ext.lib.Event.getPageX(g),Ext.lib.Event.getPageY(g));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(c,this)){}else{if(this.clickValidator(g)){this.setStartPosition();this.b4MouseDown(g);this.onMouseDown(g);this.DDM.handleMouseDown(g,this);this.DDM.stopEvent(g)}else{}}},clickValidator:function(d){var c=d.getTarget();return(this.isValidHandleChild(c)&&(this.id==this.handleElId||this.DDM.handleWasClicked(c,this.id)))},addInvalidHandleType:function(c){var d=c.toUpperCase();this.invalidHandleTypes[d]=d},addInvalidHandleId:function(c){if(typeof c!=="string"){c=Ext.id(c)}this.invalidHandleIds[c]=c},addInvalidHandleClass:function(c){this.invalidHandleClasses.push(c)},removeInvalidHandleType:function(c){var d=c.toUpperCase();delete this.invalidHandleTypes[d]},removeInvalidHandleId:function(c){if(typeof c!=="string"){c=Ext.id(c)}delete this.invalidHandleIds[c]},removeInvalidHandleClass:function(d){for(var e=0,c=this.invalidHandleClasses.length;e=this.minX;d=d-c){if(!e[d]){this.xTicks[this.xTicks.length]=d;e[d]=true}}for(d=this.initPageX;d<=this.maxX;d=d+c){if(!e[d]){this.xTicks[this.xTicks.length]=d;e[d]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(g,c){this.yTicks=[];this.yTickSize=c;var e={};for(var d=this.initPageY;d>=this.minY;d=d-c){if(!e[d]){this.yTicks[this.yTicks.length]=d;e[d]=true}}for(d=this.initPageY;d<=this.maxY;d=d+c){if(!e[d]){this.yTicks[this.yTicks.length]=d;e[d]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(e,d,c){this.leftConstraint=e;this.rightConstraint=d;this.minX=this.initPageX-e;this.maxX=this.initPageX+d;if(c){this.setXTicks(this.initPageX,c)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,e,d){this.topConstraint=c;this.bottomConstraint=e;this.minY=this.initPageY-c;this.maxY=this.initPageY+e;if(d){this.setYTicks(this.initPageY,d)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var d=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var c=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(d,c)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(k,g){if(!g){return k}else{if(g[0]>=k){return g[0]}else{for(var d=0,c=g.length;d=k){var j=k-g[d];var h=g[e]-k;return(h>j)?g[d]:g[e]}}return g[g.length-1]}}},toString:function(){return("DragDrop "+this.id)}}})();if(!Ext.dd.DragDropMgr){Ext.dd.DragDropMgr=function(){var a=Ext.EventManager;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,init:function(){this.initialized=true},POINT:0,INTERSECT:1,mode:0,_execOnAll:function(d,c){for(var e in this.ids){for(var b in this.ids[e]){var g=this.ids[e][b];if(!this.isTypeOfDD(g)){continue}g[d].apply(g,c)}}},_onLoad:function(){this.init();a.on(document,"mouseup",this.handleMouseUp,this,true);a.on(document,"mousemove",this.handleMouseMove,this,true);a.on(window,"unload",this._onUnload,this,true);a.on(window,"resize",this._onResize,this,true)},_onResize:function(b){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:350,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(c,b){if(!this.initialized){this.init()}if(!this.ids[b]){this.ids[b]={}}this.ids[b][c.id]=c},removeDDFromGroup:function(d,b){if(!this.ids[b]){this.ids[b]={}}var c=this.ids[b];if(c&&c[d.id]){delete c[d.id]}},_remove:function(c){for(var b in c.groups){if(b&&this.ids[b]&&this.ids[b][c.id]){delete this.ids[b][c.id]}}delete this.handleIds[c.id]},regHandle:function(c,b){if(!this.handleIds[c]){this.handleIds[c]={}}this.handleIds[c][b]=b},isDragDrop:function(b){return(this.getDDById(b))?true:false},getRelated:function(h,c){var g=[];for(var e in h.groups){for(var d in this.ids[e]){var b=this.ids[e][d];if(!this.isTypeOfDD(b)){continue}if(!c||b.isTarget){g[g.length]=b}}}return g},isLegalTarget:function(g,e){var c=this.getRelated(g,true);for(var d=0,b=c.length;dthis.clickPixelThresh||b>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){this.dragCurrent.b4Drag(d);this.dragCurrent.onDrag(d);if(!this.dragCurrent.moveOnly){this.fireEvents(d,false)}}this.stopEvent(d);return true},fireEvents:function(n,o){var q=this.dragCurrent;if(!q||q.isLocked()){return}var r=n.getPoint();var b=[];var g=[];var l=[];var j=[];var d=[];for(var h in this.dragOvers){var c=this.dragOvers[h];if(!this.isTypeOfDD(c)){continue}if(!this.isOverTarget(r,c,this.mode)){g.push(c)}b[h]=true;delete this.dragOvers[h]}for(var p in q.groups){if("string"!=typeof p){continue}for(h in this.ids[p]){var k=this.ids[p][h];if(!this.isTypeOfDD(k)){continue}if(k.isTarget&&!k.isLocked()&&((k!=q)||(q.ignoreSelf===false))){if(this.isOverTarget(r,k,this.mode)){if(o){j.push(k)}else{if(!b[k.id]){d.push(k)}else{l.push(k)}this.dragOvers[k.id]=k}}}}}if(this.mode){if(g.length){q.b4DragOut(n,g);q.onDragOut(n,g)}if(d.length){q.onDragEnter(n,d)}if(l.length){q.b4DragOver(n,l);q.onDragOver(n,l)}if(j.length){q.b4DragDrop(n,j);q.onDragDrop(n,j)}}else{var m=0;for(h=0,m=g.length;h2000){}else{setTimeout(b._addListeners,10);if(document&&document.body){b._timeoutCount+=1}}}},handleWasClicked:function(b,d){if(this.isHandle(d,b.id)){return true}else{var c=b.parentNode;while(c){if(this.isHandle(d,c.id)){return true}else{c=c.parentNode}}}return false}}}();Ext.dd.DDM=Ext.dd.DragDropMgr;Ext.dd.DDM._addListeners()}Ext.dd.DD=function(c,a,b){if(c){this.init(c,a,b)}};Ext.extend(Ext.dd.DD,Ext.dd.DragDrop,{scroll:true,autoOffset:function(c,b){var a=c-this.startPageX;var d=b-this.startPageY;this.setDelta(a,d)},setDelta:function(b,a){this.deltaX=b;this.deltaY=a},setDragElPos:function(c,b){var a=this.getDragEl();this.alignElWithMouse(a,c,b)},alignElWithMouse:function(c,h,g){var e=this.getTargetCoord(h,g);var b=c.dom?c:Ext.fly(c,"_dd");if(!this.deltaSetXY){var i=[e.x,e.y];b.setXY(i);var d=b.getLeft(true);var a=b.getTop(true);this.deltaSetXY=[d-e.x,a-e.y]}else{b.setLeftTop(e.x+this.deltaSetXY[0],e.y+this.deltaSetXY[1])}this.cachePosition(e.x,e.y);this.autoScroll(e.x,e.y,c.offsetHeight,c.offsetWidth);return e},cachePosition:function(b,a){if(b){this.lastPageX=b;this.lastPageY=a}else{var c=Ext.lib.Dom.getXY(this.getEl());this.lastPageX=c[0];this.lastPageY=c[1]}},autoScroll:function(l,k,e,m){if(this.scroll){var n=Ext.lib.Dom.getViewHeight();var b=Ext.lib.Dom.getViewWidth();var p=this.DDM.getScrollTop();var d=this.DDM.getScrollLeft();var j=e+k;var o=m+l;var i=(n+p-k-this.deltaY);var g=(b+d-l-this.deltaX);var c=40;var a=(document.all)?80:30;if(j>n&&i0&&k-pb&&g0&&l-dthis.maxX){a=this.maxX}}if(this.constrainY){if(dthis.maxY){d=this.maxY}}a=this.getTick(a,this.xTicks);d=this.getTick(d,this.yTicks);return{x:a,y:d}},applyConfig:function(){Ext.dd.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(a){this.autoOffset(a.getPageX(),a.getPageY())},b4Drag:function(a){this.setDragElPos(a.getPageX(),a.getPageY())},toString:function(){return("DD "+this.id)}});Ext.dd.DDProxy=function(c,a,b){if(c){this.init(c,a,b);this.initFrame()}};Ext.dd.DDProxy.dragElId="ygddfdiv";Ext.extend(Ext.dd.DDProxy,Ext.dd.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var b=this;var a=document.body;if(!a||!a.firstChild){setTimeout(function(){b.createFrame()},50);return}var d=this.getDragEl();if(!d){d=document.createElement("div");d.id=this.dragElId;var c=d.style;c.position="absolute";c.visibility="hidden";c.cursor="move";c.border="2px solid #aaa";c.zIndex=999;a.insertBefore(d,a.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(e,d){var c=this.getEl();var a=this.getDragEl();var b=a.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(b.width,10)/2),Math.round(parseInt(b.height,10)/2))}this.setDragElPos(e,d);Ext.fly(a).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(b){var a=b.getPageX();var c=b.getPageY();this.autoOffset(a,c);this.setDragElPos(a,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl();var a=this.getDragEl();a.style.visibility="";this.beforeMove();b.style.visibility="hidden";Ext.dd.DDM.moveToEl(b,a);a.style.visibility="hidden";b.style.visibility="";this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return("DDProxy "+this.id)}});Ext.dd.DDTarget=function(c,a,b){if(c){this.initTarget(c,a,b)}};Ext.extend(Ext.dd.DDTarget,Ext.dd.DragDrop,{getDragEl:Ext.emptyFn,isValidHandleChild:Ext.emptyFn,startDrag:Ext.emptyFn,endDrag:Ext.emptyFn,onDrag:Ext.emptyFn,onDragDrop:Ext.emptyFn,onDragEnter:Ext.emptyFn,onDragOut:Ext.emptyFn,onDragOver:Ext.emptyFn,onInvalidDrop:Ext.emptyFn,onMouseDown:Ext.emptyFn,onMouseUp:Ext.emptyFn,setXConstraint:Ext.emptyFn,setYConstraint:Ext.emptyFn,resetConstraints:Ext.emptyFn,clearConstraints:Ext.emptyFn,clearTicks:Ext.emptyFn,setInitPosition:Ext.emptyFn,setDragElId:Ext.emptyFn,setHandleElId:Ext.emptyFn,setOuterHandleElId:Ext.emptyFn,addInvalidHandleClass:Ext.emptyFn,addInvalidHandleId:Ext.emptyFn,addInvalidHandleType:Ext.emptyFn,removeInvalidHandleClass:Ext.emptyFn,removeInvalidHandleId:Ext.emptyFn,removeInvalidHandleType:Ext.emptyFn,toString:function(){return("DDTarget "+this.id)}});Ext.dd.DragTracker=Ext.extend(Ext.util.Observable,{active:false,tolerance:5,autoStart:false,constructor:function(a){Ext.apply(this,a);this.addEvents("mousedown","mouseup","mousemove","dragstart","dragend","drag");this.dragRegion=new Ext.lib.Region(0,0,0,0);if(this.el){this.initEl(this.el)}Ext.dd.DragTracker.superclass.constructor.call(this,a)},initEl:function(a){this.el=Ext.get(a);a.on("mousedown",this.onMouseDown,this,this.delegate?{delegate:this.delegate}:undefined)},destroy:function(){this.el.un("mousedown",this.onMouseDown,this)},onMouseDown:function(c,b){if(this.fireEvent("mousedown",this,c)!==false&&this.onBeforeStart(c)!==false){this.startXY=this.lastXY=c.getXY();this.dragTarget=this.delegate?b:this.el.dom;if(this.preventDefault!==false){c.preventDefault()}var a=Ext.getDoc();a.on("mouseup",this.onMouseUp,this);a.on("mousemove",this.onMouseMove,this);a.on("selectstart",this.stopSelect,this);if(this.autoStart){this.timer=this.triggerStart.defer(this.autoStart===true?1000:this.autoStart,this)}}},onMouseMove:function(d,c){if(this.active&&Ext.isIE&&!d.browserEvent.button){d.preventDefault();this.onMouseUp(d);return}d.preventDefault();var b=d.getXY(),a=this.startXY;this.lastXY=b;if(!this.active){if(Math.abs(a[0]-b[0])>this.tolerance||Math.abs(a[1]-b[1])>this.tolerance){this.triggerStart()}else{return}}this.fireEvent("mousemove",this,d);this.onDrag(d);this.fireEvent("drag",this,d)},onMouseUp:function(c){var b=Ext.getDoc();b.un("mousemove",this.onMouseMove,this);b.un("mouseup",this.onMouseUp,this);b.un("selectstart",this.stopSelect,this);c.preventDefault();this.clearStart();var a=this.active;this.active=false;delete this.elRegion;this.fireEvent("mouseup",this,c);if(a){this.onEnd(c);this.fireEvent("dragend",this,c)}},triggerStart:function(a){this.clearStart();this.active=true;this.onStart(this.startXY);this.fireEvent("dragstart",this,this.startXY)},clearStart:function(){if(this.timer){clearTimeout(this.timer);delete this.timer}},stopSelect:function(a){a.stopEvent();return false},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getXY:function(a){return a?this.constrainModes[a].call(this,this.lastXY):this.lastXY},getOffset:function(c){var b=this.getXY(c);var a=this.startXY;return[a[0]-b[0],a[1]-b[1]]},constrainModes:{point:function(b){if(!this.elRegion){this.elRegion=this.getDragCt().getRegion()}var a=this.dragRegion;a.left=b[0];a.top=b[1];a.right=b[0];a.bottom=b[1];a.constrainTo(this.elRegion);return[a.left,a.top]}}});Ext.dd.ScrollManager=function(){var c=Ext.dd.DragDropMgr;var e={};var b=null;var i={};var h=function(l){b=null;a()};var j=function(){if(c.dragCurrent){c.refreshCache(c.dragCurrent.groups)}};var d=function(){if(c.dragCurrent){var l=Ext.dd.ScrollManager;var m=i.el.ddScrollConfig?i.el.ddScrollConfig.increment:l.increment;if(!l.animate){if(i.el.scroll(i.dir,m)){j()}}else{i.el.scroll(i.dir,m,true,l.animDuration,j)}}};var a=function(){if(i.id){clearInterval(i.id)}i.id=0;i.el=null;i.dir=""};var g=function(m,l){a();i.el=m;i.dir=l;var n=(m.ddScrollConfig&&m.ddScrollConfig.frequency)?m.ddScrollConfig.frequency:Ext.dd.ScrollManager.frequency;i.id=setInterval(d,n)};var k=function(o,q){if(q||!c.dragCurrent){return}var s=Ext.dd.ScrollManager;if(!b||b!=c.dragCurrent){b=c.dragCurrent;s.refreshCache()}var t=Ext.lib.Event.getXY(o);var u=new Ext.lib.Point(t[0],t[1]);for(var m in e){var n=e[m],l=n._region;var p=n.ddScrollConfig?n.ddScrollConfig:s;if(l&&l.contains(u)&&n.isScrollable()){if(l.bottom-u.y<=p.vthresh){if(i.el!=n){g(n,"down")}return}else{if(l.right-u.x<=p.hthresh){if(i.el!=n){g(n,"left")}return}else{if(u.y-l.top<=p.vthresh){if(i.el!=n){g(n,"up")}return}else{if(u.x-l.left<=p.hthresh){if(i.el!=n){g(n,"right")}return}}}}}}a()};c.fireEvents=c.fireEvents.createSequence(k,c);c.stopDrag=c.stopDrag.createSequence(h,c);return{register:function(n){if(Ext.isArray(n)){for(var m=0,l=n.length;m0){l.sort(c);var k=l[0].manager.zseed;for(var m=0;m=0;--j){if(!d[j].hidden){b(d[j]);return}}b(null)};return{zseed:9000,register:function(i){if(i.manager){i.manager.unregister(i)}i.manager=this;g[i.id]=i;d.push(i);i.on("hide",a)},unregister:function(i){delete i.manager;delete g[i.id];i.un("hide",a);d.remove(i)},get:function(i){return typeof i=="object"?i:g[i]},bringToFront:function(i){i=this.get(i);if(i!=e){i._lastAccess=new Date().getTime();h();return true}return false},sendToBack:function(i){i=this.get(i);i._lastAccess=-(new Date().getTime());h();return i},hideAll:function(){for(var i in g){if(g[i]&&typeof g[i]!="function"&&g[i].isVisible()){g[i].hide()}}},getActive:function(){return e},getBy:function(l,k){var m=[];for(var j=d.length-1;j>=0;--j){var n=d[j];if(l.call(k||n,n)!==false){m.push(n)}}return m},each:function(j,i){for(var k in g){if(g[k]&&typeof g[k]!="function"){if(j.call(i||g[k],g[k])===false){return}}}}}};Ext.WindowMgr=new Ext.WindowGroup();Ext.MessageBox=function(){var u,b,q,t,h,l,s,a,n,p,j,g,r,v,o,i="",d="",m=["ok","yes","no","cancel"];var c=function(x){r[x].blur();if(u.isVisible()){u.hide();w();Ext.callback(b.fn,b.scope||window,[x,v.dom.value,b],1)}};var w=function(){if(b&&b.cls){u.el.removeClass(b.cls)}n.reset()};var e=function(z,x,y){if(b&&b.closable!==false){u.hide();w()}if(y){y.stopEvent()}};var k=function(x){var z=0,y;if(!x){Ext.each(m,function(A){r[A].hide()});return z}u.footer.dom.style.display="";Ext.iterate(r,function(A,B){y=x[A];if(y){B.show();B.setText(Ext.isString(y)?y:Ext.MessageBox.buttonText[A]);z+=B.getEl().getWidth()+15}else{B.hide()}});return z};return{getDialog:function(x){if(!u){var z=[];r={};Ext.each(m,function(A){z.push(r[A]=new Ext.Button({text:this.buttonText[A],handler:c.createCallback(A),hideMode:"offsets"}))},this);u=new Ext.Window({autoCreate:true,title:x,resizable:false,constrain:true,constrainHeader:true,minimizable:false,maximizable:false,stateful:false,modal:true,shim:true,buttonAlign:"center",width:400,height:100,minHeight:80,plain:true,footer:true,closable:true,close:function(){if(b&&b.buttons&&b.buttons.no&&!b.buttons.cancel){c("no")}else{c("cancel")}},fbar:new Ext.Toolbar({items:z,enableOverflow:false})});u.render(document.body);u.getEl().addClass("x-window-dlg");q=u.mask;h=u.body.createChild({html:'

    '});j=Ext.get(h.dom.firstChild);var y=h.dom.childNodes[1];l=Ext.get(y.firstChild);s=Ext.get(y.childNodes[2].firstChild);s.enableDisplayMode();s.addKeyListener([10,13],function(){if(u.isVisible()&&b&&b.buttons){if(b.buttons.ok){c("ok")}else{if(b.buttons.yes){c("yes")}}}});a=Ext.get(y.childNodes[2].childNodes[1]);a.enableDisplayMode();n=new Ext.ProgressBar({renderTo:h});h.createChild({cls:"x-clear"})}return u},updateText:function(A){if(!u.isVisible()&&!b.width){u.setSize(this.maxWidth,100)}l.update(A||" ");var y=d!=""?(j.getWidth()+j.getMargins("lr")):0,C=l.getWidth()+l.getMargins("lr"),z=u.getFrameWidth("lr"),B=u.body.getFrameWidth("lr"),x;if(Ext.isIE&&y>0){y+=3}x=Math.max(Math.min(b.width||y+C+z+B,b.maxWidth||this.maxWidth),Math.max(b.minWidth||this.minWidth,o||0));if(b.prompt===true){v.setWidth(x-y-z-B)}if(b.progress===true||b.wait===true){n.setSize(x-y-z-B)}if(Ext.isIE&&x==o){x+=4}u.setSize(x,"auto").center();return this},updateProgress:function(y,x,z){n.updateProgress(y,x);if(z){this.updateText(z)}return this},isVisible:function(){return u&&u.isVisible()},hide:function(){var x=u?u.activeGhost:null;if(this.isVisible()||x){u.hide();w();if(x){u.unghost(false,false)}}return this},show:function(A){if(this.isVisible()){this.hide()}b=A;var B=this.getDialog(b.title||" ");B.setTitle(b.title||" ");var x=(b.closable!==false&&b.progress!==true&&b.wait!==true);B.tools.close.setDisplayed(x);v=s;b.prompt=b.prompt||(b.multiline?true:false);if(b.prompt){if(b.multiline){s.hide();a.show();a.setHeight(Ext.isNumber(b.multiline)?b.multiline:this.defaultTextHeight);v=a}else{s.show();a.hide()}}else{s.hide();a.hide()}v.dom.value=b.value||"";if(b.prompt){B.focusEl=v}else{var z=b.buttons;var y=null;if(z&&z.ok){y=r.ok}else{if(z&&z.yes){y=r.yes}}if(y){B.focusEl=y}}if(b.iconCls){B.setIconClass(b.iconCls)}this.setIcon(Ext.isDefined(b.icon)?b.icon:i);o=k(b.buttons);n.setVisible(b.progress===true||b.wait===true);this.updateProgress(0,b.progressText);this.updateText(b.msg);if(b.cls){B.el.addClass(b.cls)}B.proxyDrag=b.proxyDrag===true;B.modal=b.modal!==false;B.mask=b.modal!==false?q:false;if(!B.isVisible()){document.body.appendChild(u.el.dom);B.setAnimateTarget(b.animEl);B.on("show",function(){if(x===true){B.keyMap.enable()}else{B.keyMap.disable()}},this,{single:true});B.show(b.animEl)}if(b.wait===true){n.wait(b.waitConfig)}return this},setIcon:function(x){if(!u){i=x;return}i=undefined;if(x&&x!=""){j.removeClass("x-hidden");j.replaceClass(d,x);h.addClass("x-dlg-icon");d=x}else{j.replaceClass(d,"x-hidden");h.removeClass("x-dlg-icon");d=""}return this},progress:function(z,y,x){this.show({title:z,msg:y,buttons:false,progress:true,closable:false,minWidth:this.minProgressWidth,progressText:x});return this},wait:function(z,y,x){this.show({title:y,msg:z,buttons:false,closable:false,wait:true,modal:true,minWidth:this.minProgressWidth,waitConfig:x});return this},alert:function(A,z,y,x){this.show({title:A,msg:z,buttons:this.OK,fn:y,scope:x,minWidth:this.minWidth});return this},confirm:function(A,z,y,x){this.show({title:A,msg:z,buttons:this.YESNO,fn:y,scope:x,icon:this.QUESTION,minWidth:this.minWidth});return this},prompt:function(C,B,z,y,x,A){this.show({title:C,msg:B,buttons:this.OKCANCEL,fn:z,minWidth:this.minPromptWidth,scope:y,prompt:true,multiline:x,value:A});return this},OK:{ok:true},CANCEL:{cancel:true},OKCANCEL:{ok:true,cancel:true},YESNO:{yes:true,no:true},YESNOCANCEL:{yes:true,no:true,cancel:true},INFO:"ext-mb-info",WARNING:"ext-mb-warning",QUESTION:"ext-mb-question",ERROR:"ext-mb-error",defaultTextHeight:75,maxWidth:600,minWidth:100,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:"OK",cancel:"Cancel",yes:"Yes",no:"No"}}}();Ext.Msg=Ext.MessageBox;Ext.dd.PanelProxy=function(a,b){this.panel=a;this.id=this.panel.id+"-ddproxy";Ext.apply(this,b)};Ext.dd.PanelProxy.prototype={insertProxy:true,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){if(this.ghost){if(this.proxy){this.proxy.remove();delete this.proxy}this.panel.el.dom.style.display="";this.ghost.remove();delete this.ghost}},show:function(){if(!this.ghost){this.ghost=this.panel.createGhost(undefined,undefined,Ext.getBody());this.ghost.setXY(this.panel.el.getXY());if(this.insertProxy){this.proxy=this.panel.el.insertSibling({cls:"x-panel-dd-spacer"});this.proxy.setSize(this.panel.getSize())}this.panel.el.dom.style.display="none"}},repair:function(b,c,a){this.hide();if(typeof c=="function"){c.call(a||this)}},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}};Ext.Panel.DD=function(b,a){this.panel=b;this.dragData={panel:b};this.proxy=new Ext.dd.PanelProxy(b,a);Ext.Panel.DD.superclass.constructor.call(this,b.el,a);var c=b.header;if(c){this.setHandleElId(c.id)}(c?c:this.panel.body).setStyle("cursor","move");this.scroll=false};Ext.extend(Ext.Panel.DD,Ext.dd.DragSource,{showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.proxy.show()},b4MouseDown:function(b){var a=b.getPageX();var c=b.getPageY();this.autoOffset(a,c)},onInitDrag:function(a,b){this.onStartDrag(a,b);return true},createFrame:Ext.emptyFn,getDragEl:function(a){return this.proxy.ghost.dom},endDrag:function(a){this.proxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)}}); +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +Ext.TabPanel=Ext.extend(Ext.Panel,{deferredRender:true,tabWidth:120,minTabWidth:30,resizeTabs:false,enableTabScroll:false,scrollIncrement:0,scrollRepeatInterval:400,scrollDuration:0.35,animScroll:true,tabPosition:"top",baseCls:"x-tab-panel",autoTabs:false,autoTabSelector:"div.x-tab",activeTab:undefined,tabMargin:2,plain:false,wheelIncrement:20,idDelimiter:"__",itemCls:"x-tab-item",elements:"body",headerAsText:false,frame:false,hideBorders:true,initComponent:function(){this.frame=false;Ext.TabPanel.superclass.initComponent.call(this);this.addEvents("beforetabchange","tabchange","contextmenu");this.setLayout(new Ext.layout.CardLayout(Ext.apply({layoutOnCardChange:this.layoutOnTabChange,deferredRender:this.deferredRender},this.layoutConfig)));if(this.tabPosition=="top"){this.elements+=",header";this.stripTarget="header"}else{this.elements+=",footer";this.stripTarget="footer"}if(!this.stack){this.stack=Ext.TabPanel.AccessStack()}this.initItems()},onRender:function(c,a){Ext.TabPanel.superclass.onRender.call(this,c,a);if(this.plain){var g=this.tabPosition=="top"?"header":"footer";this[g].addClass("x-tab-panel-"+g+"-plain")}var b=this[this.stripTarget];this.stripWrap=b.createChild({cls:"x-tab-strip-wrap",cn:{tag:"ul",cls:"x-tab-strip x-tab-strip-"+this.tabPosition}});var e=(this.tabPosition=="bottom"?this.stripWrap:null);b.createChild({cls:"x-tab-strip-spacer"},e);this.strip=new Ext.Element(this.stripWrap.dom.firstChild);this.edge=this.strip.createChild({tag:"li",cls:"x-tab-edge",cn:[{tag:"span",cls:"x-tab-strip-text",cn:" "}]});this.strip.createChild({cls:"x-clear"});this.body.addClass("x-tab-panel-body-"+this.tabPosition);if(!this.itemTpl){var d=new Ext.Template('
  • ','','{text}',"
  • ");d.disableFormats=true;d.compile();Ext.TabPanel.prototype.itemTpl=d}this.items.each(this.initTab,this)},afterRender:function(){Ext.TabPanel.superclass.afterRender.call(this);if(this.autoTabs){this.readTabs(false)}if(this.activeTab!==undefined){var a=Ext.isObject(this.activeTab)?this.activeTab:this.items.get(this.activeTab);delete this.activeTab;this.setActiveTab(a)}},initEvents:function(){Ext.TabPanel.superclass.initEvents.call(this);this.mon(this.strip,{scope:this,mousedown:this.onStripMouseDown,contextmenu:this.onStripContextMenu});if(this.enableTabScroll){this.mon(this.strip,"mousewheel",this.onWheel,this)}},findTargets:function(c){var b=null,a=c.getTarget("li:not(.x-tab-edge)",this.strip);if(a){b=this.getComponent(a.id.split(this.idDelimiter)[1]);if(b.disabled){return{close:null,item:null,el:null}}}return{close:c.getTarget(".x-tab-strip-close",this.strip),item:b,el:a}},onStripMouseDown:function(b){if(b.button!==0){return}b.preventDefault();var a=this.findTargets(b);if(a.close){if(a.item.fireEvent("beforeclose",a.item)!==false){a.item.fireEvent("close",a.item);this.remove(a.item)}return}if(a.item&&a.item!=this.activeTab){this.setActiveTab(a.item)}},onStripContextMenu:function(b){b.preventDefault();var a=this.findTargets(b);if(a.item){this.fireEvent("contextmenu",this,a.item,b)}},readTabs:function(d){if(d===true){this.items.each(function(h){this.remove(h)},this)}var c=this.el.query(this.autoTabSelector);for(var b=0,a=c.length;b0){this.setActiveTab(0)}else{this.setActiveTab(null)}}}if(!this.destroying){this.delegateUpdates()}},onBeforeShowItem:function(a){if(a!=this.activeTab){this.setActiveTab(a);return false}},onItemDisabled:function(b){var a=this.getTabEl(b);if(a){Ext.fly(a).addClass("x-item-disabled")}this.stack.remove(b)},onItemEnabled:function(b){var a=this.getTabEl(b);if(a){Ext.fly(a).removeClass("x-item-disabled")}},onItemTitleChanged:function(b){var a=this.getTabEl(b);if(a){Ext.fly(a).child("span.x-tab-strip-text",true).innerHTML=b.title}},onItemIconChanged:function(d,a,c){var b=this.getTabEl(d);if(b){b=Ext.get(b);b.child("span.x-tab-strip-text").replaceClass(c,a);b[Ext.isEmpty(a)?"removeClass":"addClass"]("x-tab-with-icon")}},getTabEl:function(a){var b=this.getComponent(a);return b?b.tabEl:null},onResize:function(){Ext.TabPanel.superclass.onResize.apply(this,arguments);this.delegateUpdates()},beginUpdate:function(){this.suspendUpdates=true},endUpdate:function(){this.suspendUpdates=false;this.delegateUpdates()},hideTabStripItem:function(b){b=this.getComponent(b);var a=this.getTabEl(b);if(a){a.style.display="none";this.delegateUpdates()}this.stack.remove(b)},unhideTabStripItem:function(b){b=this.getComponent(b);var a=this.getTabEl(b);if(a){a.style.display="";this.delegateUpdates()}},delegateUpdates:function(){if(this.suspendUpdates){return}if(this.resizeTabs&&this.rendered){this.autoSizeTabs()}if(this.enableTabScroll&&this.rendered){this.autoScrollTabs()}},autoSizeTabs:function(){var h=this.items.length,b=this.tabPosition!="bottom"?"header":"footer",c=this[b].dom.offsetWidth,a=this[b].dom.clientWidth;if(!this.resizeTabs||h<1||!a){return}var k=Math.max(Math.min(Math.floor((a-4)/h)-this.tabMargin,this.tabWidth),this.minTabWidth);this.lastTabWidth=k;var m=this.strip.query("li:not(.x-tab-edge)");for(var e=0,j=m.length;e20?c:20);if(!this.scrolling){if(!this.scrollLeft){this.createScrollers()}else{this.scrollLeft.show();this.scrollRight.show()}}this.scrolling=true;if(i>(a-c)){e.scrollLeft=a-c}else{this.scrollToTab(this.activeTab,false)}this.updateScrollButtons()}},createScrollers:function(){this.pos.addClass("x-tab-scrolling-"+this.tabPosition);var c=this.stripWrap.dom.offsetHeight;var a=this.pos.insertFirst({cls:"x-tab-scroller-left"});a.setHeight(c);a.addClassOnOver("x-tab-scroller-left-over");this.leftRepeater=new Ext.util.ClickRepeater(a,{interval:this.scrollRepeatInterval,handler:this.onScrollLeft,scope:this});this.scrollLeft=a;var b=this.pos.insertFirst({cls:"x-tab-scroller-right"});b.setHeight(c);b.addClassOnOver("x-tab-scroller-right-over");this.rightRepeater=new Ext.util.ClickRepeater(b,{interval:this.scrollRepeatInterval,handler:this.onScrollRight,scope:this});this.scrollRight=b},getScrollWidth:function(){return this.edge.getOffsetsTo(this.stripWrap)[0]+this.getScrollPos()},getScrollPos:function(){return parseInt(this.stripWrap.dom.scrollLeft,10)||0},getScrollArea:function(){return parseInt(this.stripWrap.dom.clientWidth,10)||0},getScrollAnim:function(){return{duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},getScrollIncrement:function(){return this.scrollIncrement||(this.resizeTabs?this.lastTabWidth+2:100)},scrollToTab:function(e,a){if(!e){return}var c=this.getTabEl(e),h=this.getScrollPos(),d=this.getScrollArea(),g=Ext.fly(c).getOffsetsTo(this.stripWrap)[0]+h,b=g+c.offsetWidth;if(g(h+d)){this.scrollTo(b-d,a)}}},scrollTo:function(b,a){this.stripWrap.scrollTo("left",b,a?this.getScrollAnim():false);if(!a){this.updateScrollButtons()}},onWheel:function(g){var h=g.getWheelDelta()*this.wheelIncrement*-1;g.stopEvent();var i=this.getScrollPos(),c=i+h,a=this.getScrollWidth()-this.getScrollArea();var b=Math.max(0,Math.min(a,c));if(b!=i){this.scrollTo(b,false)}},onScrollRight:function(){var a=this.getScrollWidth()-this.getScrollArea(),c=this.getScrollPos(),b=Math.min(a,c+this.getScrollIncrement());if(b!=c){this.scrollTo(b,this.animScroll)}},onScrollLeft:function(){var b=this.getScrollPos(),a=Math.max(0,b-this.getScrollIncrement());if(a!=b){this.scrollTo(a,this.animScroll)}},updateScrollButtons:function(){var a=this.getScrollPos();this.scrollLeft[a===0?"addClass":"removeClass"]("x-tab-scroller-left-disabled");this.scrollRight[a>=(this.getScrollWidth()-this.getScrollArea())?"addClass":"removeClass"]("x-tab-scroller-right-disabled")},beforeDestroy:function(){Ext.destroy(this.leftRepeater,this.rightRepeater);this.deleteMembers("strip","edge","scrollLeft","scrollRight","stripWrap");this.activeTab=null;Ext.TabPanel.superclass.beforeDestroy.apply(this)}});Ext.reg("tabpanel",Ext.TabPanel);Ext.TabPanel.prototype.activate=Ext.TabPanel.prototype.setActiveTab;Ext.TabPanel.AccessStack=function(){var a=[];return{add:function(b){a.push(b);if(a.length>10){a.shift()}},remove:function(e){var d=[];for(var c=0,b=a.length;c','  ','  ','  ',"");Ext.Button.buttonTemplate.compile()}this.template=Ext.Button.buttonTemplate}var b,d=this.getTemplateArgs();if(a){b=this.template.insertBefore(a,d,true)}else{b=this.template.append(c,d,true)}this.btnEl=b.child(this.buttonSelector);this.mon(this.btnEl,{scope:this,focus:this.onFocus,blur:this.onBlur});this.initButtonEl(b,this.btnEl);Ext.ButtonToggleMgr.register(this)},initButtonEl:function(b,c){this.el=b;this.setIcon(this.icon);this.setText(this.text);this.setIconClass(this.iconCls);if(Ext.isDefined(this.tabIndex)){c.dom.tabIndex=this.tabIndex}if(this.tooltip){this.setTooltip(this.tooltip,true)}if(this.handleMouseEvents){this.mon(b,{scope:this,mouseover:this.onMouseOver,mousedown:this.onMouseDown})}if(this.menu){this.mon(this.menu,{scope:this,show:this.onMenuShow,hide:this.onMenuHide})}if(this.repeat){var a=new Ext.util.ClickRepeater(b,Ext.isObject(this.repeat)?this.repeat:{});this.mon(a,"click",this.onClick,this)}this.mon(b,this.clickEvent,this.onClick,this)},afterRender:function(){Ext.Button.superclass.afterRender.call(this);this.useSetClass=true;this.setButtonClass();this.doc=Ext.getDoc();this.doAutoWidth()},setIconClass:function(a){this.iconCls=a;if(this.el){this.btnEl.dom.className="";this.btnEl.addClass(["x-btn-text",a||""]);this.setButtonClass()}return this},setTooltip:function(b,a){if(this.rendered){if(!a){this.clearTip()}if(Ext.isObject(b)){Ext.QuickTips.register(Ext.apply({target:this.btnEl.id},b));this.tooltip=b}else{this.btnEl.dom[this.tooltipType]=b}}else{this.tooltip=b}return this},clearTip:function(){if(Ext.isObject(this.tooltip)){Ext.QuickTips.unregister(this.btnEl)}},beforeDestroy:function(){if(this.rendered){this.clearTip()}if(this.menu&&this.destroyMenu!==false){Ext.destroy(this.menu)}Ext.destroy(this.repeater)},onDestroy:function(){if(this.rendered){this.doc.un("mouseover",this.monitorMouseOver,this);this.doc.un("mouseup",this.onMouseUp,this);delete this.doc;delete this.btnEl;Ext.ButtonToggleMgr.unregister(this)}Ext.Button.superclass.onDestroy.call(this)},doAutoWidth:function(){if(this.autoWidth!==false&&this.el&&this.text&&this.width===undefined){this.el.setWidth("auto");if(Ext.isIE7&&Ext.isStrict){var a=this.btnEl;if(a&&a.getWidth()>20){a.clip();a.setWidth(Ext.util.TextMetrics.measure(a,this.text).width+a.getFrameWidth("lr"))}}if(this.minWidth){if(this.el.getWidth()a}else{return c.getPageY()>this.btnEl.getRegion().bottom}},onClick:function(b,a){b.preventDefault();if(!this.disabled){if(this.isClickOnArrow(b)){if(this.menu&&!this.menu.isVisible()&&!this.ignoreNextClick){this.showMenu()}this.fireEvent("arrowclick",this,b);if(this.arrowHandler){this.arrowHandler.call(this.scope||this,this,b)}}else{if(this.enableToggle){this.toggle()}this.fireEvent("click",this,b);if(this.handler){this.handler.call(this.scope||this,this,b)}}}},isMenuTriggerOver:function(a){return this.menu&&a.target.tagName==this.arrowSelector},isMenuTriggerOut:function(b,a){return this.menu&&b.target.tagName!=this.arrowSelector}});Ext.reg("splitbutton",Ext.SplitButton);Ext.CycleButton=Ext.extend(Ext.SplitButton,{getItemText:function(a){if(a&&this.showText===true){var b="";if(this.prependText){b+=this.prependText}b+=a.text;return b}return undefined},setActiveItem:function(c,a){if(!Ext.isObject(c)){c=this.menu.getComponent(c)}if(c){if(!this.rendered){this.text=this.getItemText(c);this.iconCls=c.iconCls}else{var b=this.getItemText(c);if(b){this.setText(b)}this.setIconClass(c.iconCls)}this.activeItem=c;if(!c.checked){c.setChecked(true,false)}if(this.forceIcon){this.setIconClass(this.forceIcon)}if(!a){this.fireEvent("change",this,c)}}},getActiveItem:function(){return this.activeItem},initComponent:function(){this.addEvents("change");if(this.changeHandler){this.on("change",this.changeHandler,this.scope||this);delete this.changeHandler}this.itemCount=this.items.length;this.menu={cls:"x-cycle-menu",items:[]};var a=0;Ext.each(this.items,function(c,b){Ext.apply(c,{group:c.group||this.id,itemIndex:b,checkHandler:this.checkHandler,scope:this,checked:c.checked||false});this.menu.items.push(c);if(c.checked){a=b}},this);Ext.CycleButton.superclass.initComponent.call(this);this.on("click",this.toggleSelected,this);this.setActiveItem(a,true)},checkHandler:function(a,b){if(b){this.setActiveItem(a)}},toggleSelected:function(){var a=this.menu;a.render();if(!a.hasLayout){a.doLayout()}var d,b;for(var c=1;c"){b=new a.Fill()}else{b=new a.TextItem(b)}}}this.applyDefaults(b)}else{if(b.isFormField||b.render){b=this.createComponent(b)}else{if(b.tag){b=new a.Item({autoEl:b})}else{if(b.tagName){b=new a.Item({el:b})}else{if(Ext.isObject(b)){b=b.xtype?this.createComponent(b):this.constructButton(b)}}}}}return b},applyDefaults:function(e){if(!Ext.isString(e)){e=Ext.Toolbar.superclass.applyDefaults.call(this,e);var b=this.internalDefaults;if(e.events){Ext.applyIf(e.initialConfig,b);Ext.apply(e,b)}else{Ext.applyIf(e,b)}}return e},addSeparator:function(){return this.add(new a.Separator())},addSpacer:function(){return this.add(new a.Spacer())},addFill:function(){this.add(new a.Fill())},addElement:function(b){return this.addItem(new a.Item({el:b}))},addItem:function(b){return this.add.apply(this,arguments)},addButton:function(c){if(Ext.isArray(c)){var e=[];for(var d=0,b=c.length;d");this.items.push(this.displayItem=new a.TextItem({}))}Ext.PagingToolbar.superclass.initComponent.call(this);this.addEvents("change","beforechange");this.on("afterlayout",this.onFirstLayout,this,{single:true});this.cursor=0;this.bindStore(this.store,true)},onFirstLayout:function(){if(this.dsLoaded){this.onLoad.apply(this,this.dsLoaded)}},updateInfo:function(){if(this.displayItem){var b=this.store.getCount();var c=b==0?this.emptyMsg:String.format(this.displayMsg,this.cursor+1,this.cursor+b,this.store.getTotalCount());this.displayItem.setText(c)}},onLoad:function(b,e,j){if(!this.rendered){this.dsLoaded=[b,e,j];return}var g=this.getParams();this.cursor=(j.params&&j.params[g.start])?j.params[g.start]:0;var i=this.getPageData(),c=i.activePage,h=i.pages;this.afterTextItem.setText(String.format(this.afterPageText,i.pages));this.inputItem.setValue(c);this.first.setDisabled(c==1);this.prev.setDisabled(c==1);this.next.setDisabled(c==h);this.last.setDisabled(c==h);this.refresh.enable();this.updateInfo();this.fireEvent("change",this,i)},getPageData:function(){var b=this.store.getTotalCount();return{total:b,activePage:Math.ceil((this.cursor+this.pageSize)/this.pageSize),pages:b=1&g<=j.pages){i.setValue(g)}}}}}},getParams:function(){return this.paramNames||this.store.paramNames},beforeLoad:function(){if(this.rendered&&this.refresh){this.refresh.disable()}},doLoad:function(d){var c={},b=this.getParams();c[b.start]=d;c[b.limit]=this.pageSize;if(this.fireEvent("beforechange",this,c)!==false){this.store.load({params:c})}},moveFirst:function(){this.doLoad(0)},movePrevious:function(){this.doLoad(Math.max(0,this.cursor-this.pageSize))},moveNext:function(){this.doLoad(this.cursor+this.pageSize)},moveLast:function(){var c=this.store.getTotalCount(),b=c%this.pageSize;this.doLoad(b?(c-b):c-this.pageSize)},doRefresh:function(){this.doLoad(this.cursor)},bindStore:function(c,d){var b;if(!d&&this.store){if(c!==this.store&&this.store.autoDestroy){this.store.destroy()}else{this.store.un("beforeload",this.beforeLoad,this);this.store.un("load",this.onLoad,this);this.store.un("exception",this.onLoadError,this)}if(!c){this.store=null}}if(c){c=Ext.StoreMgr.lookup(c);c.on({scope:this,beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError});b=true}this.store=c;if(b){this.onLoad(c,null,{})}},unbind:function(b){this.bindStore(null)},bind:function(b){this.bindStore(b)},onDestroy:function(){this.bindStore(null);Ext.PagingToolbar.superclass.onDestroy.call(this)}})})();Ext.reg("paging",Ext.PagingToolbar); +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +Ext.tree.TreePanel=Ext.extend(Ext.Panel,{rootVisible:true,animate:Ext.enableFx,lines:true,enableDD:false,hlDrop:Ext.enableFx,pathSeparator:"/",bubbleEvents:[],initComponent:function(){Ext.tree.TreePanel.superclass.initComponent.call(this);if(!this.eventModel){this.eventModel=new Ext.tree.TreeEventModel(this)}var a=this.loader;if(!a){a=new Ext.tree.TreeLoader({dataUrl:this.dataUrl,requestMethod:this.requestMethod})}else{if(Ext.isObject(a)&&!a.load){a=new Ext.tree.TreeLoader(a)}}this.loader=a;this.nodeHash={};if(this.root){var b=this.root;delete this.root;this.setRootNode(b)}this.addEvents("append","remove","movenode","insert","beforeappend","beforeremove","beforemovenode","beforeinsert","beforeload","load","textchange","beforeexpandnode","beforecollapsenode","expandnode","disabledchange","collapsenode","beforeclick","click","containerclick","checkchange","beforedblclick","dblclick","containerdblclick","contextmenu","containercontextmenu","beforechildrenrendered","startdrag","enddrag","dragdrop","beforenodedrop","nodedrop","nodedragover");if(this.singleExpand){this.on("beforeexpandnode",this.restrictExpand,this)}},proxyNodeEvent:function(c,b,a,h,g,e,d){if(c=="collapse"||c=="expand"||c=="beforecollapse"||c=="beforeexpand"||c=="move"||c=="beforemove"){c=c+"node"}return this.fireEvent(c,b,a,h,g,e,d)},getRootNode:function(){return this.root},setRootNode:function(b){this.destroyRoot();if(!b.render){b=this.loader.createNode(b)}this.root=b;b.ownerTree=this;b.isRoot=true;this.registerNode(b);if(!this.rootVisible){var a=b.attributes.uiProvider;b.ui=a?new a(b):new Ext.tree.RootTreeNodeUI(b)}if(this.innerCt){this.clearInnerCt();this.renderRoot()}return b},clearInnerCt:function(){this.innerCt.update("")},renderRoot:function(){this.root.render();if(!this.rootVisible){this.root.renderChildren()}},getNodeById:function(a){return this.nodeHash[a]},registerNode:function(a){this.nodeHash[a.id]=a},unregisterNode:function(a){delete this.nodeHash[a.id]},toString:function(){return"[Tree"+(this.id?" "+this.id:"")+"]"},restrictExpand:function(a){var b=a.parentNode;if(b){if(b.expandedChild&&b.expandedChild.parentNode==b){b.expandedChild.collapse()}b.expandedChild=a}},getChecked:function(b,c){c=c||this.root;var d=[];var e=function(){if(this.attributes.checked){d.push(!b?this:(b=="id"?this.id:this.attributes[b]))}};c.cascade(e);return d},getLoader:function(){return this.loader},expandAll:function(){this.root.expand(true)},collapseAll:function(){this.root.collapse(true)},getSelectionModel:function(){if(!this.selModel){this.selModel=new Ext.tree.DefaultSelectionModel()}return this.selModel},expandPath:function(g,a,h){a=a||"id";var d=g.split(this.pathSeparator);var c=this.root;if(c.attributes[a]!=d[1]){if(h){h(false,null)}return}var b=1;var e=function(){if(++b==d.length){if(h){h(true,c)}return}var i=c.findChild(a,d[b]);if(!i){if(h){h(false,c)}return}c=i;i.expand(false,false,e)};c.expand(false,false,e)},selectPath:function(e,a,g){a=a||"id";var c=e.split(this.pathSeparator),b=c.pop();if(c.length>1){var d=function(i,h){if(i&&h){var j=h.findChild(a,b);if(j){j.select();if(g){g(true,j)}}else{if(g){g(false,j)}}}else{if(g){g(false,j)}}};this.expandPath(c.join(this.pathSeparator),a,d)}else{this.root.select();if(g){g(true,this.root)}}},getTreeEl:function(){return this.body},onRender:function(b,a){Ext.tree.TreePanel.superclass.onRender.call(this,b,a);this.el.addClass("x-tree");this.innerCt=this.body.createChild({tag:"ul",cls:"x-tree-root-ct "+(this.useArrows?"x-tree-arrows":this.lines?"x-tree-lines":"x-tree-no-lines")})},initEvents:function(){Ext.tree.TreePanel.superclass.initEvents.call(this);if(this.containerScroll){Ext.dd.ScrollManager.register(this.body)}if((this.enableDD||this.enableDrop)&&!this.dropZone){this.dropZone=new Ext.tree.TreeDropZone(this,this.dropConfig||{ddGroup:this.ddGroup||"TreeDD",appendOnly:this.ddAppendOnly===true})}if((this.enableDD||this.enableDrag)&&!this.dragZone){this.dragZone=new Ext.tree.TreeDragZone(this,this.dragConfig||{ddGroup:this.ddGroup||"TreeDD",scroll:this.ddScroll})}this.getSelectionModel().init(this)},afterRender:function(){Ext.tree.TreePanel.superclass.afterRender.call(this);this.renderRoot()},beforeDestroy:function(){if(this.rendered){Ext.dd.ScrollManager.unregister(this.body);Ext.destroy(this.dropZone,this.dragZone)}this.destroyRoot();Ext.destroy(this.loader);this.nodeHash=this.root=this.loader=null;Ext.tree.TreePanel.superclass.beforeDestroy.call(this)},destroyRoot:function(){if(this.root&&this.root.destroy){this.root.destroy(true)}}});Ext.tree.TreePanel.nodeTypes={};Ext.reg("treepanel",Ext.tree.TreePanel);Ext.tree.TreeEventModel=function(a){this.tree=a;this.tree.on("render",this.initEvents,this)};Ext.tree.TreeEventModel.prototype={initEvents:function(){var a=this.tree;if(a.trackMouseOver!==false){a.mon(a.innerCt,{scope:this,mouseover:this.delegateOver,mouseout:this.delegateOut})}a.mon(a.getTreeEl(),{scope:this,click:this.delegateClick,dblclick:this.delegateDblClick,contextmenu:this.delegateContextMenu})},getNode:function(b){var a;if(a=b.getTarget(".x-tree-node-el",10)){var c=Ext.fly(a,"_treeEvents").getAttribute("tree-node-id","ext");if(c){return this.tree.getNodeById(c)}}return null},getNodeTarget:function(b){var a=b.getTarget(".x-tree-node-icon",1);if(!a){a=b.getTarget(".x-tree-node-el",6)}return a},delegateOut:function(b,a){if(!this.beforeEvent(b)){return}if(b.getTarget(".x-tree-ec-icon",1)){var c=this.getNode(b);this.onIconOut(b,c);if(c==this.lastEcOver){delete this.lastEcOver}}if((a=this.getNodeTarget(b))&&!b.within(a,true)){this.onNodeOut(b,this.getNode(b))}},delegateOver:function(b,a){if(!this.beforeEvent(b)){return}if(Ext.isGecko&&!this.trackingDoc){Ext.getBody().on("mouseover",this.trackExit,this);this.trackingDoc=true}if(this.lastEcOver){this.onIconOut(b,this.lastEcOver);delete this.lastEcOver}if(b.getTarget(".x-tree-ec-icon",1)){this.lastEcOver=this.getNode(b);this.onIconOver(b,this.lastEcOver)}if(a=this.getNodeTarget(b)){this.onNodeOver(b,this.getNode(b))}},trackExit:function(a){if(this.lastOverNode){if(this.lastOverNode.ui&&!a.within(this.lastOverNode.ui.getEl())){this.onNodeOut(a,this.lastOverNode)}delete this.lastOverNode;Ext.getBody().un("mouseover",this.trackExit,this);this.trackingDoc=false}},delegateClick:function(b,a){if(this.beforeEvent(b)){if(b.getTarget("input[type=checkbox]",1)){this.onCheckboxClick(b,this.getNode(b))}else{if(b.getTarget(".x-tree-ec-icon",1)){this.onIconClick(b,this.getNode(b))}else{if(this.getNodeTarget(b)){this.onNodeClick(b,this.getNode(b))}}}}else{this.checkContainerEvent(b,"click")}},delegateDblClick:function(b,a){if(this.beforeEvent(b)){if(this.getNodeTarget(b)){this.onNodeDblClick(b,this.getNode(b))}}else{this.checkContainerEvent(b,"dblclick")}},delegateContextMenu:function(b,a){if(this.beforeEvent(b)){if(this.getNodeTarget(b)){this.onNodeContextMenu(b,this.getNode(b))}}else{this.checkContainerEvent(b,"contextmenu")}},checkContainerEvent:function(b,a){if(this.disabled){b.stopEvent();return false}this.onContainerEvent(b,a)},onContainerEvent:function(b,a){this.tree.fireEvent("container"+a,this.tree,b)},onNodeClick:function(b,a){a.ui.onClick(b)},onNodeOver:function(b,a){this.lastOverNode=a;a.ui.onOver(b)},onNodeOut:function(b,a){a.ui.onOut(b)},onIconOver:function(b,a){a.ui.addClass("x-tree-ec-over")},onIconOut:function(b,a){a.ui.removeClass("x-tree-ec-over")},onIconClick:function(b,a){a.ui.ecClick(b)},onCheckboxClick:function(b,a){a.ui.onCheckChange(b)},onNodeDblClick:function(b,a){a.ui.onDblClick(b)},onNodeContextMenu:function(b,a){a.ui.onContextMenu(b)},beforeEvent:function(b){var a=this.getNode(b);if(this.disabled||!a||!a.ui){b.stopEvent();return false}return true},disable:function(){this.disabled=true},enable:function(){this.disabled=false}};Ext.tree.DefaultSelectionModel=Ext.extend(Ext.util.Observable,{constructor:function(a){this.selNode=null;this.addEvents("selectionchange","beforeselect");Ext.apply(this,a);Ext.tree.DefaultSelectionModel.superclass.constructor.call(this)},init:function(a){this.tree=a;a.mon(a.getTreeEl(),"keydown",this.onKeyDown,this);a.on("click",this.onNodeClick,this)},onNodeClick:function(a,b){this.select(a)},select:function(c,a){if(!Ext.fly(c.ui.wrap).isVisible()&&a){return a.call(this,c)}var b=this.selNode;if(c==b){c.ui.onSelectedChange(true)}else{if(this.fireEvent("beforeselect",this,c,b)!==false){if(b&&b.ui){b.ui.onSelectedChange(false)}this.selNode=c;c.ui.onSelectedChange(true);this.fireEvent("selectionchange",this,c,b)}}return c},unselect:function(b,a){if(this.selNode==b){this.clearSelections(a)}},clearSelections:function(a){var b=this.selNode;if(b){b.ui.onSelectedChange(false);this.selNode=null;if(a!==true){this.fireEvent("selectionchange",this,null)}}return b},getSelectedNode:function(){return this.selNode},isSelected:function(a){return this.selNode==a},selectPrevious:function(a){if(!(a=a||this.selNode||this.lastSelNode)){return null}var c=a.previousSibling;if(c){if(!c.isExpanded()||c.childNodes.length<1){return this.select(c,this.selectPrevious)}else{var b=c.lastChild;while(b&&b.isExpanded()&&Ext.fly(b.ui.wrap).isVisible()&&b.childNodes.length>0){b=b.lastChild}return this.select(b,this.selectPrevious)}}else{if(a.parentNode&&(this.tree.rootVisible||!a.parentNode.isRoot)){return this.select(a.parentNode,this.selectPrevious)}}return null},selectNext:function(b){if(!(b=b||this.selNode||this.lastSelNode)){return null}if(b.firstChild&&b.isExpanded()&&Ext.fly(b.ui.wrap).isVisible()){return this.select(b.firstChild,this.selectNext)}else{if(b.nextSibling){return this.select(b.nextSibling,this.selectNext)}else{if(b.parentNode){var a=null;b.parentNode.bubble(function(){if(this.nextSibling){a=this.getOwnerTree().selModel.select(this.nextSibling,this.selectNext);return false}});return a}}}return null},onKeyDown:function(c){var b=this.selNode||this.lastSelNode;var d=this;if(!b){return}var a=c.getKey();switch(a){case c.DOWN:c.stopEvent();this.selectNext();break;case c.UP:c.stopEvent();this.selectPrevious();break;case c.RIGHT:c.preventDefault();if(b.hasChildNodes()){if(!b.isExpanded()){b.expand()}else{if(b.firstChild){this.select(b.firstChild,c)}}}break;case c.LEFT:c.preventDefault();if(b.hasChildNodes()&&b.isExpanded()){b.collapse()}else{if(b.parentNode&&(this.tree.rootVisible||b.parentNode!=this.tree.getRootNode())){this.select(b.parentNode,c)}}break}}});Ext.tree.MultiSelectionModel=Ext.extend(Ext.util.Observable,{constructor:function(a){this.selNodes=[];this.selMap={};this.addEvents("selectionchange");Ext.apply(this,a);Ext.tree.MultiSelectionModel.superclass.constructor.call(this)},init:function(a){this.tree=a;a.mon(a.getTreeEl(),"keydown",this.onKeyDown,this);a.on("click",this.onNodeClick,this)},onNodeClick:function(a,b){if(b.ctrlKey&&this.isSelected(a)){this.unselect(a)}else{this.select(a,b,b.ctrlKey)}},select:function(a,c,b){if(b!==true){this.clearSelections(true)}if(this.isSelected(a)){this.lastSelNode=a;return a}this.selNodes.push(a);this.selMap[a.id]=a;this.lastSelNode=a;a.ui.onSelectedChange(true);this.fireEvent("selectionchange",this,this.selNodes);return a},unselect:function(b){if(this.selMap[b.id]){b.ui.onSelectedChange(false);var c=this.selNodes;var a=c.indexOf(b);if(a!=-1){this.selNodes.splice(a,1)}delete this.selMap[b.id];this.fireEvent("selectionchange",this,this.selNodes)}},clearSelections:function(b){var d=this.selNodes;if(d.length>0){for(var c=0,a=d.length;c0},isExpandable:function(){return this.attributes.expandable||this.hasChildNodes()},appendChild:function(e){var g=false;if(Ext.isArray(e)){g=e}else{if(arguments.length>1){g=arguments}}if(g){for(var d=0,a=g.length;d0){var g=d?function(){e.apply(d,arguments)}:e;c.sort(g);for(var b=0;b
    ','',this.indentMarkup,"",'','',g?('':"/>")):"",'',e.text,"
    ",'',""].join("");if(l!==true&&e.nextSibling&&(b=e.nextSibling.ui.getEl())){this.wrap=Ext.DomHelper.insertHtml("beforeBegin",b,d)}else{this.wrap=Ext.DomHelper.insertHtml("beforeEnd",j,d)}this.elNode=this.wrap.childNodes[0];this.ctNode=this.wrap.childNodes[1];var i=this.elNode.childNodes;this.indentNode=i[0];this.ecNode=i[1];this.iconNode=i[2];var h=3;if(g){this.checkbox=i[3];this.checkbox.defaultChecked=this.checkbox.checked;h++}this.anchor=i[h];this.textNode=i[h].firstChild},getAnchor:function(){return this.anchor},getTextEl:function(){return this.textNode},getIconEl:function(){return this.iconNode},isChecked:function(){return this.checkbox?this.checkbox.checked:false},updateExpandIcon:function(){if(this.rendered){var g=this.node,d,c,a=g.isLast()?"x-tree-elbow-end":"x-tree-elbow",e=g.hasChildNodes();if(e||g.attributes.expandable){if(g.expanded){a+="-minus";d="x-tree-node-collapsed";c="x-tree-node-expanded"}else{a+="-plus";d="x-tree-node-expanded";c="x-tree-node-collapsed"}if(this.wasLeaf){this.removeClass("x-tree-node-leaf");this.wasLeaf=false}if(this.c1!=d||this.c2!=c){Ext.fly(this.elNode).replaceClass(d,c);this.c1=d;this.c2=c}}else{if(!this.wasLeaf){Ext.fly(this.elNode).replaceClass("x-tree-node-expanded","x-tree-node-collapsed");delete this.c1;delete this.c2;this.wasLeaf=true}}var b="x-tree-ec-icon "+a;if(this.ecc!=b){this.ecNode.className=b;this.ecc=b}}},onIdChange:function(a){if(this.rendered){this.elNode.setAttribute("ext:tree-node-id",a)}},getChildIndent:function(){if(!this.childIndent){var a=[],b=this.node;while(b){if(!b.isRoot||(b.isRoot&&b.ownerTree.rootVisible)){if(!b.isLast()){a.unshift('')}else{a.unshift('')}}b=b.parentNode}this.childIndent=a.join("")}return this.childIndent},renderIndent:function(){if(this.rendered){var a="",b=this.node.parentNode;if(b){a=b.ui.getChildIndent()}if(this.indentMarkup!=a){this.indentNode.innerHTML=a;this.indentMarkup=a}this.updateExpandIcon()}},destroy:function(){if(this.elNode){Ext.dd.Registry.unregister(this.elNode.id)}Ext.each(["textnode","anchor","checkbox","indentNode","ecNode","iconNode","elNode","ctNode","wrap","holder"],function(a){if(this[a]){Ext.fly(this[a]).remove();delete this[a]}},this);delete this.node}};Ext.tree.RootTreeNodeUI=Ext.extend(Ext.tree.TreeNodeUI,{render:function(){if(!this.rendered){var a=this.node.ownerTree.innerCt.dom;this.node.expanded=true;a.innerHTML='
    ';this.wrap=this.ctNode=a.firstChild}},collapse:Ext.emptyFn,expand:Ext.emptyFn});Ext.tree.TreeLoader=function(a){this.baseParams={};Ext.apply(this,a);this.addEvents("beforeload","load","loadexception");Ext.tree.TreeLoader.superclass.constructor.call(this);if(Ext.isString(this.paramOrder)){this.paramOrder=this.paramOrder.split(/[\s,|]/)}};Ext.extend(Ext.tree.TreeLoader,Ext.util.Observable,{uiProviders:{},clearOnLoad:true,paramOrder:undefined,paramsAsHash:false,nodeParameter:"node",directFn:undefined,load:function(b,c,a){if(this.clearOnLoad){while(b.firstChild){b.removeChild(b.firstChild)}}if(this.doPreload(b)){this.runCallback(c,a||b,[b])}else{if(this.directFn||this.dataUrl||this.url){this.requestData(b,c,a||b)}}},doPreload:function(d){if(d.attributes.children){if(d.childNodes.length<1){var c=d.attributes.children;d.beginUpdate();for(var b=0,a=c.length;b-1){c=[]}for(var d=0,a=b.length;dl){return e?-1:+1}else{return 0}}}};Ext.tree.TreeSorter.prototype={doSort:function(a){a.sort(this.sortFn)},compareNodes:function(b,a){return(b.text.toUpperCase()>a.text.toUpperCase()?1:-1)},updateSort:function(a,b){if(b.childrenRendered){this.doSort.defer(1,this,[b])}},updateSortParent:function(a){var b=a.parentNode;if(b&&b.childrenRendered){this.doSort.defer(1,this,[b])}}};if(Ext.dd.DropZone){Ext.tree.TreeDropZone=function(a,b){this.allowParentInsert=b.allowParentInsert||false;this.allowContainerDrop=b.allowContainerDrop||false;this.appendOnly=b.appendOnly||false;Ext.tree.TreeDropZone.superclass.constructor.call(this,a.getTreeEl(),b);this.tree=a;this.dragOverData={};this.lastInsertClass="x-tree-no-status"};Ext.extend(Ext.tree.TreeDropZone,Ext.dd.DropZone,{ddGroup:"TreeDD",expandDelay:1000,expandNode:function(a){if(a.hasChildNodes()&&!a.isExpanded()){a.expand(false,null,this.triggerCacheRefresh.createDelegate(this))}},queueExpand:function(a){this.expandProcId=this.expandNode.defer(this.expandDelay,this,[a])},cancelExpand:function(){if(this.expandProcId){clearTimeout(this.expandProcId);this.expandProcId=false}},isValidDropPoint:function(a,k,i,d,c){if(!a||!c){return false}var g=a.node;var h=c.node;if(!(g&&g.isTarget&&k)){return false}if(k=="append"&&g.allowChildren===false){return false}if((k=="above"||k=="below")&&(g.parentNode&&g.parentNode.allowChildren===false)){return false}if(h&&(g==h||h.contains(g))){return false}var b=this.dragOverData;b.tree=this.tree;b.target=g;b.data=c;b.point=k;b.source=i;b.rawEvent=d;b.dropNode=h;b.cancel=false;var j=this.tree.fireEvent("nodedragover",b);return b.cancel===false&&j!==false},getDropPoint:function(h,g,l){var m=g.node;if(m.isRoot){return m.allowChildren!==false?"append":false}var c=g.ddel;var o=Ext.lib.Dom.getY(c),j=o+c.offsetHeight;var i=Ext.lib.Event.getPageY(h);var k=m.allowChildren===false||m.isLeaf();if(this.appendOnly||m.parentNode.allowChildren===false){return k?false:"append"}var d=false;if(!this.allowParentInsert){d=m.hasChildNodes()&&m.isExpanded()}var a=(j-o)/(k?2:3);if(i>=o&&i<(o+a)){return"above"}else{if(!d&&(k||i>=j-a&&i<=j)){return"below"}else{return"append"}}},onNodeEnter:function(d,a,c,b){this.cancelExpand()},onContainerOver:function(a,c,b){if(this.allowContainerDrop&&this.isValidDropPoint({ddel:this.tree.getRootNode().ui.elNode,node:this.tree.getRootNode()},"append",a,c,b)){return this.dropAllowed}return this.dropNotAllowed},onNodeOver:function(b,i,h,g){var k=this.getDropPoint(h,b,i);var c=b.node;if(!this.expandProcId&&k=="append"&&c.hasChildNodes()&&!b.node.isExpanded()){this.queueExpand(c)}else{if(k!="append"){this.cancelExpand()}}var d=this.dropNotAllowed;if(this.isValidDropPoint(b,k,i,h,g)){if(k){var a=b.ddel;var j;if(k=="above"){d=b.node.isFirst()?"x-tree-drop-ok-above":"x-tree-drop-ok-between";j="x-tree-drag-insert-above"}else{if(k=="below"){d=b.node.isLast()?"x-tree-drop-ok-below":"x-tree-drop-ok-between";j="x-tree-drag-insert-below"}else{d="x-tree-drop-ok-append";j="x-tree-drag-append"}}if(this.lastInsertClass!=j){Ext.fly(a).replaceClass(this.lastInsertClass,j);this.lastInsertClass=j}}}return d},onNodeOut:function(d,a,c,b){this.cancelExpand();this.removeDropIndicators(d)},onNodeDrop:function(i,b,h,d){var a=this.getDropPoint(h,i,b);var g=i.node;g.ui.startDrop();if(!this.isValidDropPoint(i,a,b,h,d)){g.ui.endDrop();return false}var c=d.node||(b.getTreeNode?b.getTreeNode(d,g,a,h):null);return this.processDrop(g,d,a,b,h,c)},onContainerDrop:function(a,g,c){if(this.allowContainerDrop&&this.isValidDropPoint({ddel:this.tree.getRootNode().ui.elNode,node:this.tree.getRootNode()},"append",a,g,c)){var d=this.tree.getRootNode();d.ui.startDrop();var b=c.node||(a.getTreeNode?a.getTreeNode(c,d,"append",g):null);return this.processDrop(d,c,"append",a,g,b)}return false},processDrop:function(j,h,b,a,i,d){var g={tree:this.tree,target:j,data:h,point:b,source:a,rawEvent:i,dropNode:d,cancel:!d,dropStatus:false};var c=this.tree.fireEvent("beforenodedrop",g);if(c===false||g.cancel===true||!g.dropNode){j.ui.endDrop();return g.dropStatus}j=g.target;if(b=="append"&&!j.isExpanded()){j.expand(false,null,function(){this.completeDrop(g)}.createDelegate(this))}else{this.completeDrop(g)}return true},completeDrop:function(h){var d=h.dropNode,e=h.point,c=h.target;if(!Ext.isArray(d)){d=[d]}var g;for(var b=0,a=d.length;bd.offsetLeft){e.scrollLeft=d.offsetLeft}var a=Math.min(this.maxWidth,(e.clientWidth>20?e.clientWidth:e.offsetWidth)-Math.max(0,d.offsetLeft-e.scrollLeft)-5);this.setSize(a,"")},triggerEdit:function(a,c){this.completeEdit();if(a.attributes.editable!==false){this.editNode=a;if(this.tree.autoScroll){Ext.fly(a.ui.getEl()).scrollIntoView(this.tree.body)}var b=a.text||"";if(!Ext.isGecko&&Ext.isEmpty(a.text)){a.setText(" ")}this.autoEditTimer=this.startEdit.defer(this.editDelay,this,[a.ui.textNode,b]);return false}},bindScroll:function(){this.tree.getTreeEl().on("scroll",this.cancelEdit,this)},beforeNodeClick:function(a,b){clearTimeout(this.autoEditTimer);if(this.tree.getSelectionModel().isSelected(a)){b.stopEvent();return this.triggerEdit(a)}},onNodeDblClick:function(a,b){clearTimeout(this.autoEditTimer)},updateNode:function(a,b){this.tree.getTreeEl().un("scroll",this.cancelEdit,this);this.editNode.setText(b)},onHide:function(){Ext.tree.TreeEditor.superclass.onHide.call(this);if(this.editNode){this.editNode.ui.focus.defer(50,this.editNode.ui)}},onSpecialKey:function(c,b){var a=b.getKey();if(a==b.ESC){b.stopEvent();this.cancelEdit()}else{if(a==b.ENTER&&!b.hasModifier()){b.stopEvent();this.completeEdit()}}},onDestroy:function(){clearTimeout(this.autoEditTimer);Ext.tree.TreeEditor.superclass.onDestroy.call(this);var a=this.tree;a.un("beforeclick",this.beforeNodeClick,this);a.un("dblclick",this.onNodeDblClick,this)}}); +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/* + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +Ext.form.Field=Ext.extend(Ext.BoxComponent,{invalidClass:"x-form-invalid",invalidText:"The value in this field is invalid",focusClass:"x-form-focus",validationEvent:"keyup",validateOnBlur:true,validationDelay:250,defaultAutoCreate:{tag:"input",type:"text",size:"20",autocomplete:"off"},fieldClass:"x-form-field",msgTarget:"qtip",msgFx:"normal",readOnly:false,disabled:false,submitValue:true,isFormField:true,msgDisplay:"",hasFocus:false,initComponent:function(){Ext.form.Field.superclass.initComponent.call(this);this.addEvents("focus","blur","specialkey","change","invalid","valid")},getName:function(){return this.rendered&&this.el.dom.name?this.el.dom.name:this.name||this.id||""},onRender:function(c,a){if(!this.el){var b=this.getAutoCreate();if(!b.name){b.name=this.name||this.id}if(this.inputType){b.type=this.inputType}this.autoEl=b}Ext.form.Field.superclass.onRender.call(this,c,a);if(this.submitValue===false){this.el.dom.removeAttribute("name")}var d=this.el.dom.type;if(d){if(d=="password"){d="text"}this.el.addClass("x-form-"+d)}if(this.readOnly){this.setReadOnly(true)}if(this.tabIndex!==undefined){this.el.dom.setAttribute("tabIndex",this.tabIndex)}this.el.addClass([this.fieldClass,this.cls])},getItemCt:function(){return this.itemCt},initValue:function(){if(this.value!==undefined){this.setValue(this.value)}else{if(!Ext.isEmpty(this.el.dom.value)&&this.el.dom.value!=this.emptyText){this.setValue(this.el.dom.value)}}this.originalValue=this.getValue()},isDirty:function(){if(this.disabled||!this.rendered){return false}return String(this.getValue())!==String(this.originalValue)},setReadOnly:function(a){if(this.rendered){this.el.dom.readOnly=a}this.readOnly=a},afterRender:function(){Ext.form.Field.superclass.afterRender.call(this);this.initEvents();this.initValue()},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent("specialkey",this,a)}},reset:function(){this.setValue(this.originalValue);this.clearInvalid()},initEvents:function(){this.mon(this.el,Ext.EventManager.useKeydown?"keydown":"keypress",this.fireKey,this);this.mon(this.el,"focus",this.onFocus,this);this.mon(this.el,"blur",this.onBlur,this,this.inEditor?{buffer:10}:null)},preFocus:Ext.emptyFn,onFocus:function(){this.preFocus();if(this.focusClass){this.el.addClass(this.focusClass)}if(!this.hasFocus){this.hasFocus=true;this.startValue=this.getValue();this.fireEvent("focus",this)}},beforeBlur:Ext.emptyFn,onBlur:function(){this.beforeBlur();if(this.focusClass){this.el.removeClass(this.focusClass)}this.hasFocus=false;if(this.validationEvent!==false&&(this.validateOnBlur||this.validationEvent=="blur")){this.validate()}var a=this.getValue();if(String(a)!==String(this.startValue)){this.fireEvent("change",this,a,this.startValue)}this.fireEvent("blur",this);this.postBlur()},postBlur:Ext.emptyFn,isValid:function(a){if(this.disabled){return true}var c=this.preventMark;this.preventMark=a===true;var b=this.validateValue(this.processValue(this.getRawValue()));this.preventMark=c;return b},validate:function(){if(this.disabled||this.validateValue(this.processValue(this.getRawValue()))){this.clearInvalid();return true}return false},processValue:function(a){return a},validateValue:function(b){var a=this.getErrors(b)[0];if(a==undefined){return true}else{this.markInvalid(a);return false}},getErrors:function(){return[]},getActiveError:function(){return this.activeError||""},markInvalid:function(c){if(this.rendered&&!this.preventMark){c=c||this.invalidText;var a=this.getMessageHandler();if(a){a.mark(this,c)}else{if(this.msgTarget){this.el.addClass(this.invalidClass);var b=Ext.getDom(this.msgTarget);if(b){b.innerHTML=c;b.style.display=this.msgDisplay}}}}this.setActiveError(c)},clearInvalid:function(){if(this.rendered&&!this.preventMark){this.el.removeClass(this.invalidClass);var a=this.getMessageHandler();if(a){a.clear(this)}else{if(this.msgTarget){this.el.removeClass(this.invalidClass);var b=Ext.getDom(this.msgTarget);if(b){b.innerHTML="";b.style.display="none"}}}}this.unsetActiveError()},setActiveError:function(b,a){this.activeError=b;if(a!==true){this.fireEvent("invalid",this,b)}},unsetActiveError:function(a){delete this.activeError;if(a!==true){this.fireEvent("valid",this)}},getMessageHandler:function(){return Ext.form.MessageTargets[this.msgTarget]},getErrorCt:function(){return this.el.findParent(".x-form-element",5,true)||this.el.findParent(".x-form-field-wrap",5,true)},alignErrorEl:function(){this.errorEl.setWidth(this.getErrorCt().getWidth(true)-20)},alignErrorIcon:function(){this.errorIcon.alignTo(this.el,"tl-tr",[2,0])},getRawValue:function(){var a=this.rendered?this.el.getValue():Ext.value(this.value,"");if(a===this.emptyText){a=""}return a},getValue:function(){if(!this.rendered){return this.value}var a=this.el.getValue();if(a===this.emptyText||a===undefined){a=""}return a},setRawValue:function(a){return this.rendered?(this.el.dom.value=(Ext.isEmpty(a)?"":a)):""},setValue:function(a){this.value=a;if(this.rendered){this.el.dom.value=(Ext.isEmpty(a)?"":a);this.validate()}return this},append:function(a){this.setValue([this.getValue(),a].join(""))}});Ext.form.MessageTargets={qtip:{mark:function(a,b){a.el.addClass(a.invalidClass);a.el.dom.qtip=b;a.el.dom.qclass="x-form-invalid-tip";if(Ext.QuickTips){Ext.QuickTips.enable()}},clear:function(a){a.el.removeClass(a.invalidClass);a.el.dom.qtip=""}},title:{mark:function(a,b){a.el.addClass(a.invalidClass);a.el.dom.title=b},clear:function(a){a.el.dom.title=""}},under:{mark:function(b,c){b.el.addClass(b.invalidClass);if(!b.errorEl){var a=b.getErrorCt();if(!a){b.el.dom.title=c;return}b.errorEl=a.createChild({cls:"x-form-invalid-msg"});b.on("resize",b.alignErrorEl,b);b.on("destroy",function(){Ext.destroy(this.errorEl)},b)}b.alignErrorEl();b.errorEl.update(c);Ext.form.Field.msgFx[b.msgFx].show(b.errorEl,b)},clear:function(a){a.el.removeClass(a.invalidClass);if(a.errorEl){Ext.form.Field.msgFx[a.msgFx].hide(a.errorEl,a)}else{a.el.dom.title=""}}},side:{mark:function(b,c){b.el.addClass(b.invalidClass);if(!b.errorIcon){var a=b.getErrorCt();if(!a){b.el.dom.title=c;return}b.errorIcon=a.createChild({cls:"x-form-invalid-icon"});if(b.ownerCt){b.ownerCt.on("afterlayout",b.alignErrorIcon,b);b.ownerCt.on("expand",b.alignErrorIcon,b)}b.on("resize",b.alignErrorIcon,b);b.on("destroy",function(){Ext.destroy(this.errorIcon)},b)}b.alignErrorIcon();b.errorIcon.dom.qtip=c;b.errorIcon.dom.qclass="x-form-invalid-tip";b.errorIcon.show()},clear:function(a){a.el.removeClass(a.invalidClass);if(a.errorIcon){a.errorIcon.dom.qtip="";a.errorIcon.hide()}else{a.el.dom.title=""}}}};Ext.form.Field.msgFx={normal:{show:function(a,b){a.setDisplayed("block")},hide:function(a,b){a.setDisplayed(false).update("")}},slide:{show:function(a,b){a.slideIn("t",{stopFx:true})},hide:function(a,b){a.slideOut("t",{stopFx:true,useDisplay:true})}},slideRight:{show:function(a,b){a.fixDisplay();a.alignTo(b.el,"tl-tr");a.slideIn("l",{stopFx:true})},hide:function(a,b){a.slideOut("l",{stopFx:true,useDisplay:true})}}};Ext.reg("field",Ext.form.Field);Ext.form.TextField=Ext.extend(Ext.form.Field,{grow:false,growMin:30,growMax:800,vtype:null,maskRe:null,disableKeyFilter:false,allowBlank:true,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:"The minimum length for this field is {0}",maxLengthText:"The maximum length for this field is {0}",selectOnFocus:false,blankText:"This field is required",validator:null,regex:null,regexText:"",emptyText:null,emptyClass:"x-form-empty-field",initComponent:function(){Ext.form.TextField.superclass.initComponent.call(this);this.addEvents("autosize","keydown","keyup","keypress")},initEvents:function(){Ext.form.TextField.superclass.initEvents.call(this);if(this.validationEvent=="keyup"){this.validationTask=new Ext.util.DelayedTask(this.validate,this);this.mon(this.el,"keyup",this.filterValidation,this)}else{if(this.validationEvent!==false&&this.validationEvent!="blur"){this.mon(this.el,this.validationEvent,this.validate,this,{buffer:this.validationDelay})}}if(this.selectOnFocus||this.emptyText){this.mon(this.el,"mousedown",this.onMouseDown,this);if(this.emptyText){this.applyEmptyText()}}if(this.maskRe||(this.vtype&&this.disableKeyFilter!==true&&(this.maskRe=Ext.form.VTypes[this.vtype+"Mask"]))){this.mon(this.el,"keypress",this.filterKeys,this)}if(this.grow){this.mon(this.el,"keyup",this.onKeyUpBuffered,this,{buffer:50});this.mon(this.el,"click",this.autoSize,this)}if(this.enableKeyEvents){this.mon(this.el,{scope:this,keyup:this.onKeyUp,keydown:this.onKeyDown,keypress:this.onKeyPress})}},onMouseDown:function(a){if(!this.hasFocus){this.mon(this.el,"mouseup",Ext.emptyFn,this,{single:true,preventDefault:true})}},processValue:function(a){if(this.stripCharsRe){var b=a.replace(this.stripCharsRe,"");if(b!==a){this.setRawValue(b);return b}}return a},filterValidation:function(a){if(!a.isNavKeyPress()){this.validationTask.delay(this.validationDelay)}},onDisable:function(){Ext.form.TextField.superclass.onDisable.call(this);if(Ext.isIE){this.el.dom.unselectable="on"}},onEnable:function(){Ext.form.TextField.superclass.onEnable.call(this);if(Ext.isIE){this.el.dom.unselectable=""}},onKeyUpBuffered:function(a){if(this.doAutoSize(a)){this.autoSize()}},doAutoSize:function(a){return !a.isNavKeyPress()},onKeyUp:function(a){this.fireEvent("keyup",this,a)},onKeyDown:function(a){this.fireEvent("keydown",this,a)},onKeyPress:function(a){this.fireEvent("keypress",this,a)},reset:function(){Ext.form.TextField.superclass.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){if(this.rendered&&this.emptyText&&this.getRawValue().length<1&&!this.hasFocus){this.setRawValue(this.emptyText);this.el.addClass(this.emptyClass)}},preFocus:function(){var a=this.el;if(this.emptyText){if(a.dom.value==this.emptyText){this.setRawValue("")}a.removeClass(this.emptyClass)}if(this.selectOnFocus){a.dom.select()}},postBlur:function(){this.applyEmptyText()},filterKeys:function(b){if(b.ctrlKey){return}var a=b.getKey();if(Ext.isGecko&&(b.isNavKeyPress()||a==b.BACKSPACE||(a==b.DELETE&&b.button==-1))){return}var c=String.fromCharCode(b.getCharCode());if(!Ext.isGecko&&b.isSpecialKey()&&!c){return}if(!this.maskRe.test(c)){b.stopEvent()}},setValue:function(a){if(this.emptyText&&this.el&&!Ext.isEmpty(a)){this.el.removeClass(this.emptyClass)}Ext.form.TextField.superclass.setValue.apply(this,arguments);this.applyEmptyText();this.autoSize();return this},getErrors:function(a){var d=Ext.form.TextField.superclass.getErrors.apply(this,arguments);a=a||this.processValue(this.getRawValue());if(Ext.isFunction(this.validator)){var c=this.validator(a);if(c!==true){d.push(c)}}if(a.length<1||a===this.emptyText){if(this.allowBlank){return d}else{d.push(this.blankText)}}if(!this.allowBlank&&(a.length<1||a===this.emptyText)){d.push(this.blankText)}if(a.lengththis.maxLength){d.push(String.format(this.maxLengthText,this.maxLength))}if(this.vtype){var b=Ext.form.VTypes;if(!b[this.vtype](a,this)){d.push(this.vtypeText||b[this.vtype+"Text"])}}if(this.regex&&!this.regex.test(a)){d.push(this.regexText)}return d},selectText:function(h,a){var c=this.getRawValue();var e=false;if(c.length>0){h=h===undefined?0:h;a=a===undefined?c.length:a;var g=this.el.dom;if(g.setSelectionRange){g.setSelectionRange(h,a)}else{if(g.createTextRange){var b=g.createTextRange();b.moveStart("character",h);b.moveEnd("character",a-c.length);b.select()}}e=Ext.isGecko||Ext.isOpera}else{e=true}if(e){this.focus()}},autoSize:function(){if(!this.grow||!this.rendered){return}if(!this.metrics){this.metrics=Ext.util.TextMetrics.createInstance(this.el)}var c=this.el;var b=c.dom.value;var e=document.createElement("div");e.appendChild(document.createTextNode(b));b=e.innerHTML;Ext.removeNode(e);e=null;b+=" ";var a=Math.min(this.growMax,Math.max(this.metrics.getWidth(b)+10,this.growMin));this.el.setWidth(a);this.fireEvent("autosize",this,a)},onDestroy:function(){if(this.validationTask){this.validationTask.cancel();this.validationTask=null}Ext.form.TextField.superclass.onDestroy.call(this)}});Ext.reg("textfield",Ext.form.TextField);Ext.form.TriggerField=Ext.extend(Ext.form.TextField,{defaultAutoCreate:{tag:"input",type:"text",size:"16",autocomplete:"off"},hideTrigger:false,editable:true,readOnly:false,wrapFocusClass:"x-trigger-wrap-focus",autoSize:Ext.emptyFn,monitorTab:true,deferHeight:true,mimicing:false,actionMode:"wrap",defaultTriggerWidth:17,onResize:function(a,c){Ext.form.TriggerField.superclass.onResize.call(this,a,c);var b=this.getTriggerWidth();if(Ext.isNumber(a)){this.el.setWidth(a-b)}this.wrap.setWidth(this.el.getWidth()+b)},getTriggerWidth:function(){var a=this.trigger.getWidth();if(!this.hideTrigger&&!this.readOnly&&a===0){a=this.defaultTriggerWidth}return a},alignErrorIcon:function(){if(this.wrap){this.errorIcon.alignTo(this.wrap,"tl-tr",[2,0])}},onRender:function(b,a){this.doc=Ext.isIE?Ext.getBody():Ext.getDoc();Ext.form.TriggerField.superclass.onRender.call(this,b,a);this.wrap=this.el.wrap({cls:"x-form-field-wrap x-form-field-trigger-wrap"});this.trigger=this.wrap.createChild(this.triggerConfig||{tag:"img",src:Ext.BLANK_IMAGE_URL,cls:"x-form-trigger "+this.triggerClass});this.initTrigger();if(!this.width){this.wrap.setWidth(this.el.getWidth()+this.trigger.getWidth())}this.resizeEl=this.positionEl=this.wrap},getWidth:function(){return(this.el.getWidth()+this.trigger.getWidth())},updateEditState:function(){if(this.rendered){if(this.readOnly){this.el.dom.readOnly=true;this.el.addClass("x-trigger-noedit");this.mun(this.el,"click",this.onTriggerClick,this);this.trigger.setDisplayed(false)}else{if(!this.editable){this.el.dom.readOnly=true;this.el.addClass("x-trigger-noedit");this.mon(this.el,"click",this.onTriggerClick,this)}else{this.el.dom.readOnly=false;this.el.removeClass("x-trigger-noedit");this.mun(this.el,"click",this.onTriggerClick,this)}this.trigger.setDisplayed(!this.hideTrigger)}this.onResize(this.width||this.wrap.getWidth())}},setHideTrigger:function(a){if(a!=this.hideTrigger){this.hideTrigger=a;this.updateEditState()}},setEditable:function(a){if(a!=this.editable){this.editable=a;this.updateEditState()}},setReadOnly:function(a){if(a!=this.readOnly){this.readOnly=a;this.updateEditState()}},afterRender:function(){Ext.form.TriggerField.superclass.afterRender.call(this);this.updateEditState()},initTrigger:function(){this.mon(this.trigger,"click",this.onTriggerClick,this,{preventDefault:true});this.trigger.addClassOnOver("x-form-trigger-over");this.trigger.addClassOnClick("x-form-trigger-click")},onDestroy:function(){Ext.destroy(this.trigger,this.wrap);if(this.mimicing){this.doc.un("mousedown",this.mimicBlur,this)}delete this.doc;Ext.form.TriggerField.superclass.onDestroy.call(this)},onFocus:function(){Ext.form.TriggerField.superclass.onFocus.call(this);if(!this.mimicing){this.wrap.addClass(this.wrapFocusClass);this.mimicing=true;this.doc.on("mousedown",this.mimicBlur,this,{delay:10});if(this.monitorTab){this.on("specialkey",this.checkTab,this)}}},checkTab:function(a,b){if(b.getKey()==b.TAB){this.triggerBlur()}},onBlur:Ext.emptyFn,mimicBlur:function(a){if(!this.isDestroyed&&!this.wrap.contains(a.target)&&this.validateBlur(a)){this.triggerBlur()}},triggerBlur:function(){this.mimicing=false;this.doc.un("mousedown",this.mimicBlur,this);if(this.monitorTab&&this.el){this.un("specialkey",this.checkTab,this)}Ext.form.TriggerField.superclass.onBlur.call(this);if(this.wrap){this.wrap.removeClass(this.wrapFocusClass)}},beforeBlur:Ext.emptyFn,validateBlur:function(a){return true},onTriggerClick:Ext.emptyFn});Ext.form.TwinTriggerField=Ext.extend(Ext.form.TriggerField,{initComponent:function(){Ext.form.TwinTriggerField.superclass.initComponent.call(this);this.triggerConfig={tag:"span",cls:"x-form-twin-triggers",cn:[{tag:"img",src:Ext.BLANK_IMAGE_URL,cls:"x-form-trigger "+this.trigger1Class},{tag:"img",src:Ext.BLANK_IMAGE_URL,cls:"x-form-trigger "+this.trigger2Class}]}},getTrigger:function(a){return this.triggers[a]},initTrigger:function(){var a=this.trigger.select(".x-form-trigger",true);var b=this;a.each(function(d,g,c){var e="Trigger"+(c+1);d.hide=function(){var h=b.wrap.getWidth();this.dom.style.display="none";b.el.setWidth(h-b.trigger.getWidth());this["hidden"+e]=true};d.show=function(){var h=b.wrap.getWidth();this.dom.style.display="";b.el.setWidth(h-b.trigger.getWidth());this["hidden"+e]=false};if(this["hide"+e]){d.dom.style.display="none";this["hidden"+e]=true}this.mon(d,"click",this["on"+e+"Click"],this,{preventDefault:true});d.addClassOnOver("x-form-trigger-over");d.addClassOnClick("x-form-trigger-click")},this);this.triggers=a.elements},getTriggerWidth:function(){var a=0;Ext.each(this.triggers,function(d,c){var e="Trigger"+(c+1),b=d.getWidth();if(b===0&&!this["hidden"+e]){a+=this.defaultTriggerWidth}else{a+=b}},this);return a},onDestroy:function(){Ext.destroy(this.triggers);Ext.form.TwinTriggerField.superclass.onDestroy.call(this)},onTrigger1Click:Ext.emptyFn,onTrigger2Click:Ext.emptyFn});Ext.reg("trigger",Ext.form.TriggerField);Ext.form.TextArea=Ext.extend(Ext.form.TextField,{growMin:60,growMax:1000,growAppend:" \n ",enterIsSpecial:false,preventScrollbars:false,onRender:function(b,a){if(!this.el){this.defaultAutoCreate={tag:"textarea",style:"width:100px;height:60px;",autocomplete:"off"}}Ext.form.TextArea.superclass.onRender.call(this,b,a);if(this.grow){this.textSizeEl=Ext.DomHelper.append(document.body,{tag:"pre",cls:"x-form-grow-sizer"});if(this.preventScrollbars){this.el.setStyle("overflow","hidden")}this.el.setHeight(this.growMin)}},onDestroy:function(){Ext.removeNode(this.textSizeEl);Ext.form.TextArea.superclass.onDestroy.call(this)},fireKey:function(a){if(a.isSpecialKey()&&(this.enterIsSpecial||(a.getKey()!=a.ENTER||a.hasModifier()))){this.fireEvent("specialkey",this,a)}},doAutoSize:function(a){return !a.isNavKeyPress()||a.getKey()==a.ENTER},autoSize:function(){if(!this.grow||!this.textSizeEl){return}var c=this.el,a=Ext.util.Format.htmlEncode(c.dom.value),d=this.textSizeEl,b;Ext.fly(d).setWidth(this.el.getWidth());if(a.length<1){a="  "}else{a+=this.growAppend;if(Ext.isIE){a=a.replace(/\n/g," 
    ")}}d.innerHTML=a;b=Math.min(this.growMax,Math.max(d.offsetHeight,this.growMin));if(b!=this.lastHeight){this.lastHeight=b;this.el.setHeight(b);this.fireEvent("autosize",this,b)}}});Ext.reg("textarea",Ext.form.TextArea);Ext.form.NumberField=Ext.extend(Ext.form.TextField,{fieldClass:"x-form-field x-form-num-field",allowDecimals:true,decimalSeparator:".",decimalPrecision:2,allowNegative:true,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,minText:"The minimum value for this field is {0}",maxText:"The maximum value for this field is {0}",nanText:"{0} is not a valid number",baseChars:"0123456789",initEvents:function(){var a=this.baseChars+"";if(this.allowDecimals){a+=this.decimalSeparator}if(this.allowNegative){a+="-"}this.maskRe=new RegExp("["+Ext.escapeRe(a)+"]");Ext.form.NumberField.superclass.initEvents.call(this)},getErrors:function(b){var c=Ext.form.NumberField.superclass.getErrors.apply(this,arguments);b=b||this.processValue(this.getRawValue());if(b.length<1){return c}b=String(b).replace(this.decimalSeparator,".");if(isNaN(b)){c.push(String.format(this.nanText,b))}var a=this.parseValue(b);if(athis.maxValue){c.push(String.format(this.maxText,this.maxValue))}return c},getValue:function(){return this.fixPrecision(this.parseValue(Ext.form.NumberField.superclass.getValue.call(this)))},setValue:function(a){a=Ext.isNumber(a)?a:parseFloat(String(a).replace(this.decimalSeparator,"."));a=isNaN(a)?"":String(a).replace(".",this.decimalSeparator);return Ext.form.NumberField.superclass.setValue.call(this,a)},setMinValue:function(a){this.minValue=Ext.num(a,Number.NEGATIVE_INFINITY)},setMaxValue:function(a){this.maxValue=Ext.num(a,Number.MAX_VALUE)},parseValue:function(a){a=parseFloat(String(a).replace(this.decimalSeparator,"."));return isNaN(a)?"":a},fixPrecision:function(b){var a=isNaN(b);if(!this.allowDecimals||this.decimalPrecision==-1||a||!b){return a?"":b}return parseFloat(parseFloat(b).toFixed(this.decimalPrecision))},beforeBlur:function(){var a=this.parseValue(this.getRawValue());if(!Ext.isEmpty(a)){this.setValue(this.fixPrecision(a))}}});Ext.reg("numberfield",Ext.form.NumberField);Ext.form.DateField=Ext.extend(Ext.form.TriggerField,{format:"m/d/Y",altFormats:"m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d",disabledDaysText:"Disabled",disabledDatesText:"Disabled",minText:"The date in this field must be equal to or after {0}",maxText:"The date in this field must be equal to or before {0}",invalidText:"{0} is not a valid date - it must be in the format {1}",triggerClass:"x-form-date-trigger",showToday:true,defaultAutoCreate:{tag:"input",type:"text",size:"10",autocomplete:"off"},initTime:"12",initTimeFormat:"H",safeParse:function(b,c){if(/[gGhH]/.test(c.replace(/(\\.)/g,""))){return Date.parseDate(b,c)}else{var a=Date.parseDate(b+" "+this.initTime,c+" "+this.initTimeFormat);if(a){return a.clearTime()}}},initComponent:function(){Ext.form.DateField.superclass.initComponent.call(this);this.addEvents("select");if(Ext.isString(this.minValue)){this.minValue=this.parseDate(this.minValue)}if(Ext.isString(this.maxValue)){this.maxValue=this.parseDate(this.maxValue)}this.disabledDatesRE=null;this.initDisabledDays()},initEvents:function(){Ext.form.DateField.superclass.initEvents.call(this);this.keyNav=new Ext.KeyNav(this.el,{down:function(a){this.onTriggerClick()},scope:this,forceKeyDown:true})},initDisabledDays:function(){if(this.disabledDates){var b=this.disabledDates,a=b.length-1,c="(?:";Ext.each(b,function(g,e){c+=Ext.isDate(g)?"^"+Ext.escapeRe(g.dateFormat(this.format))+"$":b[e];if(e!=a){c+="|"}},this);this.disabledDatesRE=new RegExp(c+")")}},setDisabledDates:function(a){this.disabledDates=a;this.initDisabledDays();if(this.menu){this.menu.picker.setDisabledDates(this.disabledDatesRE)}},setDisabledDays:function(a){this.disabledDays=a;if(this.menu){this.menu.picker.setDisabledDays(a)}},setMinValue:function(a){this.minValue=(Ext.isString(a)?this.parseDate(a):a);if(this.menu){this.menu.picker.setMinDate(this.minValue)}},setMaxValue:function(a){this.maxValue=(Ext.isString(a)?this.parseDate(a):a);if(this.menu){this.menu.picker.setMaxDate(this.maxValue)}},getErrors:function(e){var h=Ext.form.DateField.superclass.getErrors.apply(this,arguments);e=this.formatDate(e||this.processValue(this.getRawValue()));if(e.length<1){return h}var c=e;e=this.parseDate(e);if(!e){h.push(String.format(this.invalidText,c,this.format));return h}var g=e.getTime();if(this.minValue&&gthis.maxValue.getTime()){h.push(String.format(this.maxText,this.formatDate(this.maxValue)))}if(this.disabledDays){var a=e.getDay();for(var b=0;b
    {'+this.displayField+"}
    "}this.view=new Ext.DataView({applyTo:this.innerList,tpl:this.tpl,singleSelect:true,selectedClass:this.selectedClass,itemSelector:this.itemSelector||"."+a+"-item",emptyText:this.listEmptyText,deferEmptyText:false});this.mon(this.view,{containerclick:this.onViewClick,click:this.onViewClick,scope:this});this.bindStore(this.store,true);if(this.resizable){this.resizer=new Ext.Resizable(this.list,{pinned:true,handles:"se"});this.mon(this.resizer,"resize",function(i,e,g){this.maxHeight=g-this.handleHeight-this.list.getFrameWidth("tb")-this.assetHeight;this.listWidth=e;this.innerList.setWidth(e-this.list.getFrameWidth("lr"));this.restrictHeight()},this);this[this.pageSize?"footer":"innerList"].setStyle("margin-bottom",this.handleHeight+"px")}}},getListParent:function(){return document.body},getStore:function(){return this.store},bindStore:function(a,b){if(this.store&&!b){if(this.store!==a&&this.store.autoDestroy){this.store.destroy()}else{this.store.un("beforeload",this.onBeforeLoad,this);this.store.un("load",this.onLoad,this);this.store.un("exception",this.collapse,this)}if(!a){this.store=null;if(this.view){this.view.bindStore(null)}if(this.pageTb){this.pageTb.bindStore(null)}}}if(a){if(!b){this.lastQuery=null;if(this.pageTb){this.pageTb.bindStore(a)}}this.store=Ext.StoreMgr.lookup(a);this.store.on({scope:this,beforeload:this.onBeforeLoad,load:this.onLoad,exception:this.collapse});if(this.view){this.view.bindStore(a)}}},reset:function(){Ext.form.ComboBox.superclass.reset.call(this);if(this.clearFilterOnReset&&this.mode=="local"){this.store.clearFilter()}},initEvents:function(){Ext.form.ComboBox.superclass.initEvents.call(this);this.keyNav=new Ext.KeyNav(this.el,{up:function(a){this.inKeyMode=true;this.selectPrev()},down:function(a){if(!this.isExpanded()){this.onTriggerClick()}else{this.inKeyMode=true;this.selectNext()}},enter:function(a){this.onViewClick()},esc:function(a){this.collapse()},tab:function(a){if(this.forceSelection===true){this.collapse()}else{this.onViewClick(false)}return true},scope:this,doRelay:function(c,b,a){if(a=="down"||this.scope.isExpanded()){var d=Ext.KeyNav.prototype.doRelay.apply(this,arguments);if(!Ext.isIE&&Ext.EventManager.useKeydown){this.scope.fireKey(c)}return d}return true},forceKeyDown:true,defaultEventAction:"stopEvent"});this.queryDelay=Math.max(this.queryDelay||10,this.mode=="local"?10:250);this.dqTask=new Ext.util.DelayedTask(this.initQuery,this);if(this.typeAhead){this.taTask=new Ext.util.DelayedTask(this.onTypeAhead,this)}if(!this.enableKeyEvents){this.mon(this.el,"keyup",this.onKeyUp,this)}},onDestroy:function(){if(this.dqTask){this.dqTask.cancel();this.dqTask=null}this.bindStore(null);Ext.destroy(this.resizer,this.view,this.pageTb,this.list);Ext.destroyMembers(this,"hiddenField");Ext.form.ComboBox.superclass.onDestroy.call(this)},fireKey:function(a){if(!this.isExpanded()){Ext.form.ComboBox.superclass.fireKey.call(this,a)}},onResize:function(a,b){Ext.form.ComboBox.superclass.onResize.apply(this,arguments);if(!isNaN(a)&&this.isVisible()&&this.list){this.doResize(a)}else{this.bufferSize=a}},doResize:function(a){if(!Ext.isDefined(this.listWidth)){var b=Math.max(a,this.minListWidth);this.list.setWidth(b);this.innerList.setWidth(b-this.list.getFrameWidth("lr"))}},onEnable:function(){Ext.form.ComboBox.superclass.onEnable.apply(this,arguments);if(this.hiddenField){this.hiddenField.disabled=false}},onDisable:function(){Ext.form.ComboBox.superclass.onDisable.apply(this,arguments);if(this.hiddenField){this.hiddenField.disabled=true}},onBeforeLoad:function(){if(!this.hasFocus){return}this.innerList.update(this.loadingText?'
    '+this.loadingText+"
    ":"");this.restrictHeight();this.selectedIndex=-1},onLoad:function(){if(!this.hasFocus){return}if(this.store.getCount()>0||this.listEmptyText){this.expand();this.restrictHeight();if(this.lastQuery==this.allQuery){if(this.editable){this.el.dom.select()}if(this.autoSelect!==false&&!this.selectByValue(this.value,true)){this.select(0,true)}}else{if(this.autoSelect!==false){this.selectNext()}if(this.typeAhead&&this.lastKey!=Ext.EventObject.BACKSPACE&&this.lastKey!=Ext.EventObject.DELETE){this.taTask.delay(this.typeAheadDelay)}}}else{this.collapse()}},onTypeAhead:function(){if(this.store.getCount()>0){var b=this.store.getAt(0);var c=b.data[this.displayField];var a=c.length;var d=this.getRawValue().length;if(d!=a){this.setRawValue(c);this.selectText(d,c.length)}}},assertValue:function(){var b=this.getRawValue(),a=this.findRecord(this.displayField,b);if(!a&&this.forceSelection){if(b.length>0&&b!=this.emptyText){this.el.dom.value=Ext.value(this.lastSelectionText,"");this.applyEmptyText()}else{this.clearValue()}}else{if(a){if(b==a.get(this.displayField)&&this.value==a.get(this.valueField)){return}b=a.get(this.valueField||this.displayField)}this.setValue(b)}},onSelect:function(a,b){if(this.fireEvent("beforeselect",this,a,b)!==false){this.setValue(a.data[this.valueField||this.displayField]);this.collapse();this.fireEvent("select",this,a,b)}},getName:function(){var a=this.hiddenField;return a&&a.name?a.name:this.hiddenName||Ext.form.ComboBox.superclass.getName.call(this)},getValue:function(){if(this.valueField){return Ext.isDefined(this.value)?this.value:""}else{return Ext.form.ComboBox.superclass.getValue.call(this)}},clearValue:function(){if(this.hiddenField){this.hiddenField.value=""}this.setRawValue("");this.lastSelectionText="";this.applyEmptyText();this.value=""},setValue:function(a){var c=a;if(this.valueField){var b=this.findRecord(this.valueField,a);if(b){c=b.data[this.displayField]}else{if(Ext.isDefined(this.valueNotFoundText)){c=this.valueNotFoundText}}}this.lastSelectionText=c;if(this.hiddenField){this.hiddenField.value=Ext.value(a,"")}Ext.form.ComboBox.superclass.setValue.call(this,c);this.value=a;return this},findRecord:function(c,b){var a;if(this.store.getCount()>0){this.store.each(function(d){if(d.data[c]==b){a=d;return false}})}return a},onViewMove:function(b,a){this.inKeyMode=false},onViewOver:function(d,b){if(this.inKeyMode){return}var c=this.view.findItemFromChild(b);if(c){var a=this.view.indexOf(c);this.select(a,false)}},onViewClick:function(b){var a=this.view.getSelectedIndexes()[0],c=this.store,d=c.getAt(a);if(d){this.onSelect(d,a)}else{this.collapse()}if(b!==false){this.el.focus()}},restrictHeight:function(){this.innerList.dom.style.height="";var b=this.innerList.dom,e=this.list.getFrameWidth("tb")+(this.resizable?this.handleHeight:0)+this.assetHeight,c=Math.max(b.clientHeight,b.offsetHeight,b.scrollHeight),a=this.getPosition()[1]-Ext.getBody().getScroll().top,g=Ext.lib.Dom.getViewHeight()-a-this.getSize().height,d=Math.max(a,g,this.minHeight||0)-this.list.shadowOffset-e-5;c=Math.min(c,d,this.maxHeight);this.innerList.setHeight(c);this.list.beginUpdate();this.list.setHeight(c+e);this.list.alignTo.apply(this.list,[this.el].concat(this.listAlign));this.list.endUpdate()},isExpanded:function(){return this.list&&this.list.isVisible()},selectByValue:function(a,c){if(!Ext.isEmpty(a,true)){var b=this.findRecord(this.valueField||this.displayField,a);if(b){this.select(this.store.indexOf(b),c);return true}}return false},select:function(a,c){this.selectedIndex=a;this.view.select(a);if(c!==false){var b=this.view.getNode(a);if(b){this.innerList.scrollChildIntoView(b,false)}}},selectNext:function(){var a=this.store.getCount();if(a>0){if(this.selectedIndex==-1){this.select(0)}else{if(this.selectedIndex0){if(this.selectedIndex==-1){this.select(0)}else{if(this.selectedIndex!==0){this.select(this.selectedIndex-1)}}}},onKeyUp:function(b){var a=b.getKey();if(this.editable!==false&&this.readOnly!==true&&(a==b.BACKSPACE||!b.isSpecialKey())){this.lastKey=a;this.dqTask.delay(this.queryDelay)}Ext.form.ComboBox.superclass.onKeyUp.call(this,b)},validateBlur:function(){return !this.list||!this.list.isVisible()},initQuery:function(){this.doQuery(this.getRawValue())},beforeBlur:function(){this.assertValue()},postBlur:function(){Ext.form.ComboBox.superclass.postBlur.call(this);this.collapse();this.inKeyMode=false},doQuery:function(c,b){c=Ext.isEmpty(c)?"":c;var a={query:c,forceAll:b,combo:this,cancel:false};if(this.fireEvent("beforequery",a)===false||a.cancel){return false}c=a.query;b=a.forceAll;if(b===true||(c.length>=this.minChars)){if(this.lastQuery!==c){this.lastQuery=c;if(this.mode=="local"){this.selectedIndex=-1;if(b){this.store.clearFilter()}else{this.store.filter(this.displayField,c)}this.onLoad()}else{this.store.baseParams[this.queryParam]=c;this.store.load({params:this.getParams(c)});this.expand()}}else{this.selectedIndex=-1;this.onLoad()}}},getParams:function(a){var b={};if(this.pageSize){b.start=0;b.limit=this.pageSize}return b},collapse:function(){if(!this.isExpanded()){return}this.list.hide();Ext.getDoc().un("mousewheel",this.collapseIf,this);Ext.getDoc().un("mousedown",this.collapseIf,this);this.fireEvent("collapse",this)},collapseIf:function(a){if(!this.isDestroyed&&!a.within(this.wrap)&&!a.within(this.list)){this.collapse()}},expand:function(){if(this.isExpanded()||!this.hasFocus){return}if(this.title||this.pageSize){this.assetHeight=0;if(this.title){this.assetHeight+=this.header.getHeight()}if(this.pageSize){this.assetHeight+=this.footer.getHeight()}}if(this.bufferSize){this.doResize(this.bufferSize);delete this.bufferSize}this.list.alignTo.apply(this.list,[this.el].concat(this.listAlign));var b=Ext.getDom(this.getListParent()||Ext.getBody()),a=parseInt(Ext.fly(b).getStyle("z-index"),10);if(!a){a=this.getParentZIndex()}if(a){this.list.setZIndex(a+5)}this.list.show();if(Ext.isGecko2){this.innerList.setOverflow("auto")}this.mon(Ext.getDoc(),{scope:this,mousewheel:this.collapseIf,mousedown:this.collapseIf});this.fireEvent("expand",this)},onTriggerClick:function(){if(this.readOnly||this.disabled){return}if(this.isExpanded()){this.collapse();this.el.focus()}else{this.onFocus({});if(this.triggerAction=="all"){this.doQuery(this.allQuery,true)}else{this.doQuery(this.getRawValue())}this.el.focus()}}});Ext.reg("combo",Ext.form.ComboBox);Ext.form.Checkbox=Ext.extend(Ext.form.Field,{focusClass:undefined,fieldClass:"x-form-field",checked:false,boxLabel:" ",defaultAutoCreate:{tag:"input",type:"checkbox",autocomplete:"off"},actionMode:"wrap",initComponent:function(){Ext.form.Checkbox.superclass.initComponent.call(this);this.addEvents("check")},onResize:function(){Ext.form.Checkbox.superclass.onResize.apply(this,arguments);if(!this.boxLabel&&!this.fieldLabel){this.el.alignTo(this.wrap,"c-c")}},initEvents:function(){Ext.form.Checkbox.superclass.initEvents.call(this);this.mon(this.el,{scope:this,click:this.onClick,change:this.onClick})},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,onRender:function(b,a){Ext.form.Checkbox.superclass.onRender.call(this,b,a);if(this.inputValue!==undefined){this.el.dom.value=this.inputValue}this.wrap=this.el.wrap({cls:"x-form-check-wrap"});if(this.boxLabel){this.wrap.createChild({tag:"label",htmlFor:this.el.id,cls:"x-form-cb-label",html:this.boxLabel})}if(this.checked){this.setValue(true)}else{this.checked=this.el.dom.checked}if(Ext.isIE){this.wrap.repaint()}this.resizeEl=this.positionEl=this.wrap},onDestroy:function(){Ext.destroy(this.wrap);Ext.form.Checkbox.superclass.onDestroy.call(this)},initValue:function(){this.originalValue=this.getValue()},getValue:function(){if(this.rendered){return this.el.dom.checked}return this.checked},onClick:function(){if(this.el.dom.checked!=this.checked){this.setValue(this.el.dom.checked)}},setValue:function(a){var b=this.checked;this.checked=(a===true||a==="true"||a=="1"||String(a).toLowerCase()=="on");if(this.rendered){this.el.dom.checked=this.checked;this.el.dom.defaultChecked=this.checked}if(b!=this.checked){this.fireEvent("check",this,this.checked);if(this.handler){this.handler.call(this.scope||this,this,this.checked)}}return this}});Ext.reg("checkbox",Ext.form.Checkbox);Ext.form.CheckboxGroup=Ext.extend(Ext.form.Field,{columns:"auto",vertical:false,allowBlank:true,blankText:"You must select at least one item in this group",defaultType:"checkbox",groupCls:"x-form-check-group",initComponent:function(){this.addEvents("change");this.on("change",this.validate,this);Ext.form.CheckboxGroup.superclass.initComponent.call(this)},onRender:function(j,g){if(!this.el){var p={autoEl:{id:this.id},cls:this.groupCls,layout:"column",renderTo:j,bufferResize:false};var a={xtype:"container",defaultType:this.defaultType,layout:"form",defaults:{hideLabel:true,anchor:"100%"}};if(this.items[0].items){Ext.apply(p,{layoutConfig:{columns:this.items.length},defaults:this.defaults,items:this.items});for(var e=0,m=this.items.length;e0&&e%r==0){o++}if(this.items[e].fieldLabel){this.items[e].hideLabel=false}n[o].items.push(this.items[e])}}else{for(var e=0,m=this.items.length;e-1){b.setValue(true)}})},getBox:function(b){var a=null;this.eachItem(function(c){if(b==c||c.dataIndex==b||c.id==b||c.getName()==b){a=c;return false}});return a},getValue:function(){var a=[];this.eachItem(function(b){if(b.checked){a.push(b)}});return a},eachItem:function(b,a){if(this.items&&this.items.each){this.items.each(b,a||this)}},getRawValue:Ext.emptyFn,setRawValue:Ext.emptyFn});Ext.reg("checkboxgroup",Ext.form.CheckboxGroup);Ext.form.CompositeField=Ext.extend(Ext.form.Field,{defaultMargins:"0 5 0 0",skipLastItemMargin:true,isComposite:true,combineErrors:true,initComponent:function(){var e=[],a=this.items,d;for(var c=0,b=a.length;c")},sortErrors:function(){var a=this.items;this.fieldErrors.sort("ASC",function(g,d){var c=function(b){return function(i){return i.getName()==b}};var h=a.findIndexBy(c(g.field)),e=a.findIndexBy(c(d.field));return h1){var a=this.getBox(c);if(a){a.setValue(b);if(a.checked){this.eachItem(function(d){if(d!==a){d.setValue(false)}})}}}else{this.setValueForItem(c)}},setValueForItem:function(a){a=String(a).split(",")[0];this.eachItem(function(b){b.setValue(a==b.inputValue)})},fireChecked:function(){if(!this.checkTask){this.checkTask=new Ext.util.DelayedTask(this.bufferChecked,this)}this.checkTask.delay(10)},bufferChecked:function(){var a=null;this.eachItem(function(b){if(b.checked){a=b;return false}});this.fireEvent("change",this,a)},onDestroy:function(){if(this.checkTask){this.checkTask.cancel();this.checkTask=null}Ext.form.RadioGroup.superclass.onDestroy.call(this)}});Ext.reg("radiogroup",Ext.form.RadioGroup);Ext.form.Hidden=Ext.extend(Ext.form.Field,{inputType:"hidden",onRender:function(){Ext.form.Hidden.superclass.onRender.apply(this,arguments)},initEvents:function(){this.originalValue=this.getValue()},setSize:Ext.emptyFn,setWidth:Ext.emptyFn,setHeight:Ext.emptyFn,setPosition:Ext.emptyFn,setPagePosition:Ext.emptyFn,markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn});Ext.reg("hidden",Ext.form.Hidden);Ext.form.BasicForm=Ext.extend(Ext.util.Observable,{constructor:function(b,a){Ext.apply(this,a);if(Ext.isString(this.paramOrder)){this.paramOrder=this.paramOrder.split(/[\s,|]/)}this.items=new Ext.util.MixedCollection(false,function(c){return c.getItemId()});this.addEvents("beforeaction","actionfailed","actioncomplete");if(b){this.initEl(b)}Ext.form.BasicForm.superclass.constructor.call(this)},timeout:30,paramOrder:undefined,paramsAsHash:false,waitTitle:"Please Wait...",activeAction:null,trackResetOnLoad:false,initEl:function(a){this.el=Ext.get(a);this.id=this.el.id||Ext.id();if(!this.standardSubmit){this.el.on("submit",this.onSubmit,this)}this.el.addClass("x-form")},getEl:function(){return this.el},onSubmit:function(a){a.stopEvent()},destroy:function(a){if(a!==true){this.items.each(function(b){Ext.destroy(b)});Ext.destroy(this.el)}this.items.clear();this.purgeListeners()},isValid:function(){var a=true;this.items.each(function(b){if(!b.validate()){a=false}});return a},isDirty:function(){var a=false;this.items.each(function(b){if(b.isDirty()){a=true;return false}});return a},doAction:function(b,a){if(Ext.isString(b)){b=new Ext.form.Action.ACTION_TYPES[b](this,a)}if(this.fireEvent("beforeaction",this,b)!==false){this.beforeAction(b);b.run.defer(100,b)}return this},submit:function(b){b=b||{};if(this.standardSubmit){var a=b.clientValidation===false||this.isValid();if(a){var c=this.el.dom;if(this.url&&Ext.isEmpty(c.action)){c.action=this.url}c.submit()}return a}var d=String.format("{0}submit",this.api?"direct":"");this.doAction(d,b);return this},load:function(a){var b=String.format("{0}load",this.api?"direct":"");this.doAction(b,a);return this},updateRecord:function(b){b.beginEdit();var a=b.fields;a.each(function(c){var d=this.findField(c.name);if(d){b.set(c.name,d.getValue())}},this);b.endEdit();return this},loadRecord:function(a){this.setValues(a.data);return this},beforeAction:function(a){this.items.each(function(c){if(c.isFormField&&c.syncValue){c.syncValue()}});var b=a.options;if(b.waitMsg){if(this.waitMsgTarget===true){this.el.mask(b.waitMsg,"x-mask-loading")}else{if(this.waitMsgTarget){this.waitMsgTarget=Ext.get(this.waitMsgTarget);this.waitMsgTarget.mask(b.waitMsg,"x-mask-loading")}else{Ext.MessageBox.wait(b.waitMsg,b.waitTitle||this.waitTitle)}}}},afterAction:function(a,c){this.activeAction=null;var b=a.options;if(b.waitMsg){if(this.waitMsgTarget===true){this.el.unmask()}else{if(this.waitMsgTarget){this.waitMsgTarget.unmask()}else{Ext.MessageBox.updateProgress(1);Ext.MessageBox.hide()}}}if(c){if(b.reset){this.reset()}Ext.callback(b.success,b.scope,[this,a]);this.fireEvent("actioncomplete",this,a)}else{Ext.callback(b.failure,b.scope,[this,a]);this.fireEvent("actionfailed",this,a)}},findField:function(c){var b=this.items.get(c);if(!Ext.isObject(b)){var a=function(d){if(d.isFormField){if(d.dataIndex==c||d.id==c||d.getName()==c){b=d;return false}else{if(d.isComposite&&d.rendered){return d.items.each(a)}}}};this.items.each(a)}return b||null},markInvalid:function(h){if(Ext.isArray(h)){for(var c=0,a=h.length;c':">"),c,"")}return d.join("")},createToolbar:function(e){var c=[];var a=Ext.QuickTips&&Ext.QuickTips.isEnabled();function d(j,h,i){return{itemId:j,cls:"x-btn-icon",iconCls:"x-edit-"+j,enableToggle:h!==false,scope:e,handler:i||e.relayBtnCmd,clickEvent:"mousedown",tooltip:a?e.buttonTips[j]||undefined:undefined,overflowText:e.buttonTips[j].title||undefined,tabIndex:-1}}if(this.enableFont&&!Ext.isSafari2){var g=new Ext.Toolbar.Item({autoEl:{tag:"select",cls:"x-font-select",html:this.createFontOptions()}});c.push(g,"-")}if(this.enableFormat){c.push(d("bold"),d("italic"),d("underline"))}if(this.enableFontSize){c.push("-",d("increasefontsize",false,this.adjustFont),d("decreasefontsize",false,this.adjustFont))}if(this.enableColors){c.push("-",{itemId:"forecolor",cls:"x-btn-icon",iconCls:"x-edit-forecolor",clickEvent:"mousedown",tooltip:a?e.buttonTips.forecolor||undefined:undefined,tabIndex:-1,menu:new Ext.menu.ColorMenu({allowReselect:true,focus:Ext.emptyFn,value:"000000",plain:true,listeners:{scope:this,select:function(i,h){this.execCmd("forecolor",Ext.isWebKit||Ext.isIE?"#"+h:h);this.deferFocus()}},clickEvent:"mousedown"})},{itemId:"backcolor",cls:"x-btn-icon",iconCls:"x-edit-backcolor",clickEvent:"mousedown",tooltip:a?e.buttonTips.backcolor||undefined:undefined,tabIndex:-1,menu:new Ext.menu.ColorMenu({focus:Ext.emptyFn,value:"FFFFFF",plain:true,allowReselect:true,listeners:{scope:this,select:function(i,h){if(Ext.isGecko){this.execCmd("useCSS",false);this.execCmd("hilitecolor",h);this.execCmd("useCSS",true);this.deferFocus()}else{this.execCmd(Ext.isOpera?"hilitecolor":"backcolor",Ext.isWebKit||Ext.isIE?"#"+h:h);this.deferFocus()}}},clickEvent:"mousedown"})})}if(this.enableAlignments){c.push("-",d("justifyleft"),d("justifycenter"),d("justifyright"))}if(!Ext.isSafari2){if(this.enableLinks){c.push("-",d("createlink",false,this.createLink))}if(this.enableLists){c.push("-",d("insertorderedlist"),d("insertunorderedlist"))}if(this.enableSourceEdit){c.push("-",d("sourceedit",true,function(h){this.toggleSourceEdit(!this.sourceEditMode)}))}}var b=new Ext.Toolbar({renderTo:this.wrap.dom.firstChild,items:c});if(g){this.fontSelect=g.el;this.mon(this.fontSelect,"change",function(){var h=this.fontSelect.dom.value;this.relayCmd("fontname",h);this.deferFocus()},this)}this.mon(b.el,"click",function(h){h.preventDefault()});this.tb=b;this.tb.doLayout()},onDisable:function(){this.wrap.mask();Ext.form.HtmlEditor.superclass.onDisable.call(this)},onEnable:function(){this.wrap.unmask();Ext.form.HtmlEditor.superclass.onEnable.call(this)},setReadOnly:function(b){Ext.form.HtmlEditor.superclass.setReadOnly.call(this,b);if(this.initialized){if(Ext.isIE){this.getEditorBody().contentEditable=!b}else{this.setDesignMode(!b)}var a=this.getEditorBody();if(a){a.style.cursor=this.readOnly?"default":"text"}this.disableItems(b)}},getDocMarkup:function(){var a=Ext.fly(this.iframe).getHeight()-this.iframePad*2;return String.format('',this.iframePad,a)},getEditorBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){return Ext.isIE?this.getWin().document:(this.iframe.contentDocument||this.getWin().document)},getWin:function(){return Ext.isIE?this.iframe.contentWindow:window.frames[this.iframe.name]},onRender:function(b,a){Ext.form.HtmlEditor.superclass.onRender.call(this,b,a);this.el.dom.style.border="0 none";this.el.dom.setAttribute("tabIndex",-1);this.el.addClass("x-hidden");if(Ext.isIE){this.el.applyStyles("margin-top:-1px;margin-bottom:-1px;")}this.wrap=this.el.wrap({cls:"x-html-editor-wrap",cn:{cls:"x-html-editor-tb"}});this.createToolbar(this);this.disableItems(true);this.tb.doLayout();this.createIFrame();if(!this.width){var c=this.el.getSize();this.setSize(c.width,this.height||c.height)}this.resizeEl=this.positionEl=this.wrap},createIFrame:function(){var a=document.createElement("iframe");a.name=Ext.id();a.frameBorder="0";a.style.overflow="auto";this.wrap.dom.appendChild(a);this.iframe=a;this.monitorTask=Ext.TaskMgr.start({run:this.checkDesignMode,scope:this,interval:100})},initFrame:function(){Ext.TaskMgr.stop(this.monitorTask);var b=this.getDoc();this.win=this.getWin();b.open();b.write(this.getDocMarkup());b.close();var a={run:function(){var c=this.getDoc();if(c.body||c.readyState=="complete"){Ext.TaskMgr.stop(a);this.setDesignMode(true);this.initEditor.defer(10,this)}},interval:10,duration:10000,scope:this};Ext.TaskMgr.start(a)},checkDesignMode:function(){if(this.wrap&&this.wrap.dom.offsetWidth){var a=this.getDoc();if(!a){return}if(!a.editorInitialized||this.getDesignMode()!="on"){this.initFrame()}}},setDesignMode:function(b){var a;if(a=this.getDoc()){if(this.readOnly){b=false}a.designMode=(/on|true/i).test(String(b).toLowerCase())?"on":"off"}},getDesignMode:function(){var a=this.getDoc();if(!a){return""}return String(a.designMode).toLowerCase()},disableItems:function(a){if(this.fontSelect){this.fontSelect.dom.disabled=a}this.tb.items.each(function(b){if(b.getItemId()!="sourceedit"){b.setDisabled(a)}})},onResize:function(b,c){Ext.form.HtmlEditor.superclass.onResize.apply(this,arguments);if(this.el&&this.iframe){if(Ext.isNumber(b)){var e=b-this.wrap.getFrameWidth("lr");this.el.setWidth(e);this.tb.setWidth(e);this.iframe.style.width=Math.max(e,0)+"px"}if(Ext.isNumber(c)){var a=c-this.wrap.getFrameWidth("tb")-this.tb.el.getHeight();this.el.setHeight(a);this.iframe.style.height=Math.max(a,0)+"px";var d=this.getEditorBody();if(d){d.style.height=Math.max((a-(this.iframePad*2)),0)+"px"}}}},toggleSourceEdit:function(c){var e,b,a;if(c===undefined){c=!this.sourceEditMode}this.sourceEditMode=c===true;var d=this.tb.getComponent("sourceedit");if(d.pressed!==this.sourceEditMode){d.toggle(this.sourceEditMode);if(!d.xtbHidden){return}}if(this.sourceEditMode){a=this.getSize();e=Ext.get(this.iframe).getHeight();this.disableItems(true);this.syncValue();this.iframe.className="x-hidden";this.el.removeClass("x-hidden");this.el.dom.removeAttribute("tabIndex");this.el.focus();this.el.dom.style.height=e+"px"}else{b=parseInt(this.el.dom.style.height,10);if(this.initialized){this.disableItems(this.readOnly)}this.pushValue();this.iframe.className="";this.el.addClass("x-hidden");this.el.dom.setAttribute("tabIndex",-1);this.deferFocus();this.setSize(a);this.iframe.style.height=b+"px"}this.fireEvent("editmodechange",this,this.sourceEditMode)},createLink:function(){var a=prompt(this.createLinkText,this.defaultLinkValue);if(a&&a!="http://"){this.relayCmd("createlink",a)}},initEvents:function(){this.originalValue=this.getValue()},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,setValue:function(a){Ext.form.HtmlEditor.superclass.setValue.call(this,a);this.pushValue();return this},cleanHtml:function(a){a=String(a);if(Ext.isWebKit){a=a.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi,"")}if(a.charCodeAt(0)==this.defaultValue.replace(/\D/g,"")){a=a.substring(1)}return a},syncValue:function(){if(this.initialized){var d=this.getEditorBody();var c=d.innerHTML;if(Ext.isWebKit){var b=d.getAttribute("style");var a=b.match(/text-align:(.*?);/i);if(a&&a[1]){c='
    '+c+"
    "}}c=this.cleanHtml(c);if(this.fireEvent("beforesync",this,c)!==false){this.el.dom.value=c;this.fireEvent("sync",this,c)}}},getValue:function(){this[this.sourceEditMode?"pushValue":"syncValue"]();return Ext.form.HtmlEditor.superclass.getValue.call(this)},pushValue:function(){if(this.initialized){var a=this.el.dom.value;if(!this.activated&&a.length<1){a=this.defaultValue}if(this.fireEvent("beforepush",this,a)!==false){this.getEditorBody().innerHTML=a;if(Ext.isGecko){this.setDesignMode(false);this.setDesignMode(true)}this.fireEvent("push",this,a)}}},deferFocus:function(){this.focus.defer(10,this)},focus:function(){if(this.win&&!this.sourceEditMode){this.win.focus()}else{this.el.focus()}},initEditor:function(){try{var c=this.getEditorBody(),a=this.el.getStyles("font-size","font-family","background-image","background-repeat","background-color","color"),g,b;a["background-attachment"]="fixed";c.bgProperties="fixed";Ext.DomHelper.applyStyles(c,a);g=this.getDoc();if(g){try{Ext.EventManager.removeAll(g)}catch(d){}}b=this.onEditorEvent.createDelegate(this);Ext.EventManager.on(g,{mousedown:b,dblclick:b,click:b,keyup:b,buffer:100});if(Ext.isGecko){Ext.EventManager.on(g,"keypress",this.applyCommand,this)}if(Ext.isIE||Ext.isWebKit||Ext.isOpera){Ext.EventManager.on(g,"keydown",this.fixKeys,this)}g.editorInitialized=true;this.initialized=true;this.pushValue();this.setReadOnly(this.readOnly);this.fireEvent("initialize",this)}catch(d){}},onDestroy:function(){if(this.monitorTask){Ext.TaskMgr.stop(this.monitorTask)}if(this.rendered){Ext.destroy(this.tb);var b=this.getDoc();if(b){try{Ext.EventManager.removeAll(b);for(var c in b){delete b[c]}}catch(a){}}if(this.wrap){this.wrap.dom.innerHTML="";this.wrap.remove()}}if(this.el){this.el.removeAllListeners();this.el.remove()}this.purgeListeners()},onFirstFocus:function(){this.activated=true;this.disableItems(this.readOnly);if(Ext.isGecko){this.win.focus();var a=this.win.getSelection();if(!a.focusNode||a.focusNode.nodeType!=3){var b=a.getRangeAt(0);b.selectNodeContents(this.getEditorBody());b.collapse(true);this.deferFocus()}try{this.execCmd("useCSS",true);this.execCmd("styleWithCSS",false)}catch(c){}}this.fireEvent("activate",this)},adjustFont:function(b){var d=b.getItemId()=="increasefontsize"?1:-1,c=this.getDoc(),a=parseInt(c.queryCommandValue("FontSize")||2,10);if((Ext.isSafari&&!Ext.isSafari2)||Ext.isChrome||Ext.isAir){if(a<=10){a=1+d}else{if(a<=13){a=2+d}else{if(a<=16){a=3+d}else{if(a<=18){a=4+d}else{if(a<=24){a=5+d}else{a=6+d}}}}}a=a.constrain(1,6)}else{if(Ext.isSafari){d*=2}a=Math.max(1,a+d)+(Ext.isSafari?"px":0)}this.execCmd("FontSize",a)},onEditorEvent:function(a){this.updateToolbar()},updateToolbar:function(){if(this.readOnly){return}if(!this.activated){this.onFirstFocus();return}var b=this.tb.items.map,c=this.getDoc();if(this.enableFont&&!Ext.isSafari2){var a=(c.queryCommandValue("FontName")||this.defaultFont).toLowerCase();if(a!=this.fontSelect.dom.value){this.fontSelect.dom.value=a}}if(this.enableFormat){b.bold.toggle(c.queryCommandState("bold"));b.italic.toggle(c.queryCommandState("italic"));b.underline.toggle(c.queryCommandState("underline"))}if(this.enableAlignments){b.justifyleft.toggle(c.queryCommandState("justifyleft"));b.justifycenter.toggle(c.queryCommandState("justifycenter"));b.justifyright.toggle(c.queryCommandState("justifyright"))}if(!Ext.isSafari2&&this.enableLists){b.insertorderedlist.toggle(c.queryCommandState("insertorderedlist"));b.insertunorderedlist.toggle(c.queryCommandState("insertunorderedlist"))}Ext.menu.MenuMgr.hideAll();this.syncValue()},relayBtnCmd:function(a){this.relayCmd(a.getItemId())},relayCmd:function(b,a){(function(){this.focus();this.execCmd(b,a);this.updateToolbar()}).defer(10,this)},execCmd:function(b,a){var c=this.getDoc();c.execCommand(b,false,a===undefined?null:a);this.syncValue()},applyCommand:function(b){if(b.ctrlKey){var d=b.getCharCode(),a;if(d>0){d=String.fromCharCode(d);switch(d){case"b":a="bold";break;case"i":a="italic";break;case"u":a="underline";break}if(a){this.win.focus();this.execCmd(a);this.deferFocus();b.preventDefault()}}}},insertAtCursor:function(c){if(!this.activated){return}if(Ext.isIE){this.win.focus();var b=this.getDoc(),a=b.selection.createRange();if(a){a.pasteHTML(c);this.syncValue();this.deferFocus()}}else{this.win.focus();this.execCmd("InsertHTML",c);this.deferFocus()}},fixKeys:function(){if(Ext.isIE){return function(g){var a=g.getKey(),d=this.getDoc(),b;if(a==g.TAB){g.stopEvent();b=d.selection.createRange();if(b){b.collapse(true);b.pasteHTML("    ");this.deferFocus()}}else{if(a==g.ENTER){b=d.selection.createRange();if(b){var c=b.parentElement();if(!c||c.tagName.toLowerCase()!="li"){g.stopEvent();b.pasteHTML("
    ");b.collapse(false);b.select()}}}}}}else{if(Ext.isOpera){return function(b){var a=b.getKey();if(a==b.TAB){b.stopEvent();this.win.focus();this.execCmd("InsertHTML","    ");this.deferFocus()}}}else{if(Ext.isWebKit){return function(b){var a=b.getKey();if(a==b.TAB){b.stopEvent();this.execCmd("InsertText","\t");this.deferFocus()}else{if(a==b.ENTER){b.stopEvent();this.execCmd("InsertHtml","

    ");this.deferFocus()}}}}}}}(),getToolbar:function(){return this.tb},buttonTips:{bold:{title:"Bold (Ctrl+B)",text:"Make the selected text bold.",cls:"x-html-editor-tip"},italic:{title:"Italic (Ctrl+I)",text:"Make the selected text italic.",cls:"x-html-editor-tip"},underline:{title:"Underline (Ctrl+U)",text:"Underline the selected text.",cls:"x-html-editor-tip"},increasefontsize:{title:"Grow Text",text:"Increase the font size.",cls:"x-html-editor-tip"},decreasefontsize:{title:"Shrink Text",text:"Decrease the font size.",cls:"x-html-editor-tip"},backcolor:{title:"Text Highlight Color",text:"Change the background color of the selected text.",cls:"x-html-editor-tip"},forecolor:{title:"Font Color",text:"Change the color of the selected text.",cls:"x-html-editor-tip"},justifyleft:{title:"Align Text Left",text:"Align text to the left.",cls:"x-html-editor-tip"},justifycenter:{title:"Center Text",text:"Center text in the editor.",cls:"x-html-editor-tip"},justifyright:{title:"Align Text Right",text:"Align text to the right.",cls:"x-html-editor-tip"},insertunorderedlist:{title:"Bullet List",text:"Start a bulleted list.",cls:"x-html-editor-tip"},insertorderedlist:{title:"Numbered List",text:"Start a numbered list.",cls:"x-html-editor-tip"},createlink:{title:"Hyperlink",text:"Make the selected text a hyperlink.",cls:"x-html-editor-tip"},sourceedit:{title:"Source Edit",text:"Switch to source editing mode.",cls:"x-html-editor-tip"}}});Ext.reg("htmleditor",Ext.form.HtmlEditor);Ext.form.TimeField=Ext.extend(Ext.form.ComboBox,{minValue:undefined,maxValue:undefined,minText:"The time in this field must be equal to or after {0}",maxText:"The time in this field must be equal to or before {0}",invalidText:"{0} is not a valid time",format:"g:i A",altFormats:"g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A",increment:15,mode:"local",triggerAction:"all",typeAhead:false,initDate:"1/1/2008",initDateFormat:"j/n/Y",initComponent:function(){if(Ext.isDefined(this.minValue)){this.setMinValue(this.minValue,true)}if(Ext.isDefined(this.maxValue)){this.setMaxValue(this.maxValue,true)}if(!this.store){this.generateStore(true)}Ext.form.TimeField.superclass.initComponent.call(this)},setMinValue:function(b,a){this.setLimit(b,true,a);return this},setMaxValue:function(b,a){this.setLimit(b,false,a);return this},generateStore:function(b){var c=this.minValue||new Date(this.initDate).clearTime(),a=this.maxValue||new Date(this.initDate).clearTime().add("mi",(24*60)-1),d=[];while(c<=a){d.push(c.dateFormat(this.format));c=c.add("mi",this.increment)}this.bindStore(d,b)},setLimit:function(b,g,a){var e;if(Ext.isString(b)){e=this.parseDate(b)}else{if(Ext.isDate(b)){e=b}}if(e){var c=new Date(this.initDate).clearTime();c.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());this[g?"minValue":"maxValue"]=c;if(!a){this.generateStore()}}},getValue:function(){var a=Ext.form.TimeField.superclass.getValue.call(this);return this.formatDate(this.parseDate(a))||""},setValue:function(a){return Ext.form.TimeField.superclass.setValue.call(this,this.formatDate(this.parseDate(a)))},validateValue:Ext.form.DateField.prototype.validateValue,formatDate:Ext.form.DateField.prototype.formatDate,parseDate:function(h){if(!h||Ext.isDate(h)){return h}var j=this.initDate+" ",g=this.initDateFormat+" ",b=Date.parseDate(j+h,g+this.format),c=this.altFormats;if(!b&&c){if(!this.altFormatsArray){this.altFormatsArray=c.split("|")}for(var e=0,d=this.altFormatsArray,a=d.length;e0){return setTimeout(d,c)}d();return 0}});Ext.applyIf(String,{format:function(b){var a=Ext.toArray(arguments,1);return b.replace(/\{(\d+)\}/g,function(c,d){return a[d]})}});Ext.applyIf(Array.prototype,{indexOf:function(b,c){var a=this.length;c=c||0;c+=(c<0)?a:0;for(;c
    '),g=h.child("div",true);var e=g.offsetWidth;h.setStyle("overflow",(Ext.isWebKit||Ext.isGecko)?"auto":"scroll");var d=g.offsetWidth;h.remove();b=e-d+2}return b},combine:function(){var f=arguments,e=f.length,h=[];for(var g=0;gg?1:-1};Ext.each(d,function(g){f=e(f,g)==1?f:g});return f},mean:function(d){return d.length>0?Ext.sum(d)/d.length:undefined},sum:function(d){var e=0;Ext.each(d,function(f){e+=f});return e},partition:function(d,e){var f=[[],[]];Ext.each(d,function(h,j,g){f[(e&&e(h,j,g))||(!e&&h)?0:1].push(h)});return f},invoke:function(d,e){var g=[],f=Array.prototype.slice.call(arguments,2);Ext.each(d,function(h,j){if(h&&typeof h[e]=="function"){g.push(h[e].apply(h,f))}else{g.push(undefined)}});return g},pluck:function(d,f){var e=[];Ext.each(d,function(g){e.push(g[f])});return e},zip:function(){var m=Ext.partition(arguments,function(i){return typeof i!="function"}),h=m[0],l=m[1][0],d=Ext.max(Ext.pluck(h,"length")),g=[];for(var k=0;k0){for(var p=0;p0);if(!C){C=true;for(K=0;K=0){z=s.substr(0,y).toLowerCase();if(s.charAt(y+1)==" "){++y}A[z]=s.substr(y+1)}})}catch(x){}return{tId:q.tId,status:r?204:u.status,statusText:r?"No Content":u.statusText,getResponseHeader:function(s){return A[s.toLowerCase()]},getAllResponseHeaders:function(){return v},responseText:u.responseText,responseXML:u.responseXML,argument:w}}function n(q){if(q.tId){k.conn[q.tId]=null}q.conn=null;q=null}function f(v,w,r,q){if(!w){n(v);return}var t,s;try{if(v.conn.status!==undefined&&v.conn.status!=0){t=v.conn.status}else{t=13030}}catch(u){t=13030}if((t>=200&&t<300)||(Ext.isIE&&t==1223)){s=o(v,w.argument);if(w.success){if(!w.scope){w.success(s)}else{w.success.apply(w.scope,[s])}}}else{switch(t){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:s=e(v.tId,w.argument,(r?r:false),q);if(w.failure){if(!w.scope){w.failure(s)}else{w.failure.apply(w.scope,[s])}}break;default:s=o(v,w.argument);if(w.failure){if(!w.scope){w.failure(s)}else{w.failure.apply(w.scope,[s])}}}}n(v);s=null}function m(s,v){v=v||{};var q=s.conn,u=s.tId,r=k.poll,t=v.timeout||null;if(t){k.conn[u]=q;k.timeout[u]=setTimeout(function(){k.abort(s,v,true)},t)}r[u]=setInterval(function(){if(q&&q.readyState==4){clearInterval(r[u]);r[u]=null;if(t){clearTimeout(k.timeout[u]);k.timeout[u]=null}f(s,v)}},k.pollInterval)}function i(u,r,t,q){var s=l()||null;if(s){s.conn.open(u,r,true);if(k.useDefaultXhrHeader){j("X-Requested-With",k.defaultXhrHeader)}if(q&&k.useDefaultHeader&&(!k.headers||!k.headers[d])){j(d,k.defaultPostHeader)}if(k.defaultHeaders||k.headers){h(s)}m(s,t);s.conn.send(q||null)}return s}function l(){var r;try{if(r=p(k.transactionId)){k.transactionId++}}catch(q){}finally{return r}}function p(t){var q;try{q=new XMLHttpRequest()}catch(s){for(var r=0;r=d.left&&e.right<=d.right&&e.top>=d.top&&e.bottom<=d.bottom)},getArea:function(){var d=this;return((d.bottom-d.top)*(d.right-d.left))},intersect:function(i){var h=this,f=Math.max(h.top,i.top),g=Math.min(h.right,i.right),d=Math.min(h.bottom,i.bottom),e=Math.max(h.left,i.left);if(d>=f&&g>=e){return new Ext.lib.Region(f,g,d,e)}},union:function(i){var h=this,f=Math.min(h.top,i.top),g=Math.max(h.right,i.right),d=Math.max(h.bottom,i.bottom),e=Math.min(h.left,i.left);return new Ext.lib.Region(f,g,d,e)},constrainTo:function(e){var d=this;d.top=d.top.constrain(e.top,e.bottom);d.bottom=d.bottom.constrain(e.top,e.bottom);d.left=d.left.constrain(e.left,e.right);d.right=d.right.constrain(e.left,e.right);return d},adjust:function(f,e,d,h){var g=this;g.top+=f;g.left+=e;g.right+=h;g.bottom+=d;return g}};Ext.lib.Region.getRegion=function(g){var i=Ext.lib.Dom.getXY(g),f=i[1],h=i[0]+g.offsetWidth,d=i[1]+g.offsetHeight,e=i[0];return new Ext.lib.Region(f,h,d,e)};Ext.lib.Point=function(d,f){if(Ext.isArray(d)){f=d[1];d=d[0]}var e=this;e.x=e.right=e.left=e[0]=d;e.y=e.top=e.bottom=e[1]=f};Ext.lib.Point.prototype=new Ext.lib.Region();(function(){var g=Ext.lib,i=/width|height|opacity|padding/i,f=/^((width|height)|(top|left))$/,d=/width|height|top$|bottom$|left$|right$/i,h=/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i,j=function(k){return typeof k!=="undefined"},e=function(){return new Date()};g.Anim={motion:function(n,l,o,p,k,m){return this.run(n,l,o,p,k,m,Ext.lib.Motion)},run:function(o,l,q,r,k,n,m){m=m||Ext.lib.AnimBase;if(typeof r=="string"){r=Ext.lib.Easing[r]}var p=new m(o,l,q,r);p.animateX(function(){if(Ext.isFunction(k)){k.call(n)}});return p}};g.AnimBase=function(l,k,m,n){if(l){this.init(l,k,m,n)}};g.AnimBase.prototype={doMethod:function(k,n,l){var m=this;return m.method(m.curFrame,n,l-n,m.totalFrames)},setAttr:function(k,m,l){if(i.test(k)&&m<0){m=0}Ext.fly(this.el,"_anim").setStyle(k,m+l)},getAttr:function(k){var m=Ext.fly(this.el),n=m.getStyle(k),l=f.exec(k)||[];if(n!=="auto"&&!h.test(n)){return parseFloat(n)}return(!!(l[2])||(m.getStyle("position")=="absolute"&&!!(l[3])))?m.dom["offset"+l[0].charAt(0).toUpperCase()+l[0].substr(1)]:0},getDefaultUnit:function(k){return d.test(k)?"px":""},animateX:function(n,k){var l=this,m=function(){l.onComplete.removeListener(m);if(Ext.isFunction(n)){n.call(k||l,l)}};l.onComplete.addListener(m,l);l.animate()},setRunAttr:function(p){var r=this,s=this.attributes[p],t=s.to,q=s.by,u=s.from,v=s.unit,l=(this.runAttrs[p]={}),m;if(!j(t)&&!j(q)){return false}var k=j(u)?u:r.getAttr(p);if(j(t)){m=t}else{if(j(q)){if(Ext.isArray(k)){m=[];for(var n=0,o=k.length;n0&&isFinite(w)){if(r.curFrame+w>=v){w=v-(u+1)}r.curFrame+=w}}};g.Bezier=new function(){this.getPosition=function(p,o){var r=p.length,m=[],q=1-o,l,k;for(l=0;l0&&!Ext.isArray(t[0])){t=[t]}else{}Ext.fly(q,"_anim").position();B.setXY(q,j(y)?y:B.getXY(q));p=x.getAttr("points");if(j(z)){r=k.call(x,z,p);for(s=0,u=t.length;s0){o=o.concat(t)}o[o.length]=r}else{n.setRunAttr.call(this,v)}}});var k=function(o,q){var p=g.Dom.getXY(this.el);return[o[0]-p[0]+q[0],o[1]-p[1]+q[1]]}})()})();(function(){var d=Math.abs,i=Math.PI,h=Math.asin,g=Math.pow,e=Math.sin,f=Ext.lib;Ext.apply(f.Easing,{easeBoth:function(k,j,m,l){return((k/=l/2)<1)?m/2*k*k+j:-m/2*((--k)*(k-2)-1)+j},easeInStrong:function(k,j,m,l){return m*(k/=l)*k*k*k+j},easeOutStrong:function(k,j,m,l){return -m*((k=k/l-1)*k*k*k-1)+j},easeBothStrong:function(k,j,m,l){return((k/=l/2)<1)?m/2*k*k*k*k+j:-m/2*((k-=2)*k*k*k-2)+j},elasticIn:function(l,j,q,o,k,n){if(l==0||(l/=o)==1){return l==0?j:j+q}n=n||(o*0.3);var m;if(k>=d(q)){m=n/(2*i)*h(q/k)}else{k=q;m=n/4}return -(k*g(2,10*(l-=1))*e((l*o-m)*(2*i)/n))+j},elasticOut:function(l,j,q,o,k,n){if(l==0||(l/=o)==1){return l==0?j:j+q}n=n||(o*0.3);var m;if(k>=d(q)){m=n/(2*i)*h(q/k)}else{k=q;m=n/4}return k*g(2,-10*l)*e((l*o-m)*(2*i)/n)+q+j},elasticBoth:function(l,j,q,o,k,n){if(l==0||(l/=o/2)==2){return l==0?j:j+q}n=n||(o*(0.3*1.5));var m;if(k>=d(q)){m=n/(2*i)*h(q/k)}else{k=q;m=n/4}return l<1?-0.5*(k*g(2,10*(l-=1))*e((l*o-m)*(2*i)/n))+j:k*g(2,-10*(l-=1))*e((l*o-m)*(2*i)/n)*0.5+q+j},backIn:function(k,j,n,m,l){l=l||1.70158;return n*(k/=m)*k*((l+1)*k-l)+j},backOut:function(k,j,n,m,l){if(!l){l=1.70158}return n*((k=k/m-1)*k*((l+1)*k+l)+1)+j},backBoth:function(k,j,n,m,l){l=l||1.70158;return((k/=m/2)<1)?n/2*(k*k*(((l*=(1.525))+1)*k-l))+j:n/2*((k-=2)*k*(((l*=(1.525))+1)*k+l)+2)+j},bounceIn:function(k,j,m,l){return m-f.Easing.bounceOut(l-k,0,m,l)+j},bounceOut:function(k,j,m,l){if((k/=l)<(1/2.75)){return m*(7.5625*k*k)+j}else{if(k<(2/2.75)){return m*(7.5625*(k-=(1.5/2.75))*k+0.75)+j}else{if(k<(2.5/2.75)){return m*(7.5625*(k-=(2.25/2.75))*k+0.9375)+j}}}return m*(7.5625*(k-=(2.625/2.75))*k+0.984375)+j},bounceBoth:function(k,j,m,l){return(k Date: Wed, 23 Oct 2019 16:10:04 -0700 Subject: [PATCH 384/637] Removed `TokenInput` dependencies We'll be sourcing `TokenInput` via **npm** and copying files to their final location via the **Gulp** workflow; as such, we no longer need to maintain `TokenInput` as part of this repository. --- .../TokenInput/token-input-facebook.css | 122 ----------- .../Vendor/TokenInput/token-input-mac.css | 204 ------------------ .../Styles/Vendor/TokenInput/token-input.css | 127 ----------- 3 files changed, 453 deletions(-) delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css deleted file mode 100644 index b4d8e922..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-facebook.css +++ /dev/null @@ -1,122 +0,0 @@ -/* Example tokeninput style #2: Facebook style */ -ul.token-input-list-facebook { - overflow: hidden; - height: auto !important; - height: 1%; - width: 400px; - border: 1px solid #8496ba; - cursor: text; - font-size: 12px; - font-family: Verdana; - min-height: 1px; - z-index: 999; - margin: 0; - padding: 0; - background-color: #fff; - list-style-type: none; - clear: left; -} - -ul.token-input-list-facebook li input { - border: 0; - width: 100px; - padding: 3px 8px; - background-color: white; - margin: 2px 0; - -webkit-appearance: caret; -} - -li.token-input-token-facebook { - overflow: hidden; - height: auto !important; - height: 15px; - margin: 3px; - padding: 1px 3px; - background-color: #eff2f7; - color: #000; - cursor: default; - border: 1px solid #ccd5e4; - font-size: 11px; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - float: left; - white-space: nowrap; -} - -li.token-input-token-facebook p { - display: inline; - padding: 0; - margin: 0; -} - -li.token-input-token-facebook span { - color: #a6b3cf; - margin-left: 5px; - font-weight: bold; - cursor: pointer; -} - -li.token-input-selected-token-facebook { - background-color: #5670a6; - border: 1px solid #3b5998; - color: #fff; -} - -li.token-input-input-token-facebook { - float: left; - margin: 0; - padding: 0; - list-style-type: none; -} - -div.token-input-dropdown-facebook { - position: absolute; - width: 400px; - background-color: #fff; - overflow: hidden; - border-left: 1px solid #ccc; - border-right: 1px solid #ccc; - border-bottom: 1px solid #ccc; - cursor: default; - font-size: 11px; - font-family: Verdana; - z-index: 1; -} - -div.token-input-dropdown-facebook p { - margin: 0; - padding: 5px; - font-weight: bold; - color: #777; -} - -div.token-input-dropdown-facebook ul { - margin: 0; - padding: 0; -} - -div.token-input-dropdown-facebook ul li { - background-color: #fff; - padding: 3px; - margin: 0; - list-style-type: none; -} - -div.token-input-dropdown-facebook ul li.token-input-dropdown-item-facebook { - background-color: #fff; -} - -div.token-input-dropdown-facebook ul li.token-input-dropdown-item2-facebook { - background-color: #fff; -} - -div.token-input-dropdown-facebook ul li em { - font-weight: bold; - font-style: normal; -} - -div.token-input-dropdown-facebook ul li.token-input-selected-dropdown-item-facebook { - background-color: #3b5998; - color: #fff; -} \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css deleted file mode 100644 index 18522f05..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input-mac.css +++ /dev/null @@ -1,204 +0,0 @@ -/* Example tokeninput style #2: Mac Style */ -fieldset.token-input-mac { - position: relative; - padding: 0; - margin: 5px 0; - background: #fff; - width: 400px; - border: 1px solid #A4BDEC; - border-radius: 10px; - -moz-border-radius: 10px; - -webkit-border-radius: 10px; -} - -fieldset.token-input-mac.token-input-dropdown-mac { - border-radius: 10px 10px 0 0; - -moz-border-radius: 10px 10px 0 0; - -webkit-border-radius: 10px 10px 0 0; - box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); - -moz-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); - -webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); -} - -ul.token-input-list-mac { - overflow: hidden; - height: auto !important; - height: 1%; - cursor: text; - font-size: 12px; - font-family: Verdana; - min-height: 1px; - z-index: 999; - margin: 0; - padding: 3px; - background: transparent; -} - -ul.token-input-list-mac.error { - border: 1px solid #C52020; -} - -ul.token-input-list-mac li { - list-style-type: none; -} - -li.token-input-token-mac p { - display: inline; - padding: 0; - margin: 0; -} - -li.token-input-token-mac span { - color: #a6b3cf; - margin-left: 5px; - font-weight: bold; - cursor: pointer; -} - -/* TOKENS */ - -li.token-input-token-mac { - font-family: "Lucida Grande", Arial, serif; - font-size: 9pt; - line-height: 12pt; - overflow: hidden; - height: 16px; - margin: 3px; - padding: 0 10px; - background: none; - background-color: #dee7f8; - color: #000; - cursor: default; - border: 1px solid #a4bdec; - border-radius: 15px; - -moz-border-radius: 15px; - -webkit-border-radius: 15px; - float: left; -} - -li.token-input-highlighted-token-mac { - background-color: #bbcef1; - border: 1px solid #598bec; - color: #000; -} - -li.token-input-selected-token-mac { - background-color: #598bec; - border: 1px solid transparent; - color: #fff; -} - -li.token-input-highlighted-token-mac span.token-input-delete-token-mac { - color: #000; -} - -li.token-input-selected-token-mac span.token-input-delete-token-mac { - color: #fff; -} - -li.token-input-input-token-mac { - border: none; - background: transparent; - float: left; - padding: 0; - margin: 0; -} - -li.token-input-input-token-mac input { - border: 0; - width: 100px; - padding: 3px; - background-color: transparent; - margin: 0; -} - -div.token-input-dropdown-mac { - position: absolute; - border: 1px solid #A4BDEC; - border-top: none; - left: -1px; - right: -1px; - background-color: #fff; - overflow: hidden; - cursor: default; - font-size: 10pt; - font-family: "Lucida Grande", Arial, serif; - padding: 5px; - border-radius: 0 0 10px 10px; - -moz-border-radius: 0 0 10px 10px; - -webkit-border-radius: 0 0 10px 10px; - box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); - -moz-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); - -webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); - clip:rect(0px, 1000px, 1000px, -10px); -} - -div.token-input-dropdown-mac p { - font-size: 8pt; - margin: 0; - padding: 0 5px; - font-style: italic; - color: #aaa; -} - -div.token-input-dropdown-mac h3.token-input-dropdown-category-mac { - font-family: "Lucida Grande", Arial, serif; - font-size: 10pt; - font-weight: bold; - border: none; - padding: 0 5px; - margin: 0; -} - -div.token-input-dropdown-mac ul { - margin: 0; - padding: 0; -} - -div.token-input-dropdown-mac ul li { - list-style-type: none; - cursor: pointer; - background: none; - background-color: #fff; - margin: 0; - padding: 0 0 0 25px; -} - -div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac { - background-color: #fff; -} - -div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac.odd { - background-color: #ECF4F9; - border-radius: 15px; - -moz-border-radius: 15px; - -webkit-border-radius: 15px; -} - -div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac span.token-input-dropdown-item-description-mac { - float: right; - font-size: 8pt; - font-style: italic; - padding: 0 10px 0 0; - color: #999; -} - -div.token-input-dropdown-mac ul li strong { - font-weight: bold; - text-decoration: underline; - font-style: none; -} - -div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac, -div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac.odd { - background-color: #598bec; - color: #fff; - border-radius: 15px; - -moz-border-radius: 15px; - -webkit-border-radius: 15px; -} - -div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac span.token-input-dropdown-item-description-mac, -div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac.odd span.token-input-dropdown-item-description-mac { - color: #fff; -} diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css deleted file mode 100644 index cea0ed56..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/Vendor/TokenInput/token-input.css +++ /dev/null @@ -1,127 +0,0 @@ -/* Example tokeninput style #1: Token vertical list*/ -ul.token-input-list { - overflow: hidden; - height: auto !important; - height: 1%; - width: 400px; - border: 1px solid #999; - cursor: text; - font-size: 12px; - font-family: Verdana, sans-serif; - z-index: 999; - margin: 0; - padding: 0; - background-color: #fff; - list-style-type: none; - clear: left; -} - -ul.token-input-list li { - list-style-type: none; -} - -ul.token-input-list li input { - border: 0; - width: 350px; - padding: 3px 8px; - background-color: white; - -webkit-appearance: caret; -} - -ul.token-input-disabled, -ul.token-input-disabled li input { - background-color: #E8E8E8; -} - -ul.token-input-disabled li.token-input-token { - background-color: #D9E3CA; - color: #7D7D7D -} - -ul.token-input-disabled li.token-input-token span { - color: #CFCFCF; - cursor: default; -} - -li.token-input-token { - overflow: hidden; - height: auto !important; - height: 1%; - margin: 3px; - padding: 3px 5px; - background-color: #d0efa0; - color: #000; - font-weight: bold; - cursor: default; - display: block; -} - -li.token-input-token p { - float: left; - padding: 0; - margin: 0; -} - -li.token-input-token span { - float: right; - color: #777; - cursor: pointer; -} - -li.token-input-selected-token { - background-color: #08844e; - color: #fff; -} - -li.token-input-selected-token span { - color: #bbb; -} - -div.token-input-dropdown { - position: absolute; - width: 400px; - background-color: #fff; - overflow: hidden; - border-left: 1px solid #ccc; - border-right: 1px solid #ccc; - border-bottom: 1px solid #ccc; - cursor: default; - font-size: 12px; - font-family: Verdana, sans-serif; - z-index: 1; -} - -div.token-input-dropdown p { - margin: 0; - padding: 5px; - font-weight: bold; - color: #777; -} - -div.token-input-dropdown ul { - margin: 0; - padding: 0; -} - -div.token-input-dropdown ul li { - background-color: #fff; - padding: 3px; - list-style-type: none; -} - -div.token-input-dropdown ul li.token-input-dropdown-item { - background-color: #fafafa; -} - -div.token-input-dropdown ul li.token-input-dropdown-item2 { - background-color: #fff; -} - -div.token-input-dropdown ul li em { - font-weight: bold; - font-style: normal; -} - -div.token-input-dropdown ul li.token-input-selected-dropdown-item { - background-color: #d0efa0; -} \ No newline at end of file From d9c730537deee98c403509b141150b1cbc4cad99 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 17:12:53 -0700 Subject: [PATCH 385/637] Picked up *ExtJS* image dependencies Since we're only using a very small portion of **ExtJS** (see #05c7cc3) we don't need most of the images. We do, however, need the drag-and-drop related images. --- .../Resources/images/default/dd/drop-add.gif | Bin 0 -> 1001 bytes .../Resources/images/default/dd/drop-no.gif | Bin 0 -> 949 bytes .../Resources/images/default/dd/drop-yes.gif | Bin 0 -> 1016 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/images/default/dd/drop-add.gif create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/images/default/dd/drop-no.gif create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/images/default/dd/drop-yes.gif diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/images/default/dd/drop-add.gif b/Ignia.Topics.Editor.Mvc/Shared/Scripts/ExtJS/Resources/images/default/dd/drop-add.gif new file mode 100644 index 0000000000000000000000000000000000000000..b22cd1448efa13c47ad6d3b75bdea8b4031c31e9 GIT binary patch literal 1001 zcmZ?wbhEHb6krfwXlG!sZ8LT1HFNH_aOtsj?X~gjxA*9E^z3&Ep6U}i%{O4CWB5GR zxH(~o^CD6fgr+PAPg@j`zBoE{b!f)w;OtcqS!<$mRz>A)jmQU~$dc{RCEH^Pc0?BK zj4s|4Q@Ag_Y)yK_x{UHY2^CvX>NjQ8>`JNKlUBPgy>f3}?ar*)o!Rv}a|;e8R~}5M zI+k5?IJ@p(X5I1prmcC+Tl3ns7k2C@@7Z0}wX?EwUq$b}>dE`-8_$%sovdm*S<`y9 zvg=S~|DoE>6ZKu^Yp3pS>N(xmcc!K9QuCyv4O0&^O+Vf`{Y>lRvmG-|x6L@yKI2T+ z?1R&1ADl7ea@VxWol~!LO}o-P{c88ji`{c?Oj>eo%Chs*mR*>(;O5i?H>WMVJ$u!a zxvQ_tS$1N<@{-~Tgx`xUa|S^%B{CoY`?W?%iUF5@2}Z*cg>Eg z>v!B;zx&SmUDr15xw>=vgZ29!ZQJ`~+mSmvj^5pQ^4^hC_l_QYap3f`!)G2GJNw}H zxtAxeygq;Z-KCo^FW&ihj$;hsoH8C8796zp$T+b>@c4oQ4ptl9{CxcUY?nYS7uzPr^nkf~ zF-KnfWK`sLl+9v^jSOlzC8As$;v$iu&bdH0ut_86$zxX@GwwqiGMCbLCdz4)g$X=7 zcxoaWQ~HIKhmx0vy2>O}Xevx#ky5l?_wGr-qtgtHrgJ}!+;FF#5#6#i2*%nh> zyAFx!#AZoGf3_x%!Zyuz9to2P8w(l~N zU%dGJ;lrOVU;h61@&EsShEXsY0)sdN6o0ZXGcd?A=z!b^$`cG6lNjtdWNtJvwem3w z^YtV!G#qAN*V6d2fsv7ciC4iUL4l!xsfAfr@4=-tS}RxFJMjooS=wa?sdwqwu&r?{0KDI0upwuR+x56{~g zkq<(VSvvztwnvw2k15z6Ua%vwaA$PU&gkM@F@^i$%l9PIZcnS(l~TJWt#)5}{f^9- z1J*HzZPSi=W*zp-IqIEx!mH#^WYOu+{6mTPhZFOT08vuj(d7JNDFp|U3y&lh98WDi zo>p==rRYRP$%%~86B%VEGs{k8RUS;KJD6E_Jiqc}cGa2O`cnnX`*Pb46}28MZ8%lj zaHgpFTzUJ+%FZKY-6tw0oU5O>vwy;#zG=ssCm!gZcDil)nbs*M`lp@kn035;#_6_M zr`l(nX`gwvYwo%3nHRffUg(*1rFZuAiSsW_n15;F+#8b?UYok``qahOr>(v;d-dhn ztL{u+dw=%2>kHRkU$E}Z()D+iZN9m5#o~d_ub#R;qm;f57%vfxPJS?4f`H%+y8jS!N=PUJlT2r&He)i4xD~_ z;M%)OH{V=&_T};0@2@}p{P5-1r$2vx|NZy(|Ns9CqkyasQ2fcl%)rpgpaaqk$`cG6 zR~e)^Wjr=4aC9<_3F%-wzQDoVIAhB~=k&AfoLyW-Re?t*%+d(FBC_aGf`Fq$D3_+D zkjse)Dz(dOBqZEh6jdE-UYxkdEGT3zv4dmE!Dl=ZWi9e%{1g;@!G-s^!P$| z8==@$AR3<{5^GPA?~^>Pma%d|c$9FpH Date: Wed, 23 Oct 2019 17:55:36 -0700 Subject: [PATCH 386/637] Added `.gitignore` to solution file While not strictly necessary, this makes it easy to access and modify the `.gitignore` file from within **Visual Studio**. Otherwise, it isn't visible since it's not within a _project_ root. --- Ignia.Topics.Editor.sln | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ignia.Topics.Editor.sln b/Ignia.Topics.Editor.sln index 361d3c03..dad82832 100644 --- a/Ignia.Topics.Editor.sln +++ b/Ignia.Topics.Editor.sln @@ -9,6 +9,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ignia.Topics.Editor.Mvc", " EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ignia.Topics.Editor.Mvc.Host", "Ignia.Topics.Editor.Mvc.Host\Ignia.Topics.Editor.Mvc.Host.csproj", "{F197E795-6DCE-4B91-B0CB-7B87E32EE347}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{607420FD-7AC7-415A-824A-F7E31D475F1D}" + ProjectSection(SolutionItems) = preProject + .gitignore = .gitignore + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug CC|Any CPU = Debug CC|Any CPU From d051dbe6500f84847a0122af96f0f58aff6208ed Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 18:18:51 -0700 Subject: [PATCH 387/637] Added `customConfig.js` for **CkEditor** MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The **CkEditor** files can mostly be sourced from **npm**. One file that is—and should be—custom to the editor is the `customConfig.js` file. This file in turn relies on `OnTopic.StylesSet.js`. These will be injected into the target `ExtJs` folder via the **Gulp** workflow. --- .../CkEditor/StyleSets/OnTopic.stylesSet.js | 93 +++++++++++++++++++ .../Shared/Scripts/CkEditor/customConfig.js | 92 ++++++++++++++++++ 2 files changed, 185 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StyleSets/OnTopic.stylesSet.js create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StyleSets/OnTopic.stylesSet.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StyleSets/OnTopic.stylesSet.js new file mode 100644 index 00000000..3b546950 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StyleSets/OnTopic.stylesSet.js @@ -0,0 +1,93 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.stylesSet.add( 'OnTopicStyleSet', [ + /* Block Styles */ + + // These styles are already available in the "Format" combo, so they are + // not needed here by default. You may enable them to avoid placing the + // "Format" combo in the toolbar, maintaining the same features. + /* + { name : 'Heading 5' , element : 'h5' }, + { name : 'Heading 6' , element : 'h6' }, + { name : 'Preformatted Text', element : 'pre' }, + { name : 'Address' , element : 'address' }, + + */ + +//Restored from above to remove Format combo + { name : 'Heading 1', + element : 'h1' + //attributes : { 'class' : 'h1 Heading' } + }, + { name : 'Heading 2', + element : 'h2' + //attributes : { 'class' : 'h2 Heading' } + }, + { name : 'Heading 3', + element : 'h3' + //attributes : { 'class' : 'h3 Heading' } + }, + { name : 'Heading 4', + element : 'h4' + //attributes : { 'class' : 'h4 Heading' } + }, + { name : 'Heading 5', + element : 'h5' + //attributes : { 'class' : 'h5 Heading' } + }, + { name : 'Body', + element : 'p' + //attributes : { 'class' : 'Body-Text' } + }, + +/* Inline Styles */ + +//These are core styles available as toolbar buttons. You may opt enabling +//some of them in the Styles combo, removing them from the toolbar. +/* + { name : 'Strong' , element : 'strong', overrides : 'b' }, + { name : 'Emphasis' , element : 'em' , overrides : 'i' }, + { name : 'Underline' , element : 'u' }, + { name : 'Strikethrough' , element : 'strike' }, + { name : 'Subscript' , element : 'sub' }, + { name : 'Superscript' , element : 'sup' }, + */ +//Removed CKEditor defaults +/* + { name : 'Marker: Yellow' , element : 'span', styles : { 'background-color' : 'Yellow' } }, + { name : 'Marker: Green' , element : 'span', styles : { 'background-color' : 'Lime' } }, + { name : 'Big' , element : 'big' }, + { name : 'Small' , element : 'small' }, + { name : 'Typewriter' , element : 'tt' }, + { name : 'Keyboard Phrase' , element : 'kbd' }, + { name : 'Inline Quotation' , element : 'q' }, + { name : 'Sample Text' , element : 'samp' }, + { name : 'Deleted Text' , element : 'del' }, + { name : 'Inserted Text' , element : 'ins' }, + { name : 'Language: RTL' , element : 'span', attributes : { 'dir' : 'rtl' } }, + { name : 'Language: LTR' , element : 'span', attributes : { 'dir' : 'ltr' } }, + +//CKEditor defaults + { name : 'Computer Code' , element : 'code' }, + { name : 'Variable' , element : 'var' }, + +//Altered CKEditor defaults + { name : 'Citation', + element : 'cite', + attributes : { 'class' : 'Citation' } + }, + */ + +/* Object Styles */ + +//Removed CKEditor defaults +/* + { name : 'Image on Left', element : 'img', attributes : { 'style' : 'padding: 5px; margin-right: 5px', 'border' : '2', 'align' : 'left' } }, + { name : 'Image on Right', element : 'img', attributes : { 'style' : 'padding: 5px; margin-left: 5px', 'border' : '2', 'align' : 'right' } }, + { name : 'Square Bulleted List', element : 'ul', styles : { 'list-style-type' : 'square' } } + */ + + ]); \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js new file mode 100644 index 00000000..656edae0 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js @@ -0,0 +1,92 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.editorConfig = function( config ) { +//Define changes to default configuration here. For example: +//config.language = 'fr'; +//config.uiColor = '#AADC6E'; +//config.extraPlugins = 'a11ychecker'; + config.removePlugins = 'autosave'; + config.allowedContent = true; + config.baseHref = '/'; + config.skin = 'moono-lisa'; +//config.uiColor = '#CFCFCF'; +//config.height = '515px'; +//config.resize_maxHeight = '800'; + config.resize_maxWidth = '800'; + config.fillEmptyBlocks = false; + config.shiftEnterMode = CKEDITOR.ENTER_BR; + config.contentsCss = '/_content/Ignia.Topics.Editor.Mvc/Shared/Styles/CKEditor.min.css'; + config.toolbar = [ + { name: 'document', items: [ 'Source' ] }, + { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo' ] }, + { name: 'blocks', items: [ 'ShowBlocks', 'RemoveFormat' ] }, + { name: 'editing', items: [ 'Scayt' ] }, + { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] }, + { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] }, + '/', + { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] }, + { name: 'position', items: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'Outdent', 'Indent' ] }, + { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Blockquote' ] }, + '/', + { name: 'styles', items: ['Styles', 'Format'] }, + { name: 'tools', items: [ 'Find', 'Replace', 'SelectAll', 'Maximize' ] } + ]; + config.toolbarCanCollapse = true; + config.toolbar_Full = [ + ['Source','-','Save','NewPage','Preview','-','Templates'], + ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], + ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], + ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], + '/', + ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], + ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'], + ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], + ['Link','Unlink','Anchor'], + ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'], + '/', + ['Styles','Format','Font','FontSize'], + ['TextColor','BGColor'], + ['Maximize', 'ShowBlocks','-','About'] + ]; + config.toolbar_Basic = [ + ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About'] + ]; + config.toolbar_OnTopic = [ + ['Preview','Source','Undo','Redo','ShowBlocks','RemoveFormat'], + ['Bold','Italic','Cut','Copy','Paste','PasteText','Scayt'], + ['Styles'], //,'Format' + '/', + ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','Outdent','Indent'], + ['NumberedList','BulletedList','Link','Unlink','Anchor'], + ['CreateDiv','Image','Table','HorizontalRule','SpecialChar'], + ['Find','Replace','SelectAll','Maximize'], + ]; +//Set font names + config.font_names = + 'Tahoma/Tahoma, Arial/Arial, sans-serif;' + + 'Times New Roman/Times New Roman, Times, serif;' + + 'Verdana'; +//Call external styles set definition for Styles dropdown menu + config.stylesCombo_stylesSet = 'OnTopicStyleSet:StyleSets/OnTopic.stylesSet.js'; +//Set classes for styles defined in styles set + config.bodyClass = 'CKEPanel'; + +}; + +CKEDITOR.on('instanceReady', function (ev) { + var blockTags = ['div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'pre', 'ul', 'ol', 'li', 'br']; + var rules = { + indent: false, + breakBeforeOpen: false, + breakAfterOpen: false, + breakBeforeClose: false, + breakAfterClose: true + }; + + for (var i = 0; i < blockTags.length; i++) { + ev.editor.dataProcessor.writer.setRules(blockTags[i], rules); + } +}); \ No newline at end of file From 0823c00c8e3e6440c9fb75ad056c95ff72bc43ac Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 23 Oct 2019 18:19:15 -0700 Subject: [PATCH 388/637] Migrated client-side dependencies to *npm*, located via *Gulp* Previously, client-side dependencies, such as JavaScript, stylesheets, and fonts, were either manually downloaded or accessed via a CDN. To ensure that the editor is ready for distribution (e.g., via *NuGet*) we're now downloading these via *npm*, and then placing them in their respective directories via the new *Gulp* 'dependency' task. Eventually, we'll likely want to uglify (or minimize) and concat these, so that they don't need to be downloaded independently, but that's not the immediate priority. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 23 ++++---- Ignia.Topics.Editor.Mvc/gulpFile.js | 54 ++++++++++++++++++- Ignia.Topics.Editor.Mvc/package-lock.json | 48 +++++++++++++++++ Ignia.Topics.Editor.Mvc/package.json | 10 +++- 4 files changed, 120 insertions(+), 15 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 52374977..559595a9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -8,14 +8,14 @@ @ViewBag.Title - Ignia OnTopic - + - + - - + + @@ -24,25 +24,24 @@ - - + - + + - - + + - + - - + diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index 778631fa..22b12d30 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -41,6 +41,37 @@ const files = { js : 'Shared/Scripts/*.js' }; +/*============================================================================================================================== +| DEPENDENCIES +>------------------------------------------------------------------------------------------------------------------------------- +| Paths to third-party dependencies that need to by copies into the project. This is exclusively for pre-compiled client-side +| files, such as JavaScript (excluding TypeScript), CSS (excluding SCSS), images, and the occasional font. +\-----------------------------------------------------------------------------------------------------------------------------*/ +const dependencies = { + 'Scripts': { + 'jQuery' : 'node_modules/jquery/dist/*.*', + 'jQueryUI' : 'node_modules/jquery-ui-dist/jquery-ui.*.js', + 'Bootstrap' : 'node_modules/bootstrap/dist/js/bootstrap.min.*', + 'Popper' : 'node_modules/popper.js/dist/umd/popper.min*', + 'TokenInput' : 'node_modules/jquery-tokeninput/dist/js/*.js', + 'ExtJS' : 'Shared/Scripts/ExtJS/*.js', + 'CkEditor' : [ 'node_modules/ckeditor/**/*', + 'Shared/Scripts/CkEditor/**/*.js' + ], + 'TrentRichardson' : 'node_modules/jquery-ui-timepicker-addon/dist/*.js' + }, + 'Styles': { + 'Bootstrap' : 'node_modules/bootstrap/dist/css/bootstrap.min.*', + 'jQueryUI' : 'node_modules/jquery-ui-dist/jquery-ui.*.css', + 'ExtJS' : 'Shared/Scripts/ExtJS/Resources/**/*', + 'TokenInput' : 'node_modules/jquery-tokeninput/dist/css/token-input.min.css', + 'TrentRichardson' : 'node_modules/jquery-ui-timepicker-addon/dist/*.css' + }, + 'Fonts': { + 'FontAwesome' : 'node_modules/@fortawesome/fontawesome-free/webfonts/*' + } +}; + /*============================================================================================================================== | SET ENVIRONMENT >------------------------------------------------------------------------------------------------------------------------------- @@ -94,6 +125,24 @@ function jsTask() { .pipe(dest(outputDir + '/Shared/Scripts/')); } +/*============================================================================================================================== +| TASK: DEPENDENCIES +>------------------------------------------------------------------------------------------------------------------------------- +| Copies static dependencies from their source folders and into their appropriate build folders. +\-----------------------------------------------------------------------------------------------------------------------------*/ +function dependenciesTask() { + var streams = []; + for (var contentType in dependencies) { + for (var dependency in dependencies[contentType]) { + streams.push( + src(dependencies[contentType][dependency]) + .pipe(dest(outputDir.concat('/Shared/', contentType, '/Vendor/', dependency))) + ); + } + } + return merge(streams); +} + /*============================================================================================================================== | EXPORT TASKS >------------------------------------------------------------------------------------------------------------------------------- @@ -101,13 +150,14 @@ function jsTask() { \-----------------------------------------------------------------------------------------------------------------------------*/ exports.scss = scssTask; exports.js = jsTask; +exports.dependencies = dependenciesTask; /*============================================================================================================================== | TASK: BUILD >------------------------------------------------------------------------------------------------------------------------------- | Composite task that will call all build-related tasks. \-----------------------------------------------------------------------------------------------------------------------------*/ -exports.build = parallel(scssTask, jsTask); +exports.build = parallel(dependenciesTask, scssTask, jsTask); /*============================================================================================================================== | TASK: DEFAULT @@ -115,4 +165,4 @@ exports.build = parallel(scssTask, jsTask); | The default task when Gulp runs, assuming no task is specified. Assuming the environment variable isn't explicitly defined | otherwise, will run on development-oriented tasks. \-----------------------------------------------------------------------------------------------------------------------------*/ -exports.default = parallel(scssTask, jsTask); +exports.default = parallel(dependenciesTask, scssTask, jsTask); diff --git a/Ignia.Topics.Editor.Mvc/package-lock.json b/Ignia.Topics.Editor.Mvc/package-lock.json index 3f27ff2e..9b33ed62 100644 --- a/Ignia.Topics.Editor.Mvc/package-lock.json +++ b/Ignia.Topics.Editor.Mvc/package-lock.json @@ -3,6 +3,12 @@ "requires": true, "lockfileVersion": 1, "dependencies": { + "@fortawesome/fontawesome-free": { + "version": "5.11.2", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.11.2.tgz", + "integrity": "sha512-XiUPoS79r1G7PcpnNtq85TJ7inJWe0v+b5oZJZKb0pGHNIV6+UiNeQWiFGmuQ0aj7GEhnD/v9iqxIsjuRKtEnQ==", + "dev": true + }, "@gulp-sourcemaps/identity-map": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-1.0.2.tgz", @@ -475,6 +481,12 @@ "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", "dev": true }, + "bootstrap": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.3.1.tgz", + "integrity": "sha512-rXqOmH1VilAt2DyPzluTi2blhk17bO7ef+zLLPlWvG494pDxcM234pJ8wTc/6R40UWizAIIMgxjvxZg5kmsbag==", + "dev": true + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -676,6 +688,12 @@ } } }, + "ckeditor": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/ckeditor/-/ckeditor-4.12.1.tgz", + "integrity": "sha512-pH2Su4oi0D4iN/3U8nUcwI7/lXHoOJi0aiN8e2zxnm4Ow5kq8eZP2ZGmpYyuqRyKZ2tHaU8+OyYi7laXcjiq9Q==", + "dev": true + }, "class-utils": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", @@ -3376,6 +3394,30 @@ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", "dev": true }, + "jquery": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz", + "integrity": "sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==", + "dev": true + }, + "jquery-tokeninput": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/jquery-tokeninput/-/jquery-tokeninput-1.6.0.tgz", + "integrity": "sha1-o9YaQftebKQJWRQBnJLT1D5hzAM=", + "dev": true + }, + "jquery-ui-dist": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/jquery-ui-dist/-/jquery-ui-dist-1.12.1.tgz", + "integrity": "sha1-XAgV08xvkP9fqvWyaKbiO0ypBPo=", + "dev": true + }, + "jquery-ui-timepicker-addon": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/jquery-ui-timepicker-addon/-/jquery-ui-timepicker-addon-1.6.3.tgz", + "integrity": "sha1-gDfDmwtjAoLdCzfditf8XhFjN38=", + "dev": true + }, "js-base64": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz", @@ -4408,6 +4450,12 @@ } } }, + "popper.js": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.0.tgz", + "integrity": "sha512-+G+EkOPoE5S/zChTpmBSSDYmhXJ5PsW8eMhH8cP/CQHMFPBG/kC9Y5IIw6qNYgdJ+/COf0ddY2li28iHaZRSjw==", + "dev": true + }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", diff --git a/Ignia.Topics.Editor.Mvc/package.json b/Ignia.Topics.Editor.Mvc/package.json index 06e43285..6bdba744 100644 --- a/Ignia.Topics.Editor.Mvc/package.json +++ b/Ignia.Topics.Editor.Mvc/package.json @@ -7,6 +7,9 @@ }, "license": "MIT", "devDependencies": { + "@fortawesome/fontawesome-free": "^5.11.2", + "bootstrap": "^4.3.1", + "ckeditor": "^4.12.1", "cssnano": "^4.1.10", "gulp": "^4.0.2", "gulp-concat": "^2.6.1", @@ -16,7 +19,12 @@ "gulp-sass": "^4.0.2", "gulp-sourcemaps": "^2.6.5", "gulp-uglify": "^3.0.2", + "jquery": "^3.4.1", + "jquery-tokeninput": "^1.6.0", + "jquery-ui-dist": "^1.12.1", + "jquery-ui-timepicker-addon": "^1.6.3", "jshint": "^2.10.2", - "merge2": "^1.3.0" + "merge2": "^1.3.0", + "popper.js": "^1.16.0" } } From 65c544eeac8d5bbd79fd80e55437e952c3019669 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 24 Oct 2019 18:07:21 -0700 Subject: [PATCH 389/637] Updated to latest patch of `Ignia.Topics` library Patch 3 of the preview `csharp8-update` branch includes fixes related to compatible topic mapping. --- .../Ignia.Topics.Editor.Models.csproj | 4 ++-- .../Ignia.Topics.Editor.Mvc.Host.csproj | 12 ++++++------ .../Ignia.Topics.Editor.Mvc.csproj | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 73911015..036f5c48 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -8,8 +8,8 @@ bin\$(Configuration)\ - - + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 4497f30d..efd775bb 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -8,12 +8,12 @@ - - - - - - + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 36590171..89e7729e 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -7,9 +7,9 @@ - - - + + + From 893ab21345cf8a2b2e354165908f413cf7fb784f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 24 Oct 2019 18:10:00 -0700 Subject: [PATCH 390/637] Updated to use new custom property mapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, `AttributeDescriptors` and `PermittedContentTypes` were mapping to their source relationships—`Attributes` and `ContentTypes` respectively. The problem with this is that the `ContentTypeDescriptor` class has a custom implementation of `AttributeDescriptors` and `PermittedContentTypes` that provides a more accurate view. Notably, `AttributeDescriptors` not _only_ includes topics from the `Attributes` list, but _also_ any `topics from _ascendant_ `ContentTypeDescriptor`s, thus allowing attributes to be _inherited_ from _parent_ content types. This ensures all of the correct attributes are displayed on the editor. --- .../ContentTypeDescriptorTopicViewModel.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs index e79be364..2d4f3f33 100644 --- a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs @@ -33,7 +33,6 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// A list of instances representing each of the permitted by the underlying . /// - [Relationship("Attributes", Type=RelationshipType.NestedTopics)] public List AttributeDescriptors { get; } = new List(); /*========================================================================================================================== @@ -68,7 +67,6 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// Determines which s, if any, are permitted to be created under s of the /// current . /// - [Relationship("ContentTypes", Type=RelationshipType.Relationship)] public List PermittedContentTypes { get; set; } } // Class From 9d7a5037f8367b530eb2562291c3962b7f75e188 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 25 Oct 2019 15:11:49 -0700 Subject: [PATCH 391/637] Updated location of `Lato` fonts For fonts, for now, we're prefer downloading from **Google**'s CDN, instead of redistributing the fonts with the application. That's how we reference it in the main intereface. What we don't want is to maintain a distribution for one section, while using the CDN for another. --- .../wwwroot/Shared/Styles/CKEditor.css | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css index 828faca9..293d07e7 100644 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css +++ b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css @@ -1,17 +1,4 @@ -@font-face { - font-family: 'Lato Light'; - src: url('../Fonts/lato-light-webfont.eot'); - src: url('../Fonts/lato-light-webfont.eot?#iefix') format('embedded-opentype'), url('../Fonts/lato-light-webfont.woff') format('woff'), url('../Fonts/lato-light-webfont.ttf') format('truetype'), url('../Fonts/lato-light-webfont.svg#latolight') format('svg'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'Lato'; - src: url('../Fonts/lato-regular-webfont.eot'); - src: url('../Fonts/lato-regular-webfont.eot?#iefix') format('embedded-opentype'), url('../Fonts/lato-regular-webfont.woff') format('woff'), url('../Fonts/lato-regular-webfont.ttf') format('truetype'), url('../Fonts/lato-regular-webfont.svg#latoregular') format('svg'); - font-weight: normal; - font-style: normal; -} +@import url('https://fonts.googleapis.com/css?family=Lato:300,400'); body { background-color: #FFF; font-family: "Lato", Helvetica, Arial, sans-serif; From ec95cd388876a8f8526b1ad20ce791a6bb907434 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 12:01:20 -0700 Subject: [PATCH 392/637] Introduced **Papercut**'s `are-you-sure` library This was a dependency of the original site that somehow got left behind. We need to reevaluate _all_ of these dependencies, but for now we want to start from a stable foundation to ensure backward compatibility with existing scripts. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 1 + Ignia.Topics.Editor.Mvc/gulpFile.js | 3 ++- Ignia.Topics.Editor.Mvc/package-lock.json | 9 +++++++++ Ignia.Topics.Editor.Mvc/package.json | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 559595a9..1c6f9588 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -27,6 +27,7 @@ + diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index 22b12d30..b6d8edf8 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -58,7 +58,8 @@ const dependencies = { 'CkEditor' : [ 'node_modules/ckeditor/**/*', 'Shared/Scripts/CkEditor/**/*.js' ], - 'TrentRichardson' : 'node_modules/jquery-ui-timepicker-addon/dist/*.js' + 'TrentRichardson' : 'node_modules/jquery-ui-timepicker-addon/dist/*.js', + 'PaperCut' : 'node_modules/jquery.are-you-sure/*.js' }, 'Styles': { 'Bootstrap' : 'node_modules/bootstrap/dist/css/bootstrap.min.*', diff --git a/Ignia.Topics.Editor.Mvc/package-lock.json b/Ignia.Topics.Editor.Mvc/package-lock.json index 9b33ed62..c6fcab66 100644 --- a/Ignia.Topics.Editor.Mvc/package-lock.json +++ b/Ignia.Topics.Editor.Mvc/package-lock.json @@ -3418,6 +3418,15 @@ "integrity": "sha1-gDfDmwtjAoLdCzfditf8XhFjN38=", "dev": true }, + "jquery.are-you-sure": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/jquery.are-you-sure/-/jquery.are-you-sure-1.9.0.tgz", + "integrity": "sha512-2r0uFx8CyAopjeHGOdvvwpFP921TnW1+v1uJXcAWQYHYGB1tryTDhQY+5u6HsVeMwbWiRTKVZFWnLaFpDvIqZQ==", + "dev": true, + "requires": { + "jquery": ">=1.4.2" + } + }, "js-base64": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz", diff --git a/Ignia.Topics.Editor.Mvc/package.json b/Ignia.Topics.Editor.Mvc/package.json index 6bdba744..7d31f80b 100644 --- a/Ignia.Topics.Editor.Mvc/package.json +++ b/Ignia.Topics.Editor.Mvc/package.json @@ -23,6 +23,7 @@ "jquery-tokeninput": "^1.6.0", "jquery-ui-dist": "^1.12.1", "jquery-ui-timepicker-addon": "^1.6.3", + "jquery.are-you-sure": "^1.9.0", "jshint": "^2.10.2", "merge2": "^1.3.0", "popper.js": "^1.16.0" From 08ee0029cb1bf43dbc7000de030443f9b4ebd1c5 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 12:02:42 -0700 Subject: [PATCH 393/637] Delete root packages We previously migrated to the new **Visual Studio 2017** project format, which does away with `packages.config`. And while these files were removed, there remained an orphaned version in the root of the site, which is no longer necessary or even used. --- packages.config | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 packages.config diff --git a/packages.config b/packages.config deleted file mode 100644 index 7918f286..00000000 --- a/packages.config +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From acc2325b5c335a5b7bda2a13ccd71f1d7bd4a594 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 12:03:48 -0700 Subject: [PATCH 394/637] Delete unused `Modal.js` The `Modal.js` is not being used, nor was it used in the legacy site. In fact, it is an exact duplicate of `TopicList.js`. It's likely that this file was renamed at some point, and `Modal.js` was inadvertantly left over as an artifact. --- .../Shared/Scripts/Modal.js | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js deleted file mode 100644 index 705f6b6d..00000000 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Modal.js +++ /dev/null @@ -1,49 +0,0 @@ -(function($) { - -//Set modal properties and open the modal - initEditorModal = function(namespace, title, targetUrl, onCloseFunction) { - - alert('initEditorModal fired:'); - console.log('namespace: ' + namespace + ' - title: ' + title + ' - targetUrl: ' + targetUrl + ' - onCloseFunction: ' + onCloseFunction); - - var $editorModal = $('#EditorModal' + namespace), - $modalTitle = $('#ModalTitle' + namespace), - $editorFrame = $('#EditorFrame' + namespace); - //Set modal title - if ($modalTitle && title.length > 0) { - $modalTitle.html(title); - } - //Set modal iframe source - if ($editorFrame && targetUrl.length > 0) { - $editorFrame.attr('src', targetUrl); - } - //Open modal - if ($editorModal) { - $editorModal.modal({ - backdrop : 'static', - keyboard : false - }); - } - - }; - -//Modal close triggers (needed for closing the modal from within the iframe) - window.closeModal = function(action, key) { - $('#EditorModal' + key).modal('hide'); - }; - $('#ModalCloseButton').on('click', function(e) { - window.parent.closeModal('canceled', ''); - }); - -//Set initial Display Groups tab content pane as active tab - $('.tab-content div.tab-pane:first-child').addClass('active'); - $('[id*="EditorModal"]').on('shown.bs.modal', function(e) { - $('.tab-content div.tab-pane:first-child').addClass('active'); - }); - -//Modal close button handling - $('#ModalCloseButton').on('click', function(e) { - $('[id*="EditorModal"]').modal('hide'); - }); - - })(jQuery); \ No newline at end of file From 4845b7852a1c231a50eccfcb0ff66f3752383039 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 14:03:15 -0700 Subject: [PATCH 395/637] Reorganized, commented, and consolidated scripts Previously, the custom JavaScript files for the site were a bit of a hodgepodge. Functions were repeated between various scripts, varying only slightly. And the names of the scripts didn't necessarily give a good idea of what they were for. To mitigate this, I broke the scripts down by functional area or script, and added comments to further clarify what the functionality is. We'll still want to further clean up and test these; most of the logic was left as-is for this commit. --- .../Areas/Editor/Views/Editor/Edit.cshtml | 5 - .../Areas/Editor/Views/Shared/_Layout.cshtml | 3 +- .../Shared/Scripts/AreYouSure.js | 49 +++++++ .../Shared/Scripts/Common.Functions.js | 103 ------------- .../Shared/Scripts/Layout.js | 71 +++++++++ .../Shared/Scripts/TopicList.js | 137 ++++++++++++------ .../Shared/Scripts/UserInterface.js | 77 ++++++++++ .../Scripts/Window.Primary.Functions.js | 46 ------ Ignia.Topics.Editor.Mvc/gulpFile.js | 2 +- 9 files changed, 293 insertions(+), 200 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/AreYouSure.js delete mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/Layout.js create mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/UserInterface.js delete mode 100644 Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index ba57ec17..04301d7b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -65,11 +65,6 @@ $(function() { - /** - * Wire up Attribute description tooltips - */ - $('[data-toggle="tooltip"]').tooltip(); - /** * Sends AJAX request to Save/Edit Action */ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 1c6f9588..7560c84d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -28,7 +28,6 @@ - @@ -121,7 +120,7 @@
    - + diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/AreYouSure.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/AreYouSure.js new file mode 100644 index 00000000..ee7b0f6f --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/AreYouSure.js @@ -0,0 +1,49 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +/*============================================================================================================================== +| CONFIGURE "ARE YOU SURE?" +>------------------------------------------------------------------------------------------------------------------------------- +| PaperCut's Are-You-Sure library is a simple jQuery plugin that detects when the user is leaving a page with unsaved +| modifications to the form. In this scenario, it prompts them to confirm this is intentional, and that they understand any +| unsaved work will be lost. +\-----------------------------------------------------------------------------------------------------------------------------*/ +(function ($) { + + 'use strict'; + + /*---------------------------------------------------------------------------------------------------------------------------- + | Ignore navigation elements + \---------------------------------------------------------------------------------------------------------------------------*/ + $('.Sidebar select').addClass('ays-ignore'); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Event Handler: Add "Are you sure?" to form + \---------------------------------------------------------------------------------------------------------------------------*/ + //Enable dirty form checking; warn users if navigating away from page without saving + $('form').areYouSure({ + 'message': 'You have made changes to this topic without saving. If you continue, any changes will be lost.' + }); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Configuration: Ensure hidden WYSIWYG fields participate in form check + \---------------------------------------------------------------------------------------------------------------------------*/ + var isFormSubmitting = false; + $('form').submit(function () { + isFormSubmitting = true; + }); + $(window).on('beforeunload', function () { + if (!isFormSubmitting) { + for (var i in CKEDITOR.instances) { + if (CKEDITOR.instances[i].checkDirty()) { + $('form').trigger('checkform.areYouSure'); + return 'You have made changes to this topic without saving.'; + } + } + } + }); + +})(jQuery); \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js deleted file mode 100644 index 05162e23..00000000 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Common.Functions.js +++ /dev/null @@ -1,103 +0,0 @@ -(function($) { - 'use strict'; - - // Decorate sidebar form fields (e.g., the add topic selection) so that Are-You-Sure will ignore them - $('.Sidebar select').addClass('ays-ignore'); - - // Enable dirty form checking; warn users if navigating away from page without saving - $('form').areYouSure({ - 'message' : 'You have made changes to this topic without saving.' - }); - - // Make sure hidden WYSIWYG textarea fields trigger the form check, but only if not submitting - var isFormSubmitting = false; - $('form').submit(function() { - isFormSubmitting = true; - }); - $(window).on('beforeunload', function() { - if (!isFormSubmitting) { - for (var i in CKEDITOR.instances) { - if(CKEDITOR.instances[i].checkDirty()) { - $('form').trigger('checkform.areYouSure'); - return 'You have made changes to this topic without saving.'; - } - } - } - }); - - // Modal close triggers (needed for closing the modal from within the iframe) - window.closeModal = function(action, key) { - $('#EditorModal').modal('hide'); - }; - $('#ModalCloseButton').on('click', function(e) { - window.parent.closeModal('canceled', ''); - }); - - // Set initial Display Groups tab content pane as active tab - $('.tab-content div.tab-pane:first-child').addClass('active'); - $('[id*="EditorModal"]').on('shown.bs.modal', function(e) { - $('.tab-content div.tab-pane:first-child').addClass('active'); - }); - - // Confirm version rollback - $('#VersionsDropdown ul li a').on('click', function(e) { - var selectedVersion = $(this).text(); - if (!confirmRollback(selectedVersion)) return false; - }); - - // Modal close button handling - $('#ModalCloseButton').on('click', function(e) { - $('[id*="EditorModal"]').modal('hide'); - }); - - // Initialize tooltips for field descriptions - $('.Content-Description').tooltip({ - placement : 'right', - //delay : { 'show': 25, 'hide': 100 }, - viewport : '#DisplayGroupTabsContent' - }); - - // Initialize tooltip for inherited topic note - $('a.alert-link').tooltip({ - placement : 'bottom' - }); - -})(jQuery); - -// Set modal properties and open the modal -function initEditorModal(title, targetUrl, onCloseFunction) { - - var - $editorModal = $('#EditorModal'), - $modalTitle = $('#ModalTitle'), - $editorFrame = $('#EditorFrame'); - - // Set modal title - if ($modalTitle && title.length > 0) { - $modalTitle.html(title); - } - - // Set modal iframe source - if ($editorFrame && targetUrl.length > 0) { - $editorFrame.attr('src', targetUrl); - } - - // Open modal - if ($editorModal) { - $editorModal.modal({ - backdrop : 'static', - keyboard : false - }); - } - -} - -// Passthrough function for evaluating/setting the Topic Key value based on the Title value -function getKeyValue(input) { - return input.replace(/[^A-Za-z0-9]+/g, ""); -} - -// Confirm version rollback -function confirmRollback(versionText) { - return confirm('Are you sure you roll back this Topic to its ' + versionText + ' version? All data entered for this Topic will be reverted to their state as of this version.'); -} diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Layout.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Layout.js new file mode 100644 index 00000000..9e44a79a --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Layout.js @@ -0,0 +1,71 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +/*============================================================================================================================== +| CONFIGURE LAYOUT DIMENSIONS +>------------------------------------------------------------------------------------------------------------------------------- +| The nature of the editor's layout makes it susceptible to changes in the window height. Ideally, this would have all been +| handled via CSS. In absence of that, however, the following functions help maintain a full-height grid while keeping each of +| the individual elements independent of one another (e.g., not resorting to a table). +\-----------------------------------------------------------------------------------------------------------------------------*/ +$(function () { + + 'use strict'; + + /*---------------------------------------------------------------------------------------------------------------------------- + | Establish initial variables + \---------------------------------------------------------------------------------------------------------------------------*/ + var $windowHeight = $(window).height(); + var $topBarHeight = $('#HeaderContainer').height(); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Compensate for height of the header and toolbar + \---------------------------------------------------------------------------------------------------------------------------*/ + $('body').css('padding-top', $topBarHeight + 'px'); + $(window).resize(function() { + setTimeout(function() { + $topBarHeight = $('#HeaderContainer').height(); + $('body').css('padding-top', $topBarHeight + 'px'); + }, 50); + }); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Set size and location of toolbar + \---------------------------------------------------------------------------------------------------------------------------*/ + var $dynamicFormWidth = $('#PageContentArea').width(); + var $editorNavBar = $('#Toolbar'); + if ($editorNavBar) { + $editorNavBar.css('width', $dynamicFormWidth + 'px').css('top', $topBarHeight+1 + 'px'); + } + + /*---------------------------------------------------------------------------------------------------------------------------- + | Set size and location of the body area + \---------------------------------------------------------------------------------------------------------------------------*/ + $(window).resize(function() { + setTimeout(function() { + $dynamicFormWidth = $('#PageContentArea').width(); + $editorNavBar.css('width', $dynamicFormWidth + 'px').css('top', $topBarHeight+1 + 'px'); + }, 50); + }); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Set height of modal window + \---------------------------------------------------------------------------------------------------------------------------*/ + var $percentageHeight = $windowHeight * 0.785; + $('[id*="EditorModal"]').on('show.bs.modal', function(e) { + $('div[id*="EditorModal"] iframe').attr('height', $percentageHeight + 'px'); + }); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Set height of form area + \---------------------------------------------------------------------------------------------------------------------------*/ + var $formAreaOffset = $('#DisplayGroupTabsContent').offset(); + if ($formAreaOffset) { + $('#DisplayGroupTabsContent').css('min-height', $windowHeight-$formAreaOffset.top + 'px'); + } + +}); + diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js index 32ac300c..804472a0 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js @@ -1,49 +1,100 @@ -(function($) { - -//Set modal properties and open the modal - initEditorModal = function(namespace, title, targetUrl, onCloseFunction) { - - console.log('initEditorModal fired:'); - console.log('namespace: ' + namespace + ' - title: ' + title + ' - targetUrl: ' + targetUrl + ' - onCloseFunction: ' + onCloseFunction); - - var $editorModal = $('#EditorModal' + namespace), - $modalTitle = $('#ModalTitle' + namespace), - $editorFrame = $('#EditorFrame' + namespace); - //Set modal title - if ($modalTitle && title.length > 0) { - $modalTitle.html(title); - } - //Set modal iframe source - if ($editorFrame && targetUrl.length > 0) { - $editorFrame.attr('src', targetUrl); - } - //Open modal - if ($editorModal) { - $editorModal.modal({ - backdrop : 'static', - keyboard : false - }); - } - - }; - -//Modal close triggers (needed for closing the modal from within the iframe) - window.closeModal = function(action, key) { - $('#EditorModal' + key).modal('hide'); - }; - $('#ModalCloseButton').on('click', function(e) { - window.parent.closeModal('canceled', ''); +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +/*============================================================================================================================== +| CONFIGURE MODAL EDITOR +>------------------------------------------------------------------------------------------------------------------------------- +| The TopicListViewComponent exposes a list of "nested topics". To help reinforce that these are components of the parent +| page, these are loaded in small, lightweight modal windows with minimal navigation. The following methods help configure the +| modal windows and ensure the page is prepared to handle events related to it. +\-----------------------------------------------------------------------------------------------------------------------------*/ + +/*============================================================================================================================== +| METHOD: INIT EDITOR MODAL +\-----------------------------------------------------------------------------------------------------------------------------*/ +/** + * Triggers a new modal window to load. + * @param {string} namespace - The parent key of the nested topic container. + * @param {string} title - The title of the given topic, if defined, to be displayed in the title bar and header of the modal. + * @param {string} targetUrl - The URL of the editor window that should be loaded within the modal's iframe. + * @param {string} onCloseFunction - The (optional) JavaScript function on the parent page to call when the modal is closed. + */ +initEditorModal = function (namespace, title, targetUrl, onCloseFunction) { + + /*---------------------------------------------------------------------------------------------------------------------------- + | Provide debug data for testing + \---------------------------------------------------------------------------------------------------------------------------*/ + console.log('initEditorModal fired:'); + console.log('namespace: ' + namespace + ' - title: ' + title + ' - targetUrl: ' + targetUrl + ' - onCloseFunction: ' + onCloseFunction); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Establish variables + \---------------------------------------------------------------------------------------------------------------------------*/ + var $editorModal = $('#EditorModal' + namespace); + var $modalTitle = $('#ModalTitle' + namespace); + var $editorFrame = $('#EditorFrame' + namespace); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Set modal window title + \---------------------------------------------------------------------------------------------------------------------------*/ + if ($modalTitle && title.length > 0) { + $modalTitle.html(title); + } + + /*---------------------------------------------------------------------------------------------------------------------------- + | Set modal iframe source + \---------------------------------------------------------------------------------------------------------------------------*/ + if ($editorFrame && targetUrl.length > 0) { + $editorFrame.attr('src', targetUrl); + } + + /*---------------------------------------------------------------------------------------------------------------------------- + | Open modal window + \---------------------------------------------------------------------------------------------------------------------------*/ + if ($editorModal) { + $editorModal.modal({ + backdrop: 'static', + keyboard: false }); + } + +}; -//Set initial Display Groups tab content pane as active tab +/*============================================================================================================================== +| METHOD: CLOSE MODAL (WINDOW) +\-----------------------------------------------------------------------------------------------------------------------------*/ +/** + * Closes the current modal window + * @param {string} action - Default parameter supplied by JavaScript event (unused). + * @param {string} namespace - The parent key of the nested topic container. + */ +window.closeModal = function (action, namespace) { + $('#EditorModal' + key).modal('hide'); +}; + +/*============================================================================================================================== +| JQUERY: WIRE UP ACTIONS +\-----------------------------------------------------------------------------------------------------------------------------*/ +(function ($) { + + /*---------------------------------------------------------------------------------------------------------------------------- + | Event Handler: Close Button + \---------------------------------------------------------------------------------------------------------------------------*/ + $('#ModalCloseButton').on('click', function (e) { + window.parent.closeModal('canceled', ''); + $('[id*="EditorModal"]').modal('hide'); + }); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Precondition: Set first tab as active + \---------------------------------------------------------------------------------------------------------------------------*/ + //Set the first tab (and associated content pane) as active $('.tab-content div.tab-pane:first-child').addClass('active'); $('[id*="EditorModal"]').on('shown.bs.modal', function(e) { $('.tab-content div.tab-pane:first-child').addClass('active'); - }); - -//Modal close button handling - $('#ModalCloseButton').on('click', function(e) { - $('[id*="EditorModal"]').modal('hide'); - }); + }); - })(jQuery); \ No newline at end of file +})(jQuery); \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/UserInterface.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/UserInterface.js new file mode 100644 index 00000000..fd7d7b4f --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/UserInterface.js @@ -0,0 +1,77 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +/*============================================================================================================================== +| CONFIGURE USER INTERFACE +>------------------------------------------------------------------------------------------------------------------------------- +| Wireup event handlers and provide common functions for use across the user interface, including the toolbar and actual editor +| form. +\-----------------------------------------------------------------------------------------------------------------------------*/ + +/*============================================================================================================================== +| METHOD: GET KEY VALUE +\-----------------------------------------------------------------------------------------------------------------------------*/ +/** + * Given the value of a title, automatically proposes a key name by removing characters not permitted in topic keys. + * @param {string} title - The value of the title attribute. + * @returns {string} A valid key to use for the topic + */ +function getKeyValue(title) { + return input.replace(/[^A-Za-z0-9]+/g, ""); +} + +/*============================================================================================================================== +| METHOD: Confirm rollback +\-----------------------------------------------------------------------------------------------------------------------------*/ +/** + * Confirms the user's intent to rollback the current topic to the selected version + * @param {string} version - The specific value of the version to be rolled back to. This represents the version date. + */ +// Confirm version rollback +function confirmRollback(versionText) { + return confirm( + 'Are you sure you roll back this Topic to its ' + versionText + ' version? All data entered for this Topic will be ' + + 'reverted to their state as of this version.' + ); +} + +/*============================================================================================================================== +| JQUERY: WIRE UP ACTIONS +\-----------------------------------------------------------------------------------------------------------------------------*/ +(function ($) { + + 'use strict'; + + /*---------------------------------------------------------------------------------------------------------------------------- + | Event Handler: Version Rollback + \---------------------------------------------------------------------------------------------------------------------------*/ + $('#VersionsDropdown ul li a').on('click', function (e) { + var selectedVersion = $(this).text(); + if (!confirmRollback(selectedVersion)) return false; + }); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Tooltip: Attribute Descriptions + \---------------------------------------------------------------------------------------------------------------------------*/ + $('.Content-Description').tooltip({ + placement : 'right', + //delay : { 'show': 25, 'hide': 100 }, + viewport : '#DisplayGroupTabsContent' + }); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Tooltip: Inherited Topic Notification + \---------------------------------------------------------------------------------------------------------------------------*/ + $('a.alert-link').tooltip({ + placement : 'bottom' + }); + + /*---------------------------------------------------------------------------------------------------------------------------- + | Tooltip: Manually's configured tooltips + \---------------------------------------------------------------------------------------------------------------------------*/ + $('[data-toggle="tooltip"]').tooltip(); + +})(jQuery); \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js deleted file mode 100644 index da528996..00000000 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/Window.Primary.Functions.js +++ /dev/null @@ -1,46 +0,0 @@ -$(function() { - - 'use strict'; - - // Get header container height - var $windowHeight = $(window).height(); - var $topBarHeight = $('#HeaderContainer').height(); - - // Set body top padding (compensation for fixed top bar) based on initial screen size or adjustment - $('body').css('padding-top', $topBarHeight + 'px'); - $(window).resize(function() { - setTimeout(function() { - $topBarHeight = $('#HeaderContainer').height(); - $('body').css('padding-top', $topBarHeight + 'px'); - }, 50); - }); - - // Set editor tabs bar width (tabs + action buttons) - var $dynamicFormWidth = $('#PageContentArea').width(); - var $editorNavBar = $('#Toolbar'); - if ($editorNavBar) { - $editorNavBar.css('width', $dynamicFormWidth + 'px').css('top', ($topBarHeight + 1) + 'px'); - } - - // Set body top padding (compensation for fixed top bar) based on initial screen size or adjustment - $(window).resize(function() { - setTimeout(function() { - $dynamicFormWidth = $('#PageContentArea').width(); - $editorNavBar.css('width', $dynamicFormWidth + 'px').css('top', ($topBarHeight + 1) + 'px'); - }, 50); - }); - - // Editor modal height - var $percentageHeight = ($windowHeight * 0.785); - $('[id*="EditorModal"]').on('show.bs.modal', function(e) { - $('div[id*="EditorModal"] iframe').attr('height', $percentageHeight + 'px'); - }); - - // Set height for form area - var $formAreaOffset = $('#DisplayGroupTabsContent').offset(); - if ($formAreaOffset) { - $('#DisplayGroupTabsContent').css('min-height', ($windowHeight - $formAreaOffset.top) + 'px'); - } - -}); - diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index b6d8edf8..744d3d64 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -120,7 +120,7 @@ function jsTask() { .pipe(sourceMaps.init()) .pipe(jshint()) .pipe(jshint.reporter('default')) - //.pipe(concat('Scripts.js')) + .pipe(concat('Scripts.js')) .pipe(uglify()) .pipe(sourceMaps.write('.')) .pipe(dest(outputDir + '/Shared/Scripts/')); From 77b2708bca7681f0bf8cfe7ac2393c29982b5335 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 14:04:09 -0700 Subject: [PATCH 396/637] Reorganized client-side scripts, styles Made minor reordering to keep styles and scripts, vendor and custom separate. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 7560c84d..b34cf31d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -15,7 +15,6 @@ - @@ -32,6 +31,9 @@ + + + @@ -39,14 +41,13 @@ - - - - + + + From 7c8defa739db2bbe23b7f267a4b7d7b704edc5c8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 14:05:47 -0700 Subject: [PATCH 397/637] Corrected path The path for the `#SaveButton` function was incorrect; the `Model.Topic.WebPath` needed to be set up as an anonymous route object. This function still needs additional work; ultimately, it probably doesn't make sense (at this point) for it to be done as an AJAX post, and the way that the data is passed along doesn't actually make much sense (nor is it functional). --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 04301d7b..ebe7e15e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -71,7 +71,7 @@ $('#SavePageButton').click(function() { $.ajax({ - url : '@Url.Action("Edit" + Model.Topic.WebPath, "Editor")', + url : '@Url.Action("Edit", "Editor", new { path = Model.Topic.WebPath })', type : 'POST', data : @bindingModel, success: function (result) { From 34e365a54b6124e132d1908a6c1375c9bc28643e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 14:06:43 -0700 Subject: [PATCH 398/637] Implemented string interpolation for `HtmlFieldPrefix` This is more readable than having `+ index++ +`. --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index ebe7e15e..ebd39772 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -29,7 +29,7 @@ @await Component.InvokeAsync( attribute.EditorType.Replace(".ascx", ""), - new { Attribute=attribute, HtmlFieldPrefix="Attributes[" + index++ + "]" } + new { Attribute=attribute, HtmlFieldPrefix=$"Attributes[{index++}]" } ) } From 893777861e6c7705904bc4c531152958608bbbee Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 17:01:21 -0700 Subject: [PATCH 399/637] Default to `true` for `TargetPopup` The _expected_ use case for `TopicList` is that nested topics will be opened in a modal window. Developers should be able to _disable_ this, but the _default_ assumption should be that popups are _enabled_. --- .../Areas/Editor/Components/TopicListViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 579fcc4b..fcf13c8a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -51,7 +51,7 @@ public async Task InvokeAsync( \-----------------------------------------------------------------------------------------------------------------------*/ options ??= new TopicListOptions(); options.ContentTypes ??= attribute.GetConfigurationValue( "ContentTypes", ""); - options.TargetPopup ??= attribute.GetBooleanConfigurationValue( "TargetPopup", false); + options.TargetPopup ??= attribute.GetBooleanConfigurationValue( "TargetPopup", true); /*------------------------------------------------------------------------------------------------------------------------ | Establish view model From 61719bafcd425923e526ac40fcfc666ff7e7edea Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 17:16:48 -0700 Subject: [PATCH 400/637] Reorganized `console.log()` functions for clarity, additional details As per --- .../Shared/Scripts/TopicList.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js index 804472a0..6617367c 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js @@ -24,12 +24,6 @@ */ initEditorModal = function (namespace, title, targetUrl, onCloseFunction) { - /*---------------------------------------------------------------------------------------------------------------------------- - | Provide debug data for testing - \---------------------------------------------------------------------------------------------------------------------------*/ - console.log('initEditorModal fired:'); - console.log('namespace: ' + namespace + ' - title: ' + title + ' - targetUrl: ' + targetUrl + ' - onCloseFunction: ' + onCloseFunction); - /*---------------------------------------------------------------------------------------------------------------------------- | Establish variables \---------------------------------------------------------------------------------------------------------------------------*/ @@ -37,6 +31,18 @@ initEditorModal = function (namespace, title, targetUrl, onCloseFunction) { var $modalTitle = $('#ModalTitle' + namespace); var $editorFrame = $('#EditorFrame' + namespace); + /*---------------------------------------------------------------------------------------------------------------------------- + | Provide debug data for testing + \---------------------------------------------------------------------------------------------------------------------------*/ + console.log('initEditorModal fired:'); + console.log('namespace: ' + namespace); + console.log('title: ' + title); + console.log('targetUrl: ' + targetUrl); + console.log('onCloseFunction: ' + onCloseFunction); + console.log('#EditorModal' + namespace + ': ' + $editorModal); + console.log('#ModalTitle' + namespace + ': ' + $modalTitle); + console.log('#EditorFrame' + namespace + ': ' + $editorFrame); + /*---------------------------------------------------------------------------------------------------------------------------- | Set modal window title \---------------------------------------------------------------------------------------------------------------------------*/ From abdefaf1ba86b1059dfa9913d6b8f9693df35198 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 17:36:15 -0700 Subject: [PATCH 401/637] Implemented `initEditorModal()` popup in `TopicList` This includes an event listener in the `TreeView`, placeholder markup for the modal in the view, as well as some minor changes to the associated `TopicList.js` to account for changes in the naming convention. Note that while this causes the modal to fire, there remain issues with the actual modal content that need to be addressed. Namely, the close/cancel buttons aren't being displayed, and the navigation isn't being hidden. Those features will need to wait until a future update. --- .../Components/TopicList/Default.cshtml | 42 ++++++++++++++++++- .../Shared/Scripts/TopicList.js | 6 +-- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml index cfee094b..6782e387 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml @@ -1,4 +1,4 @@ -@model AttributeViewModel +@model TopicListAttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; @@ -26,6 +26,21 @@ dataUrl : '/OnTopic/Json/@Model.WebPath/@Model.AttributeDescriptor.Key?ShowAll=true', root : new Ext.tree.AsyncTreeNode({}), rootVisible : false, + listeners : { + click: function (n) { + var targetUrl = "@(Url.Action("Edit")+Model.AttributeDescriptor.Key)/" + n.attributes.key; + @if (Model.Options.TargetPopup?? true) { + + initEditorModal('@Model.Key', n.attributes.text, targetUrl + '?Modal=true', @($"{Model.AttributeDescriptor.Key}Tree_refresh"));return false; + + } + else { + + location.href = targetUrl; + + } + } + } }); @if (!Model.IsNew) { @@ -35,6 +50,10 @@ } }); + function @($"{Model.AttributeDescriptor.Key}Tree")_refresh() { + @($"{Model.AttributeDescriptor.Key}Tree").getLoader().load(@($"{Model.AttributeDescriptor.Key}Tree")).root; + }; +
    @@ -63,3 +82,24 @@ else { Subtopics cannot be created until this topic has been saved. Save the topic, then add nested topics.
    } + + + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js index 6617367c..746a5768 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TopicList.js @@ -27,9 +27,9 @@ initEditorModal = function (namespace, title, targetUrl, onCloseFunction) { /*---------------------------------------------------------------------------------------------------------------------------- | Establish variables \---------------------------------------------------------------------------------------------------------------------------*/ - var $editorModal = $('#EditorModal' + namespace); - var $modalTitle = $('#ModalTitle' + namespace); - var $editorFrame = $('#EditorFrame' + namespace); + var $editorModal = $('#EditorModal_' + namespace); + var $modalTitle = $('#ModalTitle_' + namespace); + var $editorFrame = $('#EditorFrame_' + namespace); /*---------------------------------------------------------------------------------------------------------------------------- | Provide debug data for testing From 7cca747a26c247f93dde3dc940e3766e8d780698 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 26 Oct 2019 17:36:37 -0700 Subject: [PATCH 402/637] Ensure latest version of script is always loaded --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index b34cf31d..ec05c97b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -121,7 +121,7 @@
    - + From 975428f0bc450e3ed57ad1b847dda705502d833a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 27 Oct 2019 13:39:05 -0700 Subject: [PATCH 403/637] Conditionally hide layout for `IsModal` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There may be a more elegant way of handling this by e.g., conditionally removing the layout—but that introduces other challenges such as having to have an alternate layout without the navigation. For now, this is the easiest, requires the least refactoring, and prevents the need for any dupliction of e.g. script registrations. In addition, (re)introduced classes related to the modal window. Note that while this successfully hides the navigation, it doesn't make the modal window render any better. That's going to require @ktrunkey's attention. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 97 ++++++++++--------- 1 file changed, 52 insertions(+), 45 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index ec05c97b..25e9acae 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -49,29 +49,31 @@ - + + + @if (!Model.IsModal) { + + } -
    +
    - + @if (!Model.IsModal) { + + } + -
    +
    @RenderBody()
    @@ -123,7 +128,9 @@ - + @if (!Model.IsModal) { + + } @RenderSection("scripts", required: false) From 499f4714a139d73694e6be268b3bafc549692f76 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 27 Oct 2019 13:39:57 -0700 Subject: [PATCH 404/637] Introduced string interpolation for readability --- .../Editor/Views/Editor/Components/Boolean/Default.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml index 9d67b68e..f22ebabb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml @@ -6,11 +6,11 @@
    From 48c0ac6d0ae2d4458625c25837948eac0f897c18 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 27 Oct 2019 13:50:08 -0700 Subject: [PATCH 405/637] Resolved issues when `TopicListViewComponent` only has one topic The dropdown list should only be displayed if there are multiple options. Otherwise, a link should be displayed. That said, the options includes an empty-valued label as the first entry. As such, the count will always be one higher than the number of (valid) options. To account for this, the threshold is increased from 1 to 2, and the value and label are pulled from the _last_ entry, not the _first_ entry. --- .../Views/Editor/Components/TopicLookup/Default.cshtml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicLookup/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicLookup/Default.cshtml index 2e13b6e0..2dbe25f6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicLookup/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicLookup/Default.cshtml @@ -4,16 +4,14 @@ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -@if (Model.TopicList.Count > 1) { +@if (Model.TopicList.Count > 2) { } -@if (Model.TopicList.Count == 1 && !String.IsNullOrEmpty(Model.Options.TargetUrl)) { +@if (Model.TopicList.Count <= 2 && !String.IsNullOrEmpty(Model.Options.TargetUrl)) {
    @if (Model.Options.TargetPopup is false) { - - Add @Model.TopicList.FirstOrDefault().Text }
    From 487ec7ac325cae58cebc2ff629ae6d568bb4a3cd Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 27 Oct 2019 14:49:21 -0700 Subject: [PATCH 406/637] Consolidated third-party `js` and `css` files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of (just) copying third-party, client-side dependencies from e.g. `/node_modules` to their respective `/wwwroot/Shared/*/Vendor/` folders, I added a process that `concat()`s those files into a `Vendor.js` and `Vendor.css` file, and referenced that from `_Layout.cshtml`. For now, I kept the original `/Vendor/` distribution around as well, but we'll be able to get rid of most of those at some point. I did keep `CKEditor`'s dependencies and `ExtJS's `css` independent, as they rely on relative folder structures for pulling in dependencies that don't lend themselves to consolidation. Further, while I included `jquery.are-you-sure.js`, it should be noted that the source file for this is not uglified—but it also doesn't make sense (yet) to complicate the build process to `uglify` a single (small) vendor script. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 36 ++----------- Ignia.Topics.Editor.Mvc/gulpFile.js | 52 +++++++++++++++++-- 2 files changed, 53 insertions(+), 35 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 25e9acae..2cb25353 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -7,44 +7,16 @@ @ViewBag.Title - Ignia OnTopic - - - - - - - - - - - - - - - + + - - - - - - - - - - + + - - - - - - - diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index 744d3d64..50528b69 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -38,9 +38,27 @@ var environment = 'development', \-----------------------------------------------------------------------------------------------------------------------------*/ const files = { scss : 'Shared/Styles/Style.scss', - js : 'Shared/Scripts/*.js' + js : 'Shared/Scripts/*.js', + jsVendor : [ 'node_modules/jquery/dist/jquery.min.js', + 'node_modules/jquery-ui-dist/jquery-ui.min.js', + 'node_modules/bootstrap/dist/js/bootstrap.min.js', + 'node_modules/popper.js/dist/umd/popper.min.js', + 'node_modules/jquery-tokeninput/dist/js/jquery-tokeninput.min.js', + 'Shared/Scripts/ExtJS/ext-base.js', + 'Shared/Scripts/ExtJS/ext-all.js', + 'Shared/Scripts/ExtJS/ext-ExtendTextField.js', + 'node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.js', + 'node_modules/jquery.are-you-sure/jquery.are-you-sure.js' + ], + cssVendor : [ 'node_modules/bootstrap/dist/css/bootstrap.min.css', + 'node_modules/jquery-ui-dist/jquery-ui.min.css', + 'node_modules/jquery-tokeninput/dist/css/token-input.min.css', + 'node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.css' + ] }; + + /*============================================================================================================================== | DEPENDENCIES >------------------------------------------------------------------------------------------------------------------------------- @@ -126,6 +144,32 @@ function jsTask() { .pipe(dest(outputDir + '/Shared/Scripts/')); } +/*============================================================================================================================== +| TASK: JAVASCRIPT VENDOR FILES +>------------------------------------------------------------------------------------------------------------------------------- +| Consolidates third-party JavaScript files sourced from npm as part of production process. +\-----------------------------------------------------------------------------------------------------------------------------*/ +function jsVendorTask() { + return src(files.jsVendor) + .pipe(sourceMaps.init()) + .pipe(concat('Vendor.js')) + .pipe(sourceMaps.write('.')) + .pipe(dest(outputDir + '/Shared/Scripts/')); +} + +/*============================================================================================================================== +| TASK: STYLESHEET VENDOR FILES +>------------------------------------------------------------------------------------------------------------------------------- +| Consolidates third-party Stylesheet files sourced from npm as part of production process. +\-----------------------------------------------------------------------------------------------------------------------------*/ +function cssVendorTask() { + return src(files.cssVendor) + .pipe(sourceMaps.init()) + .pipe(concat('Vendor.css')) + .pipe(sourceMaps.write('.')) + .pipe(dest(outputDir + '/Shared/Styles/')); +} + /*============================================================================================================================== | TASK: DEPENDENCIES >------------------------------------------------------------------------------------------------------------------------------- @@ -150,7 +194,9 @@ function dependenciesTask() { | Exports the above defined tasks for use by gulp. \-----------------------------------------------------------------------------------------------------------------------------*/ exports.scss = scssTask; +exports.cssVendor = cssVendorTask; exports.js = jsTask; +exports.jsVendor = jsVendorTask; exports.dependencies = dependenciesTask; /*============================================================================================================================== @@ -158,7 +204,7 @@ exports.dependencies = dependenciesTask; >------------------------------------------------------------------------------------------------------------------------------- | Composite task that will call all build-related tasks. \-----------------------------------------------------------------------------------------------------------------------------*/ -exports.build = parallel(dependenciesTask, scssTask, jsTask); +exports.build = parallel(dependenciesTask, scssTask, cssVendorTask, jsTask, jsVendorTask); /*============================================================================================================================== | TASK: DEFAULT @@ -166,4 +212,4 @@ exports.build = parallel(dependenciesTask, scssTask, jsTask); | The default task when Gulp runs, assuming no task is specified. Assuming the environment variable isn't explicitly defined | otherwise, will run on development-oriented tasks. \-----------------------------------------------------------------------------------------------------------------------------*/ -exports.default = parallel(dependenciesTask, scssTask, jsTask); +exports.default = parallel(dependenciesTask, scssTask, cssVendorTask, jsTask, jsVendorTask); From ea62347050a6cd1d256656734d9b4868f7c897d6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 27 Oct 2019 14:54:32 -0700 Subject: [PATCH 407/637] Fixed typo in comment --- Ignia.Topics.Editor.Mvc/gulpFile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index 50528b69..1097c806 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -62,7 +62,7 @@ const files = { /*============================================================================================================================== | DEPENDENCIES >------------------------------------------------------------------------------------------------------------------------------- -| Paths to third-party dependencies that need to by copies into the project. This is exclusively for pre-compiled client-side +| Paths to third-party dependencies that need to be copied into the project. This is exclusively for pre-compiled client-side | files, such as JavaScript (excluding TypeScript), CSS (excluding SCSS), images, and the occasional font. \-----------------------------------------------------------------------------------------------------------------------------*/ const dependencies = { From 06413f946035626502ad60ff9c81b64b97ea46d0 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 28 Oct 2019 13:14:34 -0700 Subject: [PATCH 408/637] Moved `*DescriptorTopicViewModel` to a `Metadata` namespace Not only is this consistent with the `Ignia.Topics.Metadata` namespace that these `TopicViewModel`s map to, but it will also make room for the several new `AttributeDescriptor`s that we intend to introduce later today. This required updating the `using` statements in all files that rely on either `ContentTypeDescriptorTopicViewModel` or `AttributeDescriptorTopicViewModel`. --- Ignia.Topics.Editor.Models/AttributeViewModel.cs | 1 + Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs | 1 + .../Components/ViewModels/BooleanAttributeViewModel.cs | 1 + .../ViewModels/TokenizedTopicListAttributeViewModel.cs | 1 + .../Components/ViewModels/TopicListAttributeViewModel.cs | 1 + Ignia.Topics.Editor.Models/EditorViewModel.cs | 1 + .../{ => Metadata}/AttributeDescriptorTopicViewModel.cs | 2 +- .../{ => Metadata}/ContentTypeDescriptorTopicViewModel.cs | 2 +- .../Areas/Editor/Components/AttributeTypeViewComponentBase.cs | 1 + .../Areas/Editor/Components/BooleanViewComponent.cs | 1 + .../Editor/Components/DefaultAttributeTypeViewComponent.cs | 1 + .../Areas/Editor/Components/FileListViewComponent.cs | 1 + .../Areas/Editor/Components/LastModifiedViewComponent.cs | 1 + .../Areas/Editor/Components/RelationshipsViewComponent.cs | 1 + .../Areas/Editor/Components/TokenizedTopicListViewComponent.cs | 1 + .../Areas/Editor/Components/TopicListViewComponent.cs | 1 + .../Areas/Editor/Components/TopicLookupViewComponent.cs | 1 + .../Areas/Editor/Components/TopicPointerViewComponent.cs | 1 + .../Areas/Editor/Components/WysiwygViewComponent.cs | 1 + .../Areas/Editor/Controllers/EditorController.cs | 1 + .../Areas/Editor/Infrastructure/EditorViewModelLookupService.cs | 1 + .../Areas/Editor/Models/FileListAttributeViewModel.cs | 1 + .../Areas/Editor/Models/TopicLookupAttributeViewModel.cs | 1 + Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml | 1 + 24 files changed, 24 insertions(+), 2 deletions(-) rename Ignia.Topics.Editor.Models/{ => Metadata}/AttributeDescriptorTopicViewModel.cs (99%) rename Ignia.Topics.Editor.Models/{ => Metadata}/ContentTypeDescriptorTopicViewModel.cs (98%) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index 892d1e2d..fd8a6ad3 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -3,6 +3,7 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Metadata; namespace Ignia.Topics.Editor.Models { diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs index 52c8c4d1..ed2e1c47 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Metadata; namespace Ignia.Topics.Editor.Models { diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs index 9eabf016..63f5c234 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Metadata; using System; diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs index bf4cb9e1..8564c261 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using System; using System.ComponentModel.DataAnnotations; diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/TopicListAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/TopicListAttributeViewModel.cs index ebbb7fe3..dc5f036a 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/TopicListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/TopicListAttributeViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using System; using System.ComponentModel.DataAnnotations; diff --git a/Ignia.Topics.Editor.Models/EditorViewModel.cs b/Ignia.Topics.Editor.Models/EditorViewModel.cs index 83757aff..0659db81 100644 --- a/Ignia.Topics.Editor.Models/EditorViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditorViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Ignia.Topics.Collections; +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Metadata; namespace Ignia.Topics.Editor.Models { diff --git a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs similarity index 99% rename from Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs rename to Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs index e39889cf..e4d65c00 100644 --- a/Ignia.Topics.Editor.Models/AttributeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using Ignia.Topics.Metadata; -namespace Ignia.Topics.Editor.Models { +namespace Ignia.Topics.Editor.Models.Metadata { /*============================================================================================================================ | CLASS: ATTRIBUTE DESCRIPTOR TOPIC VIEW MODEL diff --git a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs similarity index 98% rename from Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs rename to Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs index 2d4f3f33..72bd5f38 100644 --- a/Ignia.Topics.Editor.Models/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs @@ -7,7 +7,7 @@ using Ignia.Topics.Mapping; using Ignia.Topics.Metadata; -namespace Ignia.Topics.Editor.Models { +namespace Ignia.Topics.Editor.Models.Metadata { /*============================================================================================================================ | CLASS: CONTENT TYPE DESCRIPTOR (TOPIC VIEW MODEL) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index 5eca2c99..02241c8b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -12,6 +12,7 @@ using System; using System.Diagnostics.CodeAnalysis; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; namespace Ignia.Topics.Editor.Mvc.Components { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs index 46d43ecb..4ff675c4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs @@ -8,6 +8,7 @@ using Ignia.Topics.Editor.Models.Components; using Ignia.Topics.Editor.Models.Components.Options; using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs index 9eb69f64..bd0e4f42 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index 71c4ff01..d49b0585 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -5,6 +5,7 @@ \=============================================================================================================================*/ using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Editor.Mvc.Models; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index 76649b12..096302bc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs index 1d142d44..0c424fe3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipsViewComponent.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index e3e4001e..60fb1135 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -7,6 +7,7 @@ using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Repositories; using Microsoft.AspNetCore.Mvc; using System; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index fcf13c8a..d5160176 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -9,6 +9,7 @@ using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs index 440498d8..1659dc71 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicLookupViewComponent.cs @@ -9,6 +9,7 @@ using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Editor.Mvc.Models; using Ignia.Topics.Querying; using Ignia.Topics.Repositories; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs index e139bd12..6f9929e5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicPointerViewComponent.cs @@ -7,6 +7,7 @@ using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Repositories; using Microsoft.AspNetCore.Mvc; using System; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs index 61c2accf..902aae6c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/WysiwygViewComponent.cs @@ -5,6 +5,7 @@ \=============================================================================================================================*/ using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 87b61973..fb7579f1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -11,6 +11,7 @@ using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Attributes; using Ignia.Topics.Editor.Models.Json; +using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Internal.Diagnostics; using Ignia.Topics.Mapping; using Ignia.Topics.Metadata; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs index 22490866..8b8b7df2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Metadata; namespace Ignia.Topics.Editor.Mvc.Infrastructure { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs index 176d9050..6fc5d27e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc.Rendering; namespace Ignia.Topics.Editor.Mvc.Models { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs index 90c81e19..538d1889 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicLookupAttributeViewModel.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.Options; +using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc.Rendering; namespace Ignia.Topics.Editor.Mvc.Models { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml index 4a3c21c0..96f3a464 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml @@ -7,6 +7,7 @@ @using Ignia.Topics.Editor.Models.Components @using Ignia.Topics.Editor.Models.Components.Options @using Ignia.Topics.Editor.Models.Components.ViewModels +@using Ignia.Topics.Editor.Models.Metadata @using Ignia.Topics.Editor.Mvc.Models @using Microsoft.AspNetCore.Html From fb026c7194751196cc516576d24a177f2e36628e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 28 Oct 2019 17:26:07 -0700 Subject: [PATCH 409/637] Centralized `GetDisplayGroups()` and `GetAttributeDescriptors()` logic The view logic for getting a distinct, sorted list of display groups, and then getting a sorted list of attributes for each is a bit cumbersome for a view file. To mitigate that, moved the view logic into the view model via the `GetDisplayGroups()` and `GetAttributeDescriptors()` methods. --- .../ContentTypeDescriptorTopicViewModel.cs | 21 +++++++++++++++++++ .../Areas/Editor/Views/Editor/Edit.cshtml | 5 ++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs index 72bd5f38..7cc9ab28 100644 --- a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using System.Collections.Generic; +using System.Linq; using Ignia.Topics.Mapping; using Ignia.Topics.Metadata; @@ -69,5 +70,25 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// public List PermittedContentTypes { get; set; } + /*========================================================================================================================== + | METHOD: GET DISPLAY GROUPS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves an alphabetized list of display groups associated with this 's collection. + /// + public List GetDisplayGroups() => + AttributeDescriptors.Select(a => a.DisplayGroup).Distinct().OrderBy(a => a).ToList(); + + /*========================================================================================================================== + | METHOD: GET ATTRIBUTE DESCRIPTORS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves a prioritized list of based for a given display group, + /// ordered by . + /// + public List GetAttributeDescriptors(string displayGroup) => + AttributeDescriptors.Where(a => a.DisplayGroup.Equals(displayGroup)).OrderBy(a => a.SortOrder).ToList(); + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index ebd39772..c297cdad 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -13,15 +13,14 @@
    @{int index = 0;}
    - @foreach (string category in Model.ContentTypeDescriptor.AttributeDescriptors.Select(a => a.DisplayGroup).Distinct().OrderBy(a => a)) { + @foreach (string displayGroupName in Model.ContentTypeDescriptor.GetDisplayGroups()) { - var supportedAttributes = Model.ContentTypeDescriptor.AttributeDescriptors.Where(a => a.DisplayGroup.Equals(category)); var displayGroup = category.Replace(" ", "");
    - @foreach (var attribute in supportedAttributes.OrderBy(a => a.SortOrder)) { + @foreach (var attribute in Model.ContentTypeDescriptor.GetAttributeDescriptors(displayGroupName)) { if (attribute.IsHidden || String.IsNullOrEmpty(attribute.EditorType)) { continue; From c0609405ae7c4732a476fb4935dd2c6ce838563a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 28 Oct 2019 17:29:03 -0700 Subject: [PATCH 410/637] Renamed `category` to `displayGroupName` for consistency Introducing a new term, `category`, just adds confusion here, since the name `DisplayGroup` had already been established. While I was at it, renamed `displayGroup` to `displayGroupId` to disambiguate from `displayGroupName`. --- .../Areas/Editor/Views/Editor/Edit.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index c297cdad..78e230da 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -15,10 +15,10 @@
    @foreach (string displayGroupName in Model.ContentTypeDescriptor.GetDisplayGroups()) { - var displayGroup = category.Replace(" ", ""); + var displayGroupId = displayGroupName.Replace(" ", ""); -
    -
    +
    +
    @foreach (var attribute in Model.ContentTypeDescriptor.GetAttributeDescriptors(displayGroupName)) { From 8b4ac215f57f6d18db947afa28d1d17bfe0a15dc Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 28 Oct 2019 17:37:19 -0700 Subject: [PATCH 411/637] Introduced *jQuery Validate* required field logic Ideally, **jQuery Validate** would be configured using HTML-5 rules. Unfortunately, it's difficult to set e.g. `required` via an `HtmlAttributes` anonymous object, however, since you can't set `required=false`. Instead, rules are created via **jQuery Validate**'s JSON `rules` configuration. In addition, they are retrieved directly from the `AttributeDescriptorTopicViewModel`'s new `GetValidationeRules()` method, which can be overridden by any subclass of `AttributeDescriptorTopicViewModel` to accommodate other rules beyond required fields, as those will be attribute type dependent. For now, stylesheets still aren't operating correctly; those will need to be addressed separately. --- .../AttributeDescriptorTopicViewModel.cs | 8 +++++ .../Areas/Editor/Views/Editor/Edit.cshtml | 31 ++++++++++--------- Ignia.Topics.Editor.Mvc/gulpFile.js | 4 ++- Ignia.Topics.Editor.Mvc/package-lock.json | 6 ++++ Ignia.Topics.Editor.Mvc/package.json | 1 + 5 files changed, 35 insertions(+), 15 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs index e4d65c00..dfb4fc7e 100644 --- a/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs @@ -139,6 +139,14 @@ public int GetIntegerConfigurationValue(string key, int defaultValue = 0) { /// public int SortOrder { get; set; } + /*========================================================================================================================== + | METHOD: GET VALIDATION RULES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves a JSON-formatted string representing a list of rules for the attribute based on jQuery Validate's format. + /// + public virtual string GetValidationRules() => "required:" + IsRequired.ToString().ToLowerInvariant(); + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 78e230da..a533ad18 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -62,27 +62,30 @@ @section scripts { \ No newline at end of file From 546f7e182641a7cf92b2ac1153e5104b5afceac6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 30 Oct 2019 19:05:31 -0700 Subject: [PATCH 429/637] Introduced `TargetUrl` handling on `TopicListViewComponent` buttons We still need to wire up the `IsAutoPostBack` functionality for the `TopicListViewComponent` dropdown lists. In the meanwhile, however, this at least introduces the `TargetUrl` functionality for the scenario where there's only a single topic, and thus a button is displayed. Tested and demonstrated to work for both `TargetPopup` and `TargetUrl. As part of this, crorrected the calling format for `` in both `_Layout.cshtml` (for creating new topics) and `NestedTopicList\Default.cshtml` (for creating new nested topics). --- .../Areas/Editor/Components/TopicListViewComponent.cs | 1 + .../Editor/Components/NestedTopicList/Default.cshtml | 4 ++-- .../Views/Editor/Components/TopicList/Default.cshtml | 9 ++++++++- .../Areas/Editor/Views/Shared/_Layout.cshtml | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 00a1efde..10da7666 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -228,6 +228,7 @@ private string ReplaceTokens(Topic topic, string source, string defaultValue = n .Replace("{FullName}", topic.GetUniqueKey()) .Replace("{Key}", topic.Key) .Replace("{UniqueKey}", topic.GetUniqueKey()) + .Replace("{WebPath}", topic.GetWebPath()) .Replace("{Title}", topic.Title) .Replace("{Parent}", topic.Parent.GetUniqueKey()) .Replace("{ParentId}", topic.Parent.Id.ToString()) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index 92baeb9b..f8e17410 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -31,7 +31,7 @@ var targetUrl = "@(Url.Action("Edit")+Model.AttributeDescriptor.Key)/" + n.attributes.key; @if (Model.AttributeDescriptor.TargetPopup?? true) { - initEditorModal('@Model.Key', n.attributes.text, targetUrl + '?Modal=true', @($"{Model.AttributeDescriptor.Key}Tree_refresh"));return false; + initEditorModal('@Model.Key', n.attributes.text, targetUrl + '?IsModal=true', @($"{Model.AttributeDescriptor.Key}Tree_refresh"));return false; } else { @@ -67,7 +67,7 @@ AttributeValue = "ContentType", AllowedKeys = Model.AttributeDescriptor.ContentTypes, Label = "Add child topic…", - TargetUrl = $"?ContentType{{Topic}}&Path={Model.UniqueKey}:{Model.AttributeDescriptor.Key}&Action=Add", + TargetUrl = $"{Url.Action("Edit")}{Model.AttributeDescriptor.Key}/?ContentType={{Topic}}&IsNew=true&IsModal=true", TargetPopup = Model.AttributeDescriptor.TargetPopup, OnClientClose = $"{Model.AttributeDescriptor.Key}Tree_refresh" }; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml index aaa22275..0c277d2c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml @@ -10,7 +10,14 @@ @if (Model.TopicList.Count <= 2 && !String.IsNullOrEmpty(Model.AttributeDescriptor.TargetUrl)) {
    - + @if (Model.AttributeDescriptor.TargetPopup == true) { + + Add @Model.TopicList.LastOrDefault().Text + + } + else { + + Add @Model.TopicList.LastOrDefault().Text }
    diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index aa4733d2..133eca92 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -75,7 +75,7 @@ AttributeValue = "ContentType", Label = "Add new topic…", AllowedKeys = String.Join(",", Model.ContentTypeDescriptor.PermittedContentTypes.Select(m => m.Key).ToArray()), - TargetUrl = $"?ContentType={{Topic}}&IsAdd=true", + TargetUrl = $"{Url.Action("Edit")}?ContentType={{Topic}}&IsNew=true", }; } From 04efe69e619ef6f35241fab40ca2cda3e58f07b8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 12:44:10 -0700 Subject: [PATCH 430/637] Reintroduced ability to move topics in `NestedTopicListViewComponent` As part of this, also updated `EditorController.Move()` to accept `-1` defaults for `targetTopicId` and `siblingId`. If the `targetTopicId` is set to `-1`, then the current parent is assumed (that is, it's simply a reordering of topics). If the `siblingId` is set to `-1`, then it is assumed that the topic will be moved to the last position under the parent. --- .../Editor/Controllers/EditorController.cs | 10 +++++-- .../Components/NestedTopicList/Default.cshtml | 26 +++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index fb7579f1..828129f7 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -326,14 +326,20 @@ public IActionResult Delete(bool isModal = false) { /// hierarchy to another. "true" if succeeded, Returns "false" if failure, as string values. The JS throws a generic /// "failure" error on "false". /// + /// The of the topic to be moved. + /// The of the parent topic. -1 implies the same parent. + /// + /// The of the sibling to place the after. 0 implies it should be + /// placed at the end. + /// [HttpPost] - public IActionResult Move(int topicId, int targetTopicId, int siblingId) { + public IActionResult Move(int topicId, int targetTopicId = -1, int siblingId = -1) { /*-------------------------------------------------------------------------------------------------------------------------- | Retrieve the source and destination topics \-------------------------------------------------------------------------------------------------------------------------*/ var topic = TopicRepository.Load(topicId); - var target = TopicRepository.Load(targetTopicId); + var target = (targetTopicId >= 0)? TopicRepository.Load(targetTopicId) : topic.Parent; /*-------------------------------------------------------------------------------------------------------------------------- | Reset the source topic's Parent diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index f8e17410..6ab6f017 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -39,6 +39,32 @@ location.href = targetUrl; } + }, + startdrag : function(tree, node, event) { + oldPosition = node.parentNode.indexOf(node); + oldNextSibling = node.nextSibling; + }, + nodedragover : function(dragOverEvent) { + return dragOverEvent.point !== "append"; + }, + movenode : function(tree, node, oldParent, newParent, position) { + + var params = {'node':node.id, 'delta':(position-oldPosition)}; + + //Determine sibling ID to place node after, based off position + var siblingId = -1; + if (position > 0) { + siblingId = newParent.childNodes[position-1].id; + } + + //Ext.Msg.alert("Debugging", "Node: " + node.attributes.id + ", OldParent: " + oldParent.attributes.id + ", Parent: " + newParent.attributes.id + ", Sibling: " + siblingId); + + $.ajax({ + method: "POST", + url: "/OnTopic/Move", + data: { topicId: node.attributes.id, targetTopicId: -1, siblingId } + }) + } } }); From 8a47be26899bf023e6cd53df53fabf99770d4611 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 13:29:31 -0700 Subject: [PATCH 431/637] Introduced ability to disable checkboxes in `/JSON` feed **ExtJS**'s `TreeView` component will automatically render checkboxes if a `checked` value is set in the model, as used by e.g. the `RelationshipViewComponent`. For the navigation as well as the `NestedTopicListViewComponent`, however, this is not functionality that we want. To disable this, `checked` must be set to `null` or `undefined`. To support this, I made `JsonTopicViewModel.IsChecked` nullable, and automatically enable it if `MarkRelated` is `true` (thus enabling it for relationships). Otherwise, it is set to `null`. That said, I also exposed a `ShowCheckboxes` option in `JsonTopicViewModelOptions`, which can be used to force checkboxes on (e.g., `/OnTopic/Json/?EnableCheckboxes=true`). --- .../Json/JsonTopicViewModel.cs | 11 +++++++---- .../Json/JsonTopicViewModelOptions.cs | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs index 428cfcd5..7a925cf2 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs @@ -41,7 +41,7 @@ JsonTopicViewModelOptions options options.UseKeyAsText? topic.Key : topic.Title, topic.GetUniqueKey(), topic.GetWebPath(), - options.MarkRelated? related.Contains(topic) : true, + options.EnableCheckboxes? (options.MarkRelated? related.Contains(topic) : true) : new bool?(), topic.Attributes.GetValue("DisableDelete", "0").Equals("0") ) { @@ -79,7 +79,7 @@ public JsonTopicViewModel( string title, string uniqueKey, string webPath, - bool isChecked = false, + bool? isChecked = null, bool isDraggable = true ) { @@ -91,9 +91,12 @@ public JsonTopicViewModel( Title = title; UniqueKey = uniqueKey; WebPath = webPath; - IsChecked = isChecked; IsDraggable = isDraggable; + if (isChecked.HasValue) { + IsChecked = isChecked.Value; + } + /*------------------------------------------------------------------------------------------------------------------------ | Initialize collection \-----------------------------------------------------------------------------------------------------------------------*/ @@ -211,7 +214,7 @@ public string WebPath { /// Determines whether the current topic is selected or not. /// [JsonPropertyName("checked")] - public bool IsChecked { + public bool? IsChecked { get; } diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs index 2556ac58..3d6e8bd3 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs @@ -19,6 +19,7 @@ public class JsonTopicViewModelOptions { | PRIVATE VARIABLES \-------------------------------------------------------------------------------------------------------------------------*/ bool _markRelated = false; + bool _showCheckboxes = false; /*========================================================================================================================== | CONSTRUCTOR @@ -45,6 +46,7 @@ public JsonTopicViewModelOptions() { MarkRelated = false; RelatedTopicId = -1; RelatedNamespace = null; + EnableCheckboxes = false; } @@ -174,6 +176,21 @@ public string Query { set; } + /*========================================================================================================================== + | ENABLE CHECKBOXES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether or not to display checkboxes by including the value. + /// + /// + /// This will automatically be set to true is is set to true. Otherwise, it defaults to + /// false. + /// + public bool EnableCheckboxes { + get => (MarkRelated || _showCheckboxes); + set => _showCheckboxes = value; + } + /*========================================================================================================================== | MARK RELATED \-------------------------------------------------------------------------------------------------------------------------*/ From 745fe61ffdb13838e33ad087db7961ed89adfa55 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 13:30:50 -0700 Subject: [PATCH 432/637] Updated class name for consistency The root `TreeView` has a `baseCls` of `treeview`. @ktrunkey will need to revisit the class names to determine the appropriate conventions being used in the new SASS structure. Until then, however, I wanted to at least set this to a consistent value. (It seems to work with either, but we should probably settle on one convention or the other.) --- .../Views/Editor/Components/NestedTopicList/Default.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index 6ab6f017..1cb048a9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -22,7 +22,7 @@ enableDD : true, containerScroll : true, border : false, - baseCls : 'TreeView', + baseCls : 'treeview', dataUrl : '/OnTopic/Json/@Model.WebPath/@Model.AttributeDescriptor.Key?ShowAll=true', root : new Ext.tree.AsyncTreeNode({}), rootVisible : false, From 2ee1948d13a2ec2acc2aab7a14a8471a943b0c6d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 14:05:18 -0700 Subject: [PATCH 433/637] Moved and renamed `EditorAttribute`s to `AttributeBindingModel`s Previously, the binding models for attribute types were located at `Ignia.Topics.Editor.Models.Attributes.*EditorAttribute`. For consistency and clarity, I moved these to `Ignia.Topics.Editor.Models.Components.BindingModels.*AttributeBindingModel`. This corresponds with the e.g., `Ignia.Topics.Editors.Models.Components.ViewModels.*AttributeViewModel` convention. While these binding models aren't actually used directly by the view components, there is a 1:1 mapping between these models at the view models, since they both derive from attribute types. Likewise, updates to the view models may result in updates to the binding models (e.g., if an additional field is introduced). --- .../Collections/EditorAttributeCollection.cs | 8 ++++---- .../BindingModels/AttributeBindingModel.cs} | 18 +++++++++--------- .../BooleanAttributeBindingModel.cs} | 10 +++++----- .../DateTimeAttributeBindingModel.cs} | 10 +++++----- .../DisplayOptionsAttributeBindingModel.cs} | 10 +++++----- .../FileListAttributeBindingModel.cs} | 10 +++++----- .../FilePathAttributeBindingModel.cs} | 10 +++++----- .../HtmlAttributeBindingModel.cs} | 10 +++++----- .../LastModifiedAttributeBindingModel.cs} | 10 +++++----- .../LastModifiedByAttributeBindingModel.cs} | 10 +++++----- .../NestedTopicListAttributeBindingModel.cs} | 10 +++++----- .../RelationshipAttributeBindingModel.cs} | 10 +++++----- .../TextAttributeBindingModel.cs} | 10 +++++----- ...TokenizedTopicListAttributeBindingModel.cs} | 10 +++++----- .../TopicListAttributeBindingModel.cs} | 10 +++++----- .../TopicReferenceAttributeBindingModel.cs} | 10 +++++----- .../Editor/Controllers/EditorController.cs | 4 ++-- .../EditorAttributeLookupService.cs | 6 +++--- .../EditorAttributeModelBinder.cs | 10 +++++----- .../EditorAttributeModelBinderProvider.cs | 4 ++-- .../Areas/Editor/Views/_ViewImports.cshtml | 2 +- 21 files changed, 96 insertions(+), 96 deletions(-) rename Ignia.Topics.Editor.Models/{Attributes/EditorAttribute.cs => Components/BindingModels/AttributeBindingModel.cs} (85%) rename Ignia.Topics.Editor.Models/{Attributes/BooleanEditorAttribute.cs => Components/BindingModels/BooleanAttributeBindingModel.cs} (85%) rename Ignia.Topics.Editor.Models/{Attributes/DateTimeEditorAttribute.cs => Components/BindingModels/DateTimeAttributeBindingModel.cs} (84%) rename Ignia.Topics.Editor.Models/{Attributes/DisplayOptionsEditorAttribute.cs => Components/BindingModels/DisplayOptionsAttributeBindingModel.cs} (83%) rename Ignia.Topics.Editor.Models/{Attributes/FileListEditorAttribute.cs => Components/BindingModels/FileListAttributeBindingModel.cs} (81%) rename Ignia.Topics.Editor.Models/{Attributes/FilePathEditorAttribute.cs => Components/BindingModels/FilePathAttributeBindingModel.cs} (84%) rename Ignia.Topics.Editor.Models/{Attributes/HtmlEditorAttribute.cs => Components/BindingModels/HtmlAttributeBindingModel.cs} (81%) rename Ignia.Topics.Editor.Models/{Attributes/LastModifiedEditorAttribute.cs => Components/BindingModels/LastModifiedAttributeBindingModel.cs} (83%) rename Ignia.Topics.Editor.Models/{Attributes/LastModifiedByEditorAttribute.cs => Components/BindingModels/LastModifiedByAttributeBindingModel.cs} (80%) rename Ignia.Topics.Editor.Models/{Attributes/TopicListEditorAttribute.cs => Components/BindingModels/NestedTopicListAttributeBindingModel.cs} (80%) rename Ignia.Topics.Editor.Models/{Attributes/RelationshipEditorAttribute.cs => Components/BindingModels/RelationshipAttributeBindingModel.cs} (81%) rename Ignia.Topics.Editor.Models/{Attributes/TextEditorAttribute.cs => Components/BindingModels/TextAttributeBindingModel.cs} (82%) rename Ignia.Topics.Editor.Models/{Attributes/TokenizedTopicListEditorAttribute.cs => Components/BindingModels/TokenizedTopicListAttributeBindingModel.cs} (80%) rename Ignia.Topics.Editor.Models/{Attributes/NestedTopicListEditorAttribute.cs => Components/BindingModels/TopicListAttributeBindingModel.cs} (81%) rename Ignia.Topics.Editor.Models/{Attributes/TopicReferenceEditorAttribute.cs => Components/BindingModels/TopicReferenceAttributeBindingModel.cs} (83%) diff --git a/Ignia.Topics.Editor.Models/Collections/EditorAttributeCollection.cs b/Ignia.Topics.Editor.Models/Collections/EditorAttributeCollection.cs index 72ed408d..6814300b 100644 --- a/Ignia.Topics.Editor.Models/Collections/EditorAttributeCollection.cs +++ b/Ignia.Topics.Editor.Models/Collections/EditorAttributeCollection.cs @@ -6,7 +6,7 @@ using System; using System.Collections.ObjectModel; using System.Diagnostics.Contracts; -using Ignia.Topics.Editor.Models.Attributes; +using Ignia.Topics.Editor.Models.Components.BindingModels; namespace Ignia.Topics.Editor.Models.Collections { @@ -14,9 +14,9 @@ namespace Ignia.Topics.Editor.Models.Collections { | CLASS: EDITOR ATTRIBUTE COLLECTION \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// Provides a keyed collection of instances. + /// Provides a keyed collection of instances. /// - public class EditorAttributeCollection : KeyedCollection { + public class EditorAttributeCollection : KeyedCollection { /*========================================================================================================================== | CONSTRUCTOR @@ -35,7 +35,7 @@ public EditorAttributeCollection() : base(StringComparer.InvariantCultureIgnoreC /// /// The object from which to extract the key. /// The key for the specified collection item. - protected override string GetKeyForItem(EditorAttribute item) { + protected override string GetKeyForItem(AttributeBindingModel item) { Contract.Assume(item != null, "Assumes the item is available when deriving its key."); return item.Key; } diff --git a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/AttributeBindingModel.cs similarity index 85% rename from Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/AttributeBindingModel.cs index 16ed5c83..3cbf49c2 100644 --- a/Ignia.Topics.Editor.Models/Attributes/EditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/AttributeBindingModel.cs @@ -5,31 +5,31 @@ \=============================================================================================================================*/ using System; -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: EDITOR ATTRIBUTE + | CLASS: ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a generic attribute in the Topic Editor. /// - public class EditorAttribute { + public class AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public EditorAttribute() : this("") {} + public AttributeBindingModel() : this("") {} /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Optionally defines the type of attribute. - public EditorAttribute(string editorType) { + public AttributeBindingModel(string editorType) { if (String.IsNullOrWhiteSpace(editorType)) { - EditorType = GetType().Name.Replace("EditorAttribute", ""); + EditorType = GetType().Name.Replace("AttributeBindingModel", ""); } else { EditorType = editorType; @@ -77,7 +77,7 @@ public string Value { /// /// /// Unlike the property, which simply returns the literal value associated with the attribute, the - /// method is intended to be overwritten by derived versions of the + /// method is intended to be overwritten by derived versions of the /// class, in order to provide specific serialization instructions. /// public virtual string GetValue() => Value; diff --git a/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/BooleanAttributeBindingModel.cs similarity index 85% rename from Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/BooleanAttributeBindingModel.cs index ccb4fd7b..043696ae 100644 --- a/Ignia.Topics.Editor.Models/Attributes/BooleanEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/BooleanAttributeBindingModel.cs @@ -4,17 +4,17 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: BOOLEAN EDITOR ATTRIBUTE + | CLASS: BOOLEAN ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a boolean attribute in the Topic Editor. /// /// /// - public class BooleanEditorAttribute : EditorAttribute { + public class BooleanAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | PRIVATE VARIABLES @@ -24,9 +24,9 @@ public class BooleanEditorAttribute : EditorAttribute { | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public BooleanEditorAttribute() : base() { + public BooleanAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/DateTimeEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/DateTimeAttributeBindingModel.cs similarity index 84% rename from Ignia.Topics.Editor.Models/Attributes/DateTimeEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/DateTimeAttributeBindingModel.cs index e6e717ac..94273653 100644 --- a/Ignia.Topics.Editor.Models/Attributes/DateTimeEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/DateTimeAttributeBindingModel.cs @@ -4,17 +4,17 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: DATE TIME EDITOR ATTRIBUTE + | CLASS: DATE TIME ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of an HTML attribute in the Topic Editor. /// /// /// - public class DateTimeEditorAttribute : EditorAttribute { + public class DateTimeAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | PRIVATE VARIABLES @@ -24,9 +24,9 @@ public class DateTimeEditorAttribute : EditorAttribute { | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public DateTimeEditorAttribute() : base() { + public DateTimeAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/DisplayOptionsEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/DisplayOptionsAttributeBindingModel.cs similarity index 83% rename from Ignia.Topics.Editor.Models/Attributes/DisplayOptionsEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/DisplayOptionsAttributeBindingModel.cs index ff7e5820..900efc02 100644 --- a/Ignia.Topics.Editor.Models/Attributes/DisplayOptionsEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/DisplayOptionsAttributeBindingModel.cs @@ -5,17 +5,17 @@ \=============================================================================================================================*/ using System; -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: DISPLAY OPTIONS EDITOR ATTRIBUTE + | CLASS: DISPLAY OPTIONS ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of an HTML attribute in the Topic Editor. /// /// /// - public class DisplayOptionsEditorAttribute : EditorAttribute { + public class DisplayOptionsAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | PRIVATE VARIABLES @@ -25,9 +25,9 @@ public class DisplayOptionsEditorAttribute : EditorAttribute { | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public DisplayOptionsEditorAttribute() : base() { + public DisplayOptionsAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/FileListEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/FileListAttributeBindingModel.cs similarity index 81% rename from Ignia.Topics.Editor.Models/Attributes/FileListEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/FileListAttributeBindingModel.cs index d6f80bcf..ec62d3e0 100644 --- a/Ignia.Topics.Editor.Models/Attributes/FileListEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/FileListAttributeBindingModel.cs @@ -5,23 +5,23 @@ \=============================================================================================================================*/ using System; -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: FILE LIST EDITOR ATTRIBUTE + | CLASS: FILE LIST ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a file editor attribute in the Topic Editor. /// - public class FileListEditorAttribute : EditorAttribute { + public class FileListAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public FileListEditorAttribute() : base() { + public FileListAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/FilePathEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/FilePathAttributeBindingModel.cs similarity index 84% rename from Ignia.Topics.Editor.Models/Attributes/FilePathEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/FilePathAttributeBindingModel.cs index 1324226b..86d59e6e 100644 --- a/Ignia.Topics.Editor.Models/Attributes/FilePathEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/FilePathAttributeBindingModel.cs @@ -5,15 +5,15 @@ \=============================================================================================================================*/ using System; -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: FILE PATH EDITOR ATTRIBUTE + | CLASS: FILE PATH ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a file path attribute in the Topic Editor. /// - public class FilePathEditorAttribute : EditorAttribute { + public class FilePathAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | PRIVATE VARIABLES @@ -23,9 +23,9 @@ public class FilePathEditorAttribute : EditorAttribute { | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public FilePathEditorAttribute() : base() { + public FilePathAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/HtmlEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/HtmlAttributeBindingModel.cs similarity index 81% rename from Ignia.Topics.Editor.Models/Attributes/HtmlEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/HtmlAttributeBindingModel.cs index 33fd0293..d3b142d2 100644 --- a/Ignia.Topics.Editor.Models/Attributes/HtmlEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/HtmlAttributeBindingModel.cs @@ -4,23 +4,23 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: HTML EDITOR ATTRIBUTE + | CLASS: HTML ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a HTML attribute in the Topic Editor. /// - public class HtmlEditorAttribute : EditorAttribute { + public class HtmlEditorAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public HtmlEditorAttribute() : base() { + public HtmlEditorAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/LastModifiedEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/LastModifiedAttributeBindingModel.cs similarity index 83% rename from Ignia.Topics.Editor.Models/Attributes/LastModifiedEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/LastModifiedAttributeBindingModel.cs index e49f7041..e9b8e785 100644 --- a/Ignia.Topics.Editor.Models/Attributes/LastModifiedEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/LastModifiedAttributeBindingModel.cs @@ -4,15 +4,15 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: LAST MODIFIED EDITOR ATTRIBUTE + | CLASS: LAST MODIFIED ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a last modified attribute in the Topic Editor. /// - public class LastModifiedEditorAttribute : EditorAttribute { + public class LastModifiedAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | PRIVATE VARIABLES @@ -22,9 +22,9 @@ public class LastModifiedEditorAttribute : EditorAttribute { | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public LastModifiedEditorAttribute() : base() { + public LastModifiedAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/LastModifiedByEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/LastModifiedByAttributeBindingModel.cs similarity index 80% rename from Ignia.Topics.Editor.Models/Attributes/LastModifiedByEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/LastModifiedByAttributeBindingModel.cs index ce6d409d..64cd1efd 100644 --- a/Ignia.Topics.Editor.Models/Attributes/LastModifiedByEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/LastModifiedByAttributeBindingModel.cs @@ -4,23 +4,23 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: LAST MODIFIED BY EDITOR ATTRIBUTE + | CLASS: LAST MODIFIED BY ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a last modified by attribute in the Topic Editor. /// - public class LastModifiedByEditorAttribute : EditorAttribute { + public class LastModifiedByAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public LastModifiedByEditorAttribute() : base() { + public LastModifiedByAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/TopicListEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/NestedTopicListAttributeBindingModel.cs similarity index 80% rename from Ignia.Topics.Editor.Models/Attributes/TopicListEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/NestedTopicListAttributeBindingModel.cs index 6909cda6..8d727e3d 100644 --- a/Ignia.Topics.Editor.Models/Attributes/TopicListEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/NestedTopicListAttributeBindingModel.cs @@ -4,23 +4,23 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: TOPIC LIST EDITOR ATTRIBUTE + | CLASS: NESTED TOPIC LIST ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a topic list attribute in the Topic Editor. /// - public class TopicListEditorAttribute : EditorAttribute { + public class NestedTopicListAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public TopicListEditorAttribute() : base() { + public NestedTopicListAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/RelationshipEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/RelationshipAttributeBindingModel.cs similarity index 81% rename from Ignia.Topics.Editor.Models/Attributes/RelationshipEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/RelationshipAttributeBindingModel.cs index 1bd43fc6..3d0ab214 100644 --- a/Ignia.Topics.Editor.Models/Attributes/RelationshipEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/RelationshipAttributeBindingModel.cs @@ -4,23 +4,23 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: RELATIONSHIP EDITOR ATTRIBUTE + | CLASS: RELATIONSHIP ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a relationship attribute in the Topic Editor. /// - public class RelationshipEditorAttribute : EditorAttribute { + public class RelationshipAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public RelationshipEditorAttribute() : base() { + public RelationshipAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/TextEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/TextAttributeBindingModel.cs similarity index 82% rename from Ignia.Topics.Editor.Models/Attributes/TextEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/TextAttributeBindingModel.cs index 3e514778..a39dde55 100644 --- a/Ignia.Topics.Editor.Models/Attributes/TextEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/TextAttributeBindingModel.cs @@ -4,23 +4,23 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: TEXT EDITOR ATTRIBUTE + | CLASS: TEXT ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a text attribute in the Topic Editor. /// - public class TextEditorAttribute : EditorAttribute { + public class TextAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public TextEditorAttribute() : base() { + public TextAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/TokenizedTopicListEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/TokenizedTopicListAttributeBindingModel.cs similarity index 80% rename from Ignia.Topics.Editor.Models/Attributes/TokenizedTopicListEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/TokenizedTopicListAttributeBindingModel.cs index 57cf7201..11c90d8f 100644 --- a/Ignia.Topics.Editor.Models/Attributes/TokenizedTopicListEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/TokenizedTopicListAttributeBindingModel.cs @@ -4,23 +4,23 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: TOKENIZED TOPIC LIST EDITOR ATTRIBUTE + | CLASS: TOKENIZED TOPIC LIST ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a tokenized topic list attribute in the Topic Editor. /// - public class TokenizedTopicListEditorAttribute : EditorAttribute { + public class TokenizedTopicListAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public TokenizedTopicListEditorAttribute() : base() { + public TokenizedTopicListAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/NestedTopicListEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/TopicListAttributeBindingModel.cs similarity index 81% rename from Ignia.Topics.Editor.Models/Attributes/NestedTopicListEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/TopicListAttributeBindingModel.cs index b3792d70..c0adce3c 100644 --- a/Ignia.Topics.Editor.Models/Attributes/NestedTopicListEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/TopicListAttributeBindingModel.cs @@ -4,23 +4,23 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: NESTED TOPIC LIST EDITOR ATTRIBUTE + | CLASS: TOPIC LIST ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a topic list attribute in the Topic Editor. /// - public class NestedTopicListEditorAttribute : EditorAttribute { + public class TopicListAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value pair. + /// Initializes a new instance of the class. /// - public NestedTopicListEditorAttribute() : base() { + public TopicListAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Attributes/TopicReferenceEditorAttribute.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/TopicReferenceAttributeBindingModel.cs similarity index 83% rename from Ignia.Topics.Editor.Models/Attributes/TopicReferenceEditorAttribute.cs rename to Ignia.Topics.Editor.Models/Components/BindingModels/TopicReferenceAttributeBindingModel.cs index c20a52f1..ccd3b36c 100644 --- a/Ignia.Topics.Editor.Models/Attributes/TopicReferenceEditorAttribute.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/TopicReferenceAttributeBindingModel.cs @@ -4,24 +4,24 @@ | Project Topics Library \=============================================================================================================================*/ -namespace Ignia.Topics.Editor.Models.Attributes { +namespace Ignia.Topics.Editor.Models.Components.BindingModels { /*============================================================================================================================ - | CLASS: TOPIC REFERENCE EDITOR ATTRIBUTE + | CLASS: TOPIC REFERENCE ATTRIBUTE (BINDING MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Represents an instance of a topic reference attribute in the Topic Editor. /// - public class TopicReferenceEditorAttribute : EditorAttribute { + public class TopicReferenceAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class, using the specified key/value + /// Initializes a new instance of the class, using the specified key/value /// pair. /// - public TopicReferenceEditorAttribute() : base() { + public TopicReferenceAttributeBindingModel() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 828129f7..4ec3fb00 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; -using Ignia.Topics.Editor.Models.Attributes; +using Ignia.Topics.Editor.Models.Components.BindingModels; using Ignia.Topics.Editor.Models.Json; using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Internal.Diagnostics; @@ -237,7 +237,7 @@ public async Task Edit(EditorBindingModel model, bool isNew = fal /// /// Private helper function that saves relationship values to the topic. /// - private void SetRelationships(Topic topic, AttributeDescriptor attribute, EditorAttribute attributeValue) { + private void SetRelationships(Topic topic, AttributeDescriptor attribute, AttributeBindingModel attributeValue) { var relatedTopics = attributeValue.Value.Split(',').ToList(); topic.Relationships.ClearTopics(attribute.Key); foreach (var topicIdString in relatedTopics) { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs index d860f533..714ca65d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Ignia.Topics.Reflection; -using Ignia.Topics.Editor.Models.Attributes; +using Ignia.Topics.Editor.Models.Components.BindingModels; using System; namespace Ignia.Topics.Editor.Mvc.Infrastructure { @@ -26,8 +26,8 @@ public class EditorAttributeLookupService : DynamicTypeLookupService { /// public EditorAttributeLookupService() : base( t => ( - t.Name.EndsWith("EditorAttribute", StringComparison.InvariantCultureIgnoreCase) && - typeof(EditorAttribute).IsAssignableFrom(t) + t.Name.EndsWith("AttributeBindingModel", StringComparison.InvariantCultureIgnoreCase) && + typeof(AttributeBindingModel).IsAssignableFrom(t) ), typeof(object) ) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs index 3c0edb2a..992e1334 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs @@ -5,7 +5,7 @@ \=============================================================================================================================*/ using System; using System.Threading.Tasks; -using Ignia.Topics.Editor.Models.Attributes; +using Ignia.Topics.Editor.Models.Components.BindingModels; using Microsoft.AspNetCore.Mvc.ModelBinding; namespace Ignia.Topics.Editor.Mvc.Infrastructure { @@ -14,9 +14,9 @@ namespace Ignia.Topics.Editor.Mvc.Infrastructure { | CLASS: EDITOR BINDING MODEL \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// Provides instructions to the MVC framework on how to bind postback data to a instance. + /// Provides instructions to the MVC framework on how to bind postback data to a instance. /// This is necessary to retain strongly typed instances in , which otherwise - /// exposes a collection of instances. + /// exposes a collection of instances. /// public class EditorAttributeModelBinder : IModelBinder { @@ -68,8 +68,8 @@ public Task BindModelAsync(ModelBindingContext bindingContext) { /*------------------------------------------------------------------------------------------------------------------------ | ESTABLISH MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - var type = TypeLookupService.Lookup($"{editorType}EditorAttribute"); - var model = (EditorAttribute)Activator.CreateInstance(type); + var type = TypeLookupService.Lookup($"{editorType}AttributeBindingModel"); + var model = (AttributeBindingModel)Activator.CreateInstance(type); model.Key = key; model.Value = value; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs index e3bd146f..662327bc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs @@ -4,7 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using System; -using Ignia.Topics.Editor.Models.Attributes; +using Ignia.Topics.Editor.Models.Components.BindingModels; using Ignia.Topics.Internal.Diagnostics; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; @@ -40,7 +40,7 @@ public IModelBinder GetBinder(ModelBinderProviderContext context) { /*------------------------------------------------------------------------------------------------------------------------ | RETURN BINDER (IF APPROPRIATE) \-----------------------------------------------------------------------------------------------------------------------*/ - if (context.Metadata.ModelType == typeof(EditorAttribute)) { + if (context.Metadata.ModelType == typeof(AttributeBindingModel)) { return new BinderTypeModelBinder(typeof(EditorAttributeModelBinder)); } return null; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml index 6e783d58..6cbc7894 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/_ViewImports.cshtml @@ -3,7 +3,7 @@ @using Ignia.Topics.AspNetCore.Mvc.Models @using Ignia.Topics.Editor.Models -@using Ignia.Topics.Editor.Models.Attributes +@using Ignia.Topics.Editor.Models.Components.BindingModels @using Ignia.Topics.Editor.Models.Components @using Ignia.Topics.Editor.Models.Metadata @using Ignia.Topics.Editor.Models.Components.ViewModels From c50c9ce6b614a95e6e0ee7244425af4cf5625181 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 14:31:49 -0700 Subject: [PATCH 434/637] Introduced offset capabilities for `DateTimeViewComponent` The new `DateTimeOffset` and related `DateTimeOffsetUnits` allows the default date to be offset by a specified amount. E.g., an `Expiration` attribute might have a `DateTimeOffset` of `1` and a `DateTimeOffsetUnits` of `Year`. In the future, we should consider making `DateTimeOffsetUnits` an `enum`, but we'll need to add support for that in the `TopicMappingService` first. --- .../ViewModels/DateTimeAttributeViewModel.cs | 25 +++++++++++++++++-- .../DateTimeAttributeTopicViewModel.cs | 18 ++++++++++++- .../Components/DateTimeViewComponent.cs | 3 +++ 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs index e76d8a88..14669628 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs @@ -56,7 +56,7 @@ public string GetDefaultDate() { } } else { - _defaultDate = DateTime.Now.ToString(AttributeDescriptor.DateFormat); + _defaultDate = CalculateOffset(DateTime.Now).ToString(AttributeDescriptor.DateFormat); } } return _defaultDate; @@ -77,12 +77,33 @@ public string GetDefaultTime() { } } else { - _defaultTime = DateTime.Now.ToString(AttributeDescriptor.TimeFormat); + _defaultTime = CalculateOffset(DateTime.Now).ToString(AttributeDescriptor.TimeFormat); } } return _defaultTime; } + /*========================================================================================================================== + | METHOD: CALCULATE OFFSET + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Given a date, applies any offsets applied to the date and time. + /// + public DateTime CalculateOffset(DateTime originalDate) { + if (AttributeDescriptor.DateTimeOffset == 0) return originalDate; + switch (AttributeDescriptor.DateTimeOffsetUnits ) { + case "Minutes" : return originalDate.AddMinutes(AttributeDescriptor.DateTimeOffset); + case "Hours" : return originalDate.AddHours(AttributeDescriptor.DateTimeOffset); + case "Days" : return originalDate.AddDays(AttributeDescriptor.DateTimeOffset); + case "Months" : return originalDate.AddMonths(AttributeDescriptor.DateTimeOffset); + case "Years" : return originalDate.AddYears(AttributeDescriptor.DateTimeOffset); + default : return originalDate.AddDays(AttributeDescriptor.DateTimeOffset); + }; + } + + } + + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs index 26452052..de5d97e0 100644 --- a/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs @@ -43,7 +43,7 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel | TIME FORMAT \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Establishes the time format that the value should be stored in. Defaults to "mm/dd/yy". + /// Establishes the time format that the value should be stored in. Defaults to "yyyy-mm-dd". /// public string TimeFormat { get; set; } @@ -56,6 +56,22 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// public string DateTimeSeparator { get; set; } + /*========================================================================================================================== + | DATE/TIME OFFSET + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines the relative offset that the default value should apply. Defaults to 0. + /// + public int DateTimeOffset { get; set; } + + /*========================================================================================================================== + | DATE/TIME OFFSET UNITS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines the units that the offset direction is in. Defaults to "Days". + /// + public string DateTimeOffsetUnits { get; set; } + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs index e33e6f8f..18c89bc4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs @@ -60,6 +60,9 @@ string htmlFieldPrefix attribute.DateFormat = attribute.GetConfigurationValue("DateFormat", "yyyy-mm-dd"); attribute.TimeFormat = attribute.GetConfigurationValue("TimeFormat", "hh:mm tt"); attribute.DateTimeSeparator = attribute.GetConfigurationValue("DateTimeSeparator", " "); + attribute.DateTimeOffset = attribute.GetIntegerConfigurationValue("DateTimeOffset", 0); + attribute.DateTimeOffsetUnits = attribute.GetConfigurationValue("DateTimeOffsetUnits", "Days"); + /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model From 30979492013b0516b78c0c42acc5d0d651915698 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 14:39:05 -0700 Subject: [PATCH 435/637] Updated `DateTimeViewComponent` to nullable configuration options By allowing values to default to `null`, we permit them to be overwritten with either defaults or, potentially, parameter values in the view component. Most of the other view components are already configured this way; updating `DateTimeViewComponent` (and, of course, it's dependent `DateTimeAttributeTopicViewModel`) to follow suit. --- .../DateTimeAttributeTopicViewModel.cs | 19 +++++++++++-------- .../Components/DateTimeViewComponent.cs | 15 +++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs index de5d97e0..851584bd 100644 --- a/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs @@ -3,7 +3,8 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ -using System; + +#nullable enable namespace Ignia.Topics.Editor.Models.Metadata { @@ -21,7 +22,7 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// /// Determines whether or not the date picker should be displayed. /// - public bool IncludeDatePicker { get; set; } + public bool? IncludeDatePicker { get; set; } /*========================================================================================================================== | INCLUDE TIME PICKER? @@ -29,7 +30,7 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// /// Determines whether or not the time picker should be displayed. /// - public bool IncludeTimePicker { get; set; } + public bool? IncludeTimePicker { get; set; } /*========================================================================================================================== | DATE FORMAT @@ -37,7 +38,7 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// /// Establishes the date format that the value should be stored in. /// - public string DateFormat { get; set; } + public string? DateFormat { get; set; } /*========================================================================================================================== | TIME FORMAT @@ -45,7 +46,7 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// /// Establishes the time format that the value should be stored in. Defaults to "yyyy-mm-dd". /// - public string TimeFormat { get; set; } + public string? TimeFormat { get; set; } /*========================================================================================================================== | DATE/TIME SEPARATOR @@ -54,7 +55,7 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// Establishes the delimiter that should be use to separate the date and time format, if both are selected. Defaults to /// "hh:mm TT". /// - public string DateTimeSeparator { get; set; } + public string? DateTimeSeparator { get; set; } /*========================================================================================================================== | DATE/TIME OFFSET @@ -62,7 +63,7 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// /// Determines the relative offset that the default value should apply. Defaults to 0. /// - public int DateTimeOffset { get; set; } + public int? DateTimeOffset { get; set; } /*========================================================================================================================== | DATE/TIME OFFSET UNITS @@ -70,8 +71,10 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// /// Determines the units that the offset direction is in. Defaults to "Days". /// - public string DateTimeOffsetUnits { get; set; } + public string? DateTimeOffsetUnits { get; set; } } // Class } // Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs index 18c89bc4..333ca0bd 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs @@ -55,14 +55,13 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ - attribute.IncludeDatePicker = attribute.GetBooleanConfigurationValue("IncludeDatePicker", true); - attribute.IncludeTimePicker = attribute.GetBooleanConfigurationValue("IncludeTimePicker", true); - attribute.DateFormat = attribute.GetConfigurationValue("DateFormat", "yyyy-mm-dd"); - attribute.TimeFormat = attribute.GetConfigurationValue("TimeFormat", "hh:mm tt"); - attribute.DateTimeSeparator = attribute.GetConfigurationValue("DateTimeSeparator", " "); - attribute.DateTimeOffset = attribute.GetIntegerConfigurationValue("DateTimeOffset", 0); - attribute.DateTimeOffsetUnits = attribute.GetConfigurationValue("DateTimeOffsetUnits", "Days"); - + attribute.IncludeDatePicker ??= attribute.GetBooleanConfigurationValue("IncludeDatePicker", true); + attribute.IncludeTimePicker ??= attribute.GetBooleanConfigurationValue("IncludeTimePicker", true); + attribute.DateFormat ??= attribute.GetConfigurationValue("DateFormat", "yyyy-mm-dd"); + attribute.TimeFormat ??= attribute.GetConfigurationValue("TimeFormat", "hh:mm tt"); + attribute.DateTimeSeparator ??= attribute.GetConfigurationValue("DateTimeSeparator", " "); + attribute.DateTimeOffset ??= attribute.GetIntegerConfigurationValue("DateTimeOffset", 0); + attribute.DateTimeOffsetUnits ??= attribute.GetConfigurationValue("DateTimeOffsetUnits", "Days"); /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model From 7e9c7794f9f7936b6b86b02deeb82f1038d8e9bb Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 14:43:40 -0700 Subject: [PATCH 436/637] Improved consistency among `Metadata` files There was inconsistency in line breaks, spaces, and brace comments between different `*TopicViewModel` classes. Introduced consistent formatting. --- .../Metadata/AttributeDescriptorTopicViewModel.cs | 5 ++--- .../Metadata/BooleanAttributeTopicViewModel.cs | 8 +++++--- .../Metadata/ContentTypeDescriptorTopicViewModel.cs | 4 ++-- .../Metadata/DateTimeAttributeTopicViewModel.cs | 5 ++--- .../Metadata/FileListAttributeTopicViewModel.cs | 6 +++--- .../Metadata/FilePathAttributesTopicViewModel.cs | 7 +++---- .../Metadata/HtmlAttributeTopicViewModel.cs | 6 ++---- .../Metadata/NestedTopicListAttributeTopicViewModel.cs | 4 ++-- .../Metadata/RelationshipAttributeTopicViewModel.cs | 7 +++---- .../Metadata/TextAttributeTopicViewModel.cs | 5 ++--- .../Metadata/TokenizedTopicListAttributeTopicViewModel.cs | 6 +++--- .../Metadata/TopicListAttributeTopicViewModel.cs | 4 ++-- .../Metadata/TopicReferenceAttributeTopicViewModel.cs | 4 ++-- 13 files changed, 33 insertions(+), 38 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs index 12fe95d6..0ab2845b 100644 --- a/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs @@ -163,6 +163,5 @@ public int GetIntegerConfigurationValue(string key, int defaultValue = 0) { /// public virtual string GetValidationRules() => "required:" + IsRequired.ToString().ToLowerInvariant(); - } // Class - -} // Namespace + } //Class +} //Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/BooleanAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/BooleanAttributeTopicViewModel.cs index ad31570b..62d14725 100644 --- a/Ignia.Topics.Editor.Models/Metadata/BooleanAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/BooleanAttributeTopicViewModel.cs @@ -3,7 +3,8 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ -using System; + +#nullable enable namespace Ignia.Topics.Editor.Models.Metadata { @@ -16,6 +17,7 @@ namespace Ignia.Topics.Editor.Models.Metadata { public class BooleanAttributeTopicViewModel: AttributeDescriptorTopicViewModel { - } // Class + } //Class +} //Namespace -} // Namespace +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs index 7cc9ab28..e3b59007 100644 --- a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs @@ -90,5 +90,5 @@ public List GetDisplayGroups() => public List GetAttributeDescriptors(string displayGroup) => AttributeDescriptors.Where(a => a.DisplayGroup.Equals(displayGroup)).OrderBy(a => a.SortOrder).ToList(); - } // Class -} // Namespace + } //Class +} //Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs index 851584bd..d3eaf504 100644 --- a/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/DateTimeAttributeTopicViewModel.cs @@ -73,8 +73,7 @@ public class DateTimeAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// public string? DateTimeOffsetUnits { get; set; } - } // Class - -} // Namespace + } //Class +} //Namespace #nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/FileListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/FileListAttributeTopicViewModel.cs index e0ebf133..4318a86c 100644 --- a/Ignia.Topics.Editor.Models/Metadata/FileListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/FileListAttributeTopicViewModel.cs @@ -48,7 +48,7 @@ public class FileListAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// public bool? IncludeSubdirectories { get; set; } - } -} + } //Class +} //Namespace -#nullable restore +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/FilePathAttributesTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/FilePathAttributesTopicViewModel.cs index 9698b1ca..73ba6376 100644 --- a/Ignia.Topics.Editor.Models/Metadata/FilePathAttributesTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/FilePathAttributesTopicViewModel.cs @@ -14,7 +14,6 @@ namespace Ignia.Topics.Editor.Models.Metadata { /// /// Provides access to attributes associated with the . /// - public class FilePathAttributeTopicViewModel: AttributeDescriptorTopicViewModel { /*========================================================================================================================== @@ -53,7 +52,7 @@ public class FilePathAttributeTopicViewModel: AttributeDescriptorTopicViewModel /// public bool? RelativeToParent { get; set; } - } -} + } //Class +} //Namespace -#nullable restore +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/HtmlAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/HtmlAttributeTopicViewModel.cs index a26316c9..16f57f71 100644 --- a/Ignia.Topics.Editor.Models/Metadata/HtmlAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/HtmlAttributeTopicViewModel.cs @@ -3,7 +3,6 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ -using System; #nullable enable @@ -47,8 +46,7 @@ public class HtmlAttributeTopicViewModel: AttributeDescriptorTopicViewModel { /// public int? Height { get; set; } - - } // Class -} // Namespace + } //Class +} //Namespace #nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs index ffb2cf73..2f83cc48 100644 --- a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs @@ -38,7 +38,7 @@ public class NestedTopicListAttributeTopicViewModel: AttributeDescriptorTopicVie \-----------------------------------------------------------------------------------------------------------------------------*/ public bool? TargetPopup { get; set; } - } // Class -} // Namespace + } //Class +} //Namespace #nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs index bb19228e..9aa3b555 100644 --- a/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs @@ -3,7 +3,6 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ -using System; #nullable enable @@ -81,7 +80,7 @@ public class RelationshipAttributeTopicViewModel: AttributeDescriptorTopicViewMo /// public string? Namespace { get; set; } - } // Class -} // Namespace + } //Class +} //Namespace -#nullable restore +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/TextAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TextAttributeTopicViewModel.cs index a3b33ab2..98d24533 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TextAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TextAttributeTopicViewModel.cs @@ -3,7 +3,6 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ -using System; #nullable enable @@ -16,7 +15,7 @@ namespace Ignia.Topics.Editor.Models.Metadata { /// Provides access to attributes associated with the . /// public class TextAttributeTopicViewModel: AttributeDescriptorTopicViewModel { - } // Class -} // Namespace + } //Class +} //Namespace #nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs index 70914ce9..d3664a9c 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs @@ -115,7 +115,7 @@ public class TokenizedTopicListAttributeTopicViewModel: AttributeDescriptorTopic /// public string? QueryParameter { get; set; } - } // Class -} // Namespace + } //Class +} //Namespace -#nullable restore +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs index c8658435..db6b1fec 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs @@ -121,7 +121,7 @@ public string? ValueProperty { \-------------------------------------------------------------------------------------------------------------------------*/ public string? AllowedKeys { get; set; } - } // Class -} // Namespace + } //Class +} //Namespace #nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs index 10bbcb8e..acfd1a7e 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs @@ -44,7 +44,7 @@ public class TopicReferenceAttributeTopicViewModel: AttributeDescriptorTopicView [AttributeKey("ContentType")] public string? TargetContentType { get; set; } - } // Class -} // Namespace + } //Class +} //Namespace #nullable restore \ No newline at end of file From ce01b2de45c94cbded1b6c29953ae13082f0d0f9 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 15:26:41 -0700 Subject: [PATCH 437/637] Adjust offset logic to account for nullability This addresses a bug inadvertantly introduced in #3097949. --- .../ViewModels/DateTimeAttributeViewModel.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs index 14669628..689b9deb 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs @@ -90,14 +90,15 @@ public string GetDefaultTime() { /// Given a date, applies any offsets applied to the date and time. /// public DateTime CalculateOffset(DateTime originalDate) { + var offset = AttributeDescriptor.DateTimeOffset?? 0; if (AttributeDescriptor.DateTimeOffset == 0) return originalDate; switch (AttributeDescriptor.DateTimeOffsetUnits ) { - case "Minutes" : return originalDate.AddMinutes(AttributeDescriptor.DateTimeOffset); - case "Hours" : return originalDate.AddHours(AttributeDescriptor.DateTimeOffset); - case "Days" : return originalDate.AddDays(AttributeDescriptor.DateTimeOffset); - case "Months" : return originalDate.AddMonths(AttributeDescriptor.DateTimeOffset); - case "Years" : return originalDate.AddYears(AttributeDescriptor.DateTimeOffset); - default : return originalDate.AddDays(AttributeDescriptor.DateTimeOffset); + case "Minutes" : return originalDate.AddMinutes(offset); + case "Hours" : return originalDate.AddHours(offset); + case "Days" : return originalDate.AddDays(offset); + case "Months" : return originalDate.AddMonths(offset); + case "Years" : return originalDate.AddYears(offset); + default : return originalDate.AddDays(offset); }; } From 4c1b5ed8dc4161fb868c2e9b5a17693ff2855a17 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 16:28:21 -0700 Subject: [PATCH 438/637] Renamed `FilePathViewComponent` options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original names were inherited from the legacy **ASP.NET** user control. Those names weren't entirely intuitive—nor are they currently used by any of our clients. As such, there's no reason not to update them to be more intuitive. That said, to be safe, the legacy values are still defaulted to in the `Get(Boolean)ConfigurationValue()` calls, which rely on the legacy `DefaultConfiguration` settings. --- .../FilePathAttributesTopicViewModel.cs | 32 +++++++++---------- .../Components/FilePathViewComponent.cs | 14 ++++---- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/FilePathAttributesTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/FilePathAttributesTopicViewModel.cs index 73ba6376..63292662 100644 --- a/Ignia.Topics.Editor.Models/Metadata/FilePathAttributesTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/FilePathAttributesTopicViewModel.cs @@ -17,40 +17,40 @@ namespace Ignia.Topics.Editor.Models.Metadata { public class FilePathAttributeTopicViewModel: AttributeDescriptorTopicViewModel { /*========================================================================================================================== - | PROPERTY: TRUNCATE PATH AT TOPIC + | PROPERTY: INHERIT VALUE \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Determines the Topic level (based on ) at which to stop the recursive processing logic for - /// . If set, the will ignore children under the specified - /// when formulating the full file path. + /// Determines whether the is expected to be inherited from parent topics if left blank. /// - public string? TruncatePathAtTopic { get; set; } + public bool? InheritValue { get; set; } /*========================================================================================================================== - | PROPERTY: INCLUDE LEAF TOPIC + | PROPERTY: RELATIVE TO TOPIC PATH \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Determines whether the current leaf should be included in the . + /// Determines whether the should automatically inject any parent topics in the path. If set, the + /// value will be set to the inherited value (if present) along with the path between the level at which that value is set + /// and the current topic. /// - public bool? IncludeLeafTopic { get; set; } + public bool? RelativeToTopicPath { get; set; } /*========================================================================================================================== - | PROPERTY: INHERIT VALUE + | PROPERTY: BASE TOPIC PATH \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Determines whether the is expected to be inherited from parent topics if left blank. + /// Determines the Topic level (based on ) at which to stop the recursive processing + /// logic for . If set, the + /// will ignore children under the specified when formulating the full file path. /// - public bool? InheritValue { get; set; } + public string? BaseTopicPath { get; set; } /*========================================================================================================================== - | PROPERTY: RELATIVE TO PARENT + | PROPERTY: INCLUDE CURRENT TOPIC \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Determines whether the should automatically inject any parent topics in the path. If set, the - /// value will be set to the inherited value (if present) along with the path between the level at which that value is set - /// and the current topic. + /// Determines whether the current should be included in the . /// - public bool? RelativeToParent { get; set; } + public bool? IncludeCurrentTopic { get; set; } } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs index b241810c..e42f2df4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs @@ -51,10 +51,10 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ - attribute.TruncatePathAtTopic ??= attribute.GetConfigurationValue("TruncatePathAtTopic", ""); + attribute.BaseTopicPath ??= attribute.GetConfigurationValue("TruncatePathAtTopic", ""); attribute.InheritValue ??= attribute.GetBooleanConfigurationValue("InheritValue", true); - attribute.RelativeToParent ??= attribute.GetBooleanConfigurationValue("RelativeToParent", true); - attribute.IncludeLeafTopic ??= attribute.GetBooleanConfigurationValue("IncludeLeafNodes", true); + attribute.RelativeToTopicPath ??= attribute.GetBooleanConfigurationValue("RelativeToTopicPath", true); + attribute.IncludeCurrentTopic ??= attribute.GetBooleanConfigurationValue("IncludeLeafNodes", true); /*------------------------------------------------------------------------------------------------------------------------ | Establish view model @@ -85,7 +85,7 @@ public string GetInheritedValue(string attributeKey, FilePathAttributeTopicViewM var inheritedValue = ""; - if (attribute.InheritValue == true && attribute.RelativeToParent == true) { + if (attribute.InheritValue == true && attribute.RelativeToTopicPath == true) { inheritedValue = GetPath(attributeKey, attribute); } else if (attribute.InheritValue == true) { @@ -116,8 +116,8 @@ public string GetPath(string attributeKey, FilePathAttributeTopicViewModel optio var filePath = ""; var relativePath = (string?)null; var startTopic = CurrentTopic; - var endTopic = (options.IncludeLeafTopic is null)? CurrentTopic: CurrentTopic.Parent?? CurrentTopic; - var truncatePathAtTopic = options.TruncatePathAtTopic?.Split(',').ToArray()?? new string[] { }; + var endTopic = (options.IncludeCurrentTopic is null)? CurrentTopic: CurrentTopic.Parent?? CurrentTopic; + var truncatePathAtTopic = options.BaseTopicPath?.Split(',').ToArray()?? new string[] { }; /*------------------------------------------------------------------------------------------------------------------------ | Only process the path if both topic and attribtueKey are provided @@ -150,7 +150,7 @@ public string GetPath(string attributeKey, FilePathAttributeTopicViewModel optio /*------------------------------------------------------------------------------------------------------------------------ | Perform path truncation based on topics included in TruncatePathAtTopic \-----------------------------------------------------------------------------------------------------------------------*/ - if (!String.IsNullOrWhiteSpace(options.TruncatePathAtTopic)) { + if (!String.IsNullOrWhiteSpace(options.BaseTopicPath)) { foreach (var truncationTopic in truncatePathAtTopic) { var truncateTopicLocation = relativePath?.IndexOf(truncationTopic, StringComparison.InvariantCultureIgnoreCase); if (truncateTopicLocation >= 0) { From 4450f14fe4ebdb5a6bcb54735ba7d814580cc4a8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 17:05:29 -0700 Subject: [PATCH 439/637] Fixed brances on case statement --- .../Components/ViewModels/DateTimeAttributeViewModel.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs index 689b9deb..8a12a4e1 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs @@ -92,7 +92,7 @@ public string GetDefaultTime() { public DateTime CalculateOffset(DateTime originalDate) { var offset = AttributeDescriptor.DateTimeOffset?? 0; if (AttributeDescriptor.DateTimeOffset == 0) return originalDate; - switch (AttributeDescriptor.DateTimeOffsetUnits ) { + switch (AttributeDescriptor.DateTimeOffsetUnits) { case "Minutes" : return originalDate.AddMinutes(offset); case "Hours" : return originalDate.AddHours(offset); case "Days" : return originalDate.AddDays(offset); @@ -100,11 +100,8 @@ public DateTime CalculateOffset(DateTime originalDate) { case "Years" : return originalDate.AddYears(offset); default : return originalDate.AddDays(offset); }; - } } - } // Class - -} // Namespace +} // Namespace \ No newline at end of file From 777fb623acb550af06e061ee85f690a3c3e8ebeb Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 17:45:40 -0700 Subject: [PATCH 440/637] Fixed issues introduced by nullability of `DateTimeAttributeTopicViewModel` --- .../Editor/Views/Editor/Components/DateTime/Default.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml index b09067eb..a7fff756 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml @@ -12,18 +12,18 @@ //Instantiate date and/or time picker $('#@Html.IdFor(m => m.Value)') .datetimepicker({ - @if (Model.AttributeDescriptor.IncludeDatePicker) { + @if (Model.AttributeDescriptor.IncludeDatePicker?? true) { dateFormat : '@Model.AttributeDescriptor.DateFormat', defaultDate : '@Model.GetDefaultDate()', } - @if (Model.AttributeDescriptor.IncludeDatePicker && Model.AttributeDescriptor.IncludeTimePicker) { + @if ((Model.AttributeDescriptor.IncludeDatePicker?? true) && (Model.AttributeDescriptor.IncludeTimePicker?? true)) { separator : '@Model.AttributeDescriptor.DateTimeSeparator', } - @if (Model.AttributeDescriptor.IncludeDatePicker) { + @if (Model.AttributeDescriptor.IncludeDatePicker?? true) { timeFormat : '@Model.AttributeDescriptor.TimeFormat', defaultTime : '@Model.GetDefaultTime()', From 50438b82ad8e6c67c3b3517549620d5cf4f9016d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 17:52:36 -0700 Subject: [PATCH 441/637] Added optional `values` parameter to `TopicListViewComponent` Typically, the `TopicListViewComponent` will dynamically look up its values from the `ITopicRepository` based on the configured options, such as `Scope`, `AttributeKey`, `AttributeValue`, &c. When manually calling the `TopicListViewComponent` in **Razor** views, however, there will be cases where a list of topics are already known, and simply need to be displayed using similar logic. The `values` parameter permits this to occur, superceding the local `GetTopics()` method. --- .../Components/TopicListViewComponent.cs | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 10da7666..88f3ebc0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using System; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Ignia.Topics.Collections; @@ -12,6 +13,7 @@ using Ignia.Topics.Editor.Mvc.Models; using Ignia.Topics.Querying; using Ignia.Topics.Repositories; +using Ignia.Topics.ViewModels; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; @@ -51,7 +53,8 @@ ITopicRepository topicRepository /// public async Task InvokeAsync( TopicListAttributeTopicViewModel attribute, - string htmlFieldPrefix = null + string htmlFieldPrefix = null, + IEnumerable values = null ) { /*------------------------------------------------------------------------------------------------------------------------ @@ -96,10 +99,30 @@ public async Task InvokeAsync( var defaultValue = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); /*------------------------------------------------------------------------------------------------------------------------ - | Set attribute values + | Get values \-----------------------------------------------------------------------------------------------------------------------*/ - var topics = GetTopics(attribute.Scope, attribute.AttributeName, attribute.AttributeValue, attribute.AllowedKeys); + var topics = (TopicCollection)null; + + //### HACK JJC20191031: Since Topic and TopicViewModel aren't intercompatible, and the remaining processing is based on + //Topic, we're converting any preconfigured topics from TopicViewModel back to Topic by looking them up in the repository. + //This, of course, assumes that the topic view models refer to existing topics in the repository. + if (values != null) { + topics = new TopicCollection(); + foreach (var topicViewModel in values) { + var topic = _topicRepository.Load(topicViewModel.Id); + if (topic != null) { + topics.Add(topic); + } + } + } + else { + topics = GetTopics(attribute.Scope, attribute.AttributeName, attribute.AttributeValue, attribute.AllowedKeys); + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Get values from repository + \-----------------------------------------------------------------------------------------------------------------------*/ foreach (var topic in topics) { string title = viewModel.TopicList.Any(t => t.Text == topic.Title)? $"{topic.Title} ({topic.Key})" : topic.Title; From d2f99f9c2001c13a9274e079bfbfcb2adfa3cbb1 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 17:59:25 -0700 Subject: [PATCH 442/637] Introduced new `PermittedContentTypes` property for `NestedTopicListViewModel` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the initial setup, all configuration values had to come from `AttributeDescriptor.DefaultConfiguration`, which thus restricted them to strings. In that setup, content types were defined as a comma-delimited list. This is error-prone. Given that we now have strongly typed attribute types, we can instead add a `RelationshipAttribute` (`RelationshipViewComponent`) type to the `NestedTopicListAttribute` (`NestedTopicListViewComponent`), thus allowing an actual list of topics to be passed along. This is exposed by mapping those nested topics to the `PermittedContentTypes` collection on the `NestedTopicListAttributeTopicViewModel`, and then relaying those via the new `values` property on the `TopicListViewModel` (which is responsible for displaying the content types that the editor can add to the `NestedTopicListViewComponent`). This value, if present, will override the values from the legacy `ContentTypes` property—though that property, which derives from `DefaultConfiguration`, has been marked as obsolete, and will be removed after all customers have migrated to this version of the editor. --- .../NestedTopicListAttributeTopicViewModel.cs | 17 +++++++++++++++++ .../Components/NestedTopicList/Default.cshtml | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs index 2f83cc48..1fc12056 100644 --- a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs @@ -3,8 +3,10 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Mapping; using Ignia.Topics.Metadata; using System; +using System.Collections.Generic; #nullable enable @@ -29,8 +31,23 @@ public class NestedTopicListAttributeTopicViewModel: AttributeDescriptorTopicVie /// should only display topics of the types /// or . /// + [Obsolete( + "This is maintained exclusively for backward compatibility with the legacy DefaultConfiguration attribute. New attribute " + + "definitions should instead use the new PermittedContentTypes attribute.", + false) + ] public string? ContentTypes { get; set; } + /*========================================================================================================================== + | PROPERTY: PERMITTED CONTENT TYPES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines which s, if any, are permitted to be created as part of the configured . + /// + [Relationship("ContentTypes", Type=RelationshipType.NestedTopics)] + public List PermittedContentTypes { get; } = new List(); + /*============================================================================================================================== | TARGET POPUP >------------------------------------------------------------------------------------------------------------------------------- diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index 1cb048a9..4a326b8d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -100,7 +100,8 @@ + html-field-prefix=@ViewData.TemplateInfo.HtmlFieldPrefix + values=@Model.AttributeDescriptor.PermittedContentTypes> } From b0e11e83edcd009bd1f79d5faaa1c6bcb6342907 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 31 Oct 2019 18:01:40 -0700 Subject: [PATCH 443/637] Updated the `TopicListViewComponent` to use the new `values` parameter See #50438b8 for a description of the new `values` parameter. In short, it allows us to specify a list of topics to be displayed, instead of converting them to a list of keys, and then looking them up again via the `ITopicRepository` in the `TopicListViewComponent`. The implementation isn't super elegant, but it's better than the previous approach. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 133eca92..2ef271e4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -70,18 +70,15 @@ var attributeDescriptor = new TopicListAttributeTopicViewModel() { Key = "Navigation", EditorType = "TopicList.ascx", - Scope = "Configuration:ContentTypes", - AttributeName = "ContentType", - AttributeValue = "ContentType", Label = "Add new topic…", - AllowedKeys = String.Join(",", Model.ContentTypeDescriptor.PermittedContentTypes.Select(m => m.Key).ToArray()), TargetUrl = $"{Url.Action("Edit")}?ContentType={{Topic}}&IsNew=true", }; } + html-field-prefix=@ViewData.TemplateInfo.HtmlFieldPrefix + values=@Model.ContentTypeDescriptor.PermittedContentTypes>
    From abdfda3786cb2524c2165db8702b0d1d779e6a34 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 1 Nov 2019 12:45:32 -0700 Subject: [PATCH 444/637] Renamed `TargetPopup` to `EnableModal` The prefix `Target` is a bit ambiguous with other naming conventions, such as `TargetUrl`, which can be used in conjunction with `TargetPopup`. Further, on the backend, popups are consistently referreed to as modals. On the frontend, we'll label the field "Enable Popups?" for familiarity with customers, but on the backend `EnableModal` is more consistent with library conventions. --- .../NestedTopicListAttributeTopicViewModel.cs | 16 ++++++++++++---- .../Components/NestedTopicListViewComponent.cs | 2 +- .../Components/NestedTopicList/Default.cshtml | 4 ++-- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs index 1fc12056..8efff6cb 100644 --- a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs @@ -49,11 +49,19 @@ public class NestedTopicListAttributeTopicViewModel: AttributeDescriptorTopicVie public List PermittedContentTypes { get; } = new List(); /*============================================================================================================================== - | TARGET POPUP - >------------------------------------------------------------------------------------------------------------------------------- - | Toggle to set whether or not to use a popup (modal window) when editing the Topic, rather than a full page. + | ENABLE MODAL \-----------------------------------------------------------------------------------------------------------------------------*/ - public bool? TargetPopup { get; set; } + /// + /// By default, nested topics will open in a modal window. Optionally, this functionality can be disabled. + /// + /// + /// This is useful in the scenario where a has multiple levels of attributes implementing + /// . This is not a recommended configuration, but is occassionally necessary for + /// modeling especially complicated scenarios, such as cases where there are multiple dimensions for each topic (e.g., + /// language, device type, &c.). In those cases, nested topics may be the best way to model the capabilities, but having + /// multiple levels of modal windows is a poor user experience. + /// + public bool? EnableModal { get; set; } } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs index c7a0bf28..be560290 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs @@ -49,7 +49,7 @@ string htmlFieldPrefix | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ attribute.ContentTypes ??= attribute.GetConfigurationValue( "ContentTypes", ""); - attribute.TargetPopup ??= attribute.GetBooleanConfigurationValue( "TargetPopup", true); + attribute.EnableModal ??= attribute.GetBooleanConfigurationValue( "TargetPopup", true); /*------------------------------------------------------------------------------------------------------------------------ | Establish view model diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index 4a326b8d..a44dc391 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -29,7 +29,7 @@ listeners : { click: function (n) { var targetUrl = "@(Url.Action("Edit")+Model.AttributeDescriptor.Key)/" + n.attributes.key; - @if (Model.AttributeDescriptor.TargetPopup?? true) { + @if (Model.AttributeDescriptor.EnableModal?? true) { initEditorModal('@Model.Key', n.attributes.text, targetUrl + '?IsModal=true', @($"{Model.AttributeDescriptor.Key}Tree_refresh"));return false; @@ -94,7 +94,7 @@ AllowedKeys = Model.AttributeDescriptor.ContentTypes, Label = "Add child topic…", TargetUrl = $"{Url.Action("Edit")}{Model.AttributeDescriptor.Key}/?ContentType={{Topic}}&IsNew=true&IsModal=true", - TargetPopup = Model.AttributeDescriptor.TargetPopup, + TargetPopup = Model.AttributeDescriptor.EnableModal, OnClientClose = $"{Model.AttributeDescriptor.Key}Tree_refresh" }; From 8874c2c8383f9c2775d572a33d6b4760a32bf27a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 1 Nov 2019 13:45:29 -0700 Subject: [PATCH 445/637] Refactored `RelationshipViewComponent` configuration Removed the `Namespace` configuration; this can (and _should_) be set based on the attribute `Key`. Renamed `AttributeName` to `AttributeKey` for consistency with `AttributeValueCollection`. Renamed `Scope` to `RootTopicKey`, which is marked as deprecated and only maintained for backward compatibility; replaced `RootTopicKey` with `RootTopicId`. --- .../RelationshipAttributeTopicViewModel.cs | 46 ++++++++++++------- .../Components/RelationshipViewComponent.cs | 5 +- .../Components/Relationship/Default.cshtml | 3 +- 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs index 9aa3b555..ac736577 100644 --- a/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs @@ -6,6 +6,11 @@ #nullable enable +using Ignia.Topics.Mapping; +using Ignia.Topics.ViewModels; +using System; +using System.Diagnostics.CodeAnalysis; + namespace Ignia.Topics.Editor.Models.Metadata { /*============================================================================================================================ @@ -17,13 +22,29 @@ namespace Ignia.Topics.Editor.Models.Metadata { public class RelationshipAttributeTopicViewModel: AttributeDescriptorTopicViewModel { /*========================================================================================================================== - | PROPERTY: SCOPE + | PROPERTY: ROOT TOPIC KEY \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Gets or sets a path representing the scope of s to display to the + /// Gets or sets a path representing the to display to the /// user. This allows relationships to be targeted to particular areas of the topic graph. /// - public string? Scope { get; set; } + [Obsolete( + "This property is exposed exlusively for backward compatibility with the DefaultConfiguration's Scope property. New " + + "attributes should instead use the RootTopic property. The RootTopicKey property will be removed in the future.", + false + )] + public string? RootTopicKey { get; set; } + + /*========================================================================================================================== + | PROPERTY: ROOT TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets a representing the scope of s to display to the user. This + /// allows relationships to be targeted to particular areas of the topic graph. + /// + [AttributeKey("RootTopicId")] + [NotNull] + public TopicViewModel? RootTopic { get; set; } /*========================================================================================================================== | PROPERTY: SHOW ROOT @@ -44,42 +65,33 @@ public class RelationshipAttributeTopicViewModel: AttributeDescriptorTopicViewMo public bool? CheckAscendants { get; set; } /*========================================================================================================================== - | PROPERTY: ATTRIBUTE NAME + | PROPERTY: ATTRIBUTE KEY \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Optionally defines an attribute name to filter the list of displayed s by. Must be accompanied by /// a . /// /// - /// If the and are defined, then any s listed + /// If the and are defined, then any s listed /// under a that is excluded by the filter will also be excluded. As such, this option should /// be used with care. /// - public string? AttributeName { get; set; } + public string? AttributeKey { get; set; } /*========================================================================================================================== | PROPERTY: ATTRIBUTE VALUE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Optionally defines an attribute value to filter the list of displayed s by. Must be accompanied by - /// a . + /// a . /// /// - /// If the and are defined, then any s listed + /// If the and are defined, then any s listed /// under a that is excluded by the filter will also be excluded. As such, this option should /// be used with care. /// public string? AttributeValue { get; set; } - /*========================================================================================================================== - | PROPERTY: NAMESPACE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Determines the name space to save the relationship under. Any topic may have multiple relationships, so the namespace - /// helps distinguish them from one another. - /// - public string? Namespace { get; set; } - } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs index 52d3e9c2..7e541dd6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs @@ -46,12 +46,11 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ - attribute.Scope ??= attribute.GetConfigurationValue( "Scope", null); + attribute.RootTopicKey ??= attribute.GetConfigurationValue( "Scope", null); attribute.ShowRoot ??= attribute.GetBooleanConfigurationValue( "ShowRoot", false); attribute.CheckAscendants ??= attribute.GetBooleanConfigurationValue( "CheckAscendants", false); - attribute.AttributeName ??= attribute.GetConfigurationValue( "AttributeName", null); + attribute.AttributeKey ??= attribute.GetConfigurationValue( "AttributeName", null); attribute.AttributeValue ??= attribute.GetConfigurationValue( "AttributeValue", null); - attribute.Namespace ??= attribute.GetConfigurationValue( "Namespace", "Related"); /*------------------------------------------------------------------------------------------------------------------------ | Establish view model diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml index 1d45ec3f..e5205602 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml @@ -2,6 +2,7 @@ @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; + var rootTopicKey = Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopic.UniqueKey ?? "Root"; } @@ -22,7 +23,7 @@ containerScroll : true, border : false, baseCls : 'RelationshipsTreeView', - dataUrl : '/OnTopic/Json/@(Model.AttributeDescriptor.Scope?.Replace(":", "/")?? "Root")?ShowRoot=@Model.AttributeDescriptor.ShowRoot&ShowAll=true&RelatedNamespace=@Model.AttributeDescriptor.Namespace&RelatedTopicID=@Model.TopicId&AttributeName=@Model.AttributeDescriptor.AttributeName&AttributeValue=@Model.AttributeDescriptor.AttributeValue', + dataUrl : '/OnTopic/Json/@rootTopicKey?ShowRoot=@Model.AttributeDescriptor.ShowRoot&ShowAll=true&RelatedNamespace=@Model.AttributeDescriptor.Key&RelatedTopicID=@Model.TopicId&AttributeName=@Model.AttributeDescriptor.AttributeKey&AttributeValue=@Model.AttributeDescriptor.AttributeValue', root : new Ext.tree.AsyncTreeNode({ checked : true, text : 'Web', From 55dd5f82ca724ddcc8eab5a20415d50be6e39068 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 1 Nov 2019 15:53:30 -0700 Subject: [PATCH 446/637] Refactored `TokenizedTopicListViewComponent` configuration Renamed `AttributeName` to `AttributeKey` for consistency with `AttributeValueCollection`. Renamed `Scope` to `RootTopicKey`, which is marked as deprecated and only maintained for backward compatibility; replaced `RootTopicKey` with `RootTopicId`. These are the same changes made to `RelationshipViewComponent` in #8874c2c. In addition, removed `SearchProperty` and `QueryParameter`, as these are specific to the search service and shouldn't ever need to be modified on a per attribute basis. Also, renamed `IsAutoPostBack` to `AutoPostBack`, as the `Is` is implicit. --- ...kenizedTopicListAttributeTopicViewModel.cs | 68 +++++++++---------- .../TokenizedTopicListViewComponent.cs | 7 +- .../TokenizedTopicList/Default.cshtml | 9 ++- .../Components/TopicReference/Default.cshtml | 4 +- .../Shared/Scripts/TokenizedTopicList.js | 6 +- 5 files changed, 43 insertions(+), 51 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs index d3664a9c..be75382c 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs @@ -3,7 +3,10 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Mapping; +using Ignia.Topics.ViewModels; using System; +using System.Diagnostics.CodeAnalysis; #nullable enable @@ -18,29 +21,47 @@ namespace Ignia.Topics.Editor.Models.Metadata { public class TokenizedTopicListAttributeTopicViewModel: AttributeDescriptorTopicViewModel { /*========================================================================================================================== - | SCOPE + | PROPERTY: ROOT TOPIC KEY \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Gets or sets the scope of the topic graph within which to search for results. E.g., Root:Web:Configuration. + /// Gets or sets a path representing the to display to the + /// user. This allows the to be limited to particular areas of the topic + /// graph. /// - public string? Scope { get; set; } + [Obsolete( + "This property is exposed exlusively for backward compatibility with the DefaultConfiguration's Scope property. New " + + "attributes should instead use the RootTopic property. The RootTopicKey property will be removed in the future.", + false + )] + public string? RootTopicKey { get; set; } /*========================================================================================================================== - | ATTRIBUTE NAME + | PROPERTY: ROOT TOPIC \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Gets or sets the name of an attribute (e.g., ContentType) to filter the selectable token list by. If is defined, then should also be defined; otherwise, it will filter - /// by topics that have an empty value for the specified . + /// Gets or sets a representing the scope of s to display to the user. This + /// allows to be limited to particular areas of the topic graph. /// - public string? AttributeName { get; set; } + [AttributeKey("RootTopicId")] + [NotNull] + public TopicViewModel? RootTopic { get; set; } + + /*========================================================================================================================== + | ATTRIBUTE KEY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the key of an attribute (e.g., ContentType) to filter the selectable token list by. If is defined, then should also be defined; otherwise, it will filter + /// by topics that have an empty value for the specified . + /// + public string? AttributeKey { get; set; } /*========================================================================================================================== | ATTRIBUTE VALUE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Gets or sets the value of an attribute (e.g., Page) to filter the selectable token list by. If is defined, then should also be defined; otherwise, the filter + /// cref="AttributeValue"/> is defined, then should also be defined; otherwise, the filter /// will not function. /// public string? AttributeValue { get; set; } @@ -68,14 +89,14 @@ public class TokenizedTopicListAttributeTopicViewModel: AttributeDescriptorTopic public int? TokenLimit { get; set; } /*========================================================================================================================== - | IS AUTO POSTBACK? + | AUTO POST BACK? \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Determines if the form should automatically be submitted whenever a new value is selected. This is useful, in /// particular, for the , which provides a purpose-built wrapper for the . /// - public bool? IsAutoPostBack { get; set; } + public bool? AutoPostBack { get; set; } /*========================================================================================================================== | AS RELATIONSHIP @@ -90,31 +111,6 @@ public class TokenizedTopicListAttributeTopicViewModel: AttributeDescriptorTopic /// public bool? AsRelationship { get; set; } - /*========================================================================================================================== - | SEARCH PROPERTY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Determines what attribute in to search against. This corresponds to TokenInput's - /// propertyToSearch setting. - /// - /// - /// Keep in mind that this is looking at the serialized object graph of the topic tree, not the actual topic graph - /// itself. As a result, this will not have access to all attributes, only those explicitly included on the - /// . Further, because this is looking at the serialized version, the attribute - /// names may vary from 's property names; for example, they will be camel-cased, and - /// may be modified by serialization annotations. - /// - public string? SearchProperty { get; set; } - - /*========================================================================================================================== - | QUERY PARAMETER - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Determines the querystring parameter used to query the web service. This corresponds to TokenInput's queryParam - /// setting. Defaults to AttributeValue. - /// - public string? QueryParameter { get; set; } - } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index f2657b6a..940741f5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -61,14 +61,13 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ - attribute.Scope ??= attribute.GetConfigurationValue( "Scope", "Root"); - attribute.AttributeName ??= attribute.GetConfigurationValue( "AttributeName", null); + attribute.RootTopicKey ??= attribute.GetConfigurationValue( "Scope", "Root"); + attribute.AttributeKey ??= attribute.GetConfigurationValue( "AttributeName", null); attribute.AttributeValue ??= attribute.GetConfigurationValue( "AttributeValue", null); attribute.ResultLimit ??= attribute.GetIntegerConfigurationValue( "ResultLimit", 100); attribute.TokenLimit ??= attribute.GetIntegerConfigurationValue( "TokenLimit", 100); attribute.AsRelationship ??= attribute.GetBooleanConfigurationValue( "AsRelationship", false); - attribute.SearchProperty ??= attribute.GetConfigurationValue( "SearchProperty", "key"); - attribute.QueryParameter ??= attribute.GetConfigurationValue( "QueryParameter", "AttributeValue"); + attribute.AutoPostBack ??= attribute.GetBooleanConfigurationValue( "IsAutoPostBack", false); /*------------------------------------------------------------------------------------------------------------------------ | Establish view model diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml index 625fc137..978b21c9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml @@ -2,6 +2,7 @@ @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; + var rootTopicKey = Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopic.UniqueKey ?? "Root"; }
    @@ -14,14 +15,12 @@ //Create new instance of TokenizedTopics and set relevant properties var tokenizedTopics = new TokenizedTopics(); tokenizedTopics.selector = '#@Html.IdFor(m => m.Value)'; - tokenizedTopics.scope = '@Model.AttributeDescriptor.Scope.Replace(":", "/")'; - tokenizedTopics.attributeName = '@Model.AttributeDescriptor.AttributeName'; + tokenizedTopics.scope = '@rootTopicKey'; + tokenizedTopics.attributeName = '@Model.AttributeDescriptor.AttributeKey'; tokenizedTopics.attributeValue = '@Model.AttributeDescriptor.AttributeValue'; - tokenizedTopics.searchProperty = '@Model.AttributeDescriptor.SearchProperty.ToLower()'; - tokenizedTopics.queryParameter = '@Model.AttributeDescriptor.QueryParameter'; tokenizedTopics.resultLimit = '@Model.AttributeDescriptor.ResultLimit'; tokenizedTopics.tokenLimit = @Model.AttributeDescriptor.TokenLimit; - tokenizedTopics.isAutoPostBack = @((Model.AttributeDescriptor.IsAutoPostBack?? false).ToString().ToLower()); + tokenizedTopics.isAutoPostBack = @((Model.AttributeDescriptor.AutoPostBack?? false).ToString().ToLower()); tokenizedTopics.selectedTopics = @Model.SelectedTopics; //Fire TokenizedTopics.prototype.getTokenizedTopics() (and $([selector]).tokenInput()) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml index 6eef90f4..628b291b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml @@ -6,8 +6,8 @@ Description = Model.AttributeDescriptor.Description, Title = Model.AttributeDescriptor.Title, EditorType = "TokenizedTopicList.ascx", - Scope = Model.AttributeDescriptor.Scope, - AttributeName = String.IsNullOrEmpty(Model.AttributeDescriptor.TargetContentType)? "": "ContentType", + RootTopicKey = Model.AttributeDescriptor.Scope, + AttributeKey = String.IsNullOrEmpty(Model.AttributeDescriptor.TargetContentType)? "": "ContentType", AttributeValue = Model.AttributeDescriptor.TargetContentType, SearchProperty = "text", QueryParameter = "Query", diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js index a40d96ff..309eaba4 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/TokenizedTopicList.js @@ -29,8 +29,6 @@ this.scope = ''; this.attributeName = ''; this.attributeValue = ''; - this.searchProperty = ''; - this.queryParameter = ''; this.selectedTopics = ''; this.resultLimit = ''; this.tokenLimit = 100; @@ -64,8 +62,8 @@ | Initialize Token-Input with options set on TokenizedTopics \---------------------------------------------------------------------------------------------------------------------------*/ $(self.selector).tokenInput(topicsUrl, { - propertyToSearch : self.searchProperty, - queryParam : self.queryParameter, + propertyToSearch : 'text', + queryParam : 'Query', minChars : 3, enableHTML : true, tokenLimit : self.tokenLimit, From be8deabf854b98f530783bf3c7b17f4396cedda9 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 1 Nov 2019 16:51:36 -0700 Subject: [PATCH 447/637] Centralied common properties under new `QueryableTopicListTopicViewModel` The `QueryableTopicListTopicViewModel` does not correspond to a `QueryableTopicListViewComponent`, nor is it intended to be used as an actual attribute type. Instead, it provides a base class to centralize attribute definitions between `RelationshipAttributeTopicViewModel`, `TokenizedTopicListAttributeTopicViewModel`, and, forthcoming, `TopicListAttributeTopicViewModel`. Namely, it includes definitions for `RootTopicKey`, `RootTopic`, `AttributeKey`, and `AttributeValue`. --- ...eryableTopicListAttributeTopicViewModel.cs | 82 +++++++++++++++++++ .../RelationshipAttributeTopicViewModel.cs | 55 +------------ ...kenizedTopicListAttributeTopicViewModel.cs | 48 +---------- 3 files changed, 84 insertions(+), 101 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs diff --git a/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs new file mode 100644 index 00000000..3996940b --- /dev/null +++ b/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs @@ -0,0 +1,82 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +#nullable enable + +using Ignia.Topics.Mapping; +using Ignia.Topics.ViewModels; +using System; +using System.Diagnostics.CodeAnalysis; + +namespace Ignia.Topics.Editor.Models.Metadata { + + /*============================================================================================================================ + | CLASS: QUERYABLE TOPIC LIST (TOPIC VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a base class for exposing properties common to the , , , and any other view + /// components that allow querying of topics via the search API, or similar techniques. + /// + public class QueryableTopicListAttributeTopicViewModel: AttributeDescriptorTopicViewModel { + + /*========================================================================================================================== + | PROPERTY: ROOT TOPIC KEY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets a path representing the to display to the + /// user. This allows relationships to be targeted to particular areas of the topic graph. + /// + [Obsolete( + "This property is exposed exlusively for backward compatibility with the DefaultConfiguration's Scope property. New " + + "attributes should instead use the RootTopic property. The RootTopicKey property will be removed in the future.", + false + )] + public string? RootTopicKey { get; set; } + + /*========================================================================================================================== + | PROPERTY: ROOT TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets a representing the scope of s to display to the user. This + /// allows relationships to be targeted to particular areas of the topic graph. + /// + [AttributeKey("RootTopicId")] + [NotNull] + public TopicViewModel? RootTopic { get; set; } + + /*========================================================================================================================== + | PROPERTY: ATTRIBUTE KEY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Optionally defines an attribute name to filter the list of displayed s by. Must be accompanied by + /// a . + /// + /// + /// If the and are defined, then any s listed + /// under a that is excluded by the filter will also be excluded. As such, this option should + /// be used with care. + /// + public string? AttributeKey { get; set; } + + /*========================================================================================================================== + | PROPERTY: ATTRIBUTE VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Optionally defines an attribute value to filter the list of displayed s by. Must be accompanied by + /// a . + /// + /// + /// If the and are defined, then any s listed + /// under a that is excluded by the filter will also be excluded. As such, this option should + /// be used with care. + /// + public string? AttributeValue { get; set; } + + } //Class +} //Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs index ac736577..6075348b 100644 --- a/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/RelationshipAttributeTopicViewModel.cs @@ -19,32 +19,7 @@ namespace Ignia.Topics.Editor.Models.Metadata { /// /// Provides access to attributes associated with the . /// - public class RelationshipAttributeTopicViewModel: AttributeDescriptorTopicViewModel { - - /*========================================================================================================================== - | PROPERTY: ROOT TOPIC KEY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets a path representing the to display to the - /// user. This allows relationships to be targeted to particular areas of the topic graph. - /// - [Obsolete( - "This property is exposed exlusively for backward compatibility with the DefaultConfiguration's Scope property. New " + - "attributes should instead use the RootTopic property. The RootTopicKey property will be removed in the future.", - false - )] - public string? RootTopicKey { get; set; } - - /*========================================================================================================================== - | PROPERTY: ROOT TOPIC - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets a representing the scope of s to display to the user. This - /// allows relationships to be targeted to particular areas of the topic graph. - /// - [AttributeKey("RootTopicId")] - [NotNull] - public TopicViewModel? RootTopic { get; set; } + public class RelationshipAttributeTopicViewModel: QueryableTopicListAttributeTopicViewModel { /*========================================================================================================================== | PROPERTY: SHOW ROOT @@ -64,34 +39,6 @@ public class RelationshipAttributeTopicViewModel: AttributeDescriptorTopicViewMo /// public bool? CheckAscendants { get; set; } - /*========================================================================================================================== - | PROPERTY: ATTRIBUTE KEY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Optionally defines an attribute name to filter the list of displayed s by. Must be accompanied by - /// a . - /// - /// - /// If the and are defined, then any s listed - /// under a that is excluded by the filter will also be excluded. As such, this option should - /// be used with care. - /// - public string? AttributeKey { get; set; } - - /*========================================================================================================================== - | PROPERTY: ATTRIBUTE VALUE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Optionally defines an attribute value to filter the list of displayed s by. Must be accompanied by - /// a . - /// - /// - /// If the and are defined, then any s listed - /// under a that is excluded by the filter will also be excluded. As such, this option should - /// be used with care. - /// - public string? AttributeValue { get; set; } - } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs index be75382c..983380cd 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs @@ -18,53 +18,7 @@ namespace Ignia.Topics.Editor.Models.Metadata { /// /// Provides access to attributes associated with the . /// - public class TokenizedTopicListAttributeTopicViewModel: AttributeDescriptorTopicViewModel { - - /*========================================================================================================================== - | PROPERTY: ROOT TOPIC KEY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets a path representing the to display to the - /// user. This allows the to be limited to particular areas of the topic - /// graph. - /// - [Obsolete( - "This property is exposed exlusively for backward compatibility with the DefaultConfiguration's Scope property. New " + - "attributes should instead use the RootTopic property. The RootTopicKey property will be removed in the future.", - false - )] - public string? RootTopicKey { get; set; } - - /*========================================================================================================================== - | PROPERTY: ROOT TOPIC - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets a representing the scope of s to display to the user. This - /// allows to be limited to particular areas of the topic graph. - /// - [AttributeKey("RootTopicId")] - [NotNull] - public TopicViewModel? RootTopic { get; set; } - - /*========================================================================================================================== - | ATTRIBUTE KEY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets the key of an attribute (e.g., ContentType) to filter the selectable token list by. If is defined, then should also be defined; otherwise, it will filter - /// by topics that have an empty value for the specified . - /// - public string? AttributeKey { get; set; } - - /*========================================================================================================================== - | ATTRIBUTE VALUE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets the value of an attribute (e.g., Page) to filter the selectable token list by. If is defined, then should also be defined; otherwise, the filter - /// will not function. - /// - public string? AttributeValue { get; set; } + public class TokenizedTopicListAttributeTopicViewModel: QueryableTopicListAttributeTopicViewModel { /*========================================================================================================================== | RESULT LIMIT From 195c807bd2b7e0c823790641671afef370b45b52 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 1 Nov 2019 18:31:23 -0700 Subject: [PATCH 448/637] Refactored `TopicListViewComponent` configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moved `ValueToken` (was `ValueProperty`), `EnableModal` (was `TargetPopup`), `TargetUrl`, and `OnClientClose` to be properties ot the `TopicListViewModel` instead of the `TopicListTopicViewModel—i.e., determined they didn't need to be configured on a per-attribute basis, and were more relevant to be passed in when the `TopicListViewComponent` was being called as a navigation element, rather than an attribute. Inherited shared properties from the new `QueryableTopicListTopicViewModel`—which includes previous renames such as `Scope` to `RootTopicKey` and `AttributeName` to `AttributeKey`. Finally, renamed `UseUniqueKey` to `StoreUniqueKey`. As with previous refactorings, the calls to `Get(Boolean)ConfigurationValue()` continue to use the legacy names for backward compatibility; the `DefaultConfiguration` store they pull from will ultimately go away, and that functionality can be removed entirely. --- .../TopicListAttributeTopicViewModel.cs | 115 +++++++----------- .../Components/TopicListViewComponent.cs | 50 +++++--- .../Models/TopicListAttributeViewModel.cs | 29 ++++- .../Components/NestedTopicList/Default.cshtml | 14 +-- .../Components/TopicList/Default.cshtml | 6 +- .../Components/TopicReference/Default.cshtml | 4 +- .../Areas/Editor/Views/Shared/_Layout.cshtml | 4 +- 7 files changed, 116 insertions(+), 106 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs index db6b1fec..630ed1ec 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs @@ -3,7 +3,10 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Mapping; +using Ignia.Topics.ViewModels; using System; +using System.Diagnostics.CodeAnalysis; #nullable enable @@ -15,99 +18,67 @@ namespace Ignia.Topics.Editor.Models.Metadata { /// /// Provides access to attributes associated with the . /// - public class TopicListAttributeTopicViewModel: AttributeDescriptorTopicViewModel { + public class TopicListAttributeTopicViewModel: QueryableTopicListAttributeTopicViewModel { /*========================================================================================================================== | PRIVATE VARIABLES \-------------------------------------------------------------------------------------------------------------------------*/ - private string? _valueProperty = null; + private string? _valueProperty = null; /*========================================================================================================================== - | SCOPE + | DEFAULT LABEL \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Gets or sets the scope of the topic graph within which to search for results. E.g., Root:Web:Configuration. + /// Sets the label name to be used for the placeholder option in the dropdown list, which will have an empty value. /// - public string? Scope { get; set; } + public string? DefaultLabel { get; set; } /*========================================================================================================================== - | ATTRIBUTE NAME + | PROPERTY: STORE UNIQUE KEY \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Gets or sets the name of an attribute (e.g., ContentType) to filter the selectable token list by. If is defined, then should also be defined; otherwise, it will filter - /// by topics that have an empty value for the specified . + /// Determines whether to use a fully qualified or just the when saving the value to the database. /// - public string? AttributeName { get; set; } + /// + /// A makes it easier to construct or retrieve the corresponding topic object + /// without any knowledge of where that object exists. Further, under certain circumstances, a may be necessary to guarantee uniqueness (for instance, if the values are + /// overridden with a collection of topics from multiple locations in the topic tree). That said, the may be a preferred value, particularly when not intended to provide a strongly-typed + /// reference to particular topics (e.g., when the is being used to simply provide a + /// constrained list of known values, such as tags). + /// + public bool? StoreUniqueKey { get; set; } /*========================================================================================================================== - | ATTRIBUTE VALUE + | VALUE TOKEN \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Gets or sets the value of an attribute (e.g., Page) to filter the selectable token list by. If is defined, then should also be defined; otherwise, the filter - /// will not function. + /// Determines what token to bind the topic list to. By default, it is , unless is selected, in which case it becomes . These defaults + /// can be overwritten using the . /// - public string? AttributeValue { get; set; } - - /*========================================================================================================================== - | TARGET URL - >--------------------------------------------------------------------------------------------------------------------------- - | ### TODO JJC092313: Need to add support for {token} replacements in the TargetUrl. Also, unclear what the current default - | logic is doing; I don't believe this should be necessary. - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// The TargetUrl allows the dropdown control to trigger the loading of a new page based on the value of the dropdown box. - /// The new page is loaded using the LoadPage event handler, and may optionally be handled as a redirect (default) or a - /// popup (based on the TargetPopup boolean). - /// - public string? TargetUrl { get; set; } - - /*========================================================================================================================== - | TARGET POPUP - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// If a TargetUrl is supplied, and TargetPopup is set to true, then the TargetUrl will be loaded during the LoadPage - /// event as a popup window. Otherwise, the TargetUrl will be loaded via a redirect. - /// - public bool? TargetPopup { get; set; } - - /*========================================================================================================================== - | ON CLIENT CLOSE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// If supplied, sets a reference to a callback function to execute on close of the editor popup. - /// - public string? OnClientClose { get; set; } - - /*========================================================================================================================== - | LABEL - \-------------------------------------------------------------------------------------------------------------------------*/ - public string? Label { get; set; } - - /*========================================================================================================================== - | PROPERTY: USE UNIQUE KEY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Determines whether to use a fully qualified key ("UniqueKey") or just the topic key. A UniqueKey makes it easier to - /// construct or retrieve the corresponding topic object without any knowledge of where that object exists. Further, under - /// certain circumstances, a UniqueKey may be necessary to guarantee uniqueness (for instance, if DataSource is overridden - /// with a collection of topics from multiple locations in the topic tree). That said, the topic key may be a preferred - /// value, particularly when not intended to provide a strongly-typed reference to particular topics (e.g., when the - /// LookupList is being used to simply provide a constrained list of known values, such as tags). - /// - public bool? UseUniqueKey { get; set; } - - /*========================================================================================================================== - | VALUE PROPERTY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Determines what property to bind the TopicLookup/TopicList to. - /// - public string? ValueProperty { + /// + /// Not just any attribute or property may be used. The contains a list of tokens + /// that it knows how to replace. These include: + /// + /// Topic (for ) + /// TopicId (for ) + /// Name (for ) + /// Key (for ) + /// FullName (for ) + /// UniqueKey (for ) + /// Title (for ) + /// Parent (for ) + /// GrandParent (for ) + /// GrandParentId (for ) + /// + /// + public string? ValueToken { get { if (_valueProperty == null) { - _valueProperty = UseUniqueKey is true ? "UniqueKey" : "Key"; + _valueProperty = StoreUniqueKey is true ? "UniqueKey" : "Key"; } return _valueProperty; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 88f3ebc0..7b1c93fa 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -54,22 +54,25 @@ ITopicRepository topicRepository public async Task InvokeAsync( TopicListAttributeTopicViewModel attribute, string htmlFieldPrefix = null, - IEnumerable values = null + IEnumerable values = null, + string targetUrl = null, + bool? enableModal = null, + string onClientClose = null ) { /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ - attribute.Label ??= attribute.GetConfigurationValue( "Label", "Select a Topic…"); - attribute.Scope ??= attribute.GetConfigurationValue( "Scope", null); - attribute.AttributeName ??= attribute.GetConfigurationValue( "AttributeName", null); + attribute.DefaultLabel ??= attribute.GetConfigurationValue( "Label", "Select a Topic…"); + attribute.RootTopicKey ??= attribute.GetConfigurationValue( "Scope", null); + attribute.AttributeKey ??= attribute.GetConfigurationValue( "AttributeName", null); attribute.AttributeValue ??= attribute.GetConfigurationValue( "AttributeValue", null); attribute.AllowedKeys ??= attribute.GetConfigurationValue( "AllowedKeys", null); - attribute.UseUniqueKey ??= attribute.GetBooleanConfigurationValue( "UseUniqueKey", false); - attribute.ValueProperty ??= attribute.GetConfigurationValue( "ValueProperty", null); - attribute.TargetPopup ??= attribute.GetBooleanConfigurationValue( "TargetPopup", false); - attribute.TargetUrl ??= attribute.GetConfigurationValue( "TargetUrl", null); - attribute.OnClientClose ??= attribute.GetConfigurationValue( "OnClientClose", null); + attribute.StoreUniqueKey ??= attribute.GetBooleanConfigurationValue( "UseUniqueKey", false); + attribute.ValueToken ??= attribute.GetConfigurationValue( "ValueProperty", null); + enableModal ??= attribute.GetBooleanConfigurationValue( "TargetPopup", false); + targetUrl ??= attribute.GetConfigurationValue( "TargetUrl", null); + onClientClose ??= attribute.GetConfigurationValue( "OnClientClose", null); /*------------------------------------------------------------------------------------------------------------------------ | Set HTML prefix @@ -89,7 +92,7 @@ public async Task InvokeAsync( viewModel.TopicList.Add( new SelectListItem { Value = null, - Text = attribute.Label + Text = attribute.DefaultLabel } ); @@ -116,10 +119,14 @@ public async Task InvokeAsync( } } else { - topics = GetTopics(attribute.Scope, attribute.AttributeName, attribute.AttributeValue, attribute.AllowedKeys); + topics = GetTopics( + attribute.RootTopic?.UniqueKey?? attribute.RootTopicKey, + attribute.AttributeKey, + attribute.AttributeValue, + attribute.AllowedKeys + ); } - /*------------------------------------------------------------------------------------------------------------------------ | Get values from repository \-----------------------------------------------------------------------------------------------------------------------*/ @@ -138,6 +145,13 @@ public async Task InvokeAsync( } + /*------------------------------------------------------------------------------------------------------------------------ + | Set navigation related properties + \-----------------------------------------------------------------------------------------------------------------------*/ + viewModel.TargetUrl = targetUrl; + viewModel.EnableModal = enableModal; + viewModel.OnModalClose = onClientClose; + /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model \-----------------------------------------------------------------------------------------------------------------------*/ @@ -147,9 +161,9 @@ public async Task InvokeAsync( | Helper functions \-----------------------------------------------------------------------------------------------------------------------*/ string getValue(Topic topic) { - if (!String.IsNullOrEmpty(attribute.TargetUrl)) { + if (!String.IsNullOrEmpty(targetUrl)) { // Add TopicID if not already available - var uniqueTargetUrl = attribute.TargetUrl; + var uniqueTargetUrl = targetUrl; if ( uniqueTargetUrl.IndexOf("?") >= 0 && uniqueTargetUrl.IndexOf("TopicID", StringComparison.InvariantCultureIgnoreCase) < 0 @@ -158,7 +172,7 @@ string getValue(Topic topic) { } return ReplaceTokens(topic, uniqueTargetUrl); } - return ReplaceTokens(topic, "{" + attribute.ValueProperty + "}"); + return ReplaceTokens(topic, "{" + attribute.ValueToken + "}"); } } @@ -170,7 +184,7 @@ string getValue(Topic topic) { \-------------------------------------------------------------------------------------------------------------------------*/ public TopicCollection GetTopics( string scope = null, - string attributeName = null, + string attributeKey = null, string attributeValue = null, string allowedKeys = "" ) { @@ -193,9 +207,9 @@ public TopicCollection GetTopics( /*------------------------------------------------------------------------------------------------------------------------ | Filter Topics selection list by AttributeName/AttributeValue \-----------------------------------------------------------------------------------------------------------------------*/ - if (attributeName != null && attributeValue != null) { + if (attributeKey != null && attributeValue != null) { - var readOnlyTopics = topic.FindAllByAttribute(attributeName, attributeValue); + var readOnlyTopics = topic.FindAllByAttribute(attributeKey, attributeValue); foreach (Topics.Topic readOnlyTopic in readOnlyTopics) { if (!topics.Contains(readOnlyTopic.Key)) { topics.Add(readOnlyTopic); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicListAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicListAttributeViewModel.cs index f5684ec9..135e6b72 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicListAttributeViewModel.cs @@ -48,6 +48,33 @@ public TopicListAttributeViewModel( /// public List TopicList { get; } = new List(); - } // Class + /*========================================================================================================================== + | ENABLE MODAL + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// If a is supplied, and is set to true, then the will be loaded in a modal window. Otherwise, the will be loaded via a + /// redirect. The default is false. + /// + public bool? EnableModal { get; set; } + + /*========================================================================================================================== + | TARGET URL + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// The allows the dropdown control to trigger the loading of a new page based on the value of + /// the dropdown box. The new page is loaded using the LoadPage event handler, and may optionally be handled as a redirect + /// (default) or a modal (based on the boolean). + /// + public string TargetUrl { get; set; } + + /*========================================================================================================================== + | ON MODAL CLOSE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// If supplied, sets a reference to a callback function to execute on close of the editor modal window. + /// + public string OnModalClose { get; set; } + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index a44dc391..530fd9dc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -88,20 +88,20 @@ var attributeDescriptor = new TopicListAttributeTopicViewModel() { Key = Model.Key, EditorType = "TopicList.ascx", - Scope = "Configuration:ContentTypes", - AttributeName = "ContentType", + RootTopicKey = "Configuration:ContentTypes", + AttributeKey = "ContentType", AttributeValue = "ContentType", AllowedKeys = Model.AttributeDescriptor.ContentTypes, - Label = "Add child topic…", - TargetUrl = $"{Url.Action("Edit")}{Model.AttributeDescriptor.Key}/?ContentType={{Topic}}&IsNew=true&IsModal=true", - TargetPopup = Model.AttributeDescriptor.EnableModal, - OnClientClose = $"{Model.AttributeDescriptor.Key}Tree_refresh" + DefaultLabel = "Add child topic…" }; + target-url=@($"{Url.Action("Edit")}{Model.AttributeDescriptor.Key}/?ContentType={{Topic}}&IsNew=true&IsModal=true"), + enable-modal=@Model.AttributeDescriptor.EnableModal + values=@Model.AttributeDescriptor.PermittedContentTypes + on-client-close=@($"{Model.AttributeDescriptor.Key}Tree_refresh")> } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml index 0c277d2c..f7330952 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml @@ -8,10 +8,10 @@ } -@if (Model.TopicList.Count <= 2 && !String.IsNullOrEmpty(Model.AttributeDescriptor.TargetUrl)) { +@if (Model.TopicList.Count <= 2 && !String.IsNullOrEmpty(Model.TargetUrl)) {
    - @if (Model.AttributeDescriptor.TargetPopup == true) { - + @if (Model.EnableModal == true) { + Add @Model.TopicList.LastOrDefault().Text } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml index 628b291b..7ac61b57 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml @@ -9,11 +9,9 @@ RootTopicKey = Model.AttributeDescriptor.Scope, AttributeKey = String.IsNullOrEmpty(Model.AttributeDescriptor.TargetContentType)? "": "ContentType", AttributeValue = Model.AttributeDescriptor.TargetContentType, - SearchProperty = "text", - QueryParameter = "Query", ResultLimit = Model.AttributeDescriptor.ResultLimit, TokenLimit = 1, - IsAutoPostBack = true + AutoPostBack = true }; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 2ef271e4..14967461 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -70,14 +70,14 @@ var attributeDescriptor = new TopicListAttributeTopicViewModel() { Key = "Navigation", EditorType = "TopicList.ascx", - Label = "Add new topic…", - TargetUrl = $"{Url.Action("Edit")}?ContentType={{Topic}}&IsNew=true", + DefaultLabel = "Add new topic…" }; } From fdb6e5dc0f9e8b70fb671a4ab0acf51ee9d7313b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 1 Nov 2019 21:23:40 -0700 Subject: [PATCH 449/637] Bumped patch version of `Ignia.Topics` dependency The `Topics-Library` repository's `csharp8-update` branch was updated to include additional placeholders for `NumberAttribute`, `QueryableTopicListAttribute`, `LastModifiedAttribute`, and `LastModifiedByAttribute`. --- .../Ignia.Topics.Editor.Models.csproj | 4 ++-- .../Ignia.Topics.Editor.Mvc.Host.csproj | 12 ++++++------ .../Ignia.Topics.Editor.Mvc.csproj | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 73752975..706474b6 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -8,8 +8,8 @@ bin\$(Configuration)\ - - + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 3f0c2ae6..107a478d 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -8,12 +8,12 @@ - - - - - - + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 275590d1..55d90958 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -7,9 +7,9 @@ - - - + + + From aef7d3b4e9465b098a87a5e68849b18bfa4b8b5e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 2 Nov 2019 00:02:09 -0700 Subject: [PATCH 450/637] Introduced new `NumberAttributeViewModel` The `NumberAttributeViewModel` is basically the same as the `TextAttributeViewModel`, except that a) the `` field is hard-coded to `type="number"`, and b) instead of `MinimumLength` and `MaximumLength`, it exposes `MinimumValue` and `MaximumValue` configuration options. --- .../Metadata/NumberAttributeTopicViewModel.cs | 40 ++++++++++++ .../SampleActivator.cs | 3 + .../Editor/Components/NumberViewComponent.cs | 64 +++++++++++++++++++ .../EditorViewModelLookupService.cs | 1 + .../Editor/Components/Number/Default.cshtml | 7 ++ 5 files changed, 115 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/Metadata/NumberAttributeTopicViewModel.cs create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Number/Default.cshtml diff --git a/Ignia.Topics.Editor.Models/Metadata/NumberAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/NumberAttributeTopicViewModel.cs new file mode 100644 index 00000000..e8cce838 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Metadata/NumberAttributeTopicViewModel.cs @@ -0,0 +1,40 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +#nullable enable + +using System; + +namespace Ignia.Topics.Editor.Models.Metadata { + + /*============================================================================================================================ + | CLASS: NUMBER ATTRIBUTE (TOPIC VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides access to attributes associated with the . + /// + public class NumberAttributeTopicViewModel: AttributeDescriptorTopicViewModel { + + /*========================================================================================================================== + | PROPERTY: MINIMUM VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines the lower bound for acceptable values. Defaults to 0. + /// + public int MinimumValue { get; set; } = 0; + + /*========================================================================================================================== + | PROPERTY: MAXIMUM VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines the upper bound for acceptable values. Defaults to . + /// + public int MaximumValue { get; set; } = Int32.MaxValue; + + } //Class +} //Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 58b18e5b..31b5db3f 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -143,6 +143,9 @@ public object Create(ViewComponentContext context) { if (type == typeof(BooleanViewComponent)) { return new BooleanViewComponent(mvcTopicRoutingService); } + if (type == typeof(NumberViewComponent)) { + return new NumberViewComponent(mvcTopicRoutingService); + } if (type == typeof(DateTimeViewComponent)) { return new DateTimeViewComponent(mvcTopicRoutingService); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs new file mode 100644 index 00000000..abc4aa01 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs @@ -0,0 +1,64 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components; +using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Editor.Models.Metadata; +using Microsoft.AspNetCore.Mvc; +using System.Threading.Tasks; + +namespace Ignia.Topics.Editor.Mvc.Components { + + /*============================================================================================================================ + | CLASS: NUMBER (VIEW COMPONENT) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Delivers a view model for a numeric attribute type. + /// + public class NumberViewComponent: AttributeTypeViewComponentBase { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of a with necessary dependencies. + /// + /// A . + public NumberViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + + /*========================================================================================================================== + | METHOD: INVOKE (ASYNC) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Assembles the view model for the . + /// + public async Task InvokeAsync( + NumberAttributeTopicViewModel attribute, + string htmlFieldPrefix + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var viewModel = new AttributeViewModel(attribute); + + GetAttributeViewModel(viewModel); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(viewModel); + + } + + } // Class + +} // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs index cba33f6f..bbe288a8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs @@ -38,6 +38,7 @@ public EditorViewModelLookupService() : base() { Add(typeof(FilePathAttributeTopicViewModel)); Add(typeof(HtmlAttributeTopicViewModel)); Add(typeof(NestedTopicListAttributeTopicViewModel)); + Add(typeof(NumberAttributeTopicViewModel)); Add(typeof(RelationshipAttributeTopicViewModel)); Add(typeof(TextAttributeTopicViewModel)); Add(typeof(TokenizedTopicListAttributeTopicViewModel)); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Number/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Number/Default.cshtml new file mode 100644 index 00000000..afef331d --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Number/Default.cshtml @@ -0,0 +1,7 @@ +@model AttributeViewModel + +@{ + Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; +} + + \ No newline at end of file From f8d7bbeb7c90f08b5c787420d74f7f8ff4381f76 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 2 Nov 2019 00:05:05 -0700 Subject: [PATCH 451/637] Updated attribute loop to use `ContentType` instead of `EditorType` With the new strongly typed `AttributeDescriptor`s (e.g., `NumberAttributeTopicViewModel`), the `ContentType` can be used to determine the content type, instead of relying on the legacy `EditorType` (`Type`) attribute. This has a number of advantages. In addition to exposing strongly typed access to configuration variables in the form of attributes, it also means we're not needing to worry about backward compatibility with older naming conventions; the legacy site still operates off the `EditorType`, while the new site now operates exclusively off of the `ContentType`. --- .../Areas/Editor/Views/Editor/Edit.cshtml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 3867d23d..42dc875e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -27,18 +27,7 @@ } @await Component.InvokeAsync( - attribute.EditorType - .Replace("DateTimeSelector", "DateTime") - .Replace("FormField", "Text") - .Replace("File", "FileList") - .Replace("FileListPath", "FilePath") - .Replace("Relationships", "Relationship") - .Replace("TopicPointer", "TopicReference") - .Replace("TopicList", "NestedTopicList") - .Replace("TokenizedNestedTopicList", "TokenizedTopicList") - .Replace("TopicLookup", "TopicList") - .Replace("WYSIWYG", "Html") - .Replace(".ascx", ""), + attribute.ContentType.Replace("Attribute", ""), new { Attribute=attribute, HtmlFieldPrefix=$"Attributes[{index++}]" } ) From c75d69bb50b06fce764de1434852fb8221900fb7 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 2 Nov 2019 00:08:56 -0700 Subject: [PATCH 452/637] Alphabetized view component activations Just to make them easier to sort through --- .../SampleActivator.cs | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 31b5db3f..5a5452d5 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -143,9 +143,6 @@ public object Create(ViewComponentContext context) { if (type == typeof(BooleanViewComponent)) { return new BooleanViewComponent(mvcTopicRoutingService); } - if (type == typeof(NumberViewComponent)) { - return new NumberViewComponent(mvcTopicRoutingService); - } if (type == typeof(DateTimeViewComponent)) { return new DateTimeViewComponent(mvcTopicRoutingService); } @@ -158,30 +155,36 @@ public object Create(ViewComponentContext context) { if (type == typeof(FilePathViewComponent)) { return new FilePathViewComponent(mvcTopicRoutingService); } - if (type == typeof(TextViewComponent)) { - return new TextViewComponent(mvcTopicRoutingService); + if (type == typeof(HtmlViewComponent)) { + return new HtmlViewComponent(mvcTopicRoutingService); + } + if (type == typeof(LastModifiedViewComponent)) { + return new LastModifiedViewComponent(mvcTopicRoutingService); } if (type == typeof(LastModifiedByViewComponent)) { return new LastModifiedByViewComponent(mvcTopicRoutingService); } + if (type == typeof(NestedTopicListViewComponent)) { + return new NestedTopicListViewComponent(mvcTopicRoutingService); + } + if (type == typeof(NumberViewComponent)) { + return new NumberViewComponent(mvcTopicRoutingService); + } if (type == typeof(RelationshipViewComponent)) { return new RelationshipViewComponent(mvcTopicRoutingService); } + if (type == typeof(TextViewComponent)) { + return new TextViewComponent(mvcTopicRoutingService); + } if (type == typeof(TokenizedTopicListViewComponent)) { return new TokenizedTopicListViewComponent(mvcTopicRoutingService, _topicRepository); } - if (type == typeof(NestedTopicListViewComponent)) { - return new NestedTopicListViewComponent(mvcTopicRoutingService); - } if (type == typeof(TopicListViewComponent)) { return new TopicListViewComponent(mvcTopicRoutingService, _topicRepository); } if (type == typeof(TopicReferenceViewComponent)) { return new TopicReferenceViewComponent(mvcTopicRoutingService, _topicRepository); } - if (type == typeof(HtmlViewComponent)) { - return new HtmlViewComponent(mvcTopicRoutingService); - } else { throw new Exception($"Unknown view component {type.Name}"); } From def3b5e9b61d670b53c2abae4617c371497f05ab Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 2 Nov 2019 00:34:18 -0700 Subject: [PATCH 453/637] Fixed nullability check on `rootTopicKey` definition Needed a `?` after `RootTopic` so it could fall back to the default of `Root` if the `RootTopic` is undefined. --- .../Editor/Views/Editor/Components/Relationship/Default.cshtml | 2 +- .../Views/Editor/Components/TokenizedTopicList/Default.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml index e5205602..32002ba9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml @@ -2,7 +2,7 @@ @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; - var rootTopicKey = Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopic.UniqueKey ?? "Root"; + var rootTopicKey = Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopic?.UniqueKey ?? "Root"; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml index 978b21c9..918620d6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml @@ -2,7 +2,7 @@ @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; - var rootTopicKey = Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopic.UniqueKey ?? "Root"; + var rootTopicKey = Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopic?.UniqueKey ?? "Root"; }
    From e3c58378e51997e2deb54691511f92e45574c9f8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 12:54:35 -0800 Subject: [PATCH 454/637] Renamed `Infrastructure` components based on #2ee1948 In commit #2ee1948, we renamed the `*EditorAttribute`s to `*AttributeBindingModel`s for consistency. That said, the infrastructure components continued to use the legacy naming convention. As such, this renamed e`EditorAttributeModelBinding(Provider)` and `EditorAttributeLookupService` to `AttributeBindingModelBinder(Provider)` and `AttributeBindingModelLookupService` respectively. --- ...ModelBinder.cs => AttributeBindingModelBinder.cs} | 10 +++++----- ...der.cs => AttributeBindingModelBinderProvider.cs} | 10 +++++----- ...vice.cs => AttributeBindingModelLookupService.cs} | 12 ++++++------ .../EditorServiceCollectionExtensions.cs | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) rename Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/{EditorAttributeModelBinder.cs => AttributeBindingModelBinder.cs} (94%) rename Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/{EditorAttributeModelBinderProvider.cs => AttributeBindingModelBinderProvider.cs} (87%) rename Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/{EditorAttributeLookupService.cs => AttributeBindingModelLookupService.cs} (75%) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs similarity index 94% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs index 992e1334..56d946bd 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinder.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs @@ -11,22 +11,22 @@ namespace Ignia.Topics.Editor.Mvc.Infrastructure { /*============================================================================================================================ - | CLASS: EDITOR BINDING MODEL + | CLASS: ATTRIBUTE BINDING MODEL (BINDER) \---------------------------------------------------------------------------------------------------------------------------*/ /// /// Provides instructions to the MVC framework on how to bind postback data to a instance. /// This is necessary to retain strongly typed instances in , which otherwise /// exposes a collection of instances. /// - public class EditorAttributeModelBinder : IModelBinder { + public class AttributeBindingModelBinder : IModelBinder { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of a . + /// Initializes a new instance of a . /// - public EditorAttributeModelBinder() { } + public AttributeBindingModelBinder() { } /*========================================================================================================================== | PROPERTY: TYPE LOOKUP SERVICE @@ -34,7 +34,7 @@ public EditorAttributeModelBinder() { } /// /// Establishes static variables for the . /// - public static ITypeLookupService TypeLookupService { get; set; } = new EditorAttributeLookupService(); + public static ITypeLookupService TypeLookupService { get; set; } = new AttributeBindingModelLookupService(); /*========================================================================================================================== | OVERRIDE: BIND MODEL (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinderProvider.cs similarity index 87% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinderProvider.cs index 662327bc..1e500051 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeModelBinderProvider.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinderProvider.cs @@ -12,13 +12,13 @@ namespace Ignia.Topics.Editor.Mvc.Infrastructure { /*============================================================================================================================ - | CLASS: EDITOR ATTRIBUTE (MODEL BINDER PROVIDER) + | CLASS: ATTRIBUTE BINDING MODEL (BINDER PROVIDER) \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// Determines whether a binding request should use the —and, if so, returns a - /// reference to the type in response. + /// Determines whether a binding request should use the —and, if so, returns a + /// reference to the type in response. /// - public class EditorAttributeModelBinderProvider : IModelBinderProvider { + public class AttributeBindingModelBinderProvider : IModelBinderProvider { /*========================================================================================================================== | METHOD: GET BINDER @@ -41,7 +41,7 @@ public IModelBinder GetBinder(ModelBinderProviderContext context) { | RETURN BINDER (IF APPROPRIATE) \-----------------------------------------------------------------------------------------------------------------------*/ if (context.Metadata.ModelType == typeof(AttributeBindingModel)) { - return new BinderTypeModelBinder(typeof(EditorAttributeModelBinder)); + return new BinderTypeModelBinder(typeof(AttributeBindingModelBinder)); } return null; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs similarity index 75% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs index 714ca65d..2f3bf227 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorAttributeLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs @@ -10,21 +10,21 @@ namespace Ignia.Topics.Editor.Mvc.Infrastructure { /*============================================================================================================================ - | CLASS: TOPIC VIEW MODEL LOOKUP SERVICE + | CLASS: ATTRIBUTE BINDING MODEL (LOOKUP SERVICE) \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// The will search all assemblies for s that end with - /// "EditorAttribute". + /// The underlying will search all assemblies for s that end with + /// AttributeBindingModel. /// - public class EditorAttributeLookupService : DynamicTypeLookupService { + public class AttributeBindingModelLookupService : DynamicTypeLookupService { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Establishes a new instance of a . + /// Establishes a new instance of a . /// - public EditorAttributeLookupService() : base( + public AttributeBindingModelLookupService() : base( t => ( t.Name.EndsWith("AttributeBindingModel", StringComparison.InvariantCultureIgnoreCase) && typeof(AttributeBindingModel).IsAssignableFrom(t) diff --git a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs index 4dd74df8..f227b969 100644 --- a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs +++ b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs @@ -37,7 +37,7 @@ public static IMvcBuilder AddTopicEditor(this IMvcBuilder services) { | Register services \-----------------------------------------------------------------------------------------------------------------------*/ services.AddMvcOptions(options => - options.ModelBinderProviders.Insert(0, new EditorAttributeModelBinderProvider()) + options.ModelBinderProviders.Insert(0, new AttributeBindingModelBinderProvider()) ); /*------------------------------------------------------------------------------------------------------------------------ From 09cfe47a6558d56d3b636a62fb7f5bfce0d62495 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 13:00:42 -0800 Subject: [PATCH 455/637] Migrated to a `StaticTypeLookupService` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While the `DynamicTypeLookupService` is more convenient, it is known for introducing problems when looking up classes in external libraries, since those libraries aren't loaded in the scope of `Ignia.Topic.dll`—even if they're loaded in context of `Ignia.Topics.Editor.Mvc`. Until we find a way around this, we need to manually register these classes. --- .../AttributeBindingModelLookupService.cs | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs index 2f3bf227..c5f88626 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs @@ -13,25 +13,38 @@ namespace Ignia.Topics.Editor.Mvc.Infrastructure { | CLASS: ATTRIBUTE BINDING MODEL (LOOKUP SERVICE) \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// The underlying will search all assemblies for s that end with - /// AttributeBindingModel. + /// Provides a mapping between string and class names to be used when mapping to a or derived class. /// - public class AttributeBindingModelLookupService : DynamicTypeLookupService { + public class AttributeBindingModelLookupService : StaticTypeLookupService { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Establishes a new instance of a . + /// Estabblishes a new instance of the . /// - public AttributeBindingModelLookupService() : base( - t => ( - t.Name.EndsWith("AttributeBindingModel", StringComparison.InvariantCultureIgnoreCase) && - typeof(AttributeBindingModel).IsAssignableFrom(t) - ), - typeof(object) - ) - { } + /// A new instance of the . + public AttributeBindingModelLookupService() : base() { + + /*------------------------------------------------------------------------------------------------------------------------ + | Add Editor-specific view models + \-----------------------------------------------------------------------------------------------------------------------*/ + Add(typeof(BooleanAttributeBindingModel)); + Add(typeof(DateTimeAttributeBindingModel)); + Add(typeof(FileListAttributeBindingModel)); + Add(typeof(FilePathAttributeBindingModel)); + Add(typeof(HtmlAttributeBindingModel)); + Add(typeof(LastModifiedByAttributeBindingModel)); + Add(typeof(NestedTopicListAttributeBindingModel)); + Add(typeof(NumberAttributeBindingModel)); + Add(typeof(RelationshipAttributeBindingModel)); + Add(typeof(TextAttributeBindingModel)); + Add(typeof(TokenizedTopicListAttributeBindingModel)); + Add(typeof(TopicListAttributeBindingModel)); + Add(typeof(TopicReferenceAttributeBindingModel)); + + } } //Class } //Namespace \ No newline at end of file From b33cdfd4ac6ad81ddfc43712edc8d3095eb8ed2b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 13:04:00 -0800 Subject: [PATCH 456/637] Added missing `NumberAttributeBindingModel` This should have been committed with #aef7d3b, but was a missed dependency. It doesn't prevent the `NumberViewComponent` from displaying, but does prevent it from binding properly. --- .../NumberAttributeBindingModel.cs | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/Components/BindingModels/NumberAttributeBindingModel.cs diff --git a/Ignia.Topics.Editor.Models/Components/BindingModels/NumberAttributeBindingModel.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/NumberAttributeBindingModel.cs new file mode 100644 index 00000000..eb00567f --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/NumberAttributeBindingModel.cs @@ -0,0 +1,36 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +namespace Ignia.Topics.Editor.Models.Components.BindingModels { + + /*============================================================================================================================ + | CLASS: NUMBER ATTRIBUTE (BINDING MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a text attribute in the Topic Editor. + /// + public class NumberAttributeBindingModel : AttributeBindingModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public NumberAttributeBindingModel() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } // Class + +} // Namespace From 9b5045c4c90bfbffabfa10df565c46a5baf44a2c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 13:48:47 -0800 Subject: [PATCH 457/637] Updated source of `EditorType` from `Type` attribute to `ContentType` Based on #bf12b59, the attribute's editor type is now infered by the strongly typed derivative of the `AttributeDescriptor`, as indicated by the `ContentType`, instead of the legacy `Type` attribute, which previously mapped to an **ASP.NET WebForms** user control name (e.g., `FormField.ascx`). In the future, we may want to revisit the `EditorType` name, based on recent changes to our naming conventions, but that will require further consideration. For now, at least, it's been removed from `AttributeDescriptorTopicViewModel` since that value (which maps to the legacy `Type` attribute) is no longer used. --- Ignia.Topics.Editor.Models/AttributeViewModel.cs | 10 +++------- .../Metadata/AttributeDescriptorTopicViewModel.cs | 8 -------- .../Infrastructure/AttributeBindingModelBinder.cs | 2 +- .../Editor/Components/NestedTopicList/Default.cshtml | 4 ++-- .../Editor/Components/TopicReference/Default.cshtml | 2 +- .../Areas/Editor/Views/Editor/Edit.cshtml | 2 +- .../Areas/Editor/Views/Shared/_Layout.cshtml | 4 ++-- 7 files changed, 10 insertions(+), 22 deletions(-) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index 22d757f1..43cef1f1 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -63,14 +63,10 @@ public AttributeViewModel( | EDITOR TYPE \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Provides the associated attribute type, as defined on the instance. + /// Provides the associated attribute type, as implied by the of the . /// - /// - /// While this value can be retrieved directly from the property, relaying it through - /// the provides cleaner output in the forms by allowing the generated id and - /// name attributes to map to the target interface. - /// - public string EditorType => AttributeDescriptor.EditorType.Replace(".ascx", ""); + public string EditorType => AttributeDescriptor.ContentType; /*========================================================================================================================== | TOPID ID diff --git a/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs index 0ab2845b..075437ab 100644 --- a/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs @@ -42,14 +42,6 @@ public AttributeDescriptorTopicViewModel() {} /// public ModelType ModelType { get; set; } - /*========================================================================================================================== - | PROPERTY: EDITOR TYPE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides a reference to the view to use to reprensent this attribute in the topic editor. - /// - public string EditorType { get; set; } - /*========================================================================================================================== | PROPERTY: DISPLAY GROUP \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs index 56d946bd..7437de57 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs @@ -68,7 +68,7 @@ public Task BindModelAsync(ModelBindingContext bindingContext) { /*------------------------------------------------------------------------------------------------------------------------ | ESTABLISH MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - var type = TypeLookupService.Lookup($"{editorType}AttributeBindingModel"); + var type = TypeLookupService.Lookup($"{editorType}BindingModel"); var model = (AttributeBindingModel)Activator.CreateInstance(type); model.Key = key; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index 530fd9dc..15cce318 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -87,12 +87,12 @@ @if (!Model.IsNew) { var attributeDescriptor = new TopicListAttributeTopicViewModel() { Key = Model.Key, - EditorType = "TopicList.ascx", + ContentType = "TopicListAttribute", RootTopicKey = "Configuration:ContentTypes", AttributeKey = "ContentType", AttributeValue = "ContentType", AllowedKeys = Model.AttributeDescriptor.ContentTypes, - DefaultLabel = "Add child topic…" + DefaultLabel = "Add child topic…" }; From 358fb273f5d88dd8a04e0d9620dff2dc14ab782d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 13:50:36 -0800 Subject: [PATCH 458/637] Introduced initial version of `LastModifiedViewComponent` The `LastModifiedViewComponent` will set the new `Value` based on the current date, while also exposing a custom `CurrentValue` based on the previously set value, if available. If a previously set value is not available, then the new `Value` will be used. The `CurrentValue` is rendered in the interface, while the new `Value` is bound to to a hidden input box, which will in turn be bound to the `LastModifiedBindingModel`. --- .../LastModifiedAttributeViewModel.cs | 46 +++++++++++++++++++ .../LastModifiedAttributeTopicViewModel.cs | 23 ++++++++++ .../Components/LastModifiedViewComponent.cs | 41 ++++++++++++----- .../AttributeBindingModelLookupService.cs | 1 + .../EditorViewModelLookupService.cs | 1 + .../Components/LastModified/Default.cshtml | 6 ++- 6 files changed, 104 insertions(+), 14 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedAttributeViewModel.cs create mode 100644 Ignia.Topics.Editor.Models/Metadata/LastModifiedAttributeTopicViewModel.cs diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedAttributeViewModel.cs new file mode 100644 index 00000000..388f4dac --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedAttributeViewModel.cs @@ -0,0 +1,46 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models.Metadata; +using System; + +namespace Ignia.Topics.Editor.Models.Components.ViewModels { + + /*============================================================================================================================ + | CLASS: LAST MODIFIED ATTRIBUTE (VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents the data model for the . Additionally provides access to the + /// underlying as well as the instance values for that attribute from the + /// currently selected . + /// + public class LastModifiedAttributeViewModel: AttributeViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public LastModifiedAttributeViewModel( + LastModifiedAttributeTopicViewModel attributeDescriptor, + string value = null, + string inheritedValue = null + ): base( + attributeDescriptor, + value, + inheritedValue + ) {} + + /*========================================================================================================================== + | CURRENT VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the current value. Will be set to the newly generated value if unavailable. + /// + public string CurrentValue { get; set; } + + } // Class +} // Namespace diff --git a/Ignia.Topics.Editor.Models/Metadata/LastModifiedAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/LastModifiedAttributeTopicViewModel.cs new file mode 100644 index 00000000..56cca30d --- /dev/null +++ b/Ignia.Topics.Editor.Models/Metadata/LastModifiedAttributeTopicViewModel.cs @@ -0,0 +1,23 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Metadata { + + /*============================================================================================================================ + | CLASS: LAST MODIFIED ATTRIBUTE (TOPIC VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides access to attributes associated with the . + /// + public class LastModifiedAttributeTopicViewModel: AttributeDescriptorTopicViewModel { + + + } //Class +} //Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index a9950ada..8585cead 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -6,6 +6,7 @@ using System; using System.Threading.Tasks; using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.ViewModels; using Ignia.Topics.Editor.Models.Metadata; using Microsoft.AspNetCore.Mvc; @@ -35,23 +36,39 @@ public LastModifiedViewComponent(ITopicRoutingService topicRoutingService) : bas /// Assembles the view model for the . /// public async Task InvokeAsync( - AttributeDescriptorTopicViewModel attribute, + LastModifiedAttributeTopicViewModel attribute, string htmlFieldPrefix ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - var viewModel = new AttributeViewModel(attribute); - GetAttributeViewModel(viewModel); - if (viewModel.Value == null) { - if (CurrentTopic.LastModified != null && CurrentTopic.LastModified != DateTime.MinValue) { - viewModel.Value = CurrentTopic.LastModified.ToString(); - } - else { - viewModel.Value = DateTime.Now.ToString(); - } + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var model = new LastModifiedAttributeViewModel(attribute); + + GetAttributeViewModel(model); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set model values + \-----------------------------------------------------------------------------------------------------------------------*/ + model.Value = DateTime.Now.ToString(); + if (CurrentTopic.LastModified != null && CurrentTopic.LastModified != DateTime.MinValue) { + model.CurrentValue = CurrentTopic.LastModified.ToString(); + } + else { + model.CurrentValue = model.Value; } - return View(viewModel); - } + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(model); + + } } // Class } // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs index c5f88626..e23ae7f1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs @@ -35,6 +35,7 @@ public AttributeBindingModelLookupService() : base() { Add(typeof(FileListAttributeBindingModel)); Add(typeof(FilePathAttributeBindingModel)); Add(typeof(HtmlAttributeBindingModel)); + Add(typeof(LastModifiedAttributeBindingModel)); Add(typeof(LastModifiedByAttributeBindingModel)); Add(typeof(NestedTopicListAttributeBindingModel)); Add(typeof(NumberAttributeBindingModel)); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs index bbe288a8..bc966eee 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs @@ -37,6 +37,7 @@ public EditorViewModelLookupService() : base() { Add(typeof(FileListAttributeTopicViewModel)); Add(typeof(FilePathAttributeTopicViewModel)); Add(typeof(HtmlAttributeTopicViewModel)); + Add(typeof(LastModifiedAttributeTopicViewModel)); Add(typeof(NestedTopicListAttributeTopicViewModel)); Add(typeof(NumberAttributeTopicViewModel)); Add(typeof(RelationshipAttributeTopicViewModel)); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/LastModified/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/LastModified/Default.cshtml index 3737b23d..6ea04b9d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/LastModified/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/LastModified/Default.cshtml @@ -1,9 +1,11 @@ -@model AttributeViewModel +@model LastModifiedAttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; }
    - @Model.Value + @Model.CurrentValue
    + +@Html.HiddenFor(m => m.Value, new { @value = DateTime.Now.ToString() }) \ No newline at end of file From a64027e9b8604b1a75d3fd1431d2a36a3688d675 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 14:12:49 -0800 Subject: [PATCH 459/637] Introduced initial version of `LastModifiedByViewComponent` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `LastModifiedByViewComponent` will set the new `Value` based on the current date, while also exposing a custom `CurrentValue` based on the previously set value, if available. If a previously set value is not available, then the new `Value` will be used. The `CurrentValue` is rendered in the interface, while the new `Value` is bound to to a hidden input box, which will in turn be bound to the `LastModifiedByBindingModel`. The default value is the logged in user—or `System` if that can't be identified. --- .../LastModifiedByAttributeViewModel.cs | 46 +++++++++++++++++++ .../LastModifiedByAttributeTopicViewModel.cs | 23 ++++++++++ .../Components/LastModifiedByViewComponent.cs | 46 ++++++++++++++++++- .../EditorViewModelLookupService.cs | 1 + .../Components/LastModifiedBy/Default.cshtml | 8 ++-- 5 files changed, 120 insertions(+), 4 deletions(-) create mode 100644 Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedByAttributeViewModel.cs create mode 100644 Ignia.Topics.Editor.Models/Metadata/LastModifiedByAttributeTopicViewModel.cs diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedByAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedByAttributeViewModel.cs new file mode 100644 index 00000000..c46d7f27 --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedByAttributeViewModel.cs @@ -0,0 +1,46 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models.Metadata; +using System; + +namespace Ignia.Topics.Editor.Models.Components.ViewModels { + + /*============================================================================================================================ + | CLASS: LAST MODIFIED BY ATTRIBUTE (VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents the data model for the . Additionally provides access to the + /// underlying as well as the instance values for that attribute from + /// the currently selected . + /// + public class LastModifiedByAttributeViewModel: AttributeViewModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public LastModifiedByAttributeViewModel( + LastModifiedByAttributeTopicViewModel attributeDescriptor, + string value = null, + string inheritedValue = null + ): base( + attributeDescriptor, + value, + inheritedValue + ) {} + + /*========================================================================================================================== + | CURRENT VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the current value. Will be set to the newly generated value if unavailable. + /// + public string CurrentValue { get; set; } + + } // Class +} // Namespace diff --git a/Ignia.Topics.Editor.Models/Metadata/LastModifiedByAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/LastModifiedByAttributeTopicViewModel.cs new file mode 100644 index 00000000..a5acc11e --- /dev/null +++ b/Ignia.Topics.Editor.Models/Metadata/LastModifiedByAttributeTopicViewModel.cs @@ -0,0 +1,23 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Metadata { + + /*============================================================================================================================ + | CLASS: LAST MODIFIED BY ATTRIBUTE (TOPIC VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides access to attributes associated with the . + /// + public class LastModifiedByAttributeTopicViewModel: AttributeDescriptorTopicViewModel { + + + } //Class +} //Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs index b1f1b3fb..e4cfd615 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs @@ -4,6 +4,13 @@ | Project Topics Library \=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Editor.Models.Metadata; +using Microsoft.AspNetCore.Mvc; +using System; +using System.Threading.Tasks; + namespace Ignia.Topics.Editor.Mvc.Components { /*============================================================================================================================ @@ -12,7 +19,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a last modified by attribute type. /// - public class LastModifiedByViewComponent : DefaultAttributeTypeViewComponent { + public class LastModifiedByViewComponent : AttributeTypeViewComponentBase { /*========================================================================================================================== | CONSTRUCTOR @@ -22,5 +29,42 @@ public class LastModifiedByViewComponent : DefaultAttributeTypeViewComponent { /// public LastModifiedByViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + + /*========================================================================================================================== + | METHOD: INVOKE (ASYNC) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Assembles the view model for the . + /// + public async Task InvokeAsync( + LastModifiedByAttributeTopicViewModel attribute, + string htmlFieldPrefix + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var model = new LastModifiedByAttributeViewModel(attribute); + + GetAttributeViewModel(model); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set model values + \-----------------------------------------------------------------------------------------------------------------------*/ + model.Value = HttpContext.User.Identity.Name ?? "System"; + model.CurrentValue = CurrentTopic.Attributes.GetValue("LastModifiedBy", model.Value); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(model); + + } + } // Class } // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs index bc966eee..9ecf7d21 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs @@ -38,6 +38,7 @@ public EditorViewModelLookupService() : base() { Add(typeof(FilePathAttributeTopicViewModel)); Add(typeof(HtmlAttributeTopicViewModel)); Add(typeof(LastModifiedAttributeTopicViewModel)); + Add(typeof(LastModifiedByAttributeTopicViewModel)); Add(typeof(NestedTopicListAttributeTopicViewModel)); Add(typeof(NumberAttributeTopicViewModel)); Add(typeof(RelationshipAttributeTopicViewModel)); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/LastModifiedBy/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/LastModifiedBy/Default.cshtml index c6947989..e2589283 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/LastModifiedBy/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/LastModifiedBy/Default.cshtml @@ -1,9 +1,11 @@ -@model AttributeViewModel +@model LastModifiedByAttributeViewModel @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -@Model.Value +
    + @Model.CurrentValue +
    -@Context.User.Identity.Name \ No newline at end of file +@Html.HiddenFor(m => m.Value, new { @value = Context.User.Identity.Name }) \ No newline at end of file From a7582e955f33f56f1fc447d5ad2a8d0e071791df Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 14:13:09 -0800 Subject: [PATCH 460/637] Corrected naming convention of `HtmlAttributeBindingModel` The convention is `{Attribute}BindingModel`, and the attribute name for the `HtmlViewComponent` is `HtmlAttribute`, not `HtmlEditorAttribute`. Oops. --- .../Components/BindingModels/HtmlAttributeBindingModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Components/BindingModels/HtmlAttributeBindingModel.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/HtmlAttributeBindingModel.cs index d3b142d2..294530f9 100644 --- a/Ignia.Topics.Editor.Models/Components/BindingModels/HtmlAttributeBindingModel.cs +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/HtmlAttributeBindingModel.cs @@ -12,15 +12,15 @@ namespace Ignia.Topics.Editor.Models.Components.BindingModels { /// /// Represents an instance of a HTML attribute in the Topic Editor. /// - public class HtmlEditorAttributeBindingModel : AttributeBindingModel { + public class HtmlAttributeBindingModel : AttributeBindingModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public HtmlEditorAttributeBindingModel() : base() { + public HtmlAttributeBindingModel() : base() { } /*========================================================================================================================== From 65663fbf90269d7636f70856e7af52cf5bfa9e90 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 14:50:15 -0800 Subject: [PATCH 461/637] Introduced initial version of `TextAreaViewComponent` Includes ability to configure `Rows`, `Cols` or `MaxLength` via the `Rows`, `Columns`, and `MaximumLength` attributes --- .../TextAreaAttributeBindingModel.cs | 36 +++++++++ .../TextAreaAttributeTopicViewModel.cs | 60 +++++++++++++++ .../SampleActivator.cs | 3 + .../Components/TextAreaViewComponent.cs | 73 +++++++++++++++++++ .../AttributeBindingModelLookupService.cs | 1 + .../EditorViewModelLookupService.cs | 1 + .../Editor/Components/TextArea/Default.cshtml | 13 ++++ 7 files changed, 187 insertions(+) create mode 100644 Ignia.Topics.Editor.Models/Components/BindingModels/TextAreaAttributeBindingModel.cs create mode 100644 Ignia.Topics.Editor.Models/Metadata/TextAreaAttributeTopicViewModel.cs create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TextArea/Default.cshtml diff --git a/Ignia.Topics.Editor.Models/Components/BindingModels/TextAreaAttributeBindingModel.cs b/Ignia.Topics.Editor.Models/Components/BindingModels/TextAreaAttributeBindingModel.cs new file mode 100644 index 00000000..d57225ed --- /dev/null +++ b/Ignia.Topics.Editor.Models/Components/BindingModels/TextAreaAttributeBindingModel.cs @@ -0,0 +1,36 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +namespace Ignia.Topics.Editor.Models.Components.BindingModels { + + /*============================================================================================================================ + | CLASS: TEXT AREA ATTRIBUTE (BINDING MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Represents an instance of a text attribute in the Topic Editor. + /// + public class TextAreaAttributeBindingModel : AttributeBindingModel { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public TextAreaAttributeBindingModel() : base() { + } + + /*========================================================================================================================== + | GET VALUE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Retrieves the value associated with the attribute. + /// + public override string GetValue() => Value; + + } // Class + +} // Namespace diff --git a/Ignia.Topics.Editor.Models/Metadata/TextAreaAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TextAreaAttributeTopicViewModel.cs new file mode 100644 index 00000000..9c3a7ffb --- /dev/null +++ b/Ignia.Topics.Editor.Models/Metadata/TextAreaAttributeTopicViewModel.cs @@ -0,0 +1,60 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ + +#nullable enable + +namespace Ignia.Topics.Editor.Models.Metadata { + + /*============================================================================================================================ + | CLASS: TEXT AREA ATTRIBUTE (TOPIC VIEW MODEL) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides access to attributes associated with the . + /// + public class TextAreaAttributeTopicViewModel: AttributeDescriptorTopicViewModel { + + /*========================================================================================================================== + | COLUMNS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the number of columns (width) that the should take up. Defaults to + /// 70. + /// + public int? Columns { get; set; } + + /*========================================================================================================================== + | ROWS + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the number of rows (height) that the should take up. Defaults to + /// 30. + /// + public int? Rows { get; set; } + + /*========================================================================================================================== + | HEIGHT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the number of pixels that the should take up. Defaults to x 20. + /// + /// + /// If set, this value overrides . + /// + public int? Height { get; set; } + + /*========================================================================================================================== + | MAXIMUM LENGTH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the maximimum length of the field. + /// + public int? MaximumLength { get; set; } + + } //Class +} //Namespace + +#nullable restore \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 5a5452d5..16d83eb4 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -176,6 +176,9 @@ public object Create(ViewComponentContext context) { if (type == typeof(TextViewComponent)) { return new TextViewComponent(mvcTopicRoutingService); } + if (type == typeof(TextAreaViewComponent)) { + return new TextAreaViewComponent(mvcTopicRoutingService); + } if (type == typeof(TokenizedTopicListViewComponent)) { return new TokenizedTopicListViewComponent(mvcTopicRoutingService, _topicRepository); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs new file mode 100644 index 00000000..3520e627 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs @@ -0,0 +1,73 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using Ignia.Topics.Editor.Models; +using Ignia.Topics.Editor.Models.Components; +using Ignia.Topics.Editor.Models.Components.ViewModels; +using Ignia.Topics.Editor.Models.Metadata; +using Microsoft.AspNetCore.Mvc; +using System; +using System.Threading.Tasks; + +namespace Ignia.Topics.Editor.Mvc.Components { + + /*============================================================================================================================ + | CLASS: NUMBER (VIEW COMPONENT) + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Delivers a view model for a text area attribute type. + /// + public class TextAreaViewComponent: AttributeTypeViewComponentBase { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of a with necessary dependencies. + /// + /// A . + public TextAreaViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + + /*========================================================================================================================== + | METHOD: INVOKE (ASYNC) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Assembles the view model for the . + /// + public async Task InvokeAsync( + TextAreaAttributeTopicViewModel attribute, + string htmlFieldPrefix + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Set HTML prefix + \-----------------------------------------------------------------------------------------------------------------------*/ + ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish view model + \-----------------------------------------------------------------------------------------------------------------------*/ + var viewModel = new AttributeViewModel(attribute); + + GetAttributeViewModel(viewModel); + + /*------------------------------------------------------------------------------------------------------------------------ + | Set configuration values + \-----------------------------------------------------------------------------------------------------------------------*/ + attribute.Columns ??= attribute.GetIntegerConfigurationValue( "Columns", 70); + attribute.Rows ??= attribute.GetIntegerConfigurationValue( "Rows", 5); + attribute.MaximumLength ??= attribute.GetIntegerConfigurationValue( "MaximumLength", Int32.MaxValue); + attribute.CssClass ??= attribute.GetConfigurationValue( "CssClass", "FormField Field"); + + /*------------------------------------------------------------------------------------------------------------------------ + | Return view with view model + \-----------------------------------------------------------------------------------------------------------------------*/ + return View(viewModel); + + } + + } // Class + +} // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs index e23ae7f1..cf2aa885 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelLookupService.cs @@ -41,6 +41,7 @@ public AttributeBindingModelLookupService() : base() { Add(typeof(NumberAttributeBindingModel)); Add(typeof(RelationshipAttributeBindingModel)); Add(typeof(TextAttributeBindingModel)); + Add(typeof(TextAreaAttributeBindingModel)); Add(typeof(TokenizedTopicListAttributeBindingModel)); Add(typeof(TopicListAttributeBindingModel)); Add(typeof(TopicReferenceAttributeBindingModel)); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs index 9ecf7d21..61ebecb9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/EditorViewModelLookupService.cs @@ -43,6 +43,7 @@ public EditorViewModelLookupService() : base() { Add(typeof(NumberAttributeTopicViewModel)); Add(typeof(RelationshipAttributeTopicViewModel)); Add(typeof(TextAttributeTopicViewModel)); + Add(typeof(TextAreaAttributeTopicViewModel)); Add(typeof(TokenizedTopicListAttributeTopicViewModel)); Add(typeof(TopicListAttributeTopicViewModel)); Add(typeof(TopicReferenceAttributeTopicViewModel)); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TextArea/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TextArea/Default.cshtml new file mode 100644 index 00000000..f1bdd409 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TextArea/Default.cshtml @@ -0,0 +1,13 @@ +@model AttributeViewModel + +@{ + Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; +} + + \ No newline at end of file From ba47f3af89fed046c7ab1ea200e67b380bbb7e87 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 3 Nov 2019 14:57:01 -0800 Subject: [PATCH 462/637] Refactored `HtmlAttributeTopicViewModel` to derive from `TextAreaAttributeTopicViewModel` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `TextAreaAttributeTopicViewModel` contains the same basic attributes as `HtmlAttributeTopicViewModel`, so it doesn't make sense to repeat these. Instead, we've just modified `HtmlAttributeTopicViewModel` to derive from `TextAreaAttributeTopicViewModel`. The only additional feature is `Height`, which the (current) **CKEditor** component uses in place of `Rows`. On that note, while we were in there, we also corrected a bug with how `Rows` was being defined—acknowledging this value will get overwrriten by **CKEditor**. --- .../Metadata/HtmlAttributeTopicViewModel.cs | 20 +------------------ .../Editor/Components/HTML/Default.cshtml | 2 +- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/HtmlAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/HtmlAttributeTopicViewModel.cs index 16f57f71..1fd7cf8c 100644 --- a/Ignia.Topics.Editor.Models/Metadata/HtmlAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/HtmlAttributeTopicViewModel.cs @@ -14,25 +14,7 @@ namespace Ignia.Topics.Editor.Models.Metadata { /// /// Provides access to attributes associated with the . /// - public class HtmlAttributeTopicViewModel: AttributeDescriptorTopicViewModel { - - /*========================================================================================================================== - | COLUMNS - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets the number of columns (width) that the should take up. Defaults to - /// 70. - /// - public int? Columns { get; set; } - - /*========================================================================================================================== - | ROWS - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets the number of rows (height) that the should take up. Defaults to - /// 30. - /// - public int? Rows { get; set; } + public class HtmlAttributeTopicViewModel: TextAreaAttributeTopicViewModel { /*========================================================================================================================== | HEIGHT diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml index 788050c0..74d13387 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml @@ -17,7 +17,7 @@ + } + + } else { From bff75c47f73446f88d53bdf70f3577d79544a528 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 4 Nov 2019 18:03:09 -0800 Subject: [PATCH 482/637] Assigned more descriptive identifier for navigation's `TopicListViewComponent` The `TopicListViewComponent` in the navigation is responsible for creating new topics of a specific `ContentTypeDescriptor`. Renamed it to `CreateNewTopic` so that its purpose and context is clearer in the form field names and identifiers. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index fa3249f5..13da6b2f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -76,7 +76,7 @@ Date: Tue, 5 Nov 2019 12:55:10 -0800 Subject: [PATCH 483/637] Add `Attributes`, `InheritedAttributes` to `EditingTopicViewModel` The `Attributes` and `InheritedAttributes` collections provide basic dictionary access to, respectively, a) values explicitly assigned to an attribute on the current topic, and b) values inferred from either parent topics or, in the case of `IsNew`, a `DerivedTopic`. The assignment of these values in the `EditorController` reflects the business logic of the editor; e.g., the values in `InheritedAttributes` are always `null` if the attribute `IsRequired` (since there is no fallback value for a required field); default values are assigned to `IsNew`, assuming they aren't a `DerivedTopic`; &c. This will, in a future commit, allow us to replace the dependency on `CurrentTopic` and, thus, `ITopicRoutingService`, in most of the `ViewComponent`s. --- .../EditingTopicViewModel.cs | 18 +++++++- .../Editor/Controllers/EditorController.cs | 46 ++++++++++++++----- 2 files changed, 52 insertions(+), 12 deletions(-) diff --git a/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs b/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs index 33d95c0c..8602bf1e 100644 --- a/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs @@ -43,6 +43,22 @@ public EditingTopicViewModel() : base() {} /// public List VersionHistory { get; set; } = new List(); + /*========================================================================================================================== + | PROPERTY: ATTRIBUTES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// A collection of attribute values, as assigned directly to the topic. Does not include inherited or derived values. + /// + public Dictionary Attributes { get; set; } = new Dictionary(); + + /*========================================================================================================================== + | PROPERTY: INHERITED ATTRIBUTES + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// A collection of inherited attribute values, as inferred from derived or upstream topics. + /// + public Dictionary InheritedAttributes { get; set; } = new Dictionary(); + } // Class -} // Namespace +} // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 4ec3fb00..e7bb3173 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -120,27 +120,51 @@ public async Task Edit(bool isNew = false, string contentType = n \-----------------------------------------------------------------------------------------------------------------------*/ var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); var contentTypeViewModel = await _topicMappingService.MapAsync(contentTypeDescriptor); + var parentTopic = isNew ? CurrentTopic : CurrentTopic.Parent; /*------------------------------------------------------------------------------------------------------------------------ | CONSTRUCT VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ EditorViewModel editorViewModel; + EditingTopicViewModel topicViewModel; if (isNew) { - editorViewModel = new EditorViewModel( - new EditingTopicViewModel() { ContentType = contentType }, - contentTypeViewModel, - isModal - ); + topicViewModel = new EditingTopicViewModel() { ContentType = contentType }; } else { - editorViewModel = new EditorViewModel( - await _topicMappingService.MapAsync(CurrentTopic), - contentTypeViewModel, - isModal - ); - editorViewModel.Topic.VersionHistory = CurrentTopic.VersionHistory; + topicViewModel = await _topicMappingService.MapAsync(CurrentTopic); } + /*------------------------------------------------------------------------------------------------------------------------ + | ASSIGN ATTRIBUTES + \-----------------------------------------------------------------------------------------------------------------------*/ + //The attribute collections follow special conventions that can't be automatically mapped from the topic + foreach (var attribute in contentTypeDescriptor.AttributeDescriptors) { + + //For existing topics, get locally assigned attributes + if (!isNew) { + topicViewModel.Attributes.Add(attribute.Key, CurrentTopic.Attributes.GetValue(attribute.Key, null, false, false)); + } + + //For new topics that aren't derived from another topic, assign attribute default, if available + else if (CurrentTopic.DerivedTopic == null && !attribute.IsRequired && attribute.DefaultValue != null) { + topicViewModel.Attributes.Add(attribute.Key, attribute.DefaultValue); + } + + //Otherwise, assign a null value; that way, all attributes are guaranteed to be accounted for + else { + topicViewModel.Attributes.Add(attribute.Key, null); + } + + //Set inherited attribute value, if available + topicViewModel.InheritedAttributes.Add(attribute.Key, parentTopic.Attributes.GetValue(attribute.Key, true)); + + } + + /*------------------------------------------------------------------------------------------------------------------------ + | ESTABLISH VIEW MODEL + \-----------------------------------------------------------------------------------------------------------------------*/ + editorViewModel = new EditorViewModel(topicViewModel, contentTypeViewModel, isModal); + /*------------------------------------------------------------------------------------------------------------------------ | RETURN VIEW \-----------------------------------------------------------------------------------------------------------------------*/ From 787f89ff29381da9b41b3ee5afc0396f309c44cc Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 13:08:37 -0800 Subject: [PATCH 484/637] Introduced `EditingTopicViewModel` as dependency on view components, models The `AttributeViewModel` now has a `CurrentTopic` property which is set via the constructor. This requires updating of the constructors of all derived types, including `AttributeViewModel`, and any attribute type specific versions, such as `TopicListAttributeViewModel`. Further, this also necessitates that the `EditingTopicViewModel` be relayed to all of the view component classes (such as `TopicListViewComponent`) since they are responsible for creating the `AttributeViewModel` (and derivatives). This, in turn, requires updating the `Edit.cshtml` as well as any views that manually create view components, such as `_Layout.cshtml` (for the `TopicListViewComponent`) and `TopicReference/Default.cshtml` (for the `TokenizedTopicListViewComponent`). Whew! --- Ignia.Topics.Editor.Models/AttributeViewModel.cs | 10 ++++++++++ Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs | 2 ++ .../Components/ViewModels/BooleanAttributeViewModel.cs | 2 ++ .../ViewModels/DateTimeAttributeViewModel.cs | 2 ++ .../ViewModels/FilePathAttributeViewModel.cs | 2 ++ .../ViewModels/LastModifiedAttributeViewModel.cs | 2 ++ .../ViewModels/LastModifiedByAttributeViewModel.cs | 2 ++ .../ViewModels/NestedTopicListAttributeViewModel.cs | 2 ++ .../ViewModels/TokenizedTopicListAttributeViewModel.cs | 2 ++ .../Components/AttributeTypeViewComponentBase.cs | 9 ++------- .../Areas/Editor/Components/BooleanViewComponent.cs | 3 ++- .../Areas/Editor/Components/DateTimeViewComponent.cs | 3 ++- .../Components/DefaultAttributeTypeViewComponent.cs | 3 ++- .../Areas/Editor/Components/FileListViewComponent.cs | 3 ++- .../Areas/Editor/Components/FilePathViewComponent.cs | 5 +++-- .../Areas/Editor/Components/HtmlViewComponent.cs | 3 ++- .../Editor/Components/LastModifiedByViewComponent.cs | 3 ++- .../Editor/Components/LastModifiedViewComponent.cs | 3 ++- .../Editor/Components/NestedTopicListViewComponent.cs | 7 ++++--- .../Areas/Editor/Components/NumberViewComponent.cs | 3 ++- .../Editor/Components/RelationshipViewComponent.cs | 3 ++- .../Areas/Editor/Components/TextAreaViewComponent.cs | 3 ++- .../Areas/Editor/Components/TextViewComponent.cs | 3 ++- .../Components/TokenizedTopicListViewComponent.cs | 3 ++- .../Areas/Editor/Components/TopicListViewComponent.cs | 10 ++++------ .../Editor/Components/TopicReferenceViewComponent.cs | 4 ++-- .../Areas/Editor/Models/FileListAttributeViewModel.cs | 2 ++ .../Areas/Editor/Models/TopicListAttributeViewModel.cs | 2 ++ .../Editor/Components/NestedTopicList/Default.cshtml | 1 + .../Editor/Components/TopicReference/Default.cshtml | 1 + .../Areas/Editor/Views/Editor/Edit.cshtml | 2 +- .../Areas/Editor/Views/Shared/_Layout.cshtml | 1 + 32 files changed, 73 insertions(+), 33 deletions(-) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index 43cef1f1..ea1b0768 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -24,6 +24,7 @@ public class AttributeViewModel { /// Initializes a new instance of the class. /// public AttributeViewModel( + EditingTopicViewModel currentTopic, AttributeDescriptorTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null @@ -32,6 +33,7 @@ public AttributeViewModel( /*------------------------------------------------------------------------------------------------------------------------ | Set properties \-----------------------------------------------------------------------------------------------------------------------*/ + CurrentTopic = currentTopic; AttributeDescriptor = attributeDescriptor; Value = value; InheritedValue = inheritedValue; @@ -46,6 +48,14 @@ public AttributeViewModel( /// public AttributeDescriptorTopicViewModel AttributeDescriptor { get; } + /*========================================================================================================================== + | PROPERTY: CURRENT TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the that the user is currently editing. + /// + public EditingTopicViewModel CurrentTopic { get; } + /*========================================================================================================================== | KEY \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs index d55b4a50..41356465 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs @@ -24,10 +24,12 @@ public class AttributeViewModel: AttributeViewModel where T: AttributeDescrip /// Initializes a new instance of the class. /// public AttributeViewModel( + EditingTopicViewModel currentTopic, T attributeDescriptor, string value = null, string inheritedValue = null ): base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs index f5ef58a1..2378f6b2 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs @@ -31,10 +31,12 @@ public class BooleanAttributeViewModel: AttributeViewModel class. /// public BooleanAttributeViewModel( + EditingTopicViewModel currentTopic, BooleanAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ): base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs index 1cfb2651..dba76b1c 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs @@ -32,10 +32,12 @@ public class DateTimeAttributeViewModel: AttributeViewModel class. /// public DateTimeAttributeViewModel( + EditingTopicViewModel currentTopic, DateTimeAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ): base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/FilePathAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/FilePathAttributeViewModel.cs index f9bc428d..68d63df2 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/FilePathAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/FilePathAttributeViewModel.cs @@ -32,10 +32,12 @@ public class FilePathAttributeViewModel: AttributeViewModel class. /// public FilePathAttributeViewModel( + EditingTopicViewModel currentTopic, FilePathAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ): base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedAttributeViewModel.cs index 388f4dac..30c24e43 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedAttributeViewModel.cs @@ -25,10 +25,12 @@ public class LastModifiedAttributeViewModel: AttributeViewModel class. /// public LastModifiedAttributeViewModel( + EditingTopicViewModel currentTopic, LastModifiedAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ): base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedByAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedByAttributeViewModel.cs index c46d7f27..60b85524 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedByAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/LastModifiedByAttributeViewModel.cs @@ -25,10 +25,12 @@ public class LastModifiedByAttributeViewModel: AttributeViewModel class. /// public LastModifiedByAttributeViewModel( + EditingTopicViewModel currentTopic, LastModifiedByAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ): base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/NestedTopicListAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/NestedTopicListAttributeViewModel.cs index 34ba5a7c..62d5cd86 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/NestedTopicListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/NestedTopicListAttributeViewModel.cs @@ -26,10 +26,12 @@ public class NestedTopicListAttributeViewModel: AttributeViewModel class. /// public NestedTopicListAttributeViewModel( + EditingTopicViewModel currentTopic, NestedTopicListAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ): base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs index dd10b18b..21bec34b 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/TokenizedTopicListAttributeViewModel.cs @@ -26,10 +26,12 @@ public class TokenizedTopicListAttributeViewModel: AttributeViewModel class. /// public TokenizedTopicListAttributeViewModel( + EditingTopicViewModel currentTopic, TokenizedTopicListAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ): base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index 6fa582c3..49bdb5f2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -29,12 +29,6 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// public abstract class AttributeTypeViewComponentBase : ViewComponent { - /*========================================================================================================================== - | PRIVATE VARIABLES - \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly ITopicRoutingService _topicRoutingService = null; - private Topic _currentTopic = null; - /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ @@ -76,9 +70,10 @@ protected Topic CurrentTopic { /// /// The Topic associated with the current request. public AttributeViewModel GetAttributeViewModel( + EditingTopicViewModel topic, AttributeDescriptorTopicViewModel attribute ) { - var viewModel = new AttributeViewModel(attribute); + var viewModel = new AttributeViewModel(topic, attribute); GetAttributeViewModel(viewModel); return viewModel; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs index 22657448..fbdf29db 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs @@ -36,11 +36,12 @@ public BooleanViewComponent(ITopicRoutingService topicRoutingService) : base(top /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, BooleanAttributeTopicViewModel attribute, string htmlFieldPrefix ) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - return View(GetAttributeViewModel(new BooleanAttributeViewModel(attribute))); + return View(GetAttributeViewModel(new BooleanAttributeViewModel(currentTopic, attribute))); } } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs index dfa535a5..c0e715f6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs @@ -36,6 +36,7 @@ public DateTimeViewComponent(ITopicRoutingService topicRoutingService) : base(to /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, DateTimeAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -48,7 +49,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var model = new DateTimeAttributeViewModel(attribute); + var model = new DateTimeAttributeViewModel(currentTopic, attribute); GetAttributeViewModel(model); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs index 8f334c91..6a5f4f60 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs @@ -42,11 +42,12 @@ public DefaultAttributeTypeViewComponent(ITopicRoutingService topicRoutingServic /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix ) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - var viewModel = new AttributeViewModel(attribute); + var viewModel = new AttributeViewModel(currentTopic, attribute); return View(GetAttributeViewModel(viewModel)); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index d4435ed0..59cf5f6b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -53,6 +53,7 @@ IWebHostEnvironment webHostEnvironment /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, FileListAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -73,7 +74,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var model = new FileListAttributeViewModel(attribute); + var model = new FileListAttributeViewModel(currentTopic, attribute); GetAttributeViewModel(model); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs index c2b92e5e..1eccdc54 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs @@ -39,6 +39,7 @@ public FilePathViewComponent(ITopicRoutingService topicRoutingService) : base(to /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, FilePathAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -59,7 +60,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var model = GetAttributeViewModel(new FilePathAttributeViewModel(attribute)) as FilePathAttributeViewModel; + var model = GetAttributeViewModel(new FilePathAttributeViewModel(currentTopic, attribute)) as FilePathAttributeViewModel; /*------------------------------------------------------------------------------------------------------------------------ | Set model values @@ -83,7 +84,7 @@ string htmlFieldPrefix /// public string GetInheritedValue(string attributeKey, FilePathAttributeTopicViewModel attribute) { - var inheritedValue = ""; + var inheritedValue = ""; if (attribute.InheritValue == true && attribute.RelativeToTopicPath == true) { inheritedValue = GetPath(attributeKey, attribute); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs index 74ffbf8c..93dfba27 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs @@ -34,6 +34,7 @@ public HtmlViewComponent(ITopicRoutingService topicRoutingService) : base(topicR /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, HtmlAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -58,7 +59,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var viewModel = new AttributeViewModel(attribute); + var viewModel = new AttributeViewModel(currentTopic, attribute); GetAttributeViewModel(viewModel); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs index e4cfd615..699a5810 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs @@ -37,6 +37,7 @@ public LastModifiedByViewComponent(ITopicRoutingService topicRoutingService) : b /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, LastModifiedByAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -49,7 +50,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var model = new LastModifiedByAttributeViewModel(attribute); + var model = new LastModifiedByAttributeViewModel(currentTopic, attribute); GetAttributeViewModel(model); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index 8585cead..21bfb5a5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -36,6 +36,7 @@ public LastModifiedViewComponent(ITopicRoutingService topicRoutingService) : bas /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, LastModifiedAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -48,7 +49,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var model = new LastModifiedAttributeViewModel(attribute); + var model = new LastModifiedAttributeViewModel(currentTopic, attribute); GetAttributeViewModel(model); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs index be560290..5b3b0590 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs @@ -36,6 +36,7 @@ public NestedTopicListViewComponent(ITopicRoutingService topicRoutingService) : /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, NestedTopicListAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -54,7 +55,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var viewModel = new NestedTopicListAttributeViewModel(attribute); + var viewModel = new NestedTopicListAttributeViewModel(currentTopic, attribute); GetAttributeViewModel(viewModel); @@ -64,8 +65,8 @@ string htmlFieldPrefix if (HttpContext.Request.Query.TryGetValue("IsNew", out var action)) { viewModel.IsNew = action.FirstOrDefault().Equals("true", StringComparison.InvariantCultureIgnoreCase); } - viewModel.UniqueKey = CurrentTopic.GetUniqueKey(); - viewModel.WebPath = CurrentTopic.GetWebPath(); + viewModel.UniqueKey = currentTopic.UniqueKey; + viewModel.WebPath = currentTopic.WebPath; /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs index abc4aa01..6fead68c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs @@ -36,6 +36,7 @@ public NumberViewComponent(ITopicRoutingService topicRoutingService) : base(topi /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, NumberAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -48,7 +49,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var viewModel = new AttributeViewModel(attribute); + var viewModel = new AttributeViewModel(currentTopic, attribute); GetAttributeViewModel(viewModel); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs index 7e541dd6..cd27422d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs @@ -34,6 +34,7 @@ public RelationshipViewComponent(ITopicRoutingService topicRoutingService) : bas /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, RelationshipAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -55,7 +56,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var model = new AttributeViewModel(attribute); + var model = new AttributeViewModel(currentTopic, attribute); GetAttributeViewModel(model); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs index e373596a..c21cd33b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs @@ -37,6 +37,7 @@ public TextAreaViewComponent(ITopicRoutingService topicRoutingService) : base(to /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, TextAreaAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -49,7 +50,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var viewModel = new AttributeViewModel(attribute); + var viewModel = new AttributeViewModel(currentTopic, attribute); GetAttributeViewModel(viewModel); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs index 82fd5e9c..d9843bf4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs @@ -37,6 +37,7 @@ public TextViewComponent(ITopicRoutingService topicRoutingService) : base(topicR /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, TextAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -49,7 +50,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var viewModel = new AttributeViewModel(attribute); + var viewModel = new AttributeViewModel(currentTopic, attribute); GetAttributeViewModel(viewModel); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index 940741f5..7dacc271 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -49,6 +49,7 @@ ITopicRepository topicRepository /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, TokenizedTopicListAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -72,7 +73,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var model = new TokenizedTopicListAttributeViewModel(attribute); + var model = new TokenizedTopicListAttributeViewModel(currentTopic, attribute); GetAttributeViewModel(model); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 7b1c93fa..c9ad0148 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -38,10 +38,7 @@ public class TopicListViewComponent : AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public TopicListViewComponent( - ITopicRoutingService topicRoutingService, - ITopicRepository topicRepository - ) : base(topicRoutingService) { + public TopicListViewComponent(ITopicRepository topicRepository): base() { _topicRepository = topicRepository; } @@ -52,6 +49,7 @@ ITopicRepository topicRepository /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, TopicListAttributeTopicViewModel attribute, string htmlFieldPrefix = null, IEnumerable values = null, @@ -82,7 +80,7 @@ public async Task InvokeAsync( /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var viewModel = new TopicListAttributeViewModel(attribute); + var viewModel = new TopicListAttributeViewModel(currentTopic, attribute); GetAttributeViewModel(viewModel); @@ -99,7 +97,7 @@ public async Task InvokeAsync( /*------------------------------------------------------------------------------------------------------------------------ | Set default value \-----------------------------------------------------------------------------------------------------------------------*/ - var defaultValue = CurrentTopic.Attributes.GetValue(attribute.Key, attribute.DefaultValue, false, false); + var defaultValue = currentTopic.Attributes.ContainsKey(attribute.Key)? currentTopic.Attributes[attribute.Key] : null; /*------------------------------------------------------------------------------------------------------------------------ | Get values diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs index fc36a64e..182359eb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs @@ -43,7 +43,6 @@ ITopicRepository topicRepository _topicRepository = topicRepository; } - /*========================================================================================================================== | METHOD: INVOKE (ASYNC) \-------------------------------------------------------------------------------------------------------------------------*/ @@ -51,6 +50,7 @@ ITopicRepository topicRepository /// Assembles the view model for the . /// public async Task InvokeAsync( + EditingTopicViewModel currentTopic, TopicReferenceAttributeTopicViewModel attribute, string htmlFieldPrefix ) { @@ -75,7 +75,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var viewModel = new AttributeViewModel(attribute); + var viewModel = new AttributeViewModel(currentTopic, attribute); GetAttributeViewModel(viewModel); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs index 0739abd0..a4a8fb4e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs @@ -27,10 +27,12 @@ public class FileListAttributeViewModel: AttributeViewModel class. /// public FileListAttributeViewModel( + EditingTopicViewModel currentTopic, FileListAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ) : base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicListAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicListAttributeViewModel.cs index 135e6b72..bd15f855 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/TopicListAttributeViewModel.cs @@ -25,10 +25,12 @@ public class TopicListAttributeViewModel: AttributeViewModel class. /// public TopicListAttributeViewModel( + EditingTopicViewModel currentTopic, TopicListAttributeTopicViewModel attributeDescriptor, string value = null, string inheritedValue = null ) : base( + currentTopic, attributeDescriptor, value, inheritedValue diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index e5203ae2..242c25e4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -96,6 +96,7 @@ }; \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 9f7aaf3c..5cddceb4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -24,7 +24,7 @@ @await Component.InvokeAsync( attribute.ContentType.Replace("Attribute", ""), - new { Attribute=attribute, HtmlFieldPrefix=$"Attributes[{index++}]" } + new { CurrentTopic=Model.Topic, Attribute=attribute, HtmlFieldPrefix=$"Attributes[{index++}]" } ) } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 13da6b2f..97e5ef13 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -75,6 +75,7 @@ } Date: Tue, 5 Nov 2019 13:13:45 -0800 Subject: [PATCH 485/637] Migrate calls from `ITopicRoutingService` to `EditingTopicViewModel` Previously, view components that needed access to the current topic (e.g., to retrieve the current value or some other attribute) did so by calling `AttributeTypeViewComponentBase.CurrentTopic`, which is retrieved via `ITopicRoutingService.GetCurrentTopic()`. With `EditingTopicViewModel` being introduced as a parameter on `ViewComponent`'s and a property on `AttributeViewModel` (see #787f89f), those calls can now be migrated to using the lighter-weight view model. --- .../AttributeTypeViewComponentBase.cs | 21 ++++++++++++------- .../Components/LastModifiedByViewComponent.cs | 2 +- .../Components/LastModifiedViewComponent.cs | 4 ++-- .../Components/TopicReferenceViewComponent.cs | 2 +- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index 49bdb5f2..32fe6f79 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -84,19 +84,24 @@ AttributeDescriptorTopicViewModel attribute /// The to populate with values. /// The Topic associated with the current request. [return: NotNullIfNotNull("viewModel")] - public AttributeViewModel GetAttributeViewModel(AttributeViewModel viewModel = null) { + public AttributeViewModel GetAttributeViewModel(AttributeViewModel viewModel) { /*------------------------------------------------------------------------------------------------------------------------ - | Set contextual values from current topic + | Set variables \-----------------------------------------------------------------------------------------------------------------------*/ - var attribute = viewModel.AttributeDescriptor; - var defaultValue = CurrentTopic.Id < 0 && CurrentTopic.DerivedTopic == null? attribute.DefaultValue : ""; - var implicitValue = !attribute.IsRequired? attribute.ImplicitValue : ""; + var topic = viewModel.CurrentTopic; + var key = viewModel.AttributeDescriptor.Key; - viewModel.TopicId = CurrentTopic.Id; - viewModel.InheritedValue = implicitValue?? CurrentTopic.Parent.Attributes.GetValue(viewModel.Key, true); - viewModel.Value = CurrentTopic.Attributes.GetValue(viewModel.Key, defaultValue, false, false); + /*------------------------------------------------------------------------------------------------------------------------ + | Set contextual values from current topic + \-----------------------------------------------------------------------------------------------------------------------*/ + viewModel.TopicId = topic.Id; + viewModel.InheritedValue = topic.InheritedAttributes.ContainsKey(key)? topic.InheritedAttributes[key] : null; + viewModel.Value = topic.Attributes.ContainsKey(key)? topic.Attributes[key] : null; + /*------------------------------------------------------------------------------------------------------------------------ + | Return value + \-----------------------------------------------------------------------------------------------------------------------*/ return viewModel; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs index 699a5810..df9a959e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs @@ -58,7 +58,7 @@ string htmlFieldPrefix | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ model.Value = HttpContext.User.Identity.Name ?? "System"; - model.CurrentValue = CurrentTopic.Attributes.GetValue("LastModifiedBy", model.Value); + model.CurrentValue = currentTopic.Attributes["LastModifiedBy"]?? model.Value; /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index 21bfb5a5..282533fb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -57,8 +57,8 @@ string htmlFieldPrefix | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ model.Value = DateTime.Now.ToString(); - if (CurrentTopic.LastModified != null && CurrentTopic.LastModified != DateTime.MinValue) { - model.CurrentValue = CurrentTopic.LastModified.ToString(); + if (currentTopic.LastModified != null && currentTopic.LastModified != DateTime.MinValue) { + model.CurrentValue = currentTopic.LastModified.ToString(); } else { model.CurrentValue = model.Value; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs index 182359eb..8bb9f159 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs @@ -69,7 +69,7 @@ string htmlFieldPrefix attribute.TargetContentType ??= attribute.GetConfigurationValue( "ContentType", null); if (String.IsNullOrWhiteSpace(attribute.TargetContentType)) { - attribute.TargetContentType = CurrentTopic.ContentType; + attribute.TargetContentType = currentTopic.ContentType; } /*------------------------------------------------------------------------------------------------------------------------ From 6063414f23ee2c441f3052f3328b2c9b3559e055 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 13:17:57 -0800 Subject: [PATCH 486/637] Remove dependency on `ITopicRoutingService` With the dependency on `AttributeTypeViewComponentBase.CurrentTopic` removed (see #bcb235d) we can now remove the dependency on `ITopicRoutingService`. This frees up a lot of redundant processing where the current topic needed to be pulled from the topic graph for every single attribute on the page. --- .../SampleActivator.cs | 32 +++++++++---------- .../AttributeTypeViewComponentBase.cs | 22 +------------ .../Editor/Components/BooleanViewComponent.cs | 2 +- .../Components/DateTimeViewComponent.cs | 2 +- .../DefaultAttributeTypeViewComponent.cs | 2 +- .../Components/DisplayOptionsViewComponent.cs | 2 +- .../Components/FileListViewComponent.cs | 7 +--- .../Editor/Components/HtmlViewComponent.cs | 2 +- .../Components/LastModifiedByViewComponent.cs | 2 +- .../Components/LastModifiedViewComponent.cs | 2 +- .../NestedTopicListViewComponent.cs | 2 +- .../Editor/Components/NumberViewComponent.cs | 2 +- .../Components/RelationshipViewComponent.cs | 2 +- .../Components/TextAreaViewComponent.cs | 2 +- .../Editor/Components/TextViewComponent.cs | 2 +- .../TokenizedTopicListViewComponent.cs | 7 +--- .../Components/TopicReferenceViewComponent.cs | 7 +--- 17 files changed, 32 insertions(+), 67 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 16d83eb4..6a121a6b 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -138,55 +138,55 @@ public object Create(ViewComponentContext context) { | Configure and return appropriate view component \-----------------------------------------------------------------------------------------------------------------------*/ if (type == typeof(LastModifiedViewComponent)) { - return new LastModifiedViewComponent(mvcTopicRoutingService); + return new LastModifiedViewComponent(); } if (type == typeof(BooleanViewComponent)) { - return new BooleanViewComponent(mvcTopicRoutingService); + return new BooleanViewComponent(); } if (type == typeof(DateTimeViewComponent)) { - return new DateTimeViewComponent(mvcTopicRoutingService); + return new DateTimeViewComponent(); } if (type == typeof(DisplayOptionsViewComponent)) { - return new DisplayOptionsViewComponent(mvcTopicRoutingService); + return new DisplayOptionsViewComponent(); } if (type == typeof(FileListViewComponent)) { - return new FileListViewComponent(mvcTopicRoutingService, _webHostEnvironment); + return new FileListViewComponent(_webHostEnvironment); } if (type == typeof(FilePathViewComponent)) { return new FilePathViewComponent(mvcTopicRoutingService); } if (type == typeof(HtmlViewComponent)) { - return new HtmlViewComponent(mvcTopicRoutingService); + return new HtmlViewComponent(); } if (type == typeof(LastModifiedViewComponent)) { - return new LastModifiedViewComponent(mvcTopicRoutingService); + return new LastModifiedViewComponent(); } if (type == typeof(LastModifiedByViewComponent)) { - return new LastModifiedByViewComponent(mvcTopicRoutingService); + return new LastModifiedByViewComponent(); } if (type == typeof(NestedTopicListViewComponent)) { - return new NestedTopicListViewComponent(mvcTopicRoutingService); + return new NestedTopicListViewComponent(); } if (type == typeof(NumberViewComponent)) { - return new NumberViewComponent(mvcTopicRoutingService); + return new NumberViewComponent(); } if (type == typeof(RelationshipViewComponent)) { - return new RelationshipViewComponent(mvcTopicRoutingService); + return new RelationshipViewComponent(); } if (type == typeof(TextViewComponent)) { - return new TextViewComponent(mvcTopicRoutingService); + return new TextViewComponent(); } if (type == typeof(TextAreaViewComponent)) { - return new TextAreaViewComponent(mvcTopicRoutingService); + return new TextAreaViewComponent(); } if (type == typeof(TokenizedTopicListViewComponent)) { - return new TokenizedTopicListViewComponent(mvcTopicRoutingService, _topicRepository); + return new TokenizedTopicListViewComponent(_topicRepository); } if (type == typeof(TopicListViewComponent)) { - return new TopicListViewComponent(mvcTopicRoutingService, _topicRepository); + return new TopicListViewComponent(_topicRepository); } if (type == typeof(TopicReferenceViewComponent)) { - return new TopicReferenceViewComponent(mvcTopicRoutingService, _topicRepository); + return new TopicReferenceViewComponent(_topicRepository); } else { throw new Exception($"Unknown view component {type.Name}"); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index 32fe6f79..cf471c4f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -36,27 +36,7 @@ public abstract class AttributeTypeViewComponentBase : ViewComponent { /// Initializes a new instance of a with necessary dependencies. /// /// A topic . - protected AttributeTypeViewComponentBase( - ITopicRoutingService topicRoutingService - ) { - _topicRoutingService = topicRoutingService; - } - - /*========================================================================================================================== - | CURRENT TOPIC - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides a reference to the current topic associated with the request. - /// - /// The Topic associated with the current request. - protected Topic CurrentTopic { - get { - if (_currentTopic == null) { - _currentTopic = _topicRoutingService.GetCurrentTopic(); - } - return _currentTopic; - } - } + protected AttributeTypeViewComponentBase() {} /*========================================================================================================================== | METHOD: GET ATTRIBUTE VIEW MODEL diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs index fbdf29db..64fa888b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs @@ -27,7 +27,7 @@ public class BooleanViewComponent: AttributeTypeViewComponentBase { /// Initializes a new instance of a with necessary dependencies. /// /// A topic . - public BooleanViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public BooleanViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs index c0e715f6..243fb3eb 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs @@ -27,7 +27,7 @@ public class DateTimeViewComponent: AttributeTypeViewComponentBase { /// Initializes a new instance of a with necessary dependencies. /// /// A topic . - public DateTimeViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public DateTimeViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs index 6a5f4f60..97316e42 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs @@ -33,7 +33,7 @@ public class DefaultAttributeTypeViewComponent : AttributeTypeViewComponentBase /// /// Initializes a new instance of a with necessary dependencies. /// - public DefaultAttributeTypeViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public DefaultAttributeTypeViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DisplayOptionsViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DisplayOptionsViewComponent.cs index cafefacc..8cb829d8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DisplayOptionsViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DisplayOptionsViewComponent.cs @@ -20,7 +20,7 @@ public class DisplayOptionsViewComponent: DefaultAttributeTypeViewComponent { /// /// Initializes a new instance of a with necessary dependencies. /// - public DisplayOptionsViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public DisplayOptionsViewComponent() : base() { } } // Class } // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index 59cf5f6b..fd2cd1ce 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -37,12 +37,7 @@ public class FileListViewComponent: AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public FileListViewComponent( - ITopicRoutingService topicRoutingService, - IWebHostEnvironment webHostEnvironment - ): base( - topicRoutingService - ) { + public FileListViewComponent(IWebHostEnvironment webHostEnvironment): base() { _webHostEnvironment = webHostEnvironment; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs index 93dfba27..32d9faaa 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs @@ -24,7 +24,7 @@ public class HtmlViewComponent : AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public HtmlViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public HtmlViewComponent() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs index df9a959e..721e8d13 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs @@ -27,7 +27,7 @@ public class LastModifiedByViewComponent : AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public LastModifiedByViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public LastModifiedByViewComponent() : base() { } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index 282533fb..7c2fde6d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -27,7 +27,7 @@ public class LastModifiedViewComponent: AttributeTypeViewComponentBase { /// Initializes a new instance of a with necessary dependencies. /// /// A topic . - public LastModifiedViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public LastModifiedViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs index 5b3b0590..e698d025 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs @@ -27,7 +27,7 @@ public class NestedTopicListViewComponent : AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public NestedTopicListViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public NestedTopicListViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs index 6fead68c..991cae0b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs @@ -27,7 +27,7 @@ public class NumberViewComponent: AttributeTypeViewComponentBase { /// Initializes a new instance of a with necessary dependencies. /// /// A . - public NumberViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public NumberViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs index cd27422d..614df43c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs @@ -25,7 +25,7 @@ public class RelationshipViewComponent : AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public RelationshipViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public RelationshipViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs index c21cd33b..2361d3d0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs @@ -28,7 +28,7 @@ public class TextAreaViewComponent: AttributeTypeViewComponentBase { /// Initializes a new instance of a with necessary dependencies. /// /// A . - public TextAreaViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public TextAreaViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs index d9843bf4..b3ad61c0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs @@ -28,7 +28,7 @@ public class TextViewComponent: AttributeTypeViewComponentBase { /// Initializes a new instance of a with necessary dependencies. /// /// A . - public TextViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + public TextViewComponent() : base() { } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index 7dacc271..11a38461 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -33,12 +33,7 @@ public class TokenizedTopicListViewComponent : AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public TokenizedTopicListViewComponent( - ITopicRoutingService topicRoutingService, - ITopicRepository topicRepository - ) : base( - topicRoutingService - ) { + public TokenizedTopicListViewComponent(ITopicRepository topicRepository) : base() { _topicRepository = topicRepository; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs index 8bb9f159..71bbdb49 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs @@ -34,12 +34,7 @@ public class TopicReferenceViewComponent : AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public TopicReferenceViewComponent( - ITopicRoutingService topicRoutingService, - ITopicRepository topicRepository - ) : base( - topicRoutingService - ) { + public TopicReferenceViewComponent(ITopicRepository topicRepository) : base() { _topicRepository = topicRepository; } From 951afff1ed7e8c12ff87cd6ca8f0004dea98e557 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 13:28:46 -0800 Subject: [PATCH 487/637] Handle `ITopicRoutingService` dependency for `FilePathViewComponent` The `FilePathViewComponent` has complex inheritance logic which necessitates it knowing precisely where in the topic graph it inherited its value from so that it can, potentially, reconstruct the relative path from that topic as part of its `InheritedValue`. This can't be done with the new `Attributes` and `InheritedAttributes` collections recently added to `EditingTopicViewModel` (see #3c01662) and, thus, wasn't subject to replacing the dependency on `ITopicRoutingService` (see #bcb235d, #6063414). Since other view components don't need the `ITopicRoutingService`, that dependency is moved inline in the `SampleActivator`. And since the `FilePathViewComponent` can no longer depend on receiving the value of `CurrentTopic` from the underlying `AttributeTypeViewComponentBase`, that logic is moved to the `FilePathViewComponent` itself. --- .../SampleActivator.cs | 17 ++++++------- .../Components/FilePathViewComponent.cs | 25 ++++++++++++++++++- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 6a121a6b..9096f502 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -125,15 +125,6 @@ public object Create(ViewComponentContext context) { \-----------------------------------------------------------------------------------------------------------------------*/ Type type = context.ViewComponentDescriptor.TypeInfo.AsType(); - /*------------------------------------------------------------------------------------------------------------------------ - | Register - \-----------------------------------------------------------------------------------------------------------------------*/ - var mvcTopicRoutingService = new MvcTopicRoutingService( - _topicRepository, - new Uri($"https://{context.ViewContext.HttpContext.Request.Host}/{context.ViewContext.HttpContext.Request.Path}"), - context.ViewContext.RouteData - ); - /*------------------------------------------------------------------------------------------------------------------------ | Configure and return appropriate view component \-----------------------------------------------------------------------------------------------------------------------*/ @@ -153,7 +144,13 @@ public object Create(ViewComponentContext context) { return new FileListViewComponent(_webHostEnvironment); } if (type == typeof(FilePathViewComponent)) { - return new FilePathViewComponent(mvcTopicRoutingService); + return new FilePathViewComponent( + new MvcTopicRoutingService( + _topicRepository, + new Uri($"https://{context.ViewContext.HttpContext.Request.Host}/{context.ViewContext.HttpContext.Request.Path}"), + context.ViewContext.RouteData + ) + ); } if (type == typeof(HtmlViewComponent)) { return new HtmlViewComponent(); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs index 1eccdc54..69c425c8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs @@ -30,7 +30,30 @@ public class FilePathViewComponent: AttributeTypeViewComponentBase { /// /// Initializes a new instance of a with necessary dependencies. /// - public FilePathViewComponent(ITopicRoutingService topicRoutingService) : base(topicRoutingService) { } + /// + /// As with other attribute view components, the receives a via the . That view model, however, is not sufficient to handle the specialized inheritance logic required by the + /// . As a result, it also requires an instance of a so that it can work directly off the current and its parent tree. + /// The is still passed not only for consistency, but also to spare the overhead and + /// redundant logic of mapping it again, since this was already done in . + /// + public FilePathViewComponent(ITopicRoutingService topicRoutingService) : base() { + if (topicRoutingService == null) { + throw new ArgumentNullException(nameof(topicRoutingService)); + } + CurrentTopic = topicRoutingService.GetCurrentTopic() ?? throw new NullReferenceException(nameof(CurrentTopic)); + } + + /*========================================================================================================================== + | CURRENT TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the current topic associated with the request. + /// + /// The Topic associated with the current request. + protected Topic CurrentTopic { get; set; } /*========================================================================================================================== | METHOD: INVOKE (ASYNC) From 581bd0f9cc30d08d556d9da3575c2459726a1845 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 13:41:47 -0800 Subject: [PATCH 488/637] Establish context for `IsNew` version of `EditingTopicViewModel` Assign the `CurrentTopic` (which the `IsNew` topic will be created under) to `Parent`, and its `GetUniqueKey()` to `UniqueKey`. This will ensure that the current (now parent) topic is reflected in the navigation. This also lent itself some slight refactoring of the code to make it less redundant. --- .../Editor/Controllers/EditorController.cs | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index e7bb3173..b50831de 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -119,19 +119,20 @@ public async Task Edit(bool isNew = false, string contentType = n | ESTABLISH CONTENT TYPE VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); - var contentTypeViewModel = await _topicMappingService.MapAsync(contentTypeDescriptor); - var parentTopic = isNew ? CurrentTopic : CurrentTopic.Parent; + var contentTypeViewModel = await _topicMappingService.MapAsync(contentTypeDescriptor); + var parentTopic = isNew ? CurrentTopic : CurrentTopic.Parent; /*------------------------------------------------------------------------------------------------------------------------ | CONSTRUCT VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - EditorViewModel editorViewModel; - EditingTopicViewModel topicViewModel; + var topicViewModel = await _topicMappingService.MapAsync(CurrentTopic); + if (isNew) { - topicViewModel = new EditingTopicViewModel() { ContentType = contentType }; - } - else { - topicViewModel = await _topicMappingService.MapAsync(CurrentTopic); + topicViewModel = new EditingTopicViewModel() { + ContentType = contentType, + UniqueKey = CurrentTopic.GetUniqueKey(), + Parent = topicViewModel + }; } /*------------------------------------------------------------------------------------------------------------------------ @@ -163,10 +164,10 @@ public async Task Edit(bool isNew = false, string contentType = n /*------------------------------------------------------------------------------------------------------------------------ | ESTABLISH VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - editorViewModel = new EditorViewModel(topicViewModel, contentTypeViewModel, isModal); + var editorViewModel = new EditorViewModel(topicViewModel, contentTypeViewModel, isModal); /*------------------------------------------------------------------------------------------------------------------------ - | RETURN VIEW + | RETURN VIEW (MODEL) \-----------------------------------------------------------------------------------------------------------------------*/ return View(editorViewModel); From 2ae6191c0e5f6ce43e9b0d98fd741627e07453a0 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 14:36:39 -0800 Subject: [PATCH 489/637] Account for empty `values` collection For now, if the `values` collection is empty, we should still fallback to the default processing instead. --- .../Areas/Editor/Components/TopicListViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index c9ad0148..f52c2f46 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -107,7 +107,7 @@ public async Task InvokeAsync( //### HACK JJC20191031: Since Topic and TopicViewModel aren't intercompatible, and the remaining processing is based on //Topic, we're converting any preconfigured topics from TopicViewModel back to Topic by looking them up in the repository. //This, of course, assumes that the topic view models refer to existing topics in the repository. - if (values != null) { + if (values != null && values.Count() > 0) { topics = new TopicCollection(); foreach (var topicViewModel in values) { var topic = _topicRepository.Load(topicViewModel.Id); From b6f0ddbbad9fc48d25f9ee941ce72474e653854e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 15:07:09 -0800 Subject: [PATCH 490/637] Fix _Cancel_ button for `IsModal` state Previously, the _Cancel_ button was based on legacy **ASP.NET WebForms** code carried over from the previous editor. Obviously, that wouldn't work. This code has been replaced with new code that only shows up on `IsModal`. (It's worth noting that the previous code would also show up if the topic was a nested topic, even if it wasn't in a modal window. While this corner case is still supported, we're no longer providing the cancel button in that situation.) --- .../Areas/Editor/Views/Shared/_Toolbar.cshtml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml index 868478fe..dc39fc7c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Toolbar.cshtml @@ -30,9 +30,8 @@ } - - @if (Model.Topic.Parent != null && Model.Topic.Parent.ContentType.Equals("List")) { - "class="btn btn-ancillary btn-sm">Cancel + @if (Model.IsModal) { + } From 2b2a8930a095ae01b7991a67737d914d2c45652b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 15:23:54 -0800 Subject: [PATCH 491/637] Fixed issues with `closeModal` and `_refresh` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because the modal window is part of the `NestedTopicListViewComponent` and, in principle, there may be more than one `NestedTopicListViewComponent` on any given `ContentTypeDescriptor`, the modal window's identifiers are namespaced by the attribute key—which the `closeModal` script isn't aware of. As such, it needs to use a wildcard selector to make sure it correctly matches the target modal window. Note that if there _are_ multiple `NestedTopicListViewComponent` instances on the page, this will close _all_ of their modal windows; this isn't a concern in practice, however, since the nature of modal windows prevents more than one from being open at any given moment. Also fixed a typo in the `_refresh()` method that prevented it from properly refreshing the parent list on close. --- .../Views/Editor/Components/NestedTopicList/Default.cshtml | 2 +- Ignia.Topics.Editor.Mvc/Shared/Scripts/NestedTopicList.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index 242c25e4..d0051bfd 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -77,7 +77,7 @@ }); function @($"{Model.AttributeDescriptor.Key}Tree")_refresh() { - @($"{Model.AttributeDescriptor.Key}Tree").getLoader().load(@($"{Model.AttributeDescriptor.Key}Tree")).root; + @($"{Model.AttributeDescriptor.Key}Tree").getLoader().load(@($"{Model.AttributeDescriptor.Key}Tree").root); }; diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/NestedTopicList.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/NestedTopicList.js index 746a5768..743b371f 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/NestedTopicList.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/NestedTopicList.js @@ -78,7 +78,7 @@ initEditorModal = function (namespace, title, targetUrl, onCloseFunction) { * @param {string} namespace - The parent key of the nested topic container. */ window.closeModal = function (action, namespace) { - $('#EditorModal' + key).modal('hide'); + $('[id^="EditorModal"]').modal('hide'); }; /*============================================================================================================================== @@ -91,7 +91,7 @@ window.closeModal = function (action, namespace) { \---------------------------------------------------------------------------------------------------------------------------*/ $('#ModalCloseButton').on('click', function (e) { window.parent.closeModal('canceled', ''); - $('[id*="EditorModal"]').modal('hide'); + $('[id^="EditorModal"]').modal('hide'); }); /*---------------------------------------------------------------------------------------------------------------------------- From 6cdeea942bc4e78d4edd5977f0417f7cf53b1536 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 15:31:01 -0800 Subject: [PATCH 492/637] Fixed JSON encoding issue with `SelectedTopics` The `SelectedTopics` are delivered from the view model as a JSON formatted string. When written to the interface, however, they were being encoded for HTML. To fix this, applied `@Html.Raw()` to prevent encoding. In addition, there were issues with unclosed quotes in the JSON serialization, which are also fixed. --- .../Editor/Components/TokenizedTopicListViewComponent.cs | 4 ++-- .../Views/Editor/Components/TokenizedTopicList/Default.cshtml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index 11a38461..7d37444c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -130,10 +130,10 @@ private string GetTopicJson(string topicId) { if (topic != null) { topicJson += $"{{" + $"'id' : '{topic.Id}', " - + $"'key' : '{EncodeJsonValue(topic.Key)}, " + + $"'key' : '{EncodeJsonValue(topic.Key)}', " + $"'text' : '{EncodeJsonValue(topic.Title)}', " + $"'path' : '{EncodeJsonValue(topic.GetUniqueKey())}', " - + $"'webPath' : '{EncodeJsonValue(topic.GetWebPath())} " + + $"'webPath' : '{EncodeJsonValue(topic.GetWebPath())}' " + $"}},"; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml index 503c4e68..422b39f6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml @@ -26,7 +26,7 @@ tokenizedTopics.resultLimit = '@Model.AttributeDescriptor.ResultLimit'; tokenizedTopics.tokenLimit = @Model.AttributeDescriptor.TokenLimit; tokenizedTopics.isAutoPostBack = @((Model.AttributeDescriptor.AutoPostBack?? false).ToString().ToLower()); - tokenizedTopics.selectedTopics = @Model.SelectedTopics; + tokenizedTopics.selectedTopics = @Html.Raw(Model.SelectedTopics); //Fire TokenizedTopics.prototype.getTokenizedTopics() (and $([selector]).tokenInput()) tokenizedTopics.getTokenizedTopics(); From 34226256bebbcad9ad084a2a8d99905978eec5a1 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 5 Nov 2019 15:50:59 -0800 Subject: [PATCH 493/637] Configured relationships based on `ModelType` property Recent updates to `AttributeDescriptor` introduced the `ModelType` property for determining how an attribute is to be saved. This is more reliable than looking exclusively at the `EditorType`. This way, relationships can be created by other view components, not just the main `RelationshipsViewComponent`. Notably, this allows us to conditionally set this property for `TokenizedTopicListAttributeTopicViewModel` based on its `AsRelationship` property, thus optionally saving tokenized topics as a relationship. --- .../Metadata/AttributeDescriptorTopicViewModel.cs | 2 +- .../Metadata/TokenizedTopicListAttributeTopicViewModel.cs | 7 +++++++ .../Areas/Editor/Controllers/EditorController.cs | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs index 695308e9..564511d3 100644 --- a/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs @@ -40,7 +40,7 @@ public AttributeDescriptorTopicViewModel() {} /// /// Determines how the attribute is modeled in terms of the object-oriented code (e.g., as a relationship? An attribute?). /// - public ModelType ModelType { get; set; } + public virtual ModelType ModelType { get; set; } /*========================================================================================================================== | PROPERTY: DISPLAY GROUP diff --git a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs index 983380cd..46273b34 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Ignia.Topics.Mapping; +using Ignia.Topics.Metadata; using Ignia.Topics.ViewModels; using System; using System.Diagnostics.CodeAnalysis; @@ -20,6 +21,12 @@ namespace Ignia.Topics.Editor.Models.Metadata { /// public class TokenizedTopicListAttributeTopicViewModel: QueryableTopicListAttributeTopicViewModel { + /*========================================================================================================================== + | PROPERTY: MODEL TYPE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + public override ModelType ModelType => (AsRelationship?? false)? ModelType.Relationship : ModelType.ScalarValue; + /*========================================================================================================================== | RESULT LIMIT \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index b50831de..41c420a1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -215,11 +215,11 @@ public async Task Edit(EditorBindingModel model, bool isNew = fal var attributeValue = model.Attributes[attribute.Key]; //Save value - if (attribute.EditorType.Equals("Relationship")) { + if (attribute.ModelType.Equals(ModelType.Relationship)) { SetRelationships(topic, attribute, attributeValue); } else if (attribute.Key.Equals("Key")) { - CurrentTopic.Key = attributeValue.Value.TrimStart(' ').TrimEnd(' ').Replace(" ", ""); + CurrentTopic.Key = attributeValue.Value.Replace(" ", ""); } else if (String.IsNullOrEmpty(attributeValue.Value)) { CurrentTopic.Attributes.Remove(attribute.Key); From be37977e3f8aa07c1b712479e5f502d6ff540840 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 12:15:55 -0800 Subject: [PATCH 494/637] Introduced configuration properties to `TopicReferenceViewComponent` This includes the new `RootTopic` `Relationship` to replace `Scope`, as well as a legacy `RootTopicKey` to maintain backward compatibility with `Scope`. --- .../TopicReferenceAttributeTopicViewModel.cs | 25 ++++++++++++++++--- .../Components/TopicReferenceViewComponent.cs | 3 +-- .../Components/TopicReference/Default.cshtml | 3 ++- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs index 0a10b5fd..52680736 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs @@ -5,7 +5,9 @@ \=============================================================================================================================*/ using Ignia.Topics.Mapping; using Ignia.Topics.Metadata; +using Ignia.Topics.ViewModels; using System; +using System.Diagnostics.CodeAnalysis; #nullable enable @@ -20,12 +22,29 @@ namespace Ignia.Topics.Editor.Models.Metadata { public class TopicReferenceAttributeTopicViewModel: AttributeDescriptorTopicViewModel { /*========================================================================================================================== - | SCOPE + | PROPERTY: ROOT TOPIC KEY \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Gets or sets the scope of the topic graph within which to search for results. E.g., Root:Web:Configuration. + /// Gets or sets a path representing the to display to the + /// user. This allows relationships to be targeted to particular areas of the topic graph. /// - public string? Scope { get; set; } + [Obsolete( + "This property is exposed exlusively for backward compatibility with the DefaultConfiguration's Scope property. New " + + "attributes should instead use the RootTopic property. The RootTopicKey property will be removed in the future.", + false + )] + public string? RootTopicKey { get; set; } + + /*========================================================================================================================== + | PROPERTY: ROOT TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets a representing the scope of s to display to the user. This + /// allows relationships to be targeted to particular areas of the topic graph. + /// + [AttributeKey("RootTopicId")] + [NotNull] + public TopicViewModel? RootTopic { get; set; } /*========================================================================================================================== | RESULT LIMIT diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs index 71bbdb49..a7871b5e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs @@ -58,8 +58,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ - attribute ??= new TopicReferenceAttributeTopicViewModel(); - attribute.Scope ??= attribute.GetConfigurationValue( "Scope", "Root"); + attribute.RootTopicKey ??= attribute.GetConfigurationValue( "Scope", "Root"); attribute.ResultLimit ??= attribute.GetIntegerConfigurationValue( "ResultLimit", 100); attribute.TargetContentType ??= attribute.GetConfigurationValue( "ContentType", null); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml index 9d5d50e1..e8d71f03 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml @@ -6,7 +6,8 @@ ContentType = "TokenizedTopicListAttribute", Description = Model.AttributeDescriptor.Description, Title = Model.AttributeDescriptor.Title, - RootTopicKey = Model.AttributeDescriptor.Scope, + RootTopic = Model.AttributeDescriptor.RootTopic, + RootTopicKey = Model.AttributeDescriptor.RootTopicKey, AttributeKey = String.IsNullOrEmpty(Model.AttributeDescriptor.TargetContentType)? "": "ContentType", AttributeValue = Model.AttributeDescriptor.TargetContentType, ResultLimit = Model.AttributeDescriptor.ResultLimit, From 36e9bb2938406068142bdfe61350c6b640b9fbcd Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 12:17:31 -0800 Subject: [PATCH 495/637] Give `RootTopic` priority over `RootTopicKey` `RootTopicKey` is deprecated, and now all of the `DefaultConfiguration` attributes have been migrated to strongly typed `AttributeDescriptor`s, so `RootKey` should be the primary selection. We'll be removing fallbacks to `DefaultConfiguration` specific attributes in the future, once all clients have successfully migrated. --- .../Editor/Views/Editor/Components/Relationship/Default.cshtml | 2 +- .../Views/Editor/Components/TokenizedTopicList/Default.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml index c5d41fcf..475a4609 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml @@ -2,7 +2,7 @@ @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; - var rootTopicKey = Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopic?.UniqueKey.Replace(":", "/") ?? "Root"; + var rootTopicKey = Model.AttributeDescriptor.RootTopic?.UniqueKey.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? "Root"; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml index 422b39f6..6e2975a4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/TokenizedTopicList/Default.cshtml @@ -2,7 +2,7 @@ @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; - var rootTopicKey = Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopic?.UniqueKey.Replace(":", "/") ?? "Root"; + var rootTopicKey = Model.AttributeDescriptor.RootTopic?.UniqueKey.Replace(":", "/") ?? Model.AttributeDescriptor.RootTopicKey?.Replace(":", "/") ?? "Root"; }
    From c2098f25f0faacc44b3b0821a0d6134c25b296c6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 15:34:31 -0800 Subject: [PATCH 496/637] Introduced new `JsonTopicMappingService` Having the logic for populating the `JsonTopicViewModel` within its constructor worked alright for hierarchical returns, but failed for cases where we need to search the entire object graph and return the flattened results. To do that, we needed a search process outside the context of the view model itself. This logic could have been placed inside of the `EditorController.Json()` action, but since it was pretty involved, I moved it to a separate service. In the future, we'll likely want to establish an `IJsonTopicMappingService` interface and inject this as a dependency. That's not a priority yet, however, since pretty much the only thing that the `EditorController.Json()` method does is call the `JsonTopicMappingService` and return its results; as such, any unit test coverage can appropriately focus on the `JsonTopicMappingService` for now. --- .../Json/JsonTopicViewModel.cs | 124 +----------- .../Editor/Controllers/EditorController.cs | 23 +-- .../Infrastructure/JsonTopicMappingService.cs | 187 ++++++++++++++++++ 3 files changed, 193 insertions(+), 141 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs index 7a925cf2..7b357459 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs @@ -25,51 +25,6 @@ public class JsonTopicViewModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Initializes a new instance of the class using a to seed the - /// values. - /// - public JsonTopicViewModel(Topic topic, JsonTopicViewModelOptions options) : this(topic, null, options) { } - - public JsonTopicViewModel( - Topic topic, - ReadOnlyTopicCollection related, - JsonTopicViewModelOptions options - ) : this( - topic.Id, - topic.Key, - options.UseKeyAsText? topic.Key : topic.Title, - topic.GetUniqueKey(), - topic.GetWebPath(), - options.EnableCheckboxes? (options.MarkRelated? related.Contains(topic) : true) : new bool?(), - topic.Attributes.GetValue("DisableDelete", "0").Equals("0") - ) { - - /*------------------------------------------------------------------------------------------------------------------------ - | Handle options - \-----------------------------------------------------------------------------------------------------------------------*/ - if (options.ResultLimit > 0) { - options.ResultLimit--; - } - - /*------------------------------------------------------------------------------------------------------------------------ - | Initialize collection - \-----------------------------------------------------------------------------------------------------------------------*/ - Children = new List(); - - /*------------------------------------------------------------------------------------------------------------------------ - | Populate children - \-----------------------------------------------------------------------------------------------------------------------*/ - if (options.IsRecursive) { - foreach (var child in topic.Children) { - if (JsonTopicViewModel.IsValidTopic(child, options)) { - Children.Add(new JsonTopicViewModel(child, related, options)); - } - } - } - - } - /// /// Initializes a new instance of the class by specifying each of the property values. /// @@ -97,62 +52,6 @@ public JsonTopicViewModel( IsChecked = isChecked.Value; } - /*------------------------------------------------------------------------------------------------------------------------ - | Initialize collection - \-----------------------------------------------------------------------------------------------------------------------*/ - Children = new List(); - - } - - /*========================================================================================================================== - | IS VALID TOPIC - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Static method confirms whether a topic is valid based on the . - /// - public static bool IsValidTopic(Topic topic, JsonTopicViewModelOptions options) { - - /*------------------------------------------------------------------------------------------------------------------------ - | Establish variables - \-----------------------------------------------------------------------------------------------------------------------*/ - var searchTerms = (options.Query ?? "").Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries).ToList(); - - /*------------------------------------------------------------------------------------------------------------------------ - | Validate basic properties - \-----------------------------------------------------------------------------------------------------------------------*/ - if (!options.ShowAll && !topic.IsVisible()) return false; - if (!options.ShowNestedTopics && topic.ContentType.Equals("List")) return false; - if (options.ResultLimit.Equals(0)) return false; - - /*------------------------------------------------------------------------------------------------------------------------ - | Validate filtered attribute - \-----------------------------------------------------------------------------------------------------------------------*/ - if (!String.IsNullOrEmpty(options.AttributeName) && !String.IsNullOrEmpty(options.AttributeName)) { - if (options.UsePartialMatch) { - if (topic.Attributes.GetValue(options.AttributeName, "").IndexOf(options.AttributeValue) == -1) { - return false; - } - } - if (!topic.Attributes.GetValue(options.AttributeName, "").Equals(options.AttributeValue)) { - return false; - } - } - - /*------------------------------------------------------------------------------------------------------------------------ - | Validate search results - \-----------------------------------------------------------------------------------------------------------------------*/ - if (searchTerms.Count > 0) { - if (!searchTerms.All( - searchTerm => topic.Attributes.Any( - a => a.Value.IndexOf(searchTerm, 0, StringComparison.InvariantCultureIgnoreCase) >= 0 - ) - )) { - return false; - } - } - - return true; - } /*========================================================================================================================== @@ -247,26 +146,7 @@ public bool IsLeaf { /// /// Provides a collection of child objects. /// - public List Children { - get; - } - - /*========================================================================================================================== - | AS FLAT STRUCTURE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides a flat list of the current . - /// - public List AsFlatStructure(List output = null) { - output = output?? new List(); - output.Add(this); - foreach (var topic in Children) { - output = topic.AsFlatStructure(output); - } - Children.Clear(); - return output; - } + public List Children { get; } = new List(); } // Class - -} // Namespace +} // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 41c420a1..1fde3849 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -423,28 +423,13 @@ public JsonResult Json(JsonTopicViewModelOptions options) { /*-------------------------------------------------------------------------------------------------------------------------- | Assemble view model \-------------------------------------------------------------------------------------------------------------------------*/ - var jsonTopicViewModel = new JsonTopicViewModel(CurrentTopic, relatedTopics, options); + var jsonTopicMappingService = new JsonTopicMappingService(); + var jsonTopicViewModel = jsonTopicMappingService.MapGraph(CurrentTopic, options, relatedTopics); /*-------------------------------------------------------------------------------------------------------------------------- - | Return flat view model, if requested + | Return hierarchical view \-------------------------------------------------------------------------------------------------------------------------*/ - if (options.FlattenStructure) { - var flatJsonTopicViewModel = jsonTopicViewModel.AsFlatStructure(); - if (!options.ShowRoot) { - flatJsonTopicViewModel.RemoveAt(0); - } - return new JsonResult(flatJsonTopicViewModel); - } - - /*-------------------------------------------------------------------------------------------------------------------------- - | Otherwise, return hierarchical view model - \-------------------------------------------------------------------------------------------------------------------------*/ - if (options.ShowRoot) { - return new JsonResult(jsonTopicViewModel); - } - else { - return new JsonResult(jsonTopicViewModel.Children); - } + return new JsonResult(jsonTopicViewModel); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs new file mode 100644 index 00000000..f1486a9a --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs @@ -0,0 +1,187 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using System.Collections.Generic; +using System.Linq; +using Ignia.Topics.Collections; +using System.Text.Json.Serialization; +using System.ComponentModel; +using Ignia.Topics.Mapping; +using System.Threading.Tasks; + +namespace Ignia.Topics.Editor.Models.Json { + + /*============================================================================================================================ + | CLASS: JSON TOPIC MAPPING SERVICE + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Constructs a hierarchy of instances based on a root and a set of + /// . + /// + /// + /// + public class JsonTopicMappingService { + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Initializes a new instance of the class. + /// + public JsonTopicMappingService() { } + + /*========================================================================================================================== + | MAP GRAPH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Generates and returns a list of objects based on a root as well + /// as a set of . + /// + public List MapGraph( + Topic rootTopic, + JsonTopicViewModelOptions options, + ReadOnlyTopicCollection related = null + ) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish containers for mapped objects, tasks + \-----------------------------------------------------------------------------------------------------------------------*/ + var topicViewModels = new List(); + + /*------------------------------------------------------------------------------------------------------------------------ + | Bootstrap mapping process + \-----------------------------------------------------------------------------------------------------------------------*/ + if (options.ShowRoot) { + MapTopic(topicViewModels, rootTopic, options, related); + } + else { + foreach (var topic in rootTopic.Children) { + MapTopic(topicViewModels, topic, options, related); + } + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Return results + \-----------------------------------------------------------------------------------------------------------------------*/ + return topicViewModels; + + } + + /*========================================================================================================================== + | MAP TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Private helper function that + /// + private void MapTopic( + List topicList, + Topic topic, + JsonTopicViewModelOptions options, + ReadOnlyTopicCollection related = null + ) + { + + /*------------------------------------------------------------------------------------------------------------------------ + | Loop through children + \-----------------------------------------------------------------------------------------------------------------------*/ + var isValid = IsValidTopic(topic, options); + + /*------------------------------------------------------------------------------------------------------------------------ + | Map topic + \-----------------------------------------------------------------------------------------------------------------------*/ + if (isValid) { + + //Decrement counter + options.ResultLimit--; + + //Map topic + var mappedTopic = new JsonTopicViewModel( + topic.Id, + topic.Key, + options.UseKeyAsText ? topic.Key : topic.Title, + topic.GetUniqueKey(), + topic.GetWebPath(), + options.EnableCheckboxes ? (options.MarkRelated ? related.Contains(topic) : true) : new bool?(), + topic.Attributes.GetValue("DisableDelete", "0").Equals("0") + ); + + //Add topic to topic list + topicList.Add(mappedTopic); + + //Handle recursion, if appropriate + topicList = options.FlattenStructure ? topicList : mappedTopic.Children; + + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Loop through children (asynchronously) + \-----------------------------------------------------------------------------------------------------------------------*/ + if (options.IsRecursive || options.FlattenStructure ) { + foreach (var childTopic in topic.Children) { + MapTopic( + topicList, + childTopic, + options, + related + ); + } + } + + } + + /*========================================================================================================================== + | IS VALID TOPIC + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Static method confirms whether a topic is valid based on the . + /// + public static bool IsValidTopic(Topic topic, JsonTopicViewModelOptions options) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish variables + \-----------------------------------------------------------------------------------------------------------------------*/ + var searchTerms = (options.Query ?? "").Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate basic properties + \-----------------------------------------------------------------------------------------------------------------------*/ + if (!options.ShowAll && !topic.IsVisible()) return false; + if (!options.ShowNestedTopics && topic.ContentType.Equals("List")) return false; + if (options.ResultLimit.Equals(0)) return false; + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate filtered attribute + \-----------------------------------------------------------------------------------------------------------------------*/ + if (!String.IsNullOrEmpty(options.AttributeName) && !String.IsNullOrEmpty(options.AttributeName)) { + if (options.UsePartialMatch) { + if (topic.Attributes.GetValue(options.AttributeName, "").IndexOf(options.AttributeValue) == -1) { + return false; + } + } + if (!topic.Attributes.GetValue(options.AttributeName, "").Equals(options.AttributeValue)) { + return false; + } + } + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate search results + \-----------------------------------------------------------------------------------------------------------------------*/ + if (searchTerms.Count > 0) { + if (!searchTerms.All( + searchTerm => topic.Attributes.Any( + a => a.Value.IndexOf(searchTerm, 0, StringComparison.InvariantCultureIgnoreCase) >= 0 + ) + )) { + return false; + } + } + + return true; + + } + + } // Class +} // Namespace \ No newline at end of file From d56a9ecc07ec6f73e356f79a0b846453a7463e7c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 17:25:13 -0800 Subject: [PATCH 497/637] Removed pass-through properties from `AttributeViewModel` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most of the properties on `AttributeViewModel` are simply pass-throughs to either its `AttributeDescriptor` property or its (new) `CurrentTopic` property. As a result, these don't provide much value—and potentially cause confusion by introducing ambiguity (e.g., is `AttributeViewModel.Key` pointing to `AttributeViewModel.CurrentTopic.Key`? Or `AttributeViewModel.AttributeDescriptor.Key`?) Removing them cleans up the interface, avoids introducing potential mismatches in values by ensuring a single source, and ensures more clarity to the view logic—albeit at the cost of slightly longer identifiers. That said, I did keep `Value` and `InheritedValue` as useful shortcuts for the otherwise-wordy `@Model.CurrentTopic.Attributes[Model.AttributeDescriptor.Key]` and `@Model.CurrentTopic.InheritedAttributes[Model.AttributeDescriptor.Key]`—and especially to avoid potential issues with null checking (a scenario which should never happen, but which there is a risk of for individually called components such as `TopicListViewComponent`). --- .../AttributeViewModel.cs | 63 ------------------- .../AttributeTypeViewComponentBase.cs | 1 - .../Editor/Components/Boolean/Default.cshtml | 2 +- .../Components/DisplayOptions/Default.cshtml | 6 +- .../Editor/Components/FilePath/Default.cshtml | 2 +- .../Components/NestedTopicList/Default.cshtml | 4 +- .../Components/Relationship/Default.cshtml | 2 +- .../Views/Editor/Components/_Layout.cshtml | 8 +-- 8 files changed, 12 insertions(+), 76 deletions(-) diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel.cs b/Ignia.Topics.Editor.Models/AttributeViewModel.cs index ea1b0768..109f6a97 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel.cs @@ -56,37 +56,6 @@ public AttributeViewModel( /// public EditingTopicViewModel CurrentTopic { get; } - /*========================================================================================================================== - | KEY - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides the associated attribute key, as defined on the instance. - /// - /// - /// While this value can be retrieved directly from the property, relaying it through - /// the provides cleaner output in the forms by allowing the generated id and - /// name attributes to map to the target interface. - /// - public string Key => AttributeDescriptor.Key; - - /*========================================================================================================================== - | EDITOR TYPE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides the associated attribute type, as implied by the of the . - /// - public string EditorType => AttributeDescriptor.ContentType; - - /*========================================================================================================================== - | TOPID ID - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides the , assuming the has already been saved; otherwise will return - /// -1. - /// - public int TopicId { get; set; } - /*========================================================================================================================== | VALUE \-------------------------------------------------------------------------------------------------------------------------*/ @@ -107,38 +76,6 @@ public AttributeViewModel( /// public virtual string InheritedValue { get; set; } - /*========================================================================================================================== - | IS ENABLED - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Determines whether the field should be enabled, as defined on the instance. - /// - public bool IsEnabled { - get => AttributeDescriptor.GetBooleanConfigurationValue( - "IsEnabled", - AttributeDescriptor.GetBooleanConfigurationValue("Enabled", AttributeDescriptor.IsEnabled) - ); - set { - AttributeDescriptor.IsEnabled = value; - } - } - - /*========================================================================================================================== - | CSS CLASS - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Defines the CSS class names to be used, if any are configured. - /// - public string CssClass { - get => AttributeDescriptor.GetConfigurationValue( - "CssClass", - AttributeDescriptor.GetConfigurationValue("CssClassField", AttributeDescriptor.CssClass) - ); - set { - AttributeDescriptor.CssClass = value; - } - } - } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs index cf471c4f..d82f0ffc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs @@ -75,7 +75,6 @@ public AttributeViewModel GetAttributeViewModel(AttributeViewModel viewModel) { /*------------------------------------------------------------------------------------------------------------------------ | Set contextual values from current topic \-----------------------------------------------------------------------------------------------------------------------*/ - viewModel.TopicId = topic.Id; viewModel.InheritedValue = topic.InheritedAttributes.ContainsKey(key)? topic.InheritedAttributes[key] : null; viewModel.Value = topic.Attributes.ContainsKey(key)? topic.Attributes[key] : null; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml index 38cd3f2f..803f4ac1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Boolean/Default.cshtml @@ -4,7 +4,7 @@ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -
    +
    diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DisplayOptions/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DisplayOptions/Default.cshtml index 173908c2..ebceae36 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DisplayOptions/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DisplayOptions/Default.cshtml @@ -4,17 +4,17 @@ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } -
    +
    -
    +
    -
    +
    diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FilePath/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FilePath/Default.cshtml index aa4050e3..a0b476e1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FilePath/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FilePath/Default.cshtml @@ -7,7 +7,7 @@ - initEditorModal('@Model.Key', n.attributes.text, targetUrl + '?IsModal=true', @($"{Model.AttributeDescriptor.Key}Tree_refresh"));return false; + initEditorModal('@Model.AttributeDescriptor.Key', n.attributes.text, targetUrl + '?IsModal=true', @($"{Model.AttributeDescriptor.Key}Tree_refresh"));return false; } else { @@ -86,7 +86,7 @@ @if (!Model.IsNew) { var attributeDescriptor = new TopicListAttributeTopicViewModel() { - Key = Model.Key, + Key = Model.AttributeDescriptor.Key, ContentType = "TopicListAttribute", RootTopicKey = "Configuration:ContentTypes", AttributeKey = "ContentType", diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml index 475a4609..eaf70d22 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/Relationship/Default.cshtml @@ -23,7 +23,7 @@ containerScroll : true, border : false, baseCls : 'RelationshipsTreeView', - dataUrl : '/OnTopic/Json/@rootTopicKey?ShowRoot=@Model.AttributeDescriptor.ShowRoot&ShowAll=true&RelatedNamespace=@Model.AttributeDescriptor.Key&RelatedTopicID=@Model.TopicId&AttributeName=@Model.AttributeDescriptor.AttributeKey&AttributeValue=@Model.AttributeDescriptor.AttributeValue', + dataUrl : '/OnTopic/Json/@rootTopicKey?ShowRoot=@Model.AttributeDescriptor.ShowRoot&ShowAll=true&RelatedNamespace=@Model.AttributeDescriptor.Key&RelatedTopicID=@Model.CurrentTopic.Id&AttributeName=@Model.AttributeDescriptor.AttributeKey&AttributeValue=@Model.AttributeDescriptor.AttributeValue', root : new Ext.tree.AsyncTreeNode({ checked : true, text : 'Web', diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml index 5e792479..91d02212 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml @@ -2,14 +2,14 @@ -
    +
    @Html.LabelFor(m => m.Value, Model.AttributeDescriptor.Title) -
    +
    - @Html.HiddenFor(m => m.EditorType) - @Html.HiddenFor(m => m.Key) + @Html.HiddenFor(m => m.AttributeDescriptor.ContentType) + @Html.HiddenFor(m => m.AttributeDescriptor.Key) @RenderBody() From f385ab18b66a206a1d7088ad89f489b3b1f1c04c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 17:51:23 -0800 Subject: [PATCH 498/637] Moved `CKEditor.css` to SCSS Moved `CKEditor.css` from `/wwwroot/Shared/Styles` to `/Shared/Styles` and renamed it to `CKEditor.scss`. Updated the glob pattern in the `gulpFile.js` to pick up any non-partial SCSS files. And, finally, renamed the `customConfig.js` reference to the CSS file to not look for the `.min`, since we're now using source maps (and, thus, compiling all SCSS files as minified). --- Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js | 2 +- .../Shared/Styles/CKEditor.css => Shared/Styles/CKEditor.scss} | 0 Ignia.Topics.Editor.Mvc/gulpFile.js | 2 +- Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) rename Ignia.Topics.Editor.Mvc/{wwwroot/Shared/Styles/CKEditor.css => Shared/Styles/CKEditor.scss} (100%) delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js index 656edae0..57925d35 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js @@ -18,7 +18,7 @@ CKEDITOR.editorConfig = function( config ) { config.resize_maxWidth = '800'; config.fillEmptyBlocks = false; config.shiftEnterMode = CKEDITOR.ENTER_BR; - config.contentsCss = '/_content/Ignia.Topics.Editor.Mvc/Shared/Styles/CKEditor.min.css'; + config.contentsCss = '/_content/Ignia.Topics.Editor.Mvc/Shared/Styles/CKEditor.css'; config.toolbar = [ { name: 'document', items: [ 'Source' ] }, { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo' ] }, diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css b/Ignia.Topics.Editor.Mvc/Shared/Styles/CKEditor.scss similarity index 100% rename from Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.css rename to Ignia.Topics.Editor.Mvc/Shared/Styles/CKEditor.scss diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index 47f14172..70143f08 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -37,7 +37,7 @@ var environment = 'development', | be conditional based on the outputDir. As a result, they will likely be hardcoded into each task's dest() method. \-----------------------------------------------------------------------------------------------------------------------------*/ const files = { - scss : 'Shared/Styles/Style.scss', + scss : 'Shared/Styles/**/[!_]*.scss', js : 'Shared/Scripts/*.js', jsVendor : [ 'node_modules/jquery/dist/jquery.min.js', 'node_modules/jquery-ui-dist/jquery-ui.min.js', diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css deleted file mode 100644 index 8bf39a45..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Styles/CKEditor.min.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:'Lato Light';src:url(../Fonts/lato-light-webfont.eot);src:url(../Fonts/lato-light-webfont.eot?#iefix) format('embedded-opentype'),url(../Fonts/lato-light-webfont.woff) format('woff'),url(../Fonts/lato-light-webfont.ttf) format('truetype'),url(../Fonts/lato-light-webfont.svg#latolight) format('svg');font-weight:400;font-style:normal}@font-face{font-family:Lato;src:url(../Fonts/lato-regular-webfont.eot);src:url(../Fonts/lato-regular-webfont.eot?#iefix) format('embedded-opentype'),url(../Fonts/lato-regular-webfont.woff) format('woff'),url(../Fonts/lato-regular-webfont.ttf) format('truetype'),url(../Fonts/lato-regular-webfont.svg#latoregular) format('svg');font-weight:400;font-style:normal}body{background-color:#fff;font-family:Lato,Helvetica,Arial,sans-serif;font-size:16px;color:#333}h1,h2,h3{font-family:"Lato Light",Helvetica,Arial,sans-serif}h1{font-size:32px}h2{font-size:28px}h3{font-size:24px}h4{font-size:18px}h5{font-size:16px}h6{font-size:14px}.Heading{font-family:Lato,Helvetica,Arial,sans-serif} \ No newline at end of file From 236eb75adfb135feaffba66540075eaf63030fcb Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 18:50:04 -0800 Subject: [PATCH 499/637] Restricted scope of `TopicListViewComponent` if `PermittedContentTypes` is empty If `PermittedContentTypes` is empty, then all `ContentTypeDescriptor`s should be listed. Without this, the `TopicListViewComponent` was instead defaulting to `Root` and displaying e.g., `Web`, `Configuration`. This helps direct it in these scenarios. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 97e5ef13..2070a575 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -70,6 +70,8 @@ var attributeDescriptor = new TopicListAttributeTopicViewModel() { Key = "Navigation", ContentType = "TopicListAttribute", + AttributeKey = "ContentType", + AttributeValue = "ContentTypeDescriptor", DefaultLabel = "Add new topic…" }; } From 2bc4020c63b8ba4552414be6cc0620406ecc062f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 18:50:56 -0800 Subject: [PATCH 500/637] Fixed `[Relationship()]` type on `NestedTopicViewModel` The `PermittedContentTypes` is a `Relationship` not a `NestedTopicList`. --- .../Metadata/NestedTopicListAttributeTopicViewModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs index 8efff6cb..d27c5036 100644 --- a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs @@ -45,7 +45,8 @@ public class NestedTopicListAttributeTopicViewModel: AttributeDescriptorTopicVie /// Determines which s, if any, are permitted to be created as part of the configured . /// - [Relationship("ContentTypes", Type=RelationshipType.NestedTopics)] + [Follow(Relationships.None)] + [Relationship("ContentTypes", Type=RelationshipType.Relationship)] public List PermittedContentTypes { get; } = new List(); /*============================================================================================================================== From cd22e15261d4f29355e093dbd1681eb45986c9fd Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 18:52:16 -0800 Subject: [PATCH 501/637] Ensured `Relationships` are followed for `AttributeDescriptors` Without this, the `PermittedContentTypes` collection wasn't being populated for `NestedTopicListAttribute`s, since it was otherwise two levels removed from the topic being mapped (i.e., the `ContentTypeDescriptor`). --- .../Metadata/ContentTypeDescriptorTopicViewModel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs index 591d6212..92b9f6c1 100644 --- a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs @@ -34,6 +34,7 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// A list of instances representing each of the permitted by the underlying . /// + [Follow(Relationships.Relationships)] public List AttributeDescriptors { get; } = new List(); /*========================================================================================================================== From ae47aaf5756f4ff398a8a051181c1b4e4fb1334e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 6 Nov 2019 18:58:15 -0800 Subject: [PATCH 502/637] Fixed issue with over-eager recursion The logic was missing a check for `IsValid`, which meant that children were being mapped, even if the current topic was invalid. That's expected in the case of `FlattenStructure`, but isn't expected if `IsRecursive` is true. --- .../Areas/Editor/Infrastructure/JsonTopicMappingService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs index f1486a9a..0b3c32e3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs @@ -119,7 +119,7 @@ private void MapTopic( /*------------------------------------------------------------------------------------------------------------------------ | Loop through children (asynchronously) \-----------------------------------------------------------------------------------------------------------------------*/ - if (options.IsRecursive || options.FlattenStructure ) { + if (isValid && options.IsRecursive || options.FlattenStructure ) { foreach (var childTopic in topic.Children) { MapTopic( topicList, From b45c0cdd59433d1a82a2c27e9cc8b630cdc92f75 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 13:09:26 -0800 Subject: [PATCH 503/637] Removed unnecessary `ITopicRepository` dependency The `ITopicRepository` is required by the `TokenizedTopicListViewComponent`, which the `TopicReferenceViewComponent` defers work to. That said, it is populated with its own instance via the composition root, and doesn't need the `TopicReferenceViewComponent` to inject it. --- Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs | 2 +- .../Editor/Components/TopicReferenceViewComponent.cs | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 9096f502..17600022 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -183,7 +183,7 @@ public object Create(ViewComponentContext context) { return new TopicListViewComponent(_topicRepository); } if (type == typeof(TopicReferenceViewComponent)) { - return new TopicReferenceViewComponent(_topicRepository); + return new TopicReferenceViewComponent(); } else { throw new Exception($"Unknown view component {type.Name}"); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs index a7871b5e..d809f5d0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs @@ -23,19 +23,13 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// public class TopicReferenceViewComponent : AttributeTypeViewComponentBase { - /*========================================================================================================================== - | PRIVATE VARIABLES - \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly ITopicRepository _topicRepository = null; - /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Initializes a new instance of a with necessary dependencies. /// - public TopicReferenceViewComponent(ITopicRepository topicRepository) : base() { - _topicRepository = topicRepository; + public TopicReferenceViewComponent() : base() { } /*========================================================================================================================== From 1ba032992cee5cfbd08841e1e5eb76989bb115bf Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 13:09:44 -0800 Subject: [PATCH 504/637] Set dependencies as undeclared MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, readonly dependencies were set to `null` by default. Ultimately, once we convert to C# 8, these will not be nullable. Since the value should always be overwritten by a value during construction, setting a default of `null` is unnecessary—and will give the nullability annotation context conflicting information. --- .../Areas/Editor/Components/FileListViewComponent.cs | 2 +- .../Areas/Editor/Components/TokenizedTopicListViewComponent.cs | 2 +- .../Areas/Editor/Components/TopicListViewComponent.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index fd2cd1ce..4557cbe5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -29,7 +29,7 @@ public class FileListViewComponent: AttributeTypeViewComponentBase { /*========================================================================================================================== | PRIVATE VARIABLES \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly IWebHostEnvironment _webHostEnvironment = null; + private readonly IWebHostEnvironment _webHostEnvironment; /*========================================================================================================================== | CONSTRUCTOR diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index 7d37444c..baefdd11 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -25,7 +25,7 @@ public class TokenizedTopicListViewComponent : AttributeTypeViewComponentBase { /*========================================================================================================================== | PRIVATE VARIABLES \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly ITopicRepository _topicRepository = null; + private readonly ITopicRepository _topicRepository; /*========================================================================================================================== | CONSTRUCTOR diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index f52c2f46..25869dab 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -30,7 +30,7 @@ public class TopicListViewComponent : AttributeTypeViewComponentBase { /*========================================================================================================================== | PRIVATE VARIABLES \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly ITopicRepository _topicRepository = null; + private readonly ITopicRepository _topicRepository; /*========================================================================================================================== | CONSTRUCTOR From 2e326e37793700b21f86766a542bbc3254c99b5b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 13:10:00 -0800 Subject: [PATCH 505/637] Removed extraneous whitespace between members --- .../Areas/Editor/Components/HtmlViewComponent.cs | 1 - .../Areas/Editor/Components/LastModifiedByViewComponent.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs index 32d9faaa..6edb85cc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs @@ -26,7 +26,6 @@ public class HtmlViewComponent : AttributeTypeViewComponentBase { /// public HtmlViewComponent() : base() { } - /*========================================================================================================================== | METHOD: INVOKE (ASYNC) \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs index 721e8d13..674c5bfe 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs @@ -29,7 +29,6 @@ public class LastModifiedByViewComponent : AttributeTypeViewComponentBase { /// public LastModifiedByViewComponent() : base() { } - /*========================================================================================================================== | METHOD: INVOKE (ASYNC) \-------------------------------------------------------------------------------------------------------------------------*/ From 3b0841f9ccdd57c0af8f5f4a2d43849ef805279d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 13:18:53 -0800 Subject: [PATCH 506/637] Migrated view components to use synchronous `Invoke()` method Previously, all of the view components used `InvokeAsync()`. In practice, however, not a single one of them relies on any asynchronous work, or used the `await` keyword. As such, this was unnecessary (and throwing warnings). Note that any of these can be modifed to async in the future without problem; the `Edit.cshtml` file that calls them still uses `Component.InvokeAsync()` which is smart enough to fall back to `Invoke()` if the `InvokeAsync()` method isn't available. --- .../Areas/Editor/Components/BooleanViewComponent.cs | 4 ++-- .../Areas/Editor/Components/DateTimeViewComponent.cs | 4 ++-- .../Editor/Components/DefaultAttributeTypeViewComponent.cs | 4 ++-- .../Areas/Editor/Components/FileListViewComponent.cs | 4 ++-- .../Areas/Editor/Components/FilePathViewComponent.cs | 4 ++-- .../Areas/Editor/Components/HtmlViewComponent.cs | 4 ++-- .../Areas/Editor/Components/LastModifiedByViewComponent.cs | 4 ++-- .../Areas/Editor/Components/LastModifiedViewComponent.cs | 4 ++-- .../Areas/Editor/Components/NestedTopicListViewComponent.cs | 4 ++-- .../Areas/Editor/Components/NumberViewComponent.cs | 4 ++-- .../Areas/Editor/Components/RelationshipViewComponent.cs | 4 ++-- .../Areas/Editor/Components/TextAreaViewComponent.cs | 4 ++-- .../Areas/Editor/Components/TextViewComponent.cs | 4 ++-- .../Editor/Components/TokenizedTopicListViewComponent.cs | 4 ++-- .../Areas/Editor/Components/TopicListViewComponent.cs | 4 ++-- .../Areas/Editor/Components/TopicReferenceViewComponent.cs | 4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs index 64fa888b..cec0a8db 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs @@ -30,12 +30,12 @@ public class BooleanViewComponent: AttributeTypeViewComponentBase { public BooleanViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, BooleanAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs index 243fb3eb..a1ba823e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs @@ -30,12 +30,12 @@ public class DateTimeViewComponent: AttributeTypeViewComponentBase { public DateTimeViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, DateTimeAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs index 97316e42..4fab5f68 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs @@ -36,12 +36,12 @@ public class DefaultAttributeTypeViewComponent : AttributeTypeViewComponentBase public DefaultAttributeTypeViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, AttributeDescriptorTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index 4557cbe5..f1519b7b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -42,12 +42,12 @@ public FileListViewComponent(IWebHostEnvironment webHostEnvironment): base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, FileListAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs index 69c425c8..0c993fb1 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs @@ -56,12 +56,12 @@ public FilePathViewComponent(ITopicRoutingService topicRoutingService) : base() protected Topic CurrentTopic { get; set; } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, FilePathAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs index 6edb85cc..7f0ec3c8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs @@ -27,12 +27,12 @@ public class HtmlViewComponent : AttributeTypeViewComponentBase { public HtmlViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, HtmlAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs index 674c5bfe..670ada21 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs @@ -30,12 +30,12 @@ public class LastModifiedByViewComponent : AttributeTypeViewComponentBase { public LastModifiedByViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, LastModifiedByAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index 7c2fde6d..e9543d1b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -30,12 +30,12 @@ public class LastModifiedViewComponent: AttributeTypeViewComponentBase { public LastModifiedViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, LastModifiedAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs index e698d025..1e2a6d7d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs @@ -30,12 +30,12 @@ public class NestedTopicListViewComponent : AttributeTypeViewComponentBase { public NestedTopicListViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, NestedTopicListAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs index 991cae0b..3875d641 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs @@ -30,12 +30,12 @@ public class NumberViewComponent: AttributeTypeViewComponentBase { public NumberViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, NumberAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs index 614df43c..14d8c8ea 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs @@ -28,12 +28,12 @@ public class RelationshipViewComponent : AttributeTypeViewComponentBase { public RelationshipViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, RelationshipAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs index 2361d3d0..44a5286e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs @@ -31,12 +31,12 @@ public class TextAreaViewComponent: AttributeTypeViewComponentBase { public TextAreaViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, TextAreaAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs index b3ad61c0..1ac59167 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs @@ -31,12 +31,12 @@ public class TextViewComponent: AttributeTypeViewComponentBase { public TextViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, TextAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index baefdd11..c9a1ff71 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -38,12 +38,12 @@ public TokenizedTopicListViewComponent(ITopicRepository topicRepository) : base( } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, TokenizedTopicListAttributeTopicViewModel attribute, string htmlFieldPrefix diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 25869dab..4fc3d762 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -43,12 +43,12 @@ public TopicListViewComponent(ITopicRepository topicRepository): base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, TopicListAttributeTopicViewModel attribute, string htmlFieldPrefix = null, diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs index d809f5d0..03b44b24 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs @@ -33,12 +33,12 @@ public TopicReferenceViewComponent() : base() { } /*========================================================================================================================== - | METHOD: INVOKE (ASYNC) + | METHOD: INVOKE \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Assembles the view model for the . /// - public async Task InvokeAsync( + public IViewComponentResult Invoke( EditingTopicViewModel currentTopic, TopicReferenceAttributeTopicViewModel attribute, string htmlFieldPrefix From 82403390f6eda4c42357f6cb82a2d3938034b1df Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 13:36:22 -0800 Subject: [PATCH 507/637] Introduced setter for `ModelType` to resolve mapping issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some `AttributeDescriptor`s have `ModelType` set, which means the mapping service will attempt to map them to the `AttributeDescriptorTopicViewModel`—which `TokenizedTopicListAttributeTopicViewModel` derives from. Since it is infering its type from `AsRelationship`, however, it wasn't defining a setter. This yielded an exception. To mitigate this, a setter was increased—though it doesn't actually _do_ anything since `AsRelationship` should take precedence. --- .../Metadata/TokenizedTopicListAttributeTopicViewModel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs index 46273b34..03949dae 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TokenizedTopicListAttributeTopicViewModel.cs @@ -25,7 +25,10 @@ public class TokenizedTopicListAttributeTopicViewModel: QueryableTopicListAttrib | PROPERTY: MODEL TYPE \-------------------------------------------------------------------------------------------------------------------------*/ /// - public override ModelType ModelType => (AsRelationship?? false)? ModelType.Relationship : ModelType.ScalarValue; + public override ModelType ModelType { + get => (AsRelationship ?? false) ? ModelType.Relationship : ModelType.ScalarValue; + set {} + } /*========================================================================================================================== | RESULT LIMIT From 4b4ca2eb167c7b532203f70b5a271b8e95ecee73 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 13:46:57 -0800 Subject: [PATCH 508/637] Removed dependency on `foundation-sites` We may reintroduce **Zurb Foundation** at a later date (and, in fact, I hope we do). In the meanwhile, however, we're still using **Twitter Bootstrap**, and this dependency isn't being utilized. Further, even if it were, we'd now establish it via **npm** and deploy it using **Gulp.js**. --- Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj | 1 - Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 1 - 2 files changed, 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 107a478d..c86fc7a7 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -7,7 +7,6 @@ - diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 55d90958..455b17d9 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -6,7 +6,6 @@ - From 70278f00461c595f2ffa240047bff528f25ff296 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 13:48:01 -0800 Subject: [PATCH 509/637] Removed unused fields --- .../Components/ViewModels/BooleanAttributeViewModel.cs | 6 ------ .../Components/ViewModels/FilePathAttributeViewModel.cs | 6 ------ 2 files changed, 12 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs index 2378f6b2..ca43bbad 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/BooleanAttributeViewModel.cs @@ -18,12 +18,6 @@ namespace Ignia.Topics.Editor.Models.Components.ViewModels { /// public class BooleanAttributeViewModel: AttributeViewModel { - /*========================================================================================================================== - | PRIVATE VARIABLES - \-------------------------------------------------------------------------------------------------------------------------*/ - private string _value = null; - private string _inheritedValue = null; - /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/FilePathAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/FilePathAttributeViewModel.cs index 68d63df2..fe9eb444 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/FilePathAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/FilePathAttributeViewModel.cs @@ -19,12 +19,6 @@ namespace Ignia.Topics.Editor.Models.Components.ViewModels { /// public class FilePathAttributeViewModel: AttributeViewModel { - /*========================================================================================================================== - | PRIVATE VARIABLES - \-------------------------------------------------------------------------------------------------------------------------*/ - private string _defaultDate = null; - private string _defaultTime = null; - /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ From 3c0f194448e1b7d47e658dada7297bcd181f704b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 13:48:46 -0800 Subject: [PATCH 510/637] Migrated `SetVersion()` back to synchronous --- .../Areas/Editor/Controllers/EditorController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 1fde3849..ca3c628d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -284,7 +284,7 @@ private void SetRelationships(Topic topic, AttributeDescriptor attribute, Attrib /// Calls Topic.Rollback() with the selected version datetime to set the data to that version and re-save the Topic. /// [HttpGet] - public async Task SetVersion(DateTime version) { + public IActionResult SetVersion(DateTime version) { /*-------------------------------------------------------------------------------------------------------------------------- | Initiate rollback From e46030c0769e7e581bb6c92abf0ad18f1e312ce5 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:21:45 -0800 Subject: [PATCH 511/637] Migrated legacy code to implicitly typed variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Code ported from legacy **ASP.NET WebForms** user controls was still explicitly defining variables. Migrated those to use `var` instead—including inline declarations for `out` parameters, where appropriate. --- .../ViewModels/DateTimeAttributeViewModel.cs | 6 ++--- .../SampleActivator.cs | 4 ++-- .../Components/FileListViewComponent.cs | 8 +++---- .../TokenizedTopicListViewComponent.cs | 10 ++++---- .../Components/TopicListViewComponent.cs | 24 +++++++++---------- .../Editor/Controllers/EditorController.cs | 2 +- 6 files changed, 26 insertions(+), 28 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs index dba76b1c..ead7da15 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs @@ -54,8 +54,7 @@ public string GetDefaultDate() { //Convert from JavaScript date format conventions to C# conventions var dateFormat = AttributeDescriptor.DateFormat.Replace("y", "yy").Replace("mm", "MM"); if (!String.IsNullOrEmpty(Value)) { - DateTime dateValue; - if (DateTime.TryParse(Value, out dateValue)) { + if (DateTime.TryParse(Value, out var dateValue)) { _defaultDate = dateValue.ToString(dateFormat); } } @@ -75,8 +74,7 @@ public string GetDefaultDate() { public string GetDefaultTime() { if (String.IsNullOrEmpty(_defaultTime)) { if (!String.IsNullOrEmpty(Value)) { - DateTime timeValue; - if (DateTime.TryParse(Value, out timeValue)) { + if (DateTime.TryParse(Value, out var timeValue)) { _defaultTime = timeValue.ToString(AttributeDescriptor.TimeFormat); } } diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 17600022..e960cb8d 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -100,7 +100,7 @@ public object Create(ControllerContext context) { /*------------------------------------------------------------------------------------------------------------------------ | Determine controller type \-----------------------------------------------------------------------------------------------------------------------*/ - Type type = context.ActionDescriptor.ControllerTypeInfo.AsType(); + var type = context.ActionDescriptor.ControllerTypeInfo.AsType(); /*------------------------------------------------------------------------------------------------------------------------ | Configure and return appropriate controller @@ -123,7 +123,7 @@ public object Create(ViewComponentContext context) { /*------------------------------------------------------------------------------------------------------------------------ | Determine view component type \-----------------------------------------------------------------------------------------------------------------------*/ - Type type = context.ViewComponentDescriptor.TypeInfo.AsType(); + var type = context.ViewComponentDescriptor.TypeInfo.AsType(); /*------------------------------------------------------------------------------------------------------------------------ | Configure and return appropriate view component diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index f1519b7b..f68b58c5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -122,15 +122,15 @@ public List GetFiles(string inheritedValue, FileListAttributeTop /*------------------------------------------------------------------------------------------------------------------------ | GET ALL FILES \-----------------------------------------------------------------------------------------------------------------------*/ - string[] foundFiles = Directory.GetFiles(_webHostEnvironment.WebRootPath + attribute.Path, searchPattern, searchOption); + var foundFiles = Directory.GetFiles(_webHostEnvironment.WebRootPath + attribute.Path, searchPattern, searchOption); if (!String.IsNullOrEmpty(inheritedValue)) { string inheritedValueKey = inheritedValue.Replace("." + attribute.Extension, ""); files.Add(new SelectListItem("", inheritedValue)); } - foreach (string foundFile in foundFiles) { - string fileName = foundFile.Replace(_webHostEnvironment.WebRootPath + attribute.Path, ""); - string fileNameKey = fileName.Replace("." + attribute.Extension, ""); + foreach (var foundFile in foundFiles) { + var fileName = foundFile.Replace(_webHostEnvironment.WebRootPath + attribute.Path, ""); + var fileNameKey = fileName.Replace("." + attribute.Extension, ""); files.Add(new SelectListItem(fileNameKey, fileName)); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index c9a1ff71..26f4ab3b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -95,10 +95,10 @@ public string GetSelectedTopics(string value) { /*------------------------------------------------------------------------------------------------------------------------ | Split value into Topic.Ids; retrieve JSON for each topic \-----------------------------------------------------------------------------------------------------------------------*/ - string selectedTopics = "["; + var selectedTopics = "["; if (!String.IsNullOrEmpty(value)) { - string[] topicValues = value.Split(','); - foreach (string topicId in topicValues) { + var topicValues = value.Split(','); + foreach (var topicId in topicValues) { selectedTopics += GetTopicJson(topicId); } } @@ -121,8 +121,8 @@ private string GetTopicJson(string topicId) { /*---------------------------------------------------------------------------------------------------------------------------- | Set initial variables \---------------------------------------------------------------------------------------------------------------------------*/ - string topicJson = ""; - Topic topic = _topicRepository.Load(Int32.Parse(topicId)); + var topicJson = ""; + var topic = _topicRepository.Load(Int32.Parse(topicId)); /*---------------------------------------------------------------------------------------------------------------------------- | Write out JSON for existing topic, if available diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 4fc3d762..722dab82 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -130,8 +130,8 @@ public IViewComponentResult Invoke( \-----------------------------------------------------------------------------------------------------------------------*/ foreach (var topic in topics) { - string title = viewModel.TopicList.Any(t => t.Text == topic.Title)? $"{topic.Title} ({topic.Key})" : topic.Title; - string value = getValue(topic); + var title = viewModel.TopicList.Any(t => t.Text == topic.Title)? $"{topic.Title} ({topic.Key})" : topic.Title; + var value = getValue(topic); viewModel.TopicList.Add( new SelectListItem { @@ -181,17 +181,17 @@ string getValue(Topic topic) { | Retrieves a collection of topics with optional control call filter properties Scope, AttributeName and AttributeValue. \-------------------------------------------------------------------------------------------------------------------------*/ public TopicCollection GetTopics( - string scope = null, - string attributeKey = null, - string attributeValue = null, - string allowedKeys = "" + string scope = null, + string attributeKey = null, + string attributeValue = null, + string allowedKeys = "" ) { /*------------------------------------------------------------------------------------------------------------------------ | Instantiate object \-----------------------------------------------------------------------------------------------------------------------*/ - TopicCollection topics = new TopicCollection(); - Topic topic = null; + var topics = new TopicCollection(); + var topic = (Topic)null; if (scope != null) { topic = _topicRepository.Load(scope); @@ -208,7 +208,7 @@ public TopicCollection GetTopics( if (attributeKey != null && attributeValue != null) { var readOnlyTopics = topic.FindAllByAttribute(attributeKey, attributeValue); - foreach (Topics.Topic readOnlyTopic in readOnlyTopics) { + foreach (var readOnlyTopic in readOnlyTopics) { if (!topics.Contains(readOnlyTopic.Key)) { topics.Add(readOnlyTopic); } @@ -220,7 +220,7 @@ public TopicCollection GetTopics( | Get all Topics under RootTopic \-----------------------------------------------------------------------------------------------------------------------*/ if (topics.Count == 0) { - foreach (Topic childTopic in topic.Children) { + foreach (var childTopic in topic.Children) { if (!topics.Contains(childTopic)) { topics.Add(childTopic); } @@ -233,8 +233,8 @@ public TopicCollection GetTopics( string[] allowedKeyList = null; if (!String.IsNullOrEmpty(allowedKeys)) { allowedKeyList = allowedKeys.Split(','); - for (int i = 0; i < topics.Count; i++) { - Topic childTopic = topics[i]; + for (var i = 0; i < topics.Count; i++) { + var childTopic = topics[i]; if (Array.IndexOf(allowedKeyList, childTopic.Key) < 0) { topics.RemoveAt(i); i--; diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index ca3c628d..118446e9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -267,7 +267,7 @@ private void SetRelationships(Topic topic, AttributeDescriptor attribute, Attrib topic.Relationships.ClearTopics(attribute.Key); foreach (var topicIdString in relatedTopics) { Topic relatedTopic = null; - var isTopicId = Int32.TryParse(topicIdString, out int topicIdInt); + var isTopicId = Int32.TryParse(topicIdString, out var topicIdInt); if (isTopicId && topicIdInt > 0) { relatedTopic = TopicRepository.Load(topicIdInt); } From b0a67ce8440ea59a604544bb1637e9dfa0c7241f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:22:32 -0800 Subject: [PATCH 512/637] Migrated to expression-bodied members where appropriate --- Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs | 4 +--- .../Metadata/TopicListAttributeTopicViewModel.cs | 4 +--- .../Areas/Editor/Controllers/EditorController.cs | 6 +----- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs index 7b357459..db21bb8c 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs @@ -136,9 +136,7 @@ public bool IsDraggable { /// Determines whether the current topic is a leaf node or not. /// [JsonPropertyName("leaf")] - public bool IsLeaf { - get => Children.Count.Equals(0); - } + public bool IsLeaf => Children.Count.Equals(0); /*========================================================================================================================== | CHILDREN diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs index 630ed1ec..43657d83 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs @@ -82,9 +82,7 @@ public string? ValueToken { } return _valueProperty; } - set { - _valueProperty = value; - } + set => _valueProperty = value; } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 118446e9..0ea6fd73 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -73,11 +73,7 @@ ITopicMappingService topicMappingService /// Provides a reference to the Topic Repository in order to gain arbitrary access to the entire topic graph. /// /// The TopicRepository associated with the controller. - protected ITopicRepository TopicRepository { - get { - return _topicRepository; - } - } + protected ITopicRepository TopicRepository => _topicRepository; /*========================================================================================================================== | CURRENT TOPIC From 4f5147c35c121682585c3cb0a0ec5d56a2cdfdcd Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:23:37 -0800 Subject: [PATCH 513/637] Updated documentation to use Framework types, per standards --- Ignia.Topics.Editor.Mvc.Host/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Program.cs b/Ignia.Topics.Editor.Mvc.Host/Program.cs index 0185d809..f3c2aca4 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Program.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Program.cs @@ -20,7 +20,7 @@ namespace OnTopicTest { | CLASS: PROGRAM \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// The class—and it's method—represent the entry point into the + /// The class—and it's method—represent the entry point into the /// ASP.NET Core web application. /// public class Program { From c7e4e915e54b94b508fafae74cd6258bb6442849 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:24:40 -0800 Subject: [PATCH 514/637] Removed unused variables and fields --- Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs | 14 -------------- .../Editor/Components/FileListViewComponent.cs | 1 - 2 files changed, 15 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index e960cb8d..560e1c73 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -34,7 +34,6 @@ public class SampleActivator : IControllerActivator, IViewComponentActivator { /*========================================================================================================================== | PRIVATE INSTANCES \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly string _connectionString = null; private readonly ITypeLookupService _typeLookupService = null; private readonly ITopicMappingService _topicMappingService = null; private readonly ITopicRepository _topicRepository = null; @@ -44,7 +43,6 @@ public class SampleActivator : IControllerActivator, IViewComponentActivator { /*========================================================================================================================== | HIERARCHICAL TOPIC MAPPING SERVICE \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly IHierarchicalTopicMappingService _hierarchicalMappingService = null; /*========================================================================================================================== | CONSTRUCTOR @@ -62,11 +60,9 @@ public SampleActivator(string connectionString, IWebHostEnvironment webHostEnvir /*------------------------------------------------------------------------------------------------------------------------ | Initialize Topic Repository \-----------------------------------------------------------------------------------------------------------------------*/ - _connectionString = connectionString; _webHostEnvironment = webHostEnvironment; var sqlTopicRepository = new SqlTopicRepository(connectionString); var cachedTopicRepository = new CachedTopicRepository(sqlTopicRepository); - var topicViewModel = new PageTopicViewModel(); /*------------------------------------------------------------------------------------------------------------------------ | Preload repository @@ -76,16 +72,6 @@ public SampleActivator(string connectionString, IWebHostEnvironment webHostEnvir _topicMappingService = new TopicMappingService(_topicRepository, _typeLookupService); _rootTopic = _topicRepository.Load(); - /*------------------------------------------------------------------------------------------------------------------------ - | Establish hierarchical topic mapping service - \-----------------------------------------------------------------------------------------------------------------------*/ - _hierarchicalMappingService = new CachedHierarchicalTopicMappingService( - new HierarchicalTopicMappingService( - _topicRepository, - _topicMappingService - ) - ); - } /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index f68b58c5..82491d18 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -125,7 +125,6 @@ public List GetFiles(string inheritedValue, FileListAttributeTop var foundFiles = Directory.GetFiles(_webHostEnvironment.WebRootPath + attribute.Path, searchPattern, searchOption); if (!String.IsNullOrEmpty(inheritedValue)) { - string inheritedValueKey = inheritedValue.Replace("." + attribute.Extension, ""); files.Add(new SelectListItem("", inheritedValue)); } foreach (var foundFile in foundFiles) { From 0a2c9acc14f36d20ef58fea80503bcdecc44c156 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:25:31 -0800 Subject: [PATCH 515/637] Marked required dependencies as `readonly`, removed `null` assignments --- Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs | 14 +++++--------- .../Areas/Editor/Controllers/EditorController.cs | 6 +++--- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 560e1c73..304e061c 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -34,15 +34,11 @@ public class SampleActivator : IControllerActivator, IViewComponentActivator { /*========================================================================================================================== | PRIVATE INSTANCES \-------------------------------------------------------------------------------------------------------------------------*/ - private readonly ITypeLookupService _typeLookupService = null; - private readonly ITopicMappingService _topicMappingService = null; - private readonly ITopicRepository _topicRepository = null; - private readonly IWebHostEnvironment _webHostEnvironment = null; - private readonly Topic _rootTopic = null; - - /*========================================================================================================================== - | HIERARCHICAL TOPIC MAPPING SERVICE - \-------------------------------------------------------------------------------------------------------------------------*/ + private readonly ITypeLookupService _typeLookupService; + private readonly ITopicMappingService _topicMappingService; + private readonly ITopicRepository _topicRepository; + private readonly IWebHostEnvironment _webHostEnvironment; + private readonly Topic _rootTopic; /*========================================================================================================================== | CONSTRUCTOR diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 0ea6fd73..cd8541b9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -32,9 +32,9 @@ public class EditorController : Controller { /*========================================================================================================================== | PRIVATE VARIABLES \-------------------------------------------------------------------------------------------------------------------------*/ - private ITopicRepository _topicRepository = null; - private ITopicRoutingService _topicRoutingService = null; - private ITopicMappingService _topicMappingService = null; + private readonly ITopicRepository _topicRepository; + private readonly ITopicRoutingService _topicRoutingService; + private readonly ITopicMappingService _topicMappingService; private Topic _currentTopic = null; /*========================================================================================================================== From 6b3e39f6ae122d5b9062c2c135cc9003acb5da9d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:26:12 -0800 Subject: [PATCH 516/637] Implemented `Array.Empty<>()` over `new string[] {}` --- .../Areas/Editor/Components/FilePathViewComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs index 0c993fb1..4cf27936 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs @@ -33,7 +33,7 @@ public class FilePathViewComponent: AttributeTypeViewComponentBase { /// /// As with other attribute view components, the receives a via the . That view model, however, is not sufficient to handle the specialized inheritance logic required by the + /// String)"/>. That view model, however, is not sufficient to handle the specialized inheritance logic required by the /// . As a result, it also requires an instance of a so that it can work directly off the current and its parent tree. /// The is still passed not only for consistency, but also to spare the overhead and @@ -141,7 +141,7 @@ public string GetPath(string attributeKey, FilePathAttributeTopicViewModel optio var relativePath = (string?)null; var startTopic = CurrentTopic; var endTopic = (options.IncludeCurrentTopic is null)? CurrentTopic: CurrentTopic.Parent?? CurrentTopic; - var truncatePathAtTopic = options.BaseTopicPath?.Split(',').ToArray()?? new string[] { }; + var truncatePathAtTopic = options.BaseTopicPath?.Split(',').ToArray()?? Array.Empty(); /*------------------------------------------------------------------------------------------------------------------------ | Only process the path if both topic and attribtueKey are provided From 66c5f79885a6d3f66215db8578e19cb5602bcbba Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:26:34 -0800 Subject: [PATCH 517/637] Converted private functions to `static` where appropriate --- .../Areas/Editor/Components/RelationshipViewComponent.cs | 2 +- .../Areas/Editor/Components/TokenizedTopicListViewComponent.cs | 2 +- .../Areas/Editor/Components/TopicListViewComponent.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs index 14d8c8ea..8b9a6eb3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs @@ -79,7 +79,7 @@ string htmlFieldPrefix /// Takes a string array, converts it to an array, strips any blank entries, and returns it to a string array. Useful for /// dealing with potential artifacts such as empty array items introduced by JavaScript. /// - string CleanArray(string value) { + private static string CleanArray(string value) { if (String.IsNullOrWhiteSpace(value)) return ""; return String.Join(",", value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries)); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index 26f4ab3b..69584cc7 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -150,7 +150,7 @@ private string GetTopicJson(string topicId) { /// /// Encodes a JSON value by escaping any quotes. /// - private string EncodeJsonValue(string value) => value.Replace("'", "\\'"); + private static string EncodeJsonValue(string value) => value.Replace("'", "\\'"); } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 722dab82..fe7d9982 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -254,7 +254,7 @@ public TopicCollection GetTopics( >--------------------------------------------------------------------------------------------------------------------------- | Replaces tokenized parameters (e.g., {Key}) in the source string based on the source Topic's properties. \-------------------------------------------------------------------------------------------------------------------------*/ - private string ReplaceTokens(Topic topic, string source, string defaultValue = null) { + private static string ReplaceTokens(Topic topic, string source) { if (topic != null && !String.IsNullOrEmpty(source)) { source = source .Replace("{Topic}", topic.Key) From 8fa990f4da6b3d6f2320e5d7bc986b4c59a0e4a8 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:26:56 -0800 Subject: [PATCH 518/637] Removed unnecessary `null` assignment --- .../Areas/Editor/Components/TopicListViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index fe7d9982..6d9669a9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -230,7 +230,7 @@ public TopicCollection GetTopics( /*------------------------------------------------------------------------------------------------------------------------ | Filter Topics selection list based on Content Types \-----------------------------------------------------------------------------------------------------------------------*/ - string[] allowedKeyList = null; + string[] allowedKeyList; if (!String.IsNullOrEmpty(allowedKeys)) { allowedKeyList = allowedKeys.Split(','); for (var i = 0; i < topics.Count; i++) { From f3f803d142c10dd18d5eefcbf6db155dcddecd22 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 7 Nov 2019 14:36:02 -0800 Subject: [PATCH 519/637] Migrated to new C# 8 switch expression syntax --- .../ViewModels/DateTimeAttributeViewModel.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs index ead7da15..d112716e 100644 --- a/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Models/Components/ViewModels/DateTimeAttributeViewModel.cs @@ -94,14 +94,15 @@ public string GetDefaultTime() { public DateTime CalculateOffset(DateTime originalDate) { var offset = AttributeDescriptor.DateTimeOffset?? 0; if (AttributeDescriptor.DateTimeOffset == 0) return originalDate; - switch (AttributeDescriptor.DateTimeOffsetUnits) { - case "Minutes" : return originalDate.AddMinutes(offset); - case "Hours" : return originalDate.AddHours(offset); - case "Days" : return originalDate.AddDays(offset); - case "Months" : return originalDate.AddMonths(offset); - case "Years" : return originalDate.AddYears(offset); - default : return originalDate.AddDays(offset); + return AttributeDescriptor.DateTimeOffsetUnits switch { + "Minutes" => originalDate.AddMinutes(offset), + "Hours" => originalDate.AddHours(offset), + "Days" => originalDate.AddDays(offset), + "Months" => originalDate.AddMonths(offset), + "Years" => originalDate.AddYears(offset), + _ => originalDate.AddDays(offset), }; + ; } From 09aad6be91af42f4a60474d21623a23eefbdb13e Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 9 Nov 2019 14:18:05 -0800 Subject: [PATCH 520/637] Refactored `JsonTopicMappingService` to `TopicQueryService` While the `JsonTopicMappingService` (and its associated `JsonTopicViewModel` and `JsonTopicViewModelOptions`) were, in fact, used to serialize JSON results as part of the `EditorController`'s `Json()` action, they can _also_ be used for centralizing _other_ query functions, such as those implemented in `TopicListViewComponent`. To facilitate that, these classes are refactored around a more generic naming convention: `TopicQueryService`, which uses `TopicQueryOptions` to return a graph of `QueryResultTopicViewModel`s. Similarly, `MapGraph()` was renamed to `Query()`, and the private `MapTopic()` helper function to `MapQueryResult()`. --- .../QueryResultTopicViewModel.cs} | 17 ++++--- .../TopicQueryOptions.cs} | 16 +++--- .../Editor/Controllers/EditorController.cs | 8 +-- ...MappingService.cs => TopicQueryService.cs} | 51 +++++++++---------- 4 files changed, 47 insertions(+), 45 deletions(-) rename Ignia.Topics.Editor.Models/{Json/JsonTopicViewModel.cs => Queryable/QueryResultTopicViewModel.cs} (89%) rename Ignia.Topics.Editor.Models/{Json/JsonTopicViewModelOptions.cs => Queryable/TopicQueryOptions.cs} (95%) rename Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/{JsonTopicMappingService.cs => TopicQueryService.cs} (83%) diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs b/Ignia.Topics.Editor.Models/Queryable/QueryResultTopicViewModel.cs similarity index 89% rename from Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs rename to Ignia.Topics.Editor.Models/Queryable/QueryResultTopicViewModel.cs index db21bb8c..003c0412 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Queryable/QueryResultTopicViewModel.cs @@ -10,25 +10,28 @@ using System.Text.Json.Serialization; using System.ComponentModel; -namespace Ignia.Topics.Editor.Models.Json { +namespace Ignia.Topics.Editor.Models.Queryable { /*============================================================================================================================ - | CLASS: JSON VIEW MODEL + | CLASS: QUERY RESULT (TOPIC VIEW MODEL) \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// Represents a in a format optimized for JSON serialization. + /// Provides a view model for query results returned from the . /// + /// The includes annotations that allow it to be serialized as JSON in compliance + /// with the expectations of the action. /// /// - public class JsonTopicViewModel { + public class QueryResultTopicViewModel { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class by specifying each of the property values. + /// Initializes a new instance of the class by specifying each of the property + /// values. /// - public JsonTopicViewModel( + public QueryResultTopicViewModel( int id, string key, string title, @@ -144,7 +147,7 @@ public bool IsDraggable { /// /// Provides a collection of child objects. /// - public List Children { get; } = new List(); + public List Children { get; } = new List(); } // Class } // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs b/Ignia.Topics.Editor.Models/Queryable/TopicQueryOptions.cs similarity index 95% rename from Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs rename to Ignia.Topics.Editor.Models/Queryable/TopicQueryOptions.cs index 3d6e8bd3..7077e49e 100644 --- a/Ignia.Topics.Editor.Models/Json/JsonTopicViewModelOptions.cs +++ b/Ignia.Topics.Editor.Models/Queryable/TopicQueryOptions.cs @@ -5,15 +5,15 @@ \=============================================================================================================================*/ using System; -namespace Ignia.Topics.Editor.Models.Json { +namespace Ignia.Topics.Editor.Models.Queryable { /*============================================================================================================================ - | CLASS: JSON VIEW MODEL OPTIONS + | CLASS: TOPIC QUERY OPTIONS \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// Tracks options for the class. + /// Establishes options for the class. /// - public class JsonTopicViewModelOptions { + public class TopicQueryOptions { /*========================================================================================================================== | PRIVATE VARIABLES @@ -25,9 +25,9 @@ public class JsonTopicViewModelOptions { | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public JsonTopicViewModelOptions() { + public TopicQueryOptions() { /*-------------------------------------------------------------------------------------------------------------------------- | Set default values @@ -180,7 +180,7 @@ public string Query { | ENABLE CHECKBOXES \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Determines whether or not to display checkboxes by including the value. + /// Determines whether or not to display checkboxes by including the value. /// /// /// This will automatically be set to true is is set to true. Otherwise, it defaults to @@ -195,7 +195,7 @@ public bool EnableCheckboxes { | MARK RELATED \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Determines whether s should be marked as + /// Determines whether s should be marked as /// based on their presence in related topics. /// /// diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index cd8541b9..99c6b399 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -10,7 +10,7 @@ using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.BindingModels; -using Ignia.Topics.Editor.Models.Json; +using Ignia.Topics.Editor.Models.Queryable; using Ignia.Topics.Editor.Models.Metadata; using Ignia.Topics.Internal.Diagnostics; using Ignia.Topics.Mapping; @@ -393,7 +393,7 @@ public IActionResult Move(int topicId, int targetTopicId = -1, int siblingId = - /// /// Retrieves JSON the specified topic, and all of its children. /// - public JsonResult Json(JsonTopicViewModelOptions options) { + public JsonResult Json(TopicQueryOptions options) { /*-------------------------------------------------------------------------------------------------------------------------- | Get related topics @@ -419,8 +419,8 @@ public JsonResult Json(JsonTopicViewModelOptions options) { /*-------------------------------------------------------------------------------------------------------------------------- | Assemble view model \-------------------------------------------------------------------------------------------------------------------------*/ - var jsonTopicMappingService = new JsonTopicMappingService(); - var jsonTopicViewModel = jsonTopicMappingService.MapGraph(CurrentTopic, options, relatedTopics); + var jsonTopicMappingService = new TopicQueryService(); + var jsonTopicViewModel = jsonTopicMappingService.Query(CurrentTopic, options, relatedTopics); /*-------------------------------------------------------------------------------------------------------------------------- | Return hierarchical view diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/TopicQueryService.cs similarity index 83% rename from Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs rename to Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/TopicQueryService.cs index 0b3c32e3..bb0e3d5d 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/JsonTopicMappingService.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/TopicQueryService.cs @@ -12,54 +12,52 @@ using Ignia.Topics.Mapping; using System.Threading.Tasks; -namespace Ignia.Topics.Editor.Models.Json { +namespace Ignia.Topics.Editor.Models.Queryable { /*============================================================================================================================ - | CLASS: JSON TOPIC MAPPING SERVICE + | CLASS: TOPIC QUERY SERVICE \---------------------------------------------------------------------------------------------------------------------------*/ /// - /// Constructs a hierarchy of instances based on a root and a set of - /// . + /// Constructs a hierarchy of objects based on a root and a set + /// of options as specified in a object. /// - /// - /// - public class JsonTopicMappingService { + public class TopicQueryService { /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public JsonTopicMappingService() { } + public TopicQueryService() { } /*========================================================================================================================== - | MAP GRAPH + | QUERY \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Generates and returns a list of objects based on a root as well - /// as a set of . + /// Generates and returns a list of objects based on a root as + /// well as a set of options as specified in a object. /// - public List MapGraph( + public List Query( Topic rootTopic, - JsonTopicViewModelOptions options, + TopicQueryOptions options, ReadOnlyTopicCollection related = null ) { /*------------------------------------------------------------------------------------------------------------------------ | Establish containers for mapped objects, tasks \-----------------------------------------------------------------------------------------------------------------------*/ - var topicViewModels = new List(); + var topicViewModels = new List(); /*------------------------------------------------------------------------------------------------------------------------ | Bootstrap mapping process \-----------------------------------------------------------------------------------------------------------------------*/ if (options.ShowRoot) { - MapTopic(topicViewModels, rootTopic, options, related); + MapQueryResult(topicViewModels, rootTopic, options, related); } else { foreach (var topic in rootTopic.Children) { - MapTopic(topicViewModels, topic, options, related); + MapQueryResult(topicViewModels, topic, options, related); } } @@ -71,15 +69,16 @@ public List MapGraph( } /*========================================================================================================================== - | MAP TOPIC + | MAP QUERY RESULT \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Private helper function that + /// Private helper function that maps a successfully validated to a . /// - private void MapTopic( - List topicList, + private void MapQueryResult( + List topicList, Topic topic, - JsonTopicViewModelOptions options, + TopicQueryOptions options, ReadOnlyTopicCollection related = null ) { @@ -98,7 +97,7 @@ private void MapTopic( options.ResultLimit--; //Map topic - var mappedTopic = new JsonTopicViewModel( + var mappedTopic = new QueryResultTopicViewModel( topic.Id, topic.Key, options.UseKeyAsText ? topic.Key : topic.Title, @@ -121,7 +120,7 @@ private void MapTopic( \-----------------------------------------------------------------------------------------------------------------------*/ if (isValid && options.IsRecursive || options.FlattenStructure ) { foreach (var childTopic in topic.Children) { - MapTopic( + MapQueryResult( topicList, childTopic, options, @@ -136,9 +135,9 @@ private void MapTopic( | IS VALID TOPIC \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Static method confirms whether a topic is valid based on the . + /// Static method confirms whether a topic is valid based on the . /// - public static bool IsValidTopic(Topic topic, JsonTopicViewModelOptions options) { + public static bool IsValidTopic(Topic topic, TopicQueryOptions options) { /*------------------------------------------------------------------------------------------------------------------------ | Establish variables From 81273fafb25f758a3a900169c7a1087eaa529c44 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 9 Nov 2019 15:06:21 -0800 Subject: [PATCH 521/637] Modified logic to use `TopicQueryService` The `GetTopics()` logic was largely redundant with the more sophisticated, centralized `TopicQueryService`. Instead of duplicating this code, we simply now rely on it instead. This introduces some limitations since we're now working with a `QueryResultTopicViewModel` and not a full `Topic` entity. For instance, we can no longer (reliably) access (grand)parent properties for token replacement. That said, these tokens really shouldn't be needed here, and were on the list for removal anyway. --- .../Components/TopicListViewComponent.cs | 100 +++++++----------- 1 file changed, 39 insertions(+), 61 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 6d9669a9..ed1c70bf 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -10,6 +10,7 @@ using Ignia.Topics.Collections; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Metadata; +using Ignia.Topics.Editor.Models.Queryable; using Ignia.Topics.Editor.Mvc.Models; using Ignia.Topics.Querying; using Ignia.Topics.Repositories; @@ -102,23 +103,28 @@ public IViewComponentResult Invoke( /*------------------------------------------------------------------------------------------------------------------------ | Get values \-----------------------------------------------------------------------------------------------------------------------*/ - var topics = (TopicCollection)null; + var topics = (List)null; //### HACK JJC20191031: Since Topic and TopicViewModel aren't intercompatible, and the remaining processing is based on //Topic, we're converting any preconfigured topics from TopicViewModel back to Topic by looking them up in the repository. //This, of course, assumes that the topic view models refer to existing topics in the repository. if (values != null && values.Count() > 0) { - topics = new TopicCollection(); + topics = new List(); foreach (var topicViewModel in values) { - var topic = _topicRepository.Load(topicViewModel.Id); - if (topic != null) { - topics.Add(topic); - } + topics.Add( + new QueryResultTopicViewModel( + topicViewModel.Id, + topicViewModel.Key, + topicViewModel.Title, + topicViewModel.UniqueKey, + topicViewModel.UniqueKey?.Replace("Root", "").Replace(":", "/") + ) + ); } } else { topics = GetTopics( - attribute.RootTopic?.UniqueKey?? attribute.RootTopicKey, + _topicRepository.Load(attribute.RootTopic?.UniqueKey?? attribute.RootTopicKey), attribute.AttributeKey, attribute.AttributeValue, attribute.AllowedKeys @@ -158,7 +164,7 @@ public IViewComponentResult Invoke( /*------------------------------------------------------------------------------------------------------------------------ | Helper functions \-----------------------------------------------------------------------------------------------------------------------*/ - string getValue(Topic topic) { + string getValue(QueryResultTopicViewModel topic) { if (!String.IsNullOrEmpty(targetUrl)) { // Add TopicID if not already available var uniqueTargetUrl = targetUrl; @@ -180,52 +186,30 @@ string getValue(Topic topic) { >--------------------------------------------------------------------------------------------------------------------------- | Retrieves a collection of topics with optional control call filter properties Scope, AttributeName and AttributeValue. \-------------------------------------------------------------------------------------------------------------------------*/ - public TopicCollection GetTopics( - string scope = null, + public List GetTopics( + Topic topic = null, string attributeKey = null, string attributeValue = null, string allowedKeys = "" ) { /*------------------------------------------------------------------------------------------------------------------------ - | Instantiate object - \-----------------------------------------------------------------------------------------------------------------------*/ - var topics = new TopicCollection(); - var topic = (Topic)null; - - if (scope != null) { - topic = _topicRepository.Load(scope); - } - - // Use RootTopic if Scope is available but does not return a topic object - if (topic == null) { - topic = _topicRepository.Load(); - } - - /*------------------------------------------------------------------------------------------------------------------------ - | Filter Topics selection list by AttributeName/AttributeValue + | Establish query options \-----------------------------------------------------------------------------------------------------------------------*/ - if (attributeKey != null && attributeValue != null) { - - var readOnlyTopics = topic.FindAllByAttribute(attributeKey, attributeValue); - foreach (var readOnlyTopic in readOnlyTopics) { - if (!topics.Contains(readOnlyTopic.Key)) { - topics.Add(readOnlyTopic); - } - } - - } + var options = new TopicQueryOptions() { + AttributeName = attributeKey, + AttributeValue = attributeValue, + FlattenStructure = false, + IsRecursive = false, + ResultLimit = 100, + ShowRoot = false + }; /*------------------------------------------------------------------------------------------------------------------------ - | Get all Topics under RootTopic + | Get query results \-----------------------------------------------------------------------------------------------------------------------*/ - if (topics.Count == 0) { - foreach (var childTopic in topic.Children) { - if (!topics.Contains(childTopic)) { - topics.Add(childTopic); - } - } - } + var topicQueryService = new TopicQueryService(); + var topicQueryResults = topicQueryService.Query(topic, options); /*------------------------------------------------------------------------------------------------------------------------ | Filter Topics selection list based on Content Types @@ -233,10 +217,10 @@ public TopicCollection GetTopics( string[] allowedKeyList; if (!String.IsNullOrEmpty(allowedKeys)) { allowedKeyList = allowedKeys.Split(','); - for (var i = 0; i < topics.Count; i++) { - var childTopic = topics[i]; + for (var i = 0; i < topicQueryResults.Count; i++) { + var childTopic = topicQueryResults[i]; if (Array.IndexOf(allowedKeyList, childTopic.Key) < 0) { - topics.RemoveAt(i); + topicQueryResults.RemoveAt(i); i--; } } @@ -245,7 +229,7 @@ public TopicCollection GetTopics( /*------------------------------------------------------------------------------------------------------------------------ | Return Topics list \-----------------------------------------------------------------------------------------------------------------------*/ - return topics; + return topicQueryResults; } @@ -254,21 +238,15 @@ public TopicCollection GetTopics( >--------------------------------------------------------------------------------------------------------------------------- | Replaces tokenized parameters (e.g., {Key}) in the source string based on the source Topic's properties. \-------------------------------------------------------------------------------------------------------------------------*/ - private static string ReplaceTokens(Topic topic, string source) { + private static string ReplaceTokens(QueryResultTopicViewModel topic, string source) { if (topic != null && !String.IsNullOrEmpty(source)) { source = source - .Replace("{Topic}", topic.Key) - .Replace("{TopicId}", topic.Id.ToString()) - .Replace("{Name}", topic.Key) - .Replace("{FullName}", topic.GetUniqueKey()) - .Replace("{Key}", topic.Key) - .Replace("{UniqueKey}", topic.GetUniqueKey()) - .Replace("{WebPath}", topic.GetWebPath()) - .Replace("{Title}", topic.Title) - .Replace("{Parent}", topic.Parent.GetUniqueKey()) - .Replace("{ParentId}", topic.Parent.Id.ToString()) - .Replace("{GrandParent}", topic.Parent?.Parent?.GetUniqueKey()) - .Replace("{GrandParentId}", topic.Parent?.Parent?.Id.ToString()); + .Replace("{Topic}", topic.Key, StringComparison.InvariantCultureIgnoreCase) + .Replace("{TopicId}", topic.Id.ToString(), StringComparison.InvariantCultureIgnoreCase) + .Replace("{Key}", topic.Key, StringComparison.InvariantCultureIgnoreCase) + .Replace("{UniqueKey}", topic.UniqueKey, StringComparison.InvariantCultureIgnoreCase) + .Replace("{WebPath}", topic.UniqueKey.Replace("Root", "").Replace(":", "/"), StringComparison.InvariantCultureIgnoreCase) + .Replace("{Title}", topic.Title, StringComparison.InvariantCultureIgnoreCase); } return source; } From bf4e1aa05dd2ab82c417597d951ac882152d2774 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 9 Nov 2019 15:11:16 -0800 Subject: [PATCH 522/637] Introduced `RelativeTopicBase` and `RelativeTopicPath` options The `RelativeTopicBase` and `RelativeTopicPath` options allow the `TopicLookupListViewComponent` to optionally reference a location relative to either itself or its content type descriptor. This replaces the legacy functionality of allowing `{Token}`s (e.g., `{GrandparentId}`) in the `Scope` (not `RootTopicKey`) attribute. This approach is preferrable as a) it allows _most_ use cases to select the `RootTopic` using a `TokenizedTopicListViewComponent`, while b) allowing those requiring _relative_ lookups to select the relative source from a `TopicLookupListViewComponent` of available sources (instead of needing to know the magic `{Token}` keywords). --- ...eryableTopicListAttributeTopicViewModel.cs | 30 +++++++++++++++++++ .../Components/TopicListViewComponent.cs | 16 ++++++++++ 2 files changed, 46 insertions(+) diff --git a/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs index 3996940b..ed4304bf 100644 --- a/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs @@ -48,6 +48,36 @@ public class QueryableTopicListAttributeTopicViewModel: AttributeDescriptorTopic [NotNull] public TopicViewModel? RootTopic { get; set; } + /*========================================================================================================================== + | PROPERTY: RELATIVE TOPIC BASE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the token representing where the base path should be evaluated from. + /// + /// + /// Generally, the preferred way of setting the scope is to use the . There are times, however, + /// that the target list is not fixed in the topic graph, but is instead relative to either the specific or its . In these cases, the editor may be configured to use a + /// relative key (e.g., CurrentTopic, ParentTopic, ContentTypeDescriptor) as the base. This can then + /// be used in conjunction with to set the place to look within that base, if appropriate. + /// For example, a setting of ContentTypeDescriptor may be combined with a of Views to look within a named "Views" + /// for the list of target topics. + /// + public string? RelativeTopicBase { get; set; } + + /*========================================================================================================================== + | PROPERTY: RELATIVE TOPIC PATH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the token representing where within the the topics should be retrieved. + /// + /// + /// The is used in conjunction with the . If set, these + /// two properties will supercede any value that is set to. + /// + public string? RelativeTopicPath { get; set; } + /*========================================================================================================================== | PROPERTY: ATTRIBUTE KEY \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index ed1c70bf..5d63bc0c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -122,6 +122,22 @@ public IViewComponentResult Invoke( ); } } + else if (attribute.RelativeTopicBase != null) { + var baseTopic = _topicRepository.Load(currentTopic.UniqueKey); + var rootTopic = attribute.RelativeTopicBase switch { + "CurrentTopic" => baseTopic, + "ParentTopic" => baseTopic.Parent, + "GrandparentTopic" => (Topic)baseTopic.Parent?.Parent, + "ContentTypeDescriptor" => (Topic)_topicRepository.GetContentTypeDescriptors().Where(t => t.Key.Equals(baseTopic.ContentType)), + _ => baseTopic + }; + topics = GetTopics( + rootTopic, + attribute.AttributeKey, + attribute.AttributeValue, + attribute.AllowedKeys + ); + } else { topics = GetTopics( _topicRepository.Load(attribute.RootTopic?.UniqueKey?? attribute.RootTopicKey), From 7154f3666201c66aaee8f3b5bb4fb5b35ebe96e9 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sat, 9 Nov 2019 15:25:16 -0800 Subject: [PATCH 523/637] Introduced initial *NuGet* properties In preparation for distributing the libraries as **NuGet** packages, introduced basic metadata properties into the `csproj` files. Note that due to a shortcoming of `dotnet pack`, each project will need to be packed individually, and submitted as a separate **NuGet** package. This is because `dotnet pack` doesn't have an argument corresponding to `nuget pack`'s `IncludeReferencedProjects`. In the future, hopefully we can reevaluate that aspect, as there's otherwise no reason for anyone to need the `Ignia.Topics.Editor.Models` library independent of `Ignia.Topics.Editor.Mvc` (and vice versa). --- .../Ignia.Topics.Editor.Models.csproj | 21 +++++++++++++++++-- .../Ignia.Topics.Editor.Mvc.csproj | 18 +++++++++++++++- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 706474b6..5b7270d6 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -1,15 +1,32 @@  + net48;netstandard2.1 8.0 Ignia.Topics.Editor.Models - Ignia.Topics.Editor.Models - Copyright © 2019 bin\$(Configuration)\ + true + + + 3.0.0 + Ignia + Ignia + Ignia OnTopic Editor Models + Provides view and binding models in support for the OnTopic Editor. + Copyright © 2019 Ignia, LLC + https://github.com/Ignia/Topic-Editor-MVC/ + https://github.com/Ignia/Topic-Editor-MVC/ + DotNetCore UI Editor CMS ASP.NET OnTopic Ignia Models Library + git + Complete rearchitecture of OnTopic Editor to support ASP.NET Core 3.0 MVC with controls implemented as view components. Implemented as a Razor Class Library for easy redistribution. + en + + + \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 455b17d9..c454f0f7 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -3,13 +3,29 @@ netcoreapp3.0 true + true + + + + 3.0.0 + Ignia + Ignia + Ignia OnTopic Editor + The OnTopic Editor provides a content management interface to Ignia's OnTopic Library, thus allowing users to modify semi-structured, device-independent data. This distribution provides a .NET Core 3 support. + Copyright © 2019 Ignia, LLC + https://github.com/Ignia/Topic-Editor-MVC/ + https://github.com/Ignia/Topic-Editor-MVC/ + DotNetCore UI Editor CMS ASP.NET OnTopic Ignia + git + Complete rearchitecture of OnTopic Editor to support ASP.NET Core 3.0 MVC with controls implemented as view components. Implemented as a Razor Class Library for easy redistribution. + en + - From 76becd00dc29cf9683802fc9ac727e08900da743 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 10:35:07 -0800 Subject: [PATCH 524/637] Moved `RelativeTopicBase` and `RelativeTopicPath` to `TopicListAttributeTopicViewModel` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While there is a theoretical use case for `RelativeTopicBase` and `RelativeTopicPath` on other `QueryableTopicListAttribute`s, such as `TokenizedTopicList` or `Relationship`, there isn't an immediate need, it's difficult to imagine the use cases where this will be a priority, and it requires additional work to implement. As such, we're moving this back to `TopicList`—which is where it was implemented in the legacy editor. --- ...eryableTopicListAttributeTopicViewModel.cs | 30 ------------------- .../TopicListAttributeTopicViewModel.cs | 30 +++++++++++++++++++ 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs index ed4304bf..3996940b 100644 --- a/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs @@ -48,36 +48,6 @@ public class QueryableTopicListAttributeTopicViewModel: AttributeDescriptorTopic [NotNull] public TopicViewModel? RootTopic { get; set; } - /*========================================================================================================================== - | PROPERTY: RELATIVE TOPIC BASE - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets the token representing where the base path should be evaluated from. - /// - /// - /// Generally, the preferred way of setting the scope is to use the . There are times, however, - /// that the target list is not fixed in the topic graph, but is instead relative to either the specific or its . In these cases, the editor may be configured to use a - /// relative key (e.g., CurrentTopic, ParentTopic, ContentTypeDescriptor) as the base. This can then - /// be used in conjunction with to set the place to look within that base, if appropriate. - /// For example, a setting of ContentTypeDescriptor may be combined with a of Views to look within a named "Views" - /// for the list of target topics. - /// - public string? RelativeTopicBase { get; set; } - - /*========================================================================================================================== - | PROPERTY: RELATIVE TOPIC PATH - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Gets or sets the token representing where within the the topics should be retrieved. - /// - /// - /// The is used in conjunction with the . If set, these - /// two properties will supercede any value that is set to. - /// - public string? RelativeTopicPath { get; set; } - /*========================================================================================================================== | PROPERTY: ATTRIBUTE KEY \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs index 43657d83..0bba2277 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs @@ -33,6 +33,36 @@ public class TopicListAttributeTopicViewModel: QueryableTopicListAttributeTopicV /// public string? DefaultLabel { get; set; } + /*========================================================================================================================== + | PROPERTY: RELATIVE TOPIC BASE + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the token representing where the base path should be evaluated from. + /// + /// + /// Generally, the preferred way of setting the scope is to use the . There are times, however, + /// that the target list is not fixed in the topic graph, but is instead relative to either the specific or its . In these cases, the editor may be configured to use a + /// relative key (e.g., CurrentTopic, ParentTopic, ContentTypeDescriptor) as the base. This can then + /// be used in conjunction with to set the place to look within that base, if appropriate. + /// For example, a setting of ContentTypeDescriptor may be combined with a of Views to look within a named "Views" + /// for the list of target topics. + /// + public string? RelativeTopicBase { get; set; } + + /*========================================================================================================================== + | PROPERTY: RELATIVE TOPIC PATH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Gets or sets the token representing where within the the topics should be retrieved. + /// + /// + /// The is used in conjunction with the . If set, these + /// two properties will supercede any value that is set to. + /// + public string? RelativeTopicPath { get; set; } + /*========================================================================================================================== | PROPERTY: STORE UNIQUE KEY \-------------------------------------------------------------------------------------------------------------------------*/ From 18a3bf19eba093cb399502b57a4b2cabf690b1a9 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 10:59:10 -0800 Subject: [PATCH 525/637] Removed `AllowedKeys` from `TopicListAttributeTopicViewModel` The legacy `AllowedKeys` should only be used for backward compatibility with old `DefaultConfiguration`. For new implementations, we should always use the `values` parameter (on the view component `Invoke()` method) when passing in values (e.g., from `NestedTopicList`'s `PermittedContentTypes`). For local cases, this requirement isn't anticipated, and the legacy support should eventually be removed; direct calls to `TopicListViewComponent` are instead expected to provide a `RootTopic` (or a `RelativeTopicBase`) and restrict based on filters, if necessary, not a hard-coded list. --- .../Metadata/TopicListAttributeTopicViewModel.cs | 5 ----- .../Areas/Editor/Components/TopicListViewComponent.cs | 6 +++--- .../Views/Editor/Components/NestedTopicList/Default.cshtml | 1 - 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs index 0bba2277..aadf8346 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs @@ -115,11 +115,6 @@ public string? ValueToken { set => _valueProperty = value; } - /*========================================================================================================================== - | ALLOWED KEYS - \-------------------------------------------------------------------------------------------------------------------------*/ - public string? AllowedKeys { get; set; } - } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 5d63bc0c..1feb3797 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -66,9 +66,9 @@ public IViewComponentResult Invoke( attribute.RootTopicKey ??= attribute.GetConfigurationValue( "Scope", null); attribute.AttributeKey ??= attribute.GetConfigurationValue( "AttributeName", null); attribute.AttributeValue ??= attribute.GetConfigurationValue( "AttributeValue", null); - attribute.AllowedKeys ??= attribute.GetConfigurationValue( "AllowedKeys", null); attribute.StoreUniqueKey ??= attribute.GetBooleanConfigurationValue( "UseUniqueKey", false); attribute.ValueToken ??= attribute.GetConfigurationValue( "ValueProperty", null); + var allowedKeys = attribute.GetConfigurationValue( "AllowedKeys", null); enableModal ??= attribute.GetBooleanConfigurationValue( "TargetPopup", false); targetUrl ??= attribute.GetConfigurationValue( "TargetUrl", null); onClientClose ??= attribute.GetConfigurationValue( "OnClientClose", null); @@ -135,7 +135,7 @@ public IViewComponentResult Invoke( rootTopic, attribute.AttributeKey, attribute.AttributeValue, - attribute.AllowedKeys + allowedKeys ); } else { @@ -143,7 +143,7 @@ public IViewComponentResult Invoke( _topicRepository.Load(attribute.RootTopic?.UniqueKey?? attribute.RootTopicKey), attribute.AttributeKey, attribute.AttributeValue, - attribute.AllowedKeys + allowedKeys ); } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index 5246b86a..e2ae42ea 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -91,7 +91,6 @@ RootTopicKey = "Configuration:ContentTypes", AttributeKey = "ContentType", AttributeValue = "ContentType", - AllowedKeys = Model.AttributeDescriptor.ContentTypes, DefaultLabel = "Add child topic…" }; From 53b772654882c61abfac0ff7a156e8268a1b966a Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 11:00:52 -0800 Subject: [PATCH 526/637] Restrict scope of `TopicListViewComponent` call While the `RootTopicKey` is deprecated, it makes sense to establish it to limit the scope of the `AttributeKey` and `AttribtueValue` query, at least until we establish a better way of handling manual invocations of the `TopicListViewComponent` (e.g., perhaps via the establishment of a `ContentTypeDescriptorViewComponent`). --- Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml | 1 + 1 file changed, 1 insertion(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 2070a575..64c0f86f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -70,6 +70,7 @@ var attributeDescriptor = new TopicListAttributeTopicViewModel() { Key = "Navigation", ContentType = "TopicListAttribute", + RootTopicKey = "Configuration:ContentTypes", AttributeKey = "ContentType", AttributeValue = "ContentTypeDescriptor", DefaultLabel = "Add new topic…" From 8aeb51cb9df7c223420d38e4eacc0d6d1ebd5b1f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 11:34:18 -0800 Subject: [PATCH 527/637] Replaced `StoreUniqueKey` and `ValueToken` with `ValueProperty` list The new `ValueProperty` attribute implements a metadata lookup via the `TopicListViewComponent` which provides a concrete list of the supported topics. This is more elegant than the legacy approach, where `StoreUniqueKey` was potentially redundant with `ValueToken`; it was really only there because the `ValueToken` wasn't optimal for basic use cases. Also, the label `ValueProperty` is not only more intuitive, but has the additional benefit of being consistent with the legacy `DefaultConfiguration` attribute name. Updated documentation as part of the process. --- .../TopicListAttributeTopicViewModel.cs | 44 +++---------------- .../Components/TopicListViewComponent.cs | 5 +-- 2 files changed, 7 insertions(+), 42 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs index aadf8346..13ffd6a6 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs @@ -64,56 +64,22 @@ public class TopicListAttributeTopicViewModel: QueryableTopicListAttributeTopicV public string? RelativeTopicPath { get; set; } /*========================================================================================================================== - | PROPERTY: STORE UNIQUE KEY + | VALUE PROPERTY \-------------------------------------------------------------------------------------------------------------------------*/ /// - /// Determines whether to use a fully qualified or just the when saving the value to the database. + /// Determines which topic attribute to bind the topic list to. By default, it is . /// /// - /// A makes it easier to construct or retrieve the corresponding topic object - /// without any knowledge of where that object exists. Further, under certain circumstances, a may be necessary to guarantee uniqueness (for instance, if the values are - /// overridden with a collection of topics from multiple locations in the topic tree). That said, the may be a preferred value, particularly when not intended to provide a strongly-typed - /// reference to particular topics (e.g., when the is being used to simply provide a - /// constrained list of known values, such as tags). - /// - public bool? StoreUniqueKey { get; set; } - - /*========================================================================================================================== - | VALUE TOKEN - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Determines what token to bind the topic list to. By default, it is , unless is selected, in which case it becomes . These defaults - /// can be overwritten using the . - /// - /// - /// Not just any attribute or property may be used. The contains a list of tokens - /// that it knows how to replace. These include: + /// The following are valid values for : /// - /// Topic (for ) /// TopicId (for ) - /// Name (for ) /// Key (for ) - /// FullName (for ) /// UniqueKey (for ) + /// WebPath (for ) /// Title (for ) - /// Parent (for ) - /// GrandParent (for ) - /// GrandParentId (for ) /// /// - public string? ValueToken { - get { - if (_valueProperty == null) { - _valueProperty = StoreUniqueKey is true ? "UniqueKey" : "Key"; - } - return _valueProperty; - } - set => _valueProperty = value; - } + public string? ValueProperty { get; set; } } //Class } //Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 1feb3797..d2d02d6e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -66,8 +66,7 @@ public IViewComponentResult Invoke( attribute.RootTopicKey ??= attribute.GetConfigurationValue( "Scope", null); attribute.AttributeKey ??= attribute.GetConfigurationValue( "AttributeName", null); attribute.AttributeValue ??= attribute.GetConfigurationValue( "AttributeValue", null); - attribute.StoreUniqueKey ??= attribute.GetBooleanConfigurationValue( "UseUniqueKey", false); - attribute.ValueToken ??= attribute.GetConfigurationValue( "ValueProperty", null); + attribute.ValueProperty ??= attribute.GetConfigurationValue( "ValueProperty", null); var allowedKeys = attribute.GetConfigurationValue( "AllowedKeys", null); enableModal ??= attribute.GetBooleanConfigurationValue( "TargetPopup", false); targetUrl ??= attribute.GetConfigurationValue( "TargetUrl", null); @@ -192,7 +191,7 @@ string getValue(QueryResultTopicViewModel topic) { } return ReplaceTokens(topic, uniqueTargetUrl); } - return ReplaceTokens(topic, "{" + attribute.ValueToken + "}"); + return ReplaceTokens(topic, "{" + attribute.ValueProperty + "}"); } } From 7e3b388c84b9a909fecb1726ccd07bc7e21c6822 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 11:37:07 -0800 Subject: [PATCH 528/637] Replaced legacy `{{Topic}}` token with `{{Key}}` The legacy `{{Topic}}` token made sense when there were other tokens available for replacement, such as `{{Parent}}`, `{{Grandparent}}`, &c. Now that the available replacement tokens has been constrained based on actual usage, however, and all values are based on the current topic, it instead makes sense to be explicit about what _property_ is being bound to. This is especially true since the `ReplaceTokens()` helper function otherwise maps to the `TopicListViewComponent`'s `ValueProperty` attribute. --- .../Areas/Editor/Components/TopicListViewComponent.cs | 1 - .../Views/Editor/Components/NestedTopicList/Default.cshtml | 2 +- .../Areas/Editor/Views/Shared/_Layout.cshtml | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index d2d02d6e..4bd8f1f9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -256,7 +256,6 @@ public List GetTopics( private static string ReplaceTokens(QueryResultTopicViewModel topic, string source) { if (topic != null && !String.IsNullOrEmpty(source)) { source = source - .Replace("{Topic}", topic.Key, StringComparison.InvariantCultureIgnoreCase) .Replace("{TopicId}", topic.Id.ToString(), StringComparison.InvariantCultureIgnoreCase) .Replace("{Key}", topic.Key, StringComparison.InvariantCultureIgnoreCase) .Replace("{UniqueKey}", topic.UniqueKey, StringComparison.InvariantCultureIgnoreCase) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index e2ae42ea..4b99a0a2 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -98,7 +98,7 @@ current-topic=@Model.CurrentTopic attribute=@attributeDescriptor html-field-prefix=@ViewData.TemplateInfo.HtmlFieldPrefix - target-url=@($"{Url.Action("Edit")}{Model.AttributeDescriptor.Key}/?ContentType={{Topic}}&IsNew=true&IsModal=true") + target-url=@($"{Url.Action("Edit")}{Model.AttributeDescriptor.Key}/?ContentType={{Key}}&IsNew=true&IsModal=true") enable-modal=@Model.AttributeDescriptor.EnableModal values=@Model.AttributeDescriptor.PermittedContentTypes on-client-close=@($"{Model.AttributeDescriptor.Key}Tree_refresh")> diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 64c0f86f..bce005b5 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -81,7 +81,7 @@ current-topic=@Model.Topic attribute=@attributeDescriptor html-field-prefix="CreateNewTopic" - target-url=@($"{Url.Action("Edit")}?ContentType={{Topic}}&IsNew=true") + target-url=@($"{Url.Action("Edit")}?ContentType={{Key}}&IsNew=true") values=@Model.ContentTypeDescriptor.PermittedContentTypes enable-modal="false" on-client-close=""> From 975a2ed705166ade0a1ffec28ae829db5bb882ae Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 14:36:16 -0800 Subject: [PATCH 529/637] Updated to latest preview release of the `Ignia.Topics` library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This includes support for mapping `List` content types, which is necessary e.g. for `TopicLookupAttributeTopicViewModel` to properly map `RootTopic`, since that will usually map to `Root:Configuration:Metadata` class. It also expands the definition of `ITopicViewModel` to include both `Id` and `WebPath`, which are frequently needed—including by the editor, to provide an abstraction between e.g. `TopicViewModel` and `QueryResultTopicViewModel`. --- .../Ignia.Topics.Editor.Models.csproj | 4 ++-- .../Ignia.Topics.Editor.Mvc.Host.csproj | 12 ++++++------ .../Ignia.Topics.Editor.Mvc.csproj | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 5b7270d6..7ba4f105 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -24,8 +24,8 @@ - - + + diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index c86fc7a7..8be2dd39 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -7,12 +7,12 @@ - - - - - - + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index c454f0f7..194f2927 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -23,9 +23,9 @@ - - - + + + From 6c81b2d18d3c0279a34c42b1f129b3404fe0ea8c Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 14:47:21 -0800 Subject: [PATCH 530/637] Resolved issue mapping `RootTopic` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `TopicMappingService` automatically checks to see if an otherwise-unmapped property maps to an attribute of the same name, but with an `ID` suffix. As such, setting the `[AttributeKey()]` to specify the `ID` extension is neither necessary nor even functional for topic references. That said, the mapped topic (in this case, the `ContentTypeDescriptor`) _does_ need to be instructed to follow `References` for `AttributeDescriptors`, otherwise topic references—such as `QueryableTopicList`'s `RootTopic`—won't function. This fix also relies on a patch to the **Topics Library**, which was updated in #975a2ed. --- .../Metadata/ContentTypeDescriptorTopicViewModel.cs | 2 +- .../Metadata/QueryableTopicListAttributeTopicViewModel.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs index 92b9f6c1..688fb4fd 100644 --- a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs @@ -34,7 +34,7 @@ public ContentTypeDescriptorTopicViewModel(): base() {} /// A list of instances representing each of the permitted by the underlying . /// - [Follow(Relationships.Relationships)] + [Follow(Relationships.Relationships|Relationships.References)] public List AttributeDescriptors { get; } = new List(); /*========================================================================================================================== diff --git a/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs index 3996940b..e2df98d7 100644 --- a/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/QueryableTopicListAttributeTopicViewModel.cs @@ -44,7 +44,6 @@ public class QueryableTopicListAttributeTopicViewModel: AttributeDescriptorTopic /// Gets or sets a representing the scope of s to display to the user. This /// allows relationships to be targeted to particular areas of the topic graph. /// - [AttributeKey("RootTopicId")] [NotNull] public TopicViewModel? RootTopic { get; set; } From 427b62a618a61ece86180d9eb8972279608bb076 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 14:47:59 -0800 Subject: [PATCH 531/637] Removed (now redundant) `WebPath` With the update to the **Topic Library**, `WebPath` is now defined on `TopicViewModel`. --- Ignia.Topics.Editor.Models/EditingTopicViewModel.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs b/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs index 8602bf1e..ee5ed4d7 100644 --- a/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditingTopicViewModel.cs @@ -26,14 +26,6 @@ public class EditingTopicViewModel: ViewModels.TopicViewModel { /// public EditingTopicViewModel() : base() {} - /*========================================================================================================================== - | PROPERTY: WEB PATH - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Provides a reference to the result. - /// - public string WebPath { get; set; } - /*========================================================================================================================== | PROPERTY: VERSION HISTORY \-------------------------------------------------------------------------------------------------------------------------*/ From 277c93509b23afb1c888062135a00f85feec2b85 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 15:08:44 -0800 Subject: [PATCH 532/637] Updated to use newly exposed `WebPath` property --- .../Areas/Editor/Components/TopicListViewComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 4bd8f1f9..c112a150 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -116,7 +116,7 @@ public IViewComponentResult Invoke( topicViewModel.Key, topicViewModel.Title, topicViewModel.UniqueKey, - topicViewModel.UniqueKey?.Replace("Root", "").Replace(":", "/") + topicViewModel.WebPath ) ); } @@ -259,7 +259,7 @@ private static string ReplaceTokens(QueryResultTopicViewModel topic, string sour .Replace("{TopicId}", topic.Id.ToString(), StringComparison.InvariantCultureIgnoreCase) .Replace("{Key}", topic.Key, StringComparison.InvariantCultureIgnoreCase) .Replace("{UniqueKey}", topic.UniqueKey, StringComparison.InvariantCultureIgnoreCase) - .Replace("{WebPath}", topic.UniqueKey.Replace("Root", "").Replace(":", "/"), StringComparison.InvariantCultureIgnoreCase) + .Replace("{WebPath}", topic.WebPath, StringComparison.InvariantCultureIgnoreCase) .Replace("{Title}", topic.Title, StringComparison.InvariantCultureIgnoreCase); } return source; From b32faec09a67e26655e62e1d8e97154e3d8660ae Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 16:48:43 -0800 Subject: [PATCH 533/637] Migrated to *CKEditor* CDN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Normally, for the **OnTopic Editor**, we prefer loading scripts via **npm**, concactenating them into a single file via **Gulp.js**, and then referencing them locally. This doesn't work well with **CKEditor**, however, since it has a lot of plugins which it loads dynamically. As such, not only does it need to be left unconcactenated, but we also need to ensure we're copying every plugin and dependency that it might dynamically load. Previously, that was done by copying the entire distribution via **Gulp.js** to the `wwwroot` folder—but as that distribution is multiple megabytes, that a) slowed down the build process, and b) unnecessarily bloated the **NuGet** package. All of these issues are resolved by calling the CDN. Further, this also allows us to refactor our local customizations to be in a preferred location. --- .../Areas/Editor/Views/Editor/Components/HTML/Default.cshtml | 4 ++-- .../Areas/Editor/Views/Shared/_Layout.cshtml | 2 +- .../Scripts/CkEditor/{customConfig.js => CustomConfig.js} | 2 +- .../CkEditor/{StyleSets/OnTopic.stylesSet.js => StylesSet.js} | 0 Ignia.Topics.Editor.Mvc/gulpFile.js | 4 +--- Ignia.Topics.Editor.Mvc/package.json | 1 - 6 files changed, 5 insertions(+), 8 deletions(-) rename Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/{customConfig.js => CustomConfig.js} (96%) rename Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/{StyleSets/OnTopic.stylesSet.js => StylesSet.js} (100%) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml index df2acb7a..5957110a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml @@ -26,7 +26,7 @@ > \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index bce005b5..46c23f1a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -9,7 +9,7 @@ - + diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/CustomConfig.js similarity index 96% rename from Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js rename to Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/CustomConfig.js index 57925d35..8e20644c 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/CustomConfig.js @@ -70,7 +70,7 @@ CKEDITOR.editorConfig = function( config ) { 'Times New Roman/Times New Roman, Times, serif;' + 'Verdana'; //Call external styles set definition for Styles dropdown menu - config.stylesCombo_stylesSet = 'OnTopicStyleSet:StyleSets/OnTopic.stylesSet.js'; + config.stylesCombo_stylesSet = 'OnTopicStyleSet:/_content/Ignia.Topics.Editor.Mvc/Shared/Scripts/Vendor/CkEditor/StylesSet.js'; //Set classes for styles defined in styles set config.bodyClass = 'CKEPanel'; diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StyleSets/OnTopic.stylesSet.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StylesSet.js similarity index 100% rename from Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StyleSets/OnTopic.stylesSet.js rename to Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StylesSet.js diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index 70143f08..5a33fc40 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -75,9 +75,7 @@ const dependencies = { 'Popper' : 'node_modules/popper.js/dist/umd/popper.min*', 'TokenInput' : 'node_modules/jquery-tokeninput/dist/js/*.js', 'ExtJS' : 'Shared/Scripts/ExtJS/*.js', - 'CkEditor' : [ 'node_modules/ckeditor/**/*', - 'Shared/Scripts/CkEditor/**/*.js' - ], + 'CkEditor' : 'Shared/Scripts/CkEditor/**/*.js', 'TrentRichardson' : 'node_modules/jquery-ui-timepicker-addon/dist/*.js', 'PaperCut' : 'node_modules/jquery.are-you-sure/*.js' }, diff --git a/Ignia.Topics.Editor.Mvc/package.json b/Ignia.Topics.Editor.Mvc/package.json index cb875566..8a5e5bd3 100644 --- a/Ignia.Topics.Editor.Mvc/package.json +++ b/Ignia.Topics.Editor.Mvc/package.json @@ -9,7 +9,6 @@ "devDependencies": { "@fortawesome/fontawesome-free": "^5.11.2", "bootstrap": "^4.3.1", - "ckeditor": "^4.12.1", "cssnano": "^4.1.10", "gulp": "^4.0.2", "gulp-concat": "^2.6.1", From 7597be682c71b63e0461d16af45ee3d737df5844 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 16:56:56 -0800 Subject: [PATCH 534/637] Removed legacy `glyphicons` We're no longer using `glyphicons`, instead preferring **Font Awesome**. Removing them from the distribution. --- .../Fonts/glyphicons-halflings-regular.eot | Bin 14079 -> 0 bytes .../Fonts/glyphicons-halflings-regular.svg | 228 ------------------ .../Fonts/glyphicons-halflings-regular.ttf | Bin 29512 -> 0 bytes .../Fonts/glyphicons-halflings-regular.woff | Bin 16448 -> 0 bytes 4 files changed, 228 deletions(-) delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf delete mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.eot deleted file mode 100644 index 87eaa434234e2a984c261e0450a2f4ad837aa7b4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14079 zcma)jRa_K6^zJUrQcHI&-Agwt-Q6i&BGL^KOLw;{-AD_FG)Q-gGzdrvN-EcX-iP~g z&*b^eH{Y4xyv%PN=0ykqC=mnzkp2}Ez<(I(fA#{~JL1@9|&czbr17 z?0>QUi2(qt040DrzyzQTPzI;~05<^oukZrI|7re*(tmmX7j^o_^aj}eC*Svf zS8xM_|1re@Z~iI2{-^mL9EX2e|B>GY!1r$^_@7M#!2iz^{g+$h|9j_j|IfYw09iey z|2e7uJq%=kUm`%z3m_N(;2I^EK8c@Rz+WzA_5K>K_A~&N-y3An#=6kB0L1`ghg@hn zZl7)JRrzdfN4}^l((rOb8!6cPsFL3<+h>Ko$*N(B`~JnKcb$DjB~XQQFl-maOT7?| z=??-O{TBG@KcAzmSNxsJz-Lt-`@AJr0kN!Di;SF6C_P<|x%6Q{;498Vwc}wHl?UCr z{Q~3fpz|ayjwAvkULRl`8oaqCD1Wz4@8$~fj$UC?mYD}9H~K)mrxoe9!WwG7+6D1~ zu)}%fLgSy{-z-;>e_xUdTzZz=OI{SZWnRf9!Z!c1f25WUO+5X9vri&A$czeCIfk$M z9$(eLNbUdRcqZ=w)1@@tN<^z0pQP-fOfjvjK3hvorqiV%Rl2xSOKU%hzr6ahgV9*$ zJlgSvPU509MBT=C+`yifpkEyy8#9c4UL5|r5gWS_tr}Av>(G)ZhAtjcTRS3?SSA9N z_Kegnh`V2N6RU=69p<{&He6g~O%EZ5+2OH{@ca1ru$Z)c3E&|1G!5~|4CfxK{)bF7rn^i` zwcKpWlzAHWR{;3USb36)e|%;$T55rp9tZ<6==s|-B*BebGk#$IYB|(ZrzrewrIl2Q zcVZsN=FLe{6k5m7YDaR%(#gdFf#BlrKVjI$R-nNKpd*2(T6`_?7Tr%rq~E9(yIypk z15x#%OfK;;uk|PQR~)DEppbSH6DmW;v@k*#ZhaG5{w7e$S`ot*K<^C*oB^co5cNr- z84k3(uHIXMy>++r-IRV%?Vpo$*r`8)jmh{vx(My9BI&4V4t z@q&H_L`zH3p725(a{oTG;rYk3%_{r*|8>5_6G?cTr)|U^XlDg8z zm^W6r3{qR3liJadUw%-DfiMsiV2YTxYOPA_X1lBkNTo&NjbQ(_zP!Rimikpp%G~h_ ztU^LLtxb8e!>D>CG^8eZ_@-EFi+JA&%Ym}4^tY?&sz92_hbFAune34RX{tbjogYXK zb;~ja9%4IE{_iiY6WdJ>_PH&3&@yDo2T(p1E`%?ub^PQ3)diW6ii}#+*!=`BpbGP_1R+t&;29S$UAcpH3h}2^>rGvH){c0jJtjcaSiIpFl?|Ykw|FXrNy% zn~l3m7e4&RgrOCH+jCRW=Ls5PATEyA`J8Ad?TVOG`l@pE({KV)pF3Z7;oa4-Hx3nk z^j1RZ{N?bQZy$cYv6=A&0^)qVweZ{+Bno|~E=9j=k-GDXeQ3qsW?N%I&@}1?wxuHf zA|Ro-_+d*C6M-#@VpM30RTEPdo!APpRrFObUDP^Ic|AJ;)&LVdnWX#RxiFb+zGKCQ zI_Kger%ADWvepR*8TGZ{JN(1K9%&P;^!XU4tSvkgGe_{JR~^f9$<0Tklc96r9x1B=VltaV_PCB77l_0tL3{`BdedCe5j3CF zO*e3HwE9GE<^LnU6k=*E%b)otxd+9+t<9)#+ze$kGPmX41&oF?8tHV!$ntX{*8aX^eeP@F2xMvpFGcra42@FI zDr{tW)yt3)P*7pvoD&$N2UDat?KH#6Zr3Wj1ocGNeW7Gj^2e)tH;o4O)FyAx_b=b8 zd=9(x+S@-Ai=UJC?i@DuZ0CtTtAU!S<4~e$K4CsxC85Tve7fHoj%T!vPv{JHch5_Y zM%K`rC>1Uk_m|u`%z4L~W*R<1JgN zI(cyXr))hytWI9~bat*Gf;?_avFr#*aq=$;3DEl;rBBbSfL&s-CmEN9Z=FWBPq|*w zV=1XfmME`nZtgN@DBWrbTSnz2oWcA9yL*=L#%fP3TXt!c0F%_>FvWM9H}5Urg0WkI zNt&dRN)2J@03gGYXLU}Ws1SoLa(2xNG04O@u`3C?42=UF%K^ZmD2OcrLpkyPD{zkZ zqZSrZ%U#vZMaTD{N9>OdGG?lPL;z?aQq&oxZHacwkYDWEjRc9X)Mg4w1*sqqdytQc z;>DOou1OedrNNb->@o%dNQsBess9-iEOg6MCTz%8RuuTHw%yfj66ap};<tL)BjF!!xYDU^iC@^Rt2BMhA>^Oluv#5vBd^doV(|U*_eW!Fpo^kadb~1qfM1 z-4xV$$`eWJMc%3OjU5A{fCA-11x&T35;A``cBD@_K+AfYp`ItY-nO9GFXyk(6H&gC zgVP-%-^o=btFjCC^slGFm}WC)1Fkw6WT{3uKjkNm`0Q%U67%Y#OLYbxB}u8qEXyBf z+jt?k7GWf9V1;7X7NJF^$kk!j@XFwhY;np}TTfKNM)sdEtVZLgSNz~z0}w_y_MM$P z{7ZPot7f{~deqdkb!?PO@3M6uVpZ)~0PM!uFW*8tGxGouYU+idM&+mch>1YWrfYbw zNHh7S!OA3^0A)hxl7xkSusWMIn}pAG7sVY<1G(8sqQS{%57LmXJp-HiSyD=l$*Riw zY+20T)}-|#pikZ7^U!gc1p%vkX1Q*!C%Ns1AbUha>5MtQHVJ(Q7;^mZrN_`4&gR#d z*GMiPozmbFnk7GQMUfb1z-LiF4xQ67RJ<1As!AEvs7ht4PG7P&xpL)JUK!S%jeUiX ziGEQ1j5YCz%;X#HVS2_}6~%)EQ*SZCzV-TqZo{O6%{r8|Py{vm3>zZHrnDT-D+S?Jo!n<`QZ%7N z6#HY((OAs1v%<)LZ%T1o@hclr9U{s$FY2`$#A222+iwA0^_ZWa}Sp$~Z`tSRz?fYd)Prtgp>DC@x&win* zYx)}AGLxzuz+^6ox_-KQe7OJaF4>UhEn2<^kp=1~zSKf2O8lsvgwt(+%dH&YE^$~{ zmIZuN4KWfnT+eLo`$Ntu+@_4dx-xCn%;H+*qI*rz{Pj+IMWV4q&4&v_vDJ?KnuhT? zp`HFH-{i7G z&cb3tRVzJC2)Aj&v-_2I=-cTnDad;U%gi?|r{%q8M3=JWIA4A_$1xksNX8fGQ0MXv z7jsG@yqP^YVXh~FGG7ztRofbb%v-Y2Oa0c4{DoEW2+ghB#=X?sC)zOnd<$FcA;P}k z!&0wB1tjlcu)sC=F=AuzvQsD3oXvch4Ur;5+K@a2;bjf`X@%InJU~*7p!QXL|3UP=)q(sV!;RVRF4eC( z5w2y7m}t3+flB}{o?fK>I$D|ykMw@kZumiw3J18$_+UA|-{#xqT-R~i?db}=&OhR9(;d>s&5GJ-M zuHl@XB;EHQ^c`j#mM47s|SScy-SD&Q0s(780*ui5*B(NU{ z1JAM6oymA%{(T`Qwoer|4`e4fbXpw=Ujf|X8hmq7E&vxv*}=+Rye%5X2xD0*^}YEf zEGd7~le2mpyS%mw8xl44hIvof|Pxp1T*z47AL}K^XlL>J6(gyYOmc|;VYs(tHAWpG7 znr9Tel(H$KV%()2(VBNVoP!o~|Gd)(^S&Q{PCqTk&dV;xZm_-lB_hr!QE$$#GqKT6 zV~RS4<7x-=tx0m&jE1BDqd(cc2iA@B7Ib0!{b&v`-5`t7XEV6UG7WdVy)z(@VR3p< zDC1lTpXHX3oE}5E3V7yx^8>jVnwr!w1_he&_17RJW+}R?{niZFG|4RyT7ZmC!Y^% zbR{57inS^QNGx!}+P3f7%?Sionp@*#h+8;FTaj1>q z1~X!#NO{YL-6+QR)z_o*SW%A+v-XebXs8&@TRzyDRieHy_t(B}bl)uwdFg%YXZ-^# zMWTYOwIkzv%>xr%$CBM=*m$T9k}!UxqnsS6rl-gw-*rU&V2or^ZkP6vPI|0njAB4O zn5CyBPHvXL)29>zpPkhW{`Qw3B?(G-TWfAV0^+}Ji$*Wob6n`WzRTBhd{);=mfm^% z{;`v`S>9Z(j2Nv-VLKD3~iA$Oj{Dq0(I z8U*-!Po9%GdOD|LVS~3(q-_)biNZxTiT)GN)YVr!4f4IRLNhAD48qw@0S#E{-e>UP z!dWH9**gQ$DqT?TkKNJl#J(f~7r6JAfSveml{UZ6jueeC&zR#Vi@e*Z==rWJgp@xj zDdR~Hd=3W?q0l(VMfRu(XreTXK*$pogtsuagZUmp^U^=wp0PM}Wf8W^Fm9n^8S4AS z7GJfQqzDgu-5C9o_f0zKKx$9L$|nGrE2rf%PLxV|c5LZ}PzELiSVok_zxZdiw78@4 zczsV08yXH>t5P&u(+XYPsiu48SXe7a3yEBGFiS7KFN#T`R)LMID_lZrUwvIx-Jfbw zW&lwFFkZK~+S9BQcb`8iqN%$0O{ zd_R#~i~MUF@fY!H4LxF+H=SJ{%h^?na-7Yogv2T6317oP^NJ}Jbg&)D&P;P^w8oe# zDNHRAqcPe>x zP|B*V4YPfm)deuX7-N@-7Mz4N1KmAfyYI78#jS0>Bkd}i9TWLsIZgXQY}1jqm+pG` zy{JiBImlPiF($3(sE&p7ntgNWLh&&5y{|mea7L8%c);7R2$T z_HrZz(`Nx;xE)NtPgF(IH0m#(y)Npg}NBkIWpJb(OJq&ymq^iBIHfZB+V!qd}3EnxDKf_XvD zT3tuka_2>|KJ_Qr(qpGJAf}w3%5Qo=u)K?~`O2CzZnMD_J96QGYE`74E@)I~ODsKK zH%}vL(dJC~ZUF3t99-z<+)r4yfgnU{Y-RryR^-SYY95;xsg#!aUC-Afy-0t%`Ccv_)YQ)A}F@oIMmu2ZX7PQ72ukwf(Cvsr!%uk z?~fxQtYEo0ehCIE`*_+|rxqV~hPV#FQyC(#HP&p@G#fKOUMp?w>)uN0&^pgnu4xwA z{+=Wo;`6mUi`y&O^6j1|StaDJHzuv-uBNf~cik{Jl#-tM_hJ^k+>c0kMduSMRtVAB zXTfh&yMOb>MNO5I1PZ0o!i;G4!y_^YHKHq6oX4a^KR@ocvM24QDH>)gQ-zdAXg{pR zt7?3h$uSFFv$4~lRcBSlUCKIO9p9VFeN}^EPQrbB!iSk~Ba2aSpMlf7sUnT!2PnKp z*Z0Gpr%sIM*x*BP?6E2Zk^y$a@Bl!Rt4YArYn_Po5M;&@gJz097wEglfz`ESLsIET zBs|I>ZJ0yIG}&DmAFB*@>{;;yJ_vO?f1N3M;xsLT(}SOFekLA$9KWf&-oNL?8X4J4oyU8tKa|1>*wEyh6Ebf)U!Z zYdS#`zoaL-RrPmx!}8501YZ{qj!4m&Y7SrdF&73udbUZylkG?gV+qAaszsvHEe+{D z<45m&hYodO2}g4E7>W2VeQ&n7!#30RJ8KbdK;T;5$lg`8J^y4jw3DP%j^Drg_woO{_t+eT$A)(~X?aCV(oI(=tpI1st*S@&~g6?&k z>s|?NRJcDff1`1?-Jc?K@U3-!Ys+&;g!A9IYGA|)zLH&vmifA**}mdVQFo{e8U~b2 zO2E010oyxaVfzV>!DiaH1em79k8chs%8c=txP&UaPiGwS0WcWl(|%w+^T*t*H|mk8 zz)Ak3o-PR;*!0I#w>D*9!+3J9$A|8=Ap!W>(U}g$h&Z!YOggAp^3=wF!Yaz_P($@? z(n!BM5i+f_^FX8~nrY$)=ZBTKHqm zVdAIS4fs!QL{-!F1~xy(})Hxa6p?Rjwv#-#Pvf zm8TQQeBr%Pn(2S+vFpu&c%{Rrk4#{RycSckZsn7q)i-C?s^e~PurOnw~O zv`sbAk*TMuA3Lo&9S}C+NVe+lL`zRzEuw^L!#*K_R{1j-SsyFUDFnW}3R%$ zis0vASSvzW7Jd2#61)h4#M6URkA_A3SsK4n#`cE2$ zLWp@8V}aGF=zO!}e(^Si*LlMGu3Si8)@_u+nrICpR-ng^i~GNd$UP_6*gd;57I81d zqLuuFat(5+->FEsY>{47M=^M$XX_r^DhHhyoVF&%)642YK9oHn`28XL@oD6zTRCr_ zQj#&uvxDDr@MK}Rs%^cX(zMsDRa3RzUQqW?O#N@x@1442leTwu=(D`c&~bPJX1eJx zR}5A8N$9Bq;W2HP`r4=%i4+)}>MCN-g9+FaIfz4#pX3o%gk8jR#?u%4F3+u2WCA{+7b24rYuJ1 zwW3Y9w-Bt2a(91Hcuj#xdB*q8Hy&$|)<1KPvN*|iiK~tq?ka$u;jeH>1QR}^dUxIFtyRN6z{I4L_o?enJ zFR95EMp$tQTUr!1vOm|XcjELh%@1qHj^++_t7XehC^Kxgs_HUQqFOBndGbf*;KnrP z>1BrQ)f5<&={TbN%QdERb6ljEbbCGjdd@5M#n06;VPP)$ z>chCAA@WK55n7o^L|)RL4<9m6lWth#q>&#GG5)ftZ#UzvbU+$2(jP)!o(zaw#;sdv z^%g(${-K@o670tu4>IZELt3#`+>9j?qf(`5Ch+>S&;~QQKzkSNY)16RqV;^f>T9$m zdqgaB84{#YEI4zWG)0m2{JP4snKf5{q~3>X2#QxOjG=sO9EHimSic@4V^<|@R-5Hy zEp^BF6R52jd09ovYpsaxywq*xnqd^%9fxrz=LFuUgxW6tSBC@dGWefD{H&>5oMjlj z6Ud@Q2;X<$!M}!W1R~uQvtTfS6QH%6nlH&~+q&RAWmVP$rbyZI&7MJD!MWh1sb*t; z&V+sSq(hi;g5~PTh!VqP_4Zlgx`%k?t19FqAJy6{$9?t}qv_oZP(+mjL!&s9hsSi0 z`1hZBgO1QyH=#|A^)bdk-w<5x6J#hivLy8_sDXLZ9cyp#>1cVkuO~R8$$=T!YcnR* z2IK3z=tD9$YM0E;xMYvjGX;DYEKeMPAY0k(Lwzo{Vh7}c15$J|s~_D_e%+RH^Zh!m zk4lp6r#OascmM8jGUcEAXfHU(neLo*wABl3)3I;N>=s`|zJAWwZHZtQNH-HR7WUvwmZrG!N z6@C{M0eWXL%2LZxW5tb=HS-8XP81s4JBB@;v&wkf0l#Qa_S5T7lahYrpP#_4z4ku! z%79{Wf8-DjEOK`d7PC)LJqBs(n-#-j1cvFr54a3Sabtu+VZ|9mz#=H?Or~eqxl$PQ@(j-#K-^vA1?!cVSYHiqjG%wgoo{ z;V>B_%aMBK*fx*zO(E~G2V^Rge0k6DE6)El91p>sh#YPjHEIdf%#qo8d;2q;-PEL# zM$qSYuUAeQ2&IGK;PK6zotMsO$LC!pl>@QKlp--=jQIkEwD||8ke1rQc)#gAZCdSP zbp|sBqb`OyD=c13US7+@&9PO~KE57bfoh^{0jOecez`2lpKQh@(KW*IF9t5p(vD6; zqC<&N{Yb0E4bC_{JpkUsO@rlnQkGCgPZc&=!#+=sq3)AE1cd=a-Lo&kH67=u3f~^x z$gvF;{hY5N=zW-MGNTT=kuvj=Eeje|_OvDefcre>sl=DrFKM*}wkk;l`}4haQL%D& zozLBx7UB^7A2;9x3fXkFDG|nU!vVTV#n;l`sA<8?C44E$S_CvCJyIKcbBTSJm2-dp z+A@d77melYFx?WF=8D}pZGaBq7o{5e+?i$`$d&UL1MLb{9o$$YA(U~As5FJ(o8zOW zjycOOtBY}?CJP+$sVEXp?BZ2aL1i4K0obmwIcc&4(62jbW8swa9f?DjTSetJS_F2B z5Z$cKkvqo(>(e|^<$|2NpV%tz7CM|Ai^m?Kd>Yu-{R!v%f8RBr7rWNtfZ^9vKm!u^dP~TR}A-E{C@XK9TX7!)BcW+IpovW>PA7tEh)jxk?zJUM*2{Y zN?T}i@F{LR5-+vp%IKQlcB3Ym)7}cJ12(U+D}MPeLlGDyvcfbe8%LPEy)G!?=e1L= zDJJoWSy{8;p|+#$)~16&EB2)`e$!tX1y-N{WXm?gwG*OnD!ci3u-9+(iLd7=7;7jR zmcY=*?xB}|#asYF%EX6t2{+RK&4M4{66KihGOAs;ij@mK&3Uu)3^b|?B;3B+z!38I z93x_C6}@3&mJvH)!lIq0oQQL86oWy_A|U@GvyD(NwO$c!`%U{`)TMN_Jau#t*Y0lu z0c4~`*Vxk$tP&+W8%8kVnREOkJevuHD;AI8ltWOEzPR%_#f5(Y$jArOxfd2TY42x( zvdviv@hBSfQLqM3;mpaTz|811VlQ7jQEm?Is1NzX>fhX*)3?iglf#v5#%li7DBSDs z9yr*Son&|AfaSp^FHcK!iyS|rW|~Ho3BGnwfGSacSD-Pd3HZx4^Tn{rw@X)t0G#!L z)6pFajr<=k25R8M>3^D^?Vl5V6+B+5p3Y=}-8meaQr23s5Ci^QiE_I#JND7F{`x)Z z${rPtj&q-)Eg1mQ&R^d8PLmmpTs0_NfM;Ld9p`~M`3B|`d)KSkHhIgWGh4h9V(M!E zprOL?IrlHS-Zj#5YaezY^EfJop++5!6~dG@VczVZsShn@a!H)^)mLap zN-5d|ZA^-9-}C0NQY-(>WWq2>z$nZ#9f)04o}#fdrZX(@%ws*mvWvY{x|!V;M+h(u zc(X?j+n3l}NT?SeX>yk#wP026HlrMO$^jJSY9}JbsQW`La`|uCRVgB?-NUkr!Q62rlZJ0 z4(P@;r`r%R2v%XcY4gwA4RY5cS9^>;1!-;WRHH6?A9H4nS~L6+Erf{kNRARp0%v#mG!BN`{Z0DT(;hL>q2tUur3n4FyKJATTZeC)I7~MlF{vYq zP#u$a?65CY1gX<_^dpm$T93g7cEiaEzJi=f(PP7*$Cf< z3e!q;mMXoy);Hc=X!%VmT-e!^igX6GoDK`Lrz#=>sc zkvcN?I-(oNR%$y<5v;+H$CX{e0F$s;-Dc+ckzFlEF7xK<7+Ij5F~FWrmDWsXraDch zDC0G}@xv|q?bH-m|Mjy0Ms)dZNpHw-DvLp2+c4S+O0)kVJ7zx(o)JrS?zKB>t||@D zeBgbVopB;#ax&umSZS)xCuXSI)HhTG6R!eRH?)QacpQ5#6L!rNa(`x=`VUEj)U|nB z1MMG_Tv{ZK#mpijK)fq&ckNP|V4+@K=S)c}ve;M#Pdu?5l^rr)DvUwV0PT?vKYzR% zGPWilY;hyPpFoR|5JP6?I@iC3Vq6S&sN@s)yy2Kk_{_=#E{tj(A~6Gn2o~=^zMyvs zejH=*na5H)n8DO#XSngd{F-OXphTbN9bu!~RA1@WgFi`~<6C$z-&Eg~>%F!po2S1_ ze(jCXcwQ%!S`|5^h}24Cf%DGYlJ8~b8L?zf;0`mM@)Jd|9&jr#{?*Qg1XJuUM}jTV zML9{SGQW{o>!LsKk$gTo3em@>#xK?}8b9NgS$?dN7ub9st#1lf=`*RfERqiz( z%zTB8hI6(Wpm4#3HbZ{z&OHArOIRM>JR?w6>jxW$d~1R( z8=RTg(0-+#XZ>UEu5%s=xiU`S%_}9ZcU{{C`IHp8yqFeq7L^5hHPf(B>{qz0U zx75z&dEB?!YvH!0%yFPn0dnvtlCDFL)%Bh>h0|%OxMnXF0(`E_T1cWldfPUNA#532 zF_UFlhm*4BwrzGZgWp~l89&g1;$Os_(e;Y|xl=2m@`F6(@A7#Zg$6~4{MITfoS(mY z#oK2mo@6)ugHMq+fCN82iP%cl>0rRR$+U-6UX}VIBZ_N3v^l9y2J@~+nXeeKV5tl_ z58#~`c(ljwfpHzaef#fbnkmRlut=er45g1&uFAxlaV4_Qd(S_*vcPY6fo5V{29CqR zh0CQnCWemD$tb;75jw?v?k%iaE$Zb*lYKU|?cRSJjsw=kp)Q^XpVWYrI2cu!TG~H7n=oNXG9I#<8 z2XoyS^Mf6^!*Rvnvc8xyFfpcXmSrE)F%hEOCa_GWBD#KOV3`AJX5v%eZiII@eMG4w zP{6>u6syX2q59xdCM#LN@M@N#|``%$kWIB0~(ROY~Ve=g* zNO-8sq+gRLR{DVwQ!Jfm!U>SpZI$h+6PlG3&djhh9*Vu$hD=4jV#(`EepWBB)od_U z1z*Wewx!;!ADjqaCwDW1G6@8ht6c*A{M}l8%l0jf?jh`J4b);-n=1;fmgB)4p1;ZG zDDk{q6&;eqX;tp_US%-mWh|)q)i{eHZbo|{^0}=bKxC@sGOV$YXz)91vn7~h<-uH& zQb0dByDZJPD`EGPd`kqAvI?*g=B3fqa9H9Rd{L`va?B=t~Y&l0h{I!^E9pG>!S z#>{UpLngb5T`Uqt6sO=~BOjkJh)+u0qiSo-es@5}f!h*a9Gx*&<5{Eoxc-WF!jSyn zM@qOve{Y;Ok^%FZK{2K;y}YNN_;1tethBv;U%(w z%RNe4t*ldJayql#MMurNnNoO;%!n-U0V4mzVpPdGu`LKf+RWv>l>VJ zh|rXJv9Mk&iDk|e!hBRh$KiV}utL&NkptF@GM$|`tR)5FxIigOLHS7vqDnsGiFl7bTk4baLCJDyHe`hWp4JT~ zxRJRy9oc;pw2eW?wv3s^8AsUEk+&zZY`Ez-Lo@iJt=-gFZhS`U&Ct+KB$VGUar1N* z@v1?8ygBYN+o*ZMCgDHM7MC=Korw86(SB>G1fFAvHmj{-oZNU|ZY7bG?7% za!4;s_~l~@pOTy7Zo^+6AY`23W==`h_ME&XEh#dIqn)Ei1rAP5;j0oaGirRuwQysr zBa#0yNX`7Po5nBsn|`gMKsYvFEKdsi0e?F_b6jl8h=+@ms+m|v$is-!NWtw6(@?$V zl_q&yu*vK7NYkl6M5O+M8>hB}h=2U?wrE48%##YSN^?I=0+$V|M7{IRFWf36;()R* zxJPdQDzTQ8c-0|B0$0G*)swoM=@rL%&=A*ZOgwL>7z1a%8 zFKtztnNhe(UFtdIA>1N=eN!pq;(cN?j@4UgtmpU_OVf+Lt5A!~Q-4!7z4rNbGV*<4 z`3S~~rTA$L`Bs@(J%h0xlX-Cme-na$&VA?CWqV?s!6CpeZMEoe$7DyV^%f(Y$CD^& zqb+UVeb3zQ$3puFCqi%M<_{j4`f>6W>Qts%OZ(sH37e1+(`!sDT=vci2*%*lcnLfGx#FXv!uiQm` zC&DPMh8FaCMRu3k7P2;P<>)CU&Sw8mr%`j%w6%l28(zv})E#p^r{~M)l3_X_Eef#9 z!fgwyX5@Oqx9=Waz>)cTxBx#FRZ7Q4&|@q3fbSjP*Pt|Bw)q1)JAG_&4Bc0~QYI5; z9l5@3gJ7IgX2*bCLz?mlb1Z8!pV-p58bZOp4MrH)-?C4BM%`bn_bw_v8c^mNSm=5N}{I(?E;74 zX%b#E#TsuQAAXq1n>W8vD~|I|L(Aqg?g=aXtg!r5BXJq%+P*yi5*0j^`Ml4I6;HT7 z5db0$wG~_=*tJmS#%smF=#xa&&Jz8fS=qB8x{B|9vz!fwmKbQU8&%pTg}ZM=3#kzV z_ZQ6}eE9}~T4%V0Xs%r}Jw9AwZlZ~)%XtE(9Q39 z5S-nO>sGi>EdT88T`M*cJ-QO2)(J{jpdX2j!noU=B@Ze69N9Z*ygRJ((WnKT=0Xa4 z5>HTd{3T)O`V-xs9(FA8^R$B+<_d`Zg!1rg#WK2+HXS(SR!(O)SwKq@O>%tXdp}KT zpzS>sB$N=B!h1`B*_hr3l_}mcGqYM@5PwPL1j^?PC&BQ_KvG0v0}CmL3|yC_fNyLi zaib~0C!;PY#bDnTXvPWs+Y5`ZCeOAdxX zCQNr*a)lN~1JDbninPT|6#xvPr!u6P!D6j#QGyAlSi+iMZzAA8s4!|Oo;I<&P#87f z1}&8+%t~ev%@`NRwfE8lg1+grWmTX#j0Luf0bat{$*Vv6?Oll&1AW4N=p!AztoBEDh8Zbul!(v09dV^(vw_m;E~n7Ix72vc`pWtfDyKs=Ist`7lb zYP5YlV6WodgY`h z&;}e>0a?Pt@c>>_fJG=UQ(rXrUsV^iQy0~j7nOpEOwo~<;9xV3M&qR&z^trFp|Dga z%#afXVTGYE$^|P&Bhs+bBC)Q+6RvGR*Dzw6Fg8?xZ5*HlD1 zp==t)lZj-JiTHwSbr}Zi=tnw-A&Z3toC4Q#(PpeD$iv(YfbFqpp>$-%VOD!U+gMaL z0Fg03#R`b$j_fdp`mKrB7p7qXn6*PHa>q32r&t2sKcoxsl=5LGrqWU=$$(DfX?Z*- zZDL9~XrfbHDB*7s)JG)=$rjZu)RQU*#d&mL*HpM3ux+Bz<4Qp}-b(Vs)G51Y8=Uo+ z7zZlqTu0xvo&(e>I!;k&;b#AbQzV}1(2(z1y>Fk6KE@waF^Kq{d@b-3Ge{J{jt>gwJni6ufU{X-fc+B2-`YjYGsmBSgS6oO)Aq; zI7J~w=8hx-a2*4z3=5D&uDPO|4O?(UBedeq1L}`~nEDmC0d1YYpF1Hr$ZOS9QLtrp z6nW>C@!SbU@@ZZaznY-{-@R|GhS4I()!-?p@Vi*TJjF`oVea-G1XNzd! y-^Vp%pcMc>T*9)K0*lM!C8AZPg+G7PFFQ7O_Sp6RwD_p|> diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg deleted file mode 100644 index 5fee0685..00000000 --- a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.svg +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.ttf deleted file mode 100644 index be784dc1d5bcb92ab155f578f3723524a3dd9688..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 29512 zcmd753w%_?**|{foU^;hX0w~U=bqhcl1(6Nvb)J{LP$Waa=$}B<>qo1h^Sl?5fQHy z3@Rvsm7*022$ABYeX&1l3tg19UZPd{Y7=d(ZPnK*Z!eHN`F)=`XUP&m>-+!xexJ{O zH?uQy&YWkSnR(`!XP)Po6M+eWU=cP6lF%}8|&%ddqyBm-N z{Tbxb7T>Ub5&Qa-3;A|IxTbl@!uc_wt`W~KsKouq5?nAIk=G#~L%w9miksK%HQQQ{ zzfTavPj6Ut{ruBkb_@}Og}BCEUNL`N3kwKu2*ToWl=rNhzhYtg&RxKL@zsJLZD?6_ z)6MT)KY6VnEc-dCU%z(Yf<p=6vpVK=EbUm|aev2Sol<97XHI8v zXGLdiXI~kpyFL~$jshU}17x8WWT8XXk=5bpsP3rg7y`(n zIwk?~f{vDsO&zVBtW(#S)#>Rh>8$RIb`I$r)_Ha3q|SMrEuEV>TRR^k$lafGpY2}M zVffuAzdQcBB_By=ogbJ#NcZG;vOPAB$)oq^in@!GqD0Z(i~d^lRneb|eqZ!a(Je(c z7p*8-T(qcYUeVm5=AxNJ(~Bk+jV>Bi)L0ZPiWI)7_7<@IzyG1}62u2Jz_o}yTA=aj zhtMB^C}pn}Kx-Z(Js2;+fVfHxf(`LpH3)XZht(iB1fdxBC(c1#}I^JNDoFl zLJb1)9itFNdk&aVx@ONUs!x zPPD6&a9)ELICrKYjb}Qu5OR>d9kB-ixC{3pEezwwFAxLw z&Rt0VQV>2yL_q+xojbvUAiRb6BoBh{HsUip2*Nvvf5n3!v?KmI4}$Qn!2a9DgCM+z z*ujG!{06a$2SIoraVZai@Bv~!4+1!nz(8B*M*d+UA_}P=+@vm6KQemx|IZ&{%9ngF z6Ta1luR8(*pAzxKdcc-Q9yHt_1fFL?)u3YrS@cW)NIdu6+TkMQK-BSSzbUXicV+ z7LJQfeo#IlfbN;MP!5Nh#M-dlp!XH~1I+J>hHIkui9{peklW?<)dWOeu~{^D4PL#| zD|wXm^y>OyVQ0aZap5CH^Ox`c<=T>=rVnB_>dwaQEggHy@vmD3>0bzs8&jBFKYXyA z-4;{Y^=v0QH|FM{{VloGGiwhoyXCuqL+fHywXyxPx4yD?S+u!2$5A=EDHezTzc_1^ z$B8G1@Tg7lxULP-7V(4vy6^s)Rm!i)R}n9>dqa`hnlfLpA;5gadZ)u}W=@CenE2(o zg9q0IDl1=D`S|^^4>Hy=gPFMtS+t4OT5HM-I`k92rd^Ug8!~3%Oq=!oi6f_)jfpIynerv~O}wgE zdN%R*EO+keNVFoyJvl1fXv~m)D%p*RiPr3#)hjD9neu_m!lbUMtEAt2Y*Aj8D_t8ZI( zOLJt{`Yi{Vn)Yv5Kdf%{+O_MY7e-ty516`UNd5XvcO08O{n#Cw*4GbNGj)JG8eJ@Q zzbuTBcc6cbBu_DWIP5GH!@THQWpxD<2Gj#x+Ol-P&stk*TFHxBwc zkvJeWBhj@X7L&I0#BsWw7=GzRdEABL@;Hz!%_2nV2boGO$>*rR`I`keR*_V}tZ1jV zxD1pW3422>U9bGVy??I2skAr?3Y@IfSs*s2<`M@|bC=$eb9TLQ$KZ#x_MPtP==*wV`EOH3 z&P~?T11}||T=Rc&Tiu<}Jh`;r`|NR|C7MA*OAN~iMnsRfH?*pM8{gs&flJGQr>@Q4eq1ZnwMC4)3ed| zy64ZIe|{ar5b(>Gz(DuUU*zvXsm~f_TF@bu+v0Jhy(ggfg-Il*vU9i&7^09XY-!SfL3is01oMw=+<0u`OONSvkBOPN(&Wm24|CRYu-M^_clmsRI@E6Vi2O5HsTfyq*CrnqKf^Q?^^DGDyGgj_z>R@RGLqE=-UPD8ENsq-cmp9W_2*&+8QgS3U&jTUppg-(K4_w-?!PX4|`0`BFKde7Se8I9ECN%{OeuH_8Iw7?TfQyu)l%()Epc{}6<1$YOh- z|8f9Vl1~KYle{b};mf=k$cS%!U7q*@JNlM$pW{t-H1TOD?_eIam4tLw3GwF~1Y!^} z-^pU_O~Rp$VzfUCGm>aX_+WolK8mx-xbhLZ_2^Lo!uLz(6ceySkD<-zYsi{Mfr(ov z#FbE?s7~UVCf3vF3;+(ZkIsFxckbN1S|p0f;jh1D)4o>XJI|lr8JCY^h ztaba7r!;0sJXLH4rvy)(Om}Y87%d{sy9Lg>vji`oM*&dp^kGAR3ZmE#f(J%w!x(w& zkquVy#3L>DK7W2E@!(TWZciMzBrACynRNbns`l3H*oC+BGYd$1gSCkjicJg;Nn6Tq+tPaP&9fbY?p?QG^)g^U)lME^EH5{Xn5>uv zRcCthbQ3u};0JAd480i?u0oGmp+&$LC09d8?@i28h<&IgX@UAk7AC2l%fh|#a@+M! zfArZ$PhSrfnPJ}gd#3;WR-WwYFs1EHGw~m>xhIYNTjk9tkH>CS+BsXRyyLCatKYhV z=iXOp=plB7epAvwo90GbZk9fS%miMU!@N3cCWFcb`Wh%}qHdb5;Ezvj9kn(22c<|0 z=1V-Dyns6Zqr#F}I4tlo4og=W#e!(?V?L;mSnG&Y%ZANJ!lZJ0`6o$%5A z6$~H5XaXsLdWjWxZQz|tiVbWb#S^g@zi}?kx0O^PaR5sksL{h8B#Osc6^pS-6y!1t z-KG_c0I5_?WXjWVB77`C0E0X9N$$~z7hXOe1-sAMkd&T~4x>?4OukyeKg!$Ss|6H5 zgB~bOk%}NSOT8$!b!AJRrG^W~W3lvW_(!D??CLo`Fkp;@bdj&gQl!RTR&3Ba+^!HQ zcM>BYMw~rfP*6Cvkbcl06VyMyHCmL{3Z@kl7Saz|0P59!h_)Coo>-$bXk4NXvs9SR z6HF}jXQj^+Q;59=KB5$x&J7=^@jchhecIDX(a}&ek zaq&bvo@jmCXf_+^N9}Lu{ej0(tmnmo;H@o#*0YK+AJaokW}(q74zR({(gF=9v%Bqb zTXDIqP_I|+xK6n-JKxmLVqq&Pno8`~vU{gw^{-X79}C<(l=ZU*%$d@sUAF2xQ?9`< zbf_y*`R9)Y%p5AFv(pbMKjVFXev^KNx?$@i#U6B+n8{|*!U|=?=#N^iqzg!Xot4&{ znled^`m-4O&AK1Ey~P=(w7d~D{ntD@Q886Ci0Q79B3AjGaW@>;{k>V6ZlCj%e6;Ps z=ylQZG=pRcU$tiBwC&?(8N%gKL%zEp(_#oIci%RC%KWbF^QX0NGgLlcYIBh)+oT4{yo9ax;B(`_Zh3EE_-KeH0}s1>WWM1zi|8vM8yb;}!f zhO(RiZ!uU31~)ERJQg?5Gr9D$Xe*Xm5Hp*qC}v^p;w z*N{S;G6K<5kG?@5T>?=z=@LN2k=}Xf-`uBNVd4PSA2h4_n67NfNuN0j;swsG4xaJg z7L*Pbj#Ew^=PZz3RJW3j!b0VUbGT$csKSDU|GP+LcF9pJrBsJ=9lH5vrwS)Ti|K!5=NyGy*{4rGE8dDr?fg=uqmT+G`HiEHcE>4gPhlm$92*;Zd%Ul{ zpmt$35ulqOKA6%j;t{EBA`5A6KB6PRvexkL+I708Ne}>H@zhp9`it*R{N>86N@>x- z3&+I=F1F%dHA>wNv_XcqkjF)D`$D=XZK*6u*orDEi^MOB_}+k3N>3)%@GB4CHv#nt z?eKeKAnG4CEE<Mp%Hx^%i-A(-muYYU(^2Z)~Z|7t3D;wYa+m6+L8#*+-c=@Wm zW509ThTq(o7(us|Eq@Gk^yo;icf3SH!mP#63-wZru;#W47kX(!x~`LE(6$}Vi^47N zi~60;0vj61428fB)@M?iHc3)I^p`;w$?chLv7dAF#F^sX6=eK$oe@it)27o_nti2wO;QUQ$BiYO?c(b z$y08CxwPs&TMntO#Z)Evb|%dVLKxVcG&vO(48(u&^5bWy0(G0UOiUy_ndu-2YWw~_EjnngQRBr9$MJm7l7k%1~8!AYCYpA$= zT8QnrQCZI0jvv?|#|imD02riJ?se-8q?N#qnQE_vj^0^p))|_lA|{W!SiMfXd;0cd z^)uNLWtSoQ>R~g6)n^ngUOcz3fSs&O;xNh6oW$WSsNtI47tQYQuoc6~YGD7wM5eJI zeD(vM0&uBb_>k(Q2OsnXw=bliQaNbYG3DtbF3J~TOsU_U;tY z<)?53WlkyY6HG4WZb4hH%kt7RPE|NKt$?YRQdX67>@#HyaYvH4pnf0A{>X7t(qyZ__dbhJ@DNS8g3wYhwr*rrmI;~1cYLv&N zili4|Knm6RtQ`GL?L(L0OWR9m5@8WgvY|ynH;~r?jS)Uvj;65>V{deEnD}#ewk9Iy zCf9fBXLQlI0$x2AkJ*d7qcy02{DKo|6UG&+pQ&SiIoz6vG^GdTW$-wL91iKx7v;xf`du&bMkZ0 zDWdmMHLyAu+rpSOw8C-)tR1@fFQA+MV((ry8G4I&Tz;T0q~q_+N!MMs!}?LK-r=mm?8D1TwQF%q;k^xz(Wtad5na1(q_0unK2 zkStczCfz_zWDaN)WH<4v-qlWy>udvx^L@eL!MvsSw8|EPUet-{vRSrEc2}BPXYm(g zv&%;%@khy65o!*F$CYR6Tka6`CZj9kVuwa~skwI_5y2mv$! z-JPnCPwkP(WTGLx++|&IKk2l%j*I$4T^mSmmP?up==#je0EHj9kky8pq-br}Stz=7 z&PWt_T*W<`T`RY}k@M25_=EQqzV@1>--zX-JXZOU(U)SQmzEE*jjyE6N& zx3gD`g#u^M0q@C^d5_&5A2e%fG&3G|OuB1C{8!cAjgMLGKJ!NQ@~h*cS7iSRZSJu_ z*h#iZZFAC8V@Xlu@NclqH;?>(4VU1(nZoUN}no& zm0_%$RVIri4)D5v!PgFGvP-RS2?GsUQT^PuXEyuvBk%v?9m|r}*nI83TRc0zJo0Si?GC#&vwQ=pj z{(yY4dP&pJ#?dy)Z7*cxo|-))T{LB}?+ui*oxgTu%L8SfBjWJcz}k0RyiJ}3 zi9fP{qoBZ{yp7*GW3&qKHMb2i?*RCJMWOK*m~Rk+iJu%R;mBt|lIY3;x!b|l66o`x z`45*y3ngC#D~3c4n^lEKl(9+_i!&Pio`U~!+3e0Qy#@Y8qfZo9k%k;xMd|;#&g`*? ziGM18l!|S({bY9KbkrhkVMa&VVSlx?HPe-CYPAK*o=JZH`+*V;C0TDDYsM1yCu58e|qLKI0(-%dwMusZ?{BW7uS~!p1WyU$dRrq$O+%%@ti!fDs$>k;3swe zOt@YCLJng`F_`?_nZc|t4(Q-K(WDO*>fA!8NseMOmUNMb>J5dmojfPNFy$|D_4y+w z-n8bC)<@RdG;w6UKDYOU#E4C6r_8FnI)g#>?)Vygkk?ECJTFS%MHY_o-(WN5>=8Ty|-h$Id&pc$D*Epw+{chQY zVN0{;l?XE0BA_j8*p~%_Iwt+j4c|pi=htTtn&Xg^!Fba}B5}uC`aP`ThOF?hIrm0;S6zLX+Np z0?ny%7Y?+LA@d>U!o}(U7{rfO#X6ylmv_je&z+2lizmuw_4`LL_<14{$byGpU)@TQACXCAB4nM?DW ziH(jrM`EKhPs)lb``Ih(6=gq`!ciXC3xQYiu;mt4wpG~`%eBw>XpTKMrtGq2yDV&Z z^M+>e7s`K_gN_PErsFZ;;`~2 zxwpvUkUoIjF*>TDLTs)8#{sSoT)4jm+2IDD18GGdc8~qP4wI&ldEw*jB7dYNy}zcB zsYX6>3}==4Z2$O$Prmx(!twrWJ+jv6{@T)piXv+Uq$4mEGyt`DGy|H?+ zGWgPESV)nOk97V1H|+LPtUv4j&!6MB@(p(9Z{Us93WF!S2mZkFuxREfe*o?xJe82Hr(qPEN8kx^iW9sEp$L7-p|E;n{Bi2 zvy#pyDGQF%e0CsNhBZGa_()+(I@b@B`Xs+6I7`zaOxE6$NHT* zrMyS70w-*kkEuph1({|uFApmalndC(z?%Yh)sn30QSn=)9wlT9|C z7p2S$i#{I84rOMZ7Y$Aq8qVMy;FR~sdx&Q;gCBc0e918)>Lw2fe-y3~?3Do>6aMtW zAO2}V$AI0tk^b}X{UV7&Bo#vg zBX?XFBhgMM!+9hbyiUpI_gM!s_^O2AlM~9THqYDch&A4pbv{t~WkI7~c{#t)599Uu z_wI}BjD=tjmfOnnPyIZ%RB0I-t7pwc{bQAr*BEwIPFB9?yj{6J#@4pK3+4xbmE)uG zG_n(ezP#vpcsoK9*ucoN;kIkT&Ld86et47m;G~ zADaJ({++k8wK3)X_IEjdOamWr%G1$5johcE6eLl^xF-lmP-O#TQRiMXI9BBL+MBqb z$ZZAvL{;fK7~&{RjvLrAbB5Kl!kjUk1*R`wF>U!~L!L!BWOz2;JTS&e@6zX4-pI1q zvXm&xkkciDEQ>nhBQvN0($Y`$rWUiqW?nz8b%OGo%fByE%(RvouU67$v8m4TLZ_pE zF;UVF-)LZRHKriVX9L%&d%Swi|U!2ZYn*45pNP zL?u}1GUcH7DWu^^pURnjYvSw7@0B~*)CsNQ*!rw2XXcHjXI{>*WTXRS5vL|99LjUE z*x$ZT5toGdv^MF?kTd!IpS*khFnN*g-0ClbWK2@INQzm5SAyFsgwR2B+9pE8;d1M8 zh{4F?%ALw{sB*of)ZF6A;+Tk;nfqQ*(m$X2k}F58JQO0#uwVLs&Cpu6e7f@XG!x5Q z=_*oo==9IZXyW$4b>R zK%~1PJAV=663FfjXf0})6$gWek%4{&k+fC@pI)4R36hHqo9d|8mznqmV{H7?;%dn( zv#e+1TPJ{}9(I(6LXttB?Rt6Y7wqryq@0Gv%w!qVgd0{)1GKZ7 z_4$_9T{fGG#WM_9X;P-`;Tdcyts_`V!2=G#PZjG53ne{FiM!b$u0V$)UbF9_2Iup= zbN7CD3uo@^VP&O!Xs`0Qrq;6WyY<7pa~0d^*H{_rcX5q61lU=ebHS6->EQ0G1RP=z zB%@k!Iz5$y0^rK$*tG_51ndwpx9;N_GZl2=IpyqYr%$Hf+!tJle5AradOe3rN;i)5 z3sA3J0V)?#mt-~7zm@ZnWItyK_X)eGr!VOZc!5AX zg{27FCGFSYGQfHS@vBgby7Y+QtwLlj(oO|`bV5)M+YIS{A`qgHjz(x3P{@jKyaIQk z*ou`!NkJBcdrQPml!uajy#dxoH!fl8<_a}k-d7J>`sX&KSsE=)7=Yke64a&T>5G}k zm7SJ7&DB(2kQR{o4bU^)qP2y^KFJ)&G>^2VH+lkDp)8r{D`YV(C)aJaXXvx^<#~Ej zx!G)&k^nocByC=)a(kt^zOj537v}RzN(0lyn zm~46@Lq8e(mJGL{_(r#PZGQU5oD92cDom>?lx<@iqp(3Vn#9!wB~3+;4-HuvOw7pe zxy33mGfi@p*$Q$B@(Z){j2VpfQtV1cJKg<_=6;TxbemmD&v5&l9z%tcDe2@ApUWgI zu?79IsFzJ?rV@kEL@G|wo(S_WXAWyNSHHT0Cn>zQRC1Z5LK}eI<#0_C*SWMJTQQyC z!A1g#c7c@cy)S`i<-@6R41~5Gq2`hd@a6vKnygO}8+fA|y9EOoG_pf5#O%XL4JnBn zv9VgF$X}#eaexcMI)~%4R_vPmvX|DntAJ1@LNTAcW{f$II_`Jn^y0m!pXaL+nns4xzAU+VF$c{P{P+RK+NU6f1Q zYTj>1Zt8K8Rx46lQ$qe;yfiyTuJ3&~$tT`*c|0z+$HN>f-Q%W=*%GyeuMSrf{Vh;L zx0K?5hwjJ+F7u>UJ*FS<1U%kK?=)sMySzvnx4Q~T!r>B6P-iYupXF6RtPzDtLPY+V z+ziQ$I9CgF&z+ETryz}H; zf!Q~V8hPq=_Nu9AWOM$gc~cG@nYds?-i)i7T(ehQ%ju-P`)hfv{1f0tyB*jFpuh$5 zp`)yHz!ryp8E|pKXD}R!!od;O{028Pt!Rb;ci4a0m$tLJ|323iC@Szphi)Bu-P|F{ zABGNX=P8yqbm&%-VQIT^8x<*t4rM#7{DFD4Ky86#p47VSCsL~NkC z4~9!UBu?cAGa4IbG{&SKIYWWM!a&H`HHx+i&%p%~*BfU5JamLMh&7!;6|{6$p+~H4 zavao?;+=cyg~3X#etsC1aSgoe_63*(XKsubddY1ipF;7(km5m;qUFbS#~zWwf7D)OqeL!D+ezfdi7Z40<)zxj4r6mcIpk{o62e1-9tt} zB8dr$q(@<+x|&9l-05kR0ZlG1f2BXEQl=*PNoBQy&IMT7t#iJg+?&i z(t=RMM1Mc`+ado9cXm|oG+Is8^lDSdhtFm^jOkL7GFTnT=$7+u)z>^NLg8)mK8%_{Gm zf;s@Z#nbp>mDk6vhh+wK8&%IimTZ`C&f!uE)Kc8(`I7pwpu^+dugUt7Rn)3=K$(lf zdF0|;>r1KcVl}7-U>Bkeu2+FIo;I%Ju?dw0s-{yRGVdEYf1}6F-i8`s-BvpWt+D#t zR0VJ0#g5|Ur8t_Tb(RON;aCI67!~gYk6LgM-bF|fhpfSq$HWNMLO{LP`6?`cR7^B} zd<^)WQx6RpjY0}kz=FHGHyJKs3EyK<5~!z^xdECFEi6?WTl)RCumKkisA@nxNsNyW zI1MmWL5>YXHoakka%evSoe9|q1co&{$z^EIp-ZvMBVR^_mwjJ;@ig~P5o=Yq6LL?1 zCQiHheFmo#EYm&rs0z{__S6IVgsz|OF0s+!HA=l|(pgJMANTYZU+yD-f4Qm$UV}1< zjfa0s<#&Sy-3p1+Yu9l#wWLEQgB?F05TAd9L z3Q0E6h@%nayB*5GciH?M?A)4@6%t1Cw3@Ly~}3oNPOqEN2!mgKX09o z^rl*X_FZaMCdVP5k^Uz1xEvj(Wj!J7I_e4Pm@+m`xn2+|vVA`Fx$sPZ5@$yKNm@kF1+Q4>cU8pW*FUVaEn&urJfoWAG`zW{W}K_ z-jV$4RjKmL;)CqrcvoTa{-z%sBvMgnn)JoAYWLMn>PW1uszin{GxgL8Q3XN)_ZzIl z2J@0u@{S}!042UvJ>adVM-|<~*~-eEdbA^91dG(Zm)5f~{*+94mJkr zP3Y@1&u=m5@`+jCgfS)cOa%@xg94;2yvm)i#9400DMNMCN2D8A1eiyVBKbx=*9VFq z17HP%hfbI|k=W>fc*`&gcU~^*NL{0?m$7`>k9pgW8TS>0+c}^+N&oFY&L^^K6 z6R}W;|H)H|?ABYdMieQ#3TnOCdYy6;O3RNxUV1~hirUTo*BgW+jhp&QeULn>HZEyL zp_Ry)ob6#s7fK{ws7JqmmzOqd5VeZ~k~|J}5*Q0|6jRPvoG~Yh39dk0pTo}OjKzzp z=*lu_ohyflb#lW*L}&$>;Yv>^0GEAs$7+{CzW!GhaczY+)f;$ zB>i%#oI?YzD|PDd?xzY^e^AWtjfzjhHo)B~{7VxDu)MYN6$~#Lpac6j7D?VYEzl!V z`lrmV%+$)0`7OR+0md&WSl~giAnv>S>AM%i7bx%HHu^0~$dbP+KSkCqyFriLW1$p= z%8r~t&{<{JVPnrmP9i_t$5>I*!;2Qb_1JAiMNenx?XTKvverJdVdKIzR=xQ<<^l5d zeHs1lf2e)Y;)ff(Y@fBte4kmiu35ZcII9_)YY-LSb zc>*1?!t5+`(4i!}f@6i~Dx1wx~S9Nu`hxbm1Cn_4qy3FNC?n9%a_bu>#r&YX&zx{%*L`kWNWPLi`2`d}6 ziJYg_dSOALOWv33L#8Ia+=B-ETvGcZkFRRP5H8BK z$=)FEN$LbO?z0!D5BNIMyJqwNRjIZ=)~ileQWm(Z&P)~_01CgXze!IDXw;RxYhvei z;sg4;w14UJ37x_1qh%5ppdH?WL|L$T>WOprQ70_#vCS2c`m)XJ+~%_SNX6#fRZ}Br z&6~D)#*EF=XpUTpLlMq*z&EBZ98zhG?Dl+h{GQ>}g11{k04f}c%@ngcGopd#q;X!9C z=q+q19yF>PNIn#(8&i)IL8S;*AH6}zixiGH)70V8;Nl(-MZ!j48?QFs0}R3Q>`Gcno>A@aRC*P*9qwX?+$2H zzCK8QkWG2~HKZCgXDkQK#w$Oh8@mU<5sP50$3R8p-85g}!p8du_BtRBbuBjsxSXn4 zz~zRvmXz^UgI7Eeh>Tg99%{I4R_-HnZhl%cr;k}$UnMUcQ&)+q2EgjLbWC=UXHnzq zyY#beeEMcNOA?okscm*OoVdj+B*} zHlUGVD@=kA=?}^C2(Ci3JklEhR6CaR83ZQU1z;&u4OL)hD1(A{Ar3W~@5`*HQ{@io z+Y!k-wqQ-ztp2fffAUUXR6L7+JC-6O9jUlT#Eib#fUdyQOpcGB$RqCK4?!3!0L zvt0b^>PX4pYVSPX6%efxpoES5fy6IS?q7V+Y{uJ8ay)k6^d?V(z8J4ZfSnCTQ2bt) ze`;XQlI~%77K^!`xkUL>`4z$t?|~@xW1{msi_%ef{F&bFrv0U3OF6A!3n}X z7$wTIDjig)3HXQzD$VC`nTJc8J#tS2$Q+Xm`zE}VNE14xEqvy5ZJ@eiYo@TuDQmFE zRq}0{=n5@ONV7dcvxXS!Dn<7&P%Z3k*5`$ zUt!j=3&rpmfcJo0W_9G{+FVl-=l?ozpe;AgVO=xWa_dx^-sYI&!0*&sErXShZU~y{ zM%HD};WkIPAw54(f!FR-z$NZEHfsDvhsU1lw3piN7_a8}qqHqs#$vf*LgKabtA z0B)b$g~i!x>^1d-8#|$lkT=p?LOU4V&h)2vt!~6 ztFFjpOt(l1`o`_H(X{!td&#HqS)X1~Q_0^&EOhP;}*a(7OaYz&N_ z;R&omD8Wn;RVn4 ze6S;}Xwi!OoCk>T)4H4MAEPdKbKrHp*!R^$85}txZk=@eLgq8KZB87v^tY_CSj1-U zgn7?wQxcMK@-9Nb>VIds!$aXej}+OU;W9 z(vu)>EoR36awH!8KnqVJPxJ9=HKu!bmY#<;2G(Z|r~4atAtd3Gz6)=MrZU|xtKs6k zWEqMJ5SD3Wsl4`#kc%|Ihg8jD88G%BP0!FZR;9W9xL!5!)n75hBJoqY1L`B zrtM1?(#z6Erf*39hq2B$$M~@Eu<@&mK*qX^XEQoXxu!Lyw=)Bo_n1TG?^@C<0m~xG zz{3ATeWSt?ONM?w!^lM>_+% zbmTfFIqq|O*Kyntcl@X0AI^MdlXIQ(Jy)6QLDxBViF=Xz3HOO?A={B%o;@l1iR_oN z&t`v}W6T+v)0%T4SI!-mdnC`87t8xe-skz*`NQ*97c>_fD|o$7EL>N3swlr`LeUYA z%TwdI!SjsgjOTCO67Ll6J>H*q|5jXGJg4~a;xoQ9-w@w2-=n@0zRyeYOClxnN_LjC zm!_2tDqU2%r}Q(ND%nzY!k_OS?qBCWQ7)7ZEWe@rNcqqv_{SprSmSGU=(9=c zWimXY@LpbJe3qJtrOO8Mq-(Ua9cl80rZRECB_?q=EmVsSuU)$~fd9kP@0DAH|KKs7mtT(l z@W8L-27Em!5N_hRg~Cn3LR?*g-xx}cLd$1iUS2JXMy(Tt3BpvAyBe@=5EdaU1^mT$ zW(vwL##<$B;I#ztWHra7L70x(XX3erK4D!BX+SSn-xdQ;ujgj)cH9IESMfeb#c2|6 zg^FPhrb|%rX5o5XehpfwJ`sSgUp25_ftD=?Oe(Vo?W49YK#vE6S{~}q?;-H7zVQ9` zt?YZG`o6kWpl<;EeFH|h1>?U|!}=y%CHzKbHjzzYli3tDl}%&Q*$g(5HM3c4HoJyh%dTT{*jzRb=DY>$db~z%AzQ>2 zvn6aPTgH~-9KZ^;lC5Gb>_)bl-NbHYx3D#AEnCOdvs>A1Yy-QUZDe<_P3%s#ncc;< zu)Enk>|S;syPrM4zQZ15TiG`D5Nt-<*~9D+_9)wdfA;Yhdz|gUy0e?@VNbH}vZvTy z_C2eZR~ldb$-Z>vlpOSdWpTve#Cyv{)3%> zmHQ|7M+>jApF#@%8T&aq$xg9fusA!-UT1HxGwhe_SM1kV;of3zvv*iKdzZb(exv7X zDX2yv!!0Y9R##tDO>wBYIvEGGJim|YVJ%;y#kE=-(c-8U*J*LR7GI^tp^<7_J5nBT z%j#7;6RB1!iB_wHqt(372n`9u{61oi1Y(W^VqQ67UO8f3IbvQpVh(Rab&xj(u?8oo z!3k<`g1j-fufYpy@PZn=paw6f!3$~dLK?h~1}~(+3u*8|8a$kMK&OtV4r%a08oZDO zFRZ}}Yw&QagO?9$aKaj#um&fr!3k?{!Wx_!4Ni>)r$&QQqv2Jf!Ku-nuhE{b(Vnl> zp0CxOuhpKf)t<-ei8)@i8k|}UpIQxGtp=}FgBQ`@MKm}O4NgRZ6Vc#AG&m6rPDFzf z(cnZiI8hC+s0J^p!Ha6}q8hxY1~00?i)!$q8oW9UUY!Q7PJ>sc!K>5Y)oJkRG(REOx>!3#0L5;418eIo9x(;e|9n|PLsL^#$qwAnX*FlZ0gBm>tHF^$e^c>Xa zIjGTdP^0IdM$bWwo`V`a2g7QA1U0%2YIGgc=sBp-b5Nt>phm|*jedhQYCi@wIu2^| z8`S7GsL^jwqu-!Lzd?lBXP@~_VM!&&`I<7&Dj)NK<2Q@kl zYIGdb=s2j+aZsb<(Q#0tzL5+@s8XX5UIu2@d z9MtGIsL^pyqvN1P$3cybgBl$NH98JzbR5*^IH=KaP^06ZM#n*oj)NK<2b1($ug-@c z-fc?!0jq@mmf*;mp~HAItX7S*+z6f<8KtN;7*eAeHHz>k#2=^)MM>6RliwO!E(re{ DlhOCh diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff b/Ignia.Topics.Editor.Mvc/wwwroot/Shared/Fonts/glyphicons-halflings-regular.woff deleted file mode 100644 index 2cc3e4852a5a42e6aadd6284e067b66e14a57bc7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16448 zcmbXJW03CL7d?tTjor45-QI26wzb=~ZQHhO@3w8*w(ZmJ@BZ(tbF0p$la(=N#>kvm zE2(5vQkCfPhySAC*&%gOhXNAMqjXaM8ZdR9h1n(j|bAOHa3xsaUpVQb^?bFN$mKV0Ewcy3Du z@-8k$`ak32WBbVi`wx;7^0Pnwe^+&aJAe9T8!-8dp8P-m^j_k+W}s`RtGffD4+(~# ztFH^%r@=P?d_)fbz?K5R0s#N*H#RfO?CBZn>6_?x^z-v0gc4w+(WBE}13CaHLhywQ z!#%^j8s6#2z4_*~82qM%VW?EZaP{qr6q7)~zyRXUfu8*DIFkvyQi}2zgVP1nasq{A zzK$~<^8~1Leh9gA7?OYdWb(rhHBCeLF_~b@=XwJtb#c@X=&{tLR~#2+TS{-c`vBYE zGBWX|sg2q1)>^5WQl6tV-S^gSSDaqgl)f0g5bP3XzB_opq(U*a%n-{&Nsp#<PXeb*#gCojQ<~*y?%~jIH!wY%g9nHSRoaSF?Kj+nhFb0uC&n_VOmpd_OBYox zmnx5#Y6>`tg|imfwPr|~9o*VGw6l}bCod<5GtgOopG#Z3FYU1yX;{uJt(#*r8r_e7 zFtr;Gdot=wqBrPOr&Auqx9S#4&q}4+IV@$;lS%g;OwuPXe}-tkmpsZwyFbf2RoE|~ z^I*n!=-?L4caqmD0 ze6gB6sXkw{<`|Cx?yb^4okCyXCb!Pswu?l=&V6!>eVjh=XD+I%?*-Gd7M;9>8h)~6 z&0J!HkB*tz&l&C|b)oTW*SdHifwpF*1$>(yA`o_PKmUNb%3cQp@DV=5e(dQG!VdB# z4zOo2dD*d^}VrwZDE>cjbvV3uXQpX;>NPr?6LUB>JyOhwrqV5Mj1Q8A=HxZxa- zQwXEXE4&D0kFPJik^cKOC{0^_Gd~wNu89<_dGZ;!WUzzZ3ld}@(h^<$4X6-4pZP0> z4cT8q?NQVurwRI1@u5c=cK!0A)|eeN43pohgBKnf%Zphd-bWZGHIQE~`m`*h=F^&l ziYiYp2Bli;gaHnZjhfJboUR`tiB7foe6NfemF%KO8OT@`0*rjk^<*{<(SKi84B6$c zSAeZ)XeDt@7mIt)7s!bPz7`HP9ftqc{+RVQxN1rHewmj8Yp3IVyy5+hfQzfO*PnR6 zhtk{-Yu&KlSEH<_;xUIck%#8F?#Q96cq(tN&Y&yCP>~SwZF+9EW+Z}7E5H4?%I{Wg z(N$R$e70H+BskvgkMrx=s0NkTo4j@vUJI?-vt>?b>ZKxs;_5=f0G)6f@U^u0(`_>iKBH|X`>9ka9q#!rMTZ#DaG+DNj4Hb@5WUDRx;OQyC`$YMi^IjCMmr8 zI(s_$k$_>i*!Zw?b0n%}L?TE;8iYNv&D5Okc@@2k64bhgEg9atc=7JTCCwE4`m2d) zotf55o`s|4kAD`L4d20r!>w61;4e~qalSSgRUGOBHl z9RTUz=#A|RA)-_XJ;fPvhjE(w=K~z`rx{{e9EixI()Jy>7>q7pDk!X2)o;7@b}3Yu z9i|Jv^->~KNaK}*?iz`k`wWk?k2H%PP(=B6#}1W+=RSZgxN>tnUk$!WK4gXlQ5YlR zTsK(s$>9-qC_*h|B?@VYC<>v5_KI>C2z_VFA`o{64(?4{0alZ{Nw|H`!{CqynYP_3XpLG_k ziP$}NfO!Bc1h;p(xMku(+}e9AFC+)*b7-cf-zFY{y5q^zfrbBu7o09H&lgsnQ0~~g zy2GlijEBH%4KeBzhNc5k{iK+Y1-<2Q>UF|@>0Y(&Q0+KPt-?=>*O;tSLw&e#b>>(F zM@%`Dp)}XMSMJ?EoMgkl7E2Dlkm_n=3YT5*wm_QDoZ>7lvtsY4O)?QU&&U>WL1boz zQpm^5oPSA<)4GyW3E#Ps%#pgS9&NNgd{L&{3U4mAPIsPKsgeU0qP%W$`ZjtthBo>w z{j$ZZ`}y)?bf|%(x(~j-JG@sY%R;$v#5BH_v+zHz7j`4+RX_0>ExySHVGK_8?ls$< zCG8GiJ4!l$_CUvA=~B4lvLPO5zU!YI$VaRmBu-~t`|-fjE8m|b--_hjHI@%Obfn<5 zqFvMMzZAUzVr-;8sF5B#27-ldl$|mdx)l)mQQFu2FIOtOc7Gu;oB3aT zkoEXW@GtHDhHTLayMa&3)3q|?*fC_}cttu?Q9^2h4(mFdWi>)r&@Pv28u{R72XTH0 zZRuM=#0U~(p`Qab%BV&JME9I}R{we>pw1JgB;y5-iwrmRLHP%hMOR#-7%AknieOMN zo?28Tc1wE+o31Am+Nv4Dye*YinTqC2UW;J%&TbQ$KFih z&(4l%v^}kxB%IPw1bwe_&i`(w`EDZ;rR4y4yR?*>qOb6Ki?AP+?18T2(HMlK=(_{9 zdm{~sd*AEH(5!TkVTELf1xG!^WBK_T~kY*#Ba=bK-yDs2kr{xCsRh;tzmzhb6>9 z!z+!FI)u7k9fl1aR<{6Rb(#qU59Ak=h_2T0ar}&kf$rP4^hRW*)_l%I!1KROf`P)) z2MGiZQI*|?s^T!TAY`p_e+dw98bH9&ELHjiE7;c;&=hB;DbKUs*7chHcwS>>?5k2X zp7QG43(FDIEQzG>$ws8!ZtSL+a~6-GO3XhBmGXD*rd@xN*P6&K%~IvQsKK~mQb@B& znOIXfL%=A0T}>ki50;ffb)L6t)Hpo7O2uKpP*QnuNkvcZ7+jf1M9EJKck{Er0rd+S z=^O6^6DG2}`u2S{E__E%YL(>)Yet6OO*dmT3ItOyJl?OsHTW3*HpI6^v($s$sAGQW&Iq+~bF@Em2$N)h_?PSD zFNSos=ZjgM*=UQLi`D+ET-=unMuvArE5e=BJ$R=i1hS?y}#89}ucRG*1PD=%dmAiyfM#)nR(>UJ0wzQnF2;OY3FpZoVXs+cy2w5;?GQ$<2e zu|#iFD=ow}--1<8ZyobjRWkurqBk9Rt{?GAKrI;Q9zBLzZJaQ;ho{E4;I!6;pT$iX zS#$C8bIak_Kk3dF92Spdm6>ggwrk&Z%+#hbn9KM1UQBdba`4JOzLqFGQ$(Mc6`_Sa z>2U(>7)j=}3e*Pz?%(KIyA1H%1{)%%Nf*%@0bM+D+(`kq2KwZ*I4VfHF!=@9FDvf( z`D5Cx&Iap(E)z~MuBMM|Ns<5%P%f*;vidnD<8)(8dNv&jv|>5$nb&i>+#`geKYw6} zs3PT6u=@HGWyd^;J@9Q$(ot!|lp4;Qrkl549^Q|)eBMOVeorn*`w#^4TIQ!@;j7&} z9jKr9SzUF3jZ=DpFN7>#&2XI5qjeoeB~fm-glu&dEb0p1Vc|JcV|rPadNR7eIg+YT zLWliky9=Z8uLXGp{|#G$P#Gg@h1E>)KAdDmO{b&8e2ke8G}t7k_78@NFc#F0JXn|K zBvx!abv-#UJu8Tw>T4$Mnk!cA>%@Qq*QbZ};0q`@1DY5aSuFp7Bp-&rG7uC;x6rA7 z-&=2G!#I_&T8pGOhQO5XUKHg8{w~_v^~rQ=q+?je+e{P>8?c)n&tiGj12TFTV;$st z=imv0loSAktP4ipl*=6htfl+=WF}G)C<@j{hH6KSSnUA^irkKXuN>mhbMO<&)L9qz ztxRgH)b)$4gWy-G7G{hdY%H>OqmH8Kiy4|O$&Qj{IOnqbUcP|=?pi__3Uy1aLIaXT z;d4MJh&5FK?Qa(sU1p@pZKR<{N-QlW{S#Orx5zh4 zlU(^I9ua#zo)9`cmCW5Kvt)91pz~0b@&G?Uw2oD%2yV27VTW}>Eenh@0=U_{(9%HS z*C(a5G=1JvO&8Gjti7os4ro{Vz)^K%IlS?fIYb%(zC8>f85Ll-9YkHMM6S$>y!cYT z1!SeBmg^~lOVX+>Lz83WdPQ++h8if4oWH1slf@6-32CtPG{~*G_I6H&G&0VYX-=$# zq7{EUG?nMAbXe7^NV!fPq7}KKeYt2&Fi7xVgvFQ%z4Z~Q27(JT@Cadr_?d|J;tJeEN9xPppq8Bu@=l-p?5xgbM{uJIeJS-PkEfhDz|l3rh3e{N z6Cl11KlvT7)QQ+Xl`qK>!Ae6u1K$q+%+?(XC?gGoN4>bRfpG6Fh@Q{H2N^RdDSz> z9#GX){2iX!;5fyiR~cPQ9@+BDz*xjn<1~BopQ?g3p6ZM_OE~H2fF1hvX;z=qfH<`i z_cPC*N)R{+*jZy%z|hj71bRpZ44Wm3Hy?9bl;fDtL3zH{a`}+!);WGv8VBmF(Ag<5 zvs#%3Mf|+(y)9->pV$x9Ce!7TyyjVegn{&u;Sw~l<2as_WBAt>PSk88Hc28D;TW4s zN>HnoZ$=YxHg+OkcX|B&kQ=@aCMH^UV@sD1ZauA(hjO!9ebL?KskYqa;piGWM1P^y z1@Y3$$V5t!4}m9XMbDLXadOE(9L3v26t;yxGY;P}ZbMx+#Gh<*J5>WKi==HW>GtE- z0k&s-L-LJ4?!0cLr4X&4>&$rrPIuZCHv!tRJ0`AyV#S}yU?7L`D3Tn$iMEOF*nn=M zIDL9;bkMPXrQN-JL+W@>%o%^wD{XBlQ>A)+uI)nFTA&;MYtebFrK1q-&0p9k<5VSF z@?(|%Gdp164bk76uKRMb82gs%moxKY-syEm0U^sI38*rKAiLv8C(>6E0j2T zI4B48ksbj&V)aN9gVR@x`Flb*{v`D=w&v8`MavBqkxb>4 zc~+y2AGRQ?Uck}=nxIDfq{ zd;hm3d8#P^Q#M5dNa3yGk(4=vl=k;PViIqw%R~LT4L*_kZ&GXvChe3)^_otV+Nkxp zwzDTrd>n_#DJ5!~)aSi&x9#_%1TxNL3@+q9!#3q%)Z6q{Z&kvpb?l?tz!i;sptI0` z;AF`$Oag5*)Xjp3N;T0yVn{^qBdF6h)Ck_Ue@nNQF+6W9>e_E0mrQRrBSGbVt!`LH zuaedju6j`$BvedYKBHA2ecp)#x8ThyKcL%t9zLH^{mpC>c*G-&;?>pDU6Zr|Y0WCHAfrOseG`WZPzMHfc-H0N> zQRK|s>|TkRlvYl_B)9L{Z4^4UG~h9l=gDh#iMZu-lkUBzpq3oxA;FJohjMo;j41a3 z22P0kqTrNq(`H}pKIwGX*)WfYX5tw$?mhDxE^3s-%sce9W=+wsS7-imPiGXkgDsM6 zowj>a_V}8QTB;`$Cr&tw#D@sFvE*wgI#!HW@wE`#gc6z(W0-fGSMu^44^NHXUmRo} zjD*Umr|s!tcFJP7>E7ch*6h#Me$J)$ULRJ>%&@s^%fD<}tyI4m=q(~k2Yj_PL@fOF z-`+Ipi3#=$i7;V#TQ|nmYadI+(l%B@20A_0h7lYrR>tmoXD6#*RMKK+TbdvI&Ek5E{W>TYiXL>cS-q5P9fP{aqMdq{g1fQ4~^4 zB<@ZMjpvP~FuYacPKg{Q#;1f<_zn4dgEE#2)(9QXIn~_#_hpayOcnnri%k!k&iK@o zdA4n#?9<(2(yYmL*41h6&YyLQs>SNJho)Ae4!c|Z%WeB2;_`&pQAN4O*{8vR4$N0D zhhEvoTE#EP8kJ#M$`|397jd)iTV#!BqUZ3uP!M?TMyhw0K{W|snIa!*7SecH%O+)y zBlwJ?4(CCz>xC!&*J+O?! z=_McM8)pWN&%c)@;2I1TcTq~;%rhf|p}0Xdve(0rcre)J-M@KB$(rDbbK2Cf84qho zMTpD#+f}g3mc3wKOn`4>|5XdTK(4L-4S9lNkMn{)-voy7QmHX9to!YvVlg8UCxLVY zCbRy9nS}dFo>PfqDk2WfN!t592XAU}6~Kvfu+A9M7_x(C79i@#lgQ}p&DhNj64FI0 zI4sc8w=JauYjuSK_t@mZnt)=kVrjm4!>34cswwp-vn0%WlVZmhF31ZR7Ptv|}&DCmE8RN2m3rG}~5+ z07c@dPb{WT!B&%LSTsSexqny^i$20G((4$QdvnGZQjq(XfnQV=5rgQdCUmabx9?zK#wco#!O>KX@_k^Je2Q$W*QEtQY*y# zP3qZ{M%>vS@*3Ru-N0RMn#E>5)5JJTgIn)vmpeMhqMH8acp{Uxy3Kv#BhBFt{omz% zZHuxMCX74Hf`Hwa?!BLx(O6;Zh{oh1 zk9?Tm2WBR8GEiCj!Ywjjg5qkgkPm)OBVoAa0Anb-81s@YwA8POu|YybRh{Z;Y(#=@ zawHH3n>7}m6HFy7o)u+jG#HquHrn`{XwYP9Kbp>0P{)$LPq58;1P&37^OF|AYi;g( zE16q5W@YMaw(_GY8gy8eh?GsirgiJ?)11BHon@2 z2k?CyXF^c}@a~onwJ2e|$bbMr`g-rOR3+#ozPd#1YrHd=nv`(%_VP<2+PIWPF9N9H zq+6r#yodRe~GJSDxd?Ysbs(A`;H~ z2cshGOmhy@h`h}Qg0l#en1aR&tgOq58Og{h_aT_b1|_!y{)7i=8)AC`425Fh09Ef; zN&2hR2k%RQ-Ib&6T}w&$)d#LE`~BN1n`xW2bBb!JP938R*}P4syXwi|1=W+q`;6tI zlglY7sem`;(Egfr5sE7uEVom^we!@iKGxnxZ#qanxh7>x2W2Z37J++aIyhFb6i6i+ z-%r|}!ZM=pgJka17$qBs#RWv}k&v)mVoP!e>9*5Rd|tQtLODMmYupBbTRto0vVNE~ zL@KHU%7Ug+km4GhdVO;$7N^1Z$9eElbk#&HRa2IB$&aL6F+ZZ~-%K8_&lArt8ZFNa zZ>>@-;66ED@^3F8hF{M-hN49}Z?RN8x47e(yE^-6Qr1~~``1k+jokRzdZJ#T ze?CJnKrp8Y165+f+?bw+@_Y?%u-$k&ci>&Vc9##X6b%V5UtVQ*F}#yDp3kS?#jw{a z&8gS$#pxj?^)F+5IVA)w(M>1t0UW|k8er6zQ)6(%j<9)3`6h+jSR~?fvI3fPVJVM+ zwCN#RBLikE)5lbgaD2zd0Gq_Nk%QjTkTEbwie6*tgDY65K~K&^CzhMnZ1OIY#TcIE z17&d65gVw?>P|QcQFP0(gEe1c%<%(p$kg7L)n0cfC3mJtR?d`sGa2(^aQ6>ISNN?a z-J^~O2SXiYVn6bO#&kDj*^5@Dq(FM5XiX4+0uyC;ECk&Q7&k8-5s%231WBA?$q0a9 zXMy6;|QB#W|+(v zO`d8rhA}$HuBy9OscnOYCeZFokYRpi@1bRp-I_&4qY0mz)dv8 z#psFjfRS)w6fSp|gt2NY0OR?&ol6BnpGjYkiYa3CnjR6X!%qwmPg)L#a&-Nb{oV2H zO_$lCeg)Jzczqn6q+{^q-BgdzhMM-Sbi>iS0zdfdq6(c8zG7_{jgca5gy~#3d7O0} z#=MarJ;x^wl?0x2m=3AZqWyJqK?Ge;x4qX#DpG8$R4pVvS1%z2%!}@Idi(P#hs=l0 zbeX2*YrM|Dr`N*!Ifv|L#sj|afrtl@aUa4)SDlXmz+EP`&5FD zH^4h6n@v8B&1dA=lz<+14Z?%#FV_l(PX(uP^O83`(#wDb`dpW)0(y8nGWxbRTN4qg zbPU*fXZ^u~Yy|M%@qq=pIZX~a)a<1{R}ixEQ{PwCmvJcSi??WZ5K>LnI@Cj9K={AN zbtd=RRU~KDiP{d~1tc=>BfLc^!n7cB9`KcuG*3h%hC>>Gc-FqGJ#D{Az`w4n z>;DvS&)uSF;os}x#=WTf%HmFzK>{QbkiW!_RO6LL>ck8dr}b%)tf7M}m$@%eVNR~$pjWIY>)K76S&6D)ErTYo$!HbpW?J(LEb1Oh$ZHwXN1VXL70mn0hQUgw2^-o1YBD=iZc88NCXQc; zG}na7)C7!ox@$qVt+U6?6dipyH+rh4^T|;1{c5 z+KB?(kr}w(*g+=mOvH}!!q=G z_xI0Tg_ykAxA`S9xAJZ$P^cB4EX&1`Ps=_2hRR4R!B zePQ~o{hbjJpb3KMMZsq1*J@(r{ltu{JFT3YkH>GUB1~8#?T>dK(ZY)hUEV?TAckZEm<8m!rW?ciPRR}Sl6Yh7Qq z@;hYn@cSF`r9^T-)LuFshVKpK(d^`c`5B{_nCxn(lLIv0F)EirmwNF7Guoeyd}Vkm zve@n34B@6edk^VE|A2|r`k( zRg-Mi;u||Z`OySCTK3@T>(UrSTgPBLBFc4pTFx2xHmpm;PO3L5{mkDGSOUGEZ$3!5 zLj6t*e#X8riT-kd@x-b6y~G?N@rX2u5QNA4ld=4cAiA!g#TjIOw^LMNR>9B~k5|tu z6}X36Ay|b*C|MGbBT5Krbc;*8Q(0;IU@;5{`tp^#?0HS14m5^2BAtv7Jr<^r1yQGu zP|-$dQdV_YmC&%Ml2j@pjzKzfk)XN2JhaOcS<=ftV9^@Nn9S(0f6rT0GqeX_^pl{X zRfjUNPfT@zW|`PwNr9da2U{AeQ|S;=R!Bq|Ku^+a?TuGF-A+MX+36CbQ(Z{d2zybS zgye5ZsWq(9HY{3t;~hhCbOvo9fcxL?@`w;9S0%{PnBWwuFQv>o!S4U=j2?e6q-vl@?G zk~X>MqMKZrw9{AkYtz>yuM4k*q2jbBOI6D#~xqViag*hj9#4yU#j=25+6~h{c5z2|Mh?PZe?Tuj&(Su5)z2AX0V3TOflX7$@yQZv$<@WkFiv(@D z#q*Q@2#_7oiKZ-KGIjCmroEgtO4+{>u$!qm+{V4gJ{&}%Je;oN$4BHJ??a?9w%Qn+ zA49Rv&qUp;b?CTvTi+K}?3$;dHhk{7-etD%(>%^w>PoIidH*fMSkYjz`n>h_E22eH zWP2%hnp{~e%kyA5zbbm8eiQY;R^eibVl@I|K36Ttm7u7d>!RA5qLM;xI$|Rk0aF2) zkQ08N{@vimdl`nE5-VHIvD{d2{e&fI;$>lRo}pCOSZNvkO>;G~q>pM-A9rCpgMP$G zWLM)e+H<~}Byt%;WYf|m{|=_vht2D&3hH^7!^#E@E6t+KD;tAYn#PR=w}VOBPmEg| zFVg;q-Ik&r)BN*&9N~=b`kPs^IpEPMVa>&Od2zB@(r!B?A2Ej(DT!k^ul2^#y-_7Z z7?2%^K~~D#ZBVWkJ>OxDi3|>V;#!jCPOm0`OW1~)ECr_^6%~w4oZvjvP)Dl~9p%1gogfOFu6PbC5kIiBpYj;{s!w655Podi3k^ zSY;L!&rb1E6)u%b+IgZ(lfz>!iiJVA5lsc&LPq;}hTQHBWee3>ZNv3Z=n~29XfgUZ z7@9a>q^mm1nTO6E=P`_GuWN{RTvOTsRy`GBffl_SeMb5?X1EsJm&1tL2X=EcYX5|B zgnsne&jRtH8Z?rnneHz$2@{_;BUU;!Ix%egsGc1LxW=C?kK!IH2K&VTG%km2N={MP zDu@Y3Rmk8EE|=^HZ+8aS`10U)bO|FJYMbA?RzVEQBlp5+_bOZFBdnZKqtyEfg7Lyl z4adqX_*%-0bpw<^A!!js3?@B)M@#atJDMOHk`m9qL}&iI^s8^z37kB^6nF#kbL}L$ zhp+R=>NZ&qczRWV#K5@2uE2C-@U7c1kfcUQ(5*<%NA9NzM&W78uQf2@albRKYyS&t*#b-9 zCxDExUpqG^6>dJ+N<1@{U39t94_ILuf_0O~AYIG;^>%!k4{xn!`(kA2|5O_x$J9}n zEmE7PW<)Uw%m4_GH>Y)d(sb2|WrJb|iOJ#9+XSU+53T9)rL0@K-*{#g>M~E$tPw(A>A*=(>X}~13FV?jQPpzRnmN~C|6*YBW zklLeHW@NO5Z)YrGuPwGO*R`)bsj5{y0u{S_4cE3JT6iVS`Sj<%N^~Zz?qHb8VzPFM zTOov74bZ1&W@=h`Fzm?fb}Csc!CweLKugfg|EA$!Gp|#fNaj8i*c{;o+uGdA&cPsH zlIW9@|A91NkcXwDplXVQX!DQ)ila%e8v5}3H)1?N3CNYLwbag@wLZ|9`)VK6V{j8Q zOd-Hf*EiA7f+HJGAVLeFm?rHg`Yc~1X>EkG9^Dv>XypCXxJYw0NMF?z;Ru_?V`rr9 zuD*C)vplMXD|@OUTP(PJES$X9Zu-u%ncLiKl35Mh7OvM6+ZV>pF5Z-j^5&oz|MGOX z=GQ#pe|gY1+g?x9)b1o8Ve@=?e{p-crf3tlx<0R?{@!#!x5dn!(bpKO*TuG#9(Adb z>mMSqiR!|`@m#6dYI2BL(0(UDHJ#<~#&J1yp~+OAD2ozOJxY`SG^+iZj04%zZ`J!W zHHkAIL;r+~$hJLV(0FbNIb}6HTpN+p)`3P2D+kuBpz$q?ozCf-V-sa{4u8VqWQ%m8 zRp7qc-EU)R%2NQl-9VK_Xl`g~qbSPDGvyx>IKg%hk!W|WysrV(81RSC$C@~NEhoAo z6#-eZi{*D9_f{)6I18^4|F8fp%16TI&tDp?FL&%rBYne-$ly1znJDh@%@~A*!?pk^ z$|;f?=ylF6FwFvS-=0y;n+I(2l+!Mxk8~J8OUemtH6*ps?Hp)#bUPns@EdOSAdcnvO?&cBxRLd z-c8puf_=_Tv!OSJ4~py(@oo&m0@>14&?UwKtrqYuz$&~t(n~zbfzg+$NuhNY9P)Bz zr)rGPm8i>=b#Fb_lKE?m*Y2L@lLZT{;;J_t@+UYN(c3jTUVFHE5W6{Scd{>ZYDAi* zt$FzH6gjxF4a*w@#CsuwwB12*hS80^S^`@%ZzpV;1o1ad_Z^1enve=#4b@=3E znJ=I+l%sH}YHV%F7)xSoCN7m^9iCC9eOjk-_nx{9)kb4cFt@wt*J=SL``S%4ACo@n za1@J9nI&*4oH8=SA_pGTclike?rlZDXP+PW;pqTs!aY2pgh%cl1IntO`9w}q&VnQcj9M@Rsh3=x6Mu?_G{(GY zby#Ytdq!xOqkSHU2#-)$$&dnIFr#tJCo9c|1RSm;4BWCwQ%Jm8qKHv%swi%1=gu42 z4ELwEFBh?KMk|r20=Qf8*D`JY7!R2ue!tCGUl5%)`x@lA@+UmkXODnW-V+N7$mT_4 z);HKUib%U=K2W77KDq?~q!bvC{;%FXungD)p|19n*txf1w9Sv9eG5s+oPXGwyv~a& zs#faFU&SgRy>F=J1m5S`_dTNj9I4t~>o|fgoRl>1|J_9|Wh_^1Z=7N5@$51j3?PiB z#f^L-Zs}MbTD@e!Y(S}rA{jAgrXa}*j0Da%$W##b9^8;KU~OBIOH^?-e6^WeNihdT ziPXHKHoG8~Z41%*(v4TfPe&n()yErElCgCfxz7kfRFt~~slt}UCyq%BS}GI?Xzz{} z4MRcUC5-LX*GhQwV>!%c{ldLUO;Qql{iqih)zZ{waPl(n+ml_sD@5wsG)8JFc*qe< z2Gy+~+JJT`VJLH?u--2+IE#*Wdy;>EY%ZkHp78V_fSxYB{#?9Qi8FJkZmW0i#TxMC zIB9xg{{(Yt)+^O|UhHl71Cy+>sPC8t$2pmYc;f+`#toUuiayt^J!hihFMz{jg0Q^M zvga}|vw#J>1hc)>MZ=BNAhNQ5zNXyRU>i`})luG<6Qxfw|5Om1ogK-1F9N>g#e2&G zu#`RXE>=j(s-U0D8}o$0{{CzX^j7c<@H&|vhUVPS$+1hO2zs{)0-3TOoRMdaCC`=F zAKR48D0?_r2reI}-2t=L6SP&!Hy8BD5=vur=)YLSHhvnm0Gfz;Wzg<-xm ze1%lC6#&fi{q`N89g}Ofx&z~#eOV8}u zf`^kf*Uv!`6t_yWNwh}K@9RcsJ}ENiRs6n;%H8K|G}N=2(kwHYi%k^Ws50a=R#h8~ zgxeJ@+?k4-PVkdP&bXyN7$(Xg$%RzqAk95;xoe0006BO)ynGqiyuYe~Co;tR62#YB z>U5WL`P<-{z;sDowb*n(;JBOFgyP_hi%r)% zIJ1qbh9DzClTf15Zvo)=>opRhCN80LG}fI6x;d&R*@=_v)y7zK04TP216M(Bpf1+QvxAP2<3 zmzy)@XiCJWn8_dtKEs{-%P&}7Moi%D3ZV~3D>y#|u`58zKe*1TG2umydw*BW(Sw?X z%go}e=M?9Fw&%eN!dL&;iMTFP_U(|N1|d5Fsmm!XqkS7b@V02=`*uz@C9fgHFky^0 z6eG;jm1aOZ#3LSL$#C**5_oqQK3@}2_#9{TvzqYs9Pv@)w7}MFTK!n_vB0(YQt$|< z^ymy2L6zGUc|E=3l%oCyF*SgCE7Qf&y#OZj=U;e!0s>iV5SP24b4wA)6slbkKPqVa z?L7vIXHveS>h38t5DB(K7mO+b>$HL{jmcsulpV9gIQ+x8|K(jy>TN9DWHsRd-ESVJQ5c}`_fCcA#g-Gmp zL9`a{aW52!x-Xv(liSJ&(t9irNI!(V-XjjUhIaKPVf1eo_X~Srh+bxvmvd1SB{2vp z%wybkv@OTW;}j214>YImKO4Mx*VExQxs$uc1oj(hCj=~pPXQce4-mYN3K~rT&4clb zV5Q3QA)*t>xFc<)$Gw1SYsK|7B|$F-FRzC1FnhN_gFTQu|AQqEncRzh0Z6B{M)+C< z?u7TwN`dnG0r#=owToakaXE%{HxfBuQy5p=EZ(YlaaVUr2=-6PP)+q>>hzs585^st zY6X>ID{0?7@ z=h44eJX;z{S1wJhYB!nt&1~C_TX)&^X*2?!zN!SN1c%|6_m5ayicG1(l*Fy;#;DzL zNcKsqTvA%YiB)@?rim}#*ZBHl+u8^>-_NuAuhV<%)0+B}?EN!mTw3Dx*D$=fr${(d ztqrI?OuuBAvJdwwJ4{1s#VOB+F3a$^pK;jc!^>uQA}tp0M?tagM(|)71f;VY>(F>& z5E?p1FmY%imeRp8ba6QUHQK$*NNA)javS{-@X&e zvtv0<#1x?N>6t|SePNQkwwJyq(K<7g@jJmdML2nT?gZO?nqU;AwC0{U8(w-dM`0*L z>xv;G(}c96S4)A_{IyijaH#&KvIJB`3D48TL;Ez}==}t%=T7tmytIby6cLutzXBlT zg%rq64!uz)`MUkLozQE9WyU#Ua)^a8;n>HbA^Aw^JVulCABWe7wT?Bmsmbw%BZu9l zbPU79H^?Pg&By<#ThlePHJnSOr_bI#q72{~2g`-%U$yB@=|A~a`97}QGD-s2vty+4 z?F!Pw8XCm3MuY0uqe?= zSwbc1gbRN{l5YYTfwFkLBUr^3bqOrHY;3XDO8DMMEd;wD9o z0A%eejz)}V2c{GY%pwWsd*cO1^>_UGe)vX~t47NI;2jX64Mv7}g@FM$!j#4Sul`SW z#=nm)7`WpG(9a%B8>tW}6R9039@&6FOZTN8uXkrKX23C2IrI@q5>*s#1UC+%g1N-D z1h%AO31q2m$!!U~l3m+Sw_b~0H?7ax{}s{iTM%x5NCr}ZRf25-dkjwlUCmZ4u4&Q2 zV|#9=YD>HC-9t2}IOGtf8q*v#9cqKe3*L?AgY^yb1@hqodI7oy3J1}Fc!1o9@PHhN zc!8)%*dlwAgpd>K7aJiLDHk$>mFLl?*(cto7^e?279nmX79uv4q)u=zd4NouMx1OEGTx(5t}jn}~>T|FSoYs}qzy6e$!tlqAX&xu>F%JdA>+;zr4f z^e7*Nj9Ks;rV*SG_#xFH#h6FpcIilIY8i2Xp!d`Cg#4)@x5w9&t&5KU(>mL;#=D)k_n!<{DfwCzCKT@`SI(eT5`YzvG~WPcZM|H&2*@KD4d z>ZZ&d%IB$Z4elssli^YR@DKb_?x&>sq=6BfclO8%R(xFRQh)rr5*PyK-r^5}4GT(l z(-Y?(M64o)+Qlq4z`myGQhFU9)CHLk2ixKqNeHfUWv*$V*`7&Ty0JGoEhhl9&h-d* zXUnhVqeXXu3;AMkfGcaZn+#+$P#2ewEuZhXC^A9#t1B5K2yqA)1ge(y_I3?h7njx@LRV0N zd5f!)3@xoilPpGM9cc?qi--H^K9$+G?rEJWw0(?itnKuT^gd8DgWm~inIvlQMQZ7z zQhJ!lM(oKppOa9PBNCMpe=5h!E2pq3NB>q%a#W7HS5AXjj)+)JkXnuzTTY=_j;dHr zvNS^e!j<@Aj@93+Gklxb6P7tJn%U=QOqZa@9;Kc+WqCxG!k9XomN^Jv;sAHd zkaN$L1KkoEq1H2~*;k}Fbg0>zq&c{#+25o&{J7B*wJ|Wc(O0!Gbh*)+wK2H4(cif- z{K?f5z%|g%)mOkZw9nO>z%@9})!)E1eBaR%(J?UI(O1zibWU{uyLCXlb%eWh$h~z8 z!gD~xbA-%u$jEaH-E~0Ob%fn@$k}xa?tMV!eT43P$m)Fz|CPz+we-=-$dIZ(H*%47 z`LytqPrY_o7p2jH+w4f$?2O%f{($h%u25c}K0$c|{f`>d{I8W5{Qp{` z;u^(eVpm0@qI=ha=jrR%ebO=Iv}$&Zr>s%Q9d}aan6^>PKh^cJ%LQk1&Zew28LN_i z^DAbass=T6%PSTa%uiSzQJq8D%l{8;TKoUrY-S?53a(E$-=e$b@!mgozD_vWqN@we z|Bo}QWPIVw{~yaPI6h%_kN*F<`CG030)I4)=;(s&#O!&yvAS)K8t;Pb6V|t=|GR7A z#uXi&wR6Pzf8#Lk*Bj=s9lzdfc Date: Sun, 10 Nov 2019 16:58:17 -0800 Subject: [PATCH 535/637] Ignoring the entire `/wwwroot/Shared/` folder With the web fonts removed from the local distribution, we can just exclude the entirety of the `/wwwroot/Shared/` folder, as we normally would, instead of cutting out an exception for the `Fonts` folder. --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8d0c7f07..40638cdf 100644 --- a/.gitignore +++ b/.gitignore @@ -304,5 +304,4 @@ compilerconfig.json.defaults **/Vendor/* *.js.map *.css.map -**/wwwroot/Shared/Styles/*.css -**/wwwroot/Shared/Scripts/*.js +**/wwwroot/Shared/**/*.* From e76c60c143f9c69284daeaf79a44d14a2fb2bcfd Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Sun, 10 Nov 2019 17:25:02 -0800 Subject: [PATCH 536/637] Remove local references to **Font Awesome** We're currently using the **Font Awesome** CDN. This has the benefit of removing the comparatively large font files from the **NuGet** package. Or would if we hadn't set up **Font Awesome** to dowload via **npm** and injected it into the distribution via **Gulp.js**. Whoops. If we decide we want to call this locally in the future, we can reintroduce this dependency. --- Ignia.Topics.Editor.Mvc/gulpFile.js | 1 - Ignia.Topics.Editor.Mvc/package-lock.json | 12 ------------ Ignia.Topics.Editor.Mvc/package.json | 1 - 3 files changed, 14 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index 5a33fc40..af164323 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -87,7 +87,6 @@ const dependencies = { 'TrentRichardson' : 'node_modules/jquery-ui-timepicker-addon/dist/*.css' }, 'Fonts': { - 'FontAwesome' : 'node_modules/@fortawesome/fontawesome-free/webfonts/*' } }; diff --git a/Ignia.Topics.Editor.Mvc/package-lock.json b/Ignia.Topics.Editor.Mvc/package-lock.json index 018f10ff..bb2f6ff5 100644 --- a/Ignia.Topics.Editor.Mvc/package-lock.json +++ b/Ignia.Topics.Editor.Mvc/package-lock.json @@ -3,12 +3,6 @@ "requires": true, "lockfileVersion": 1, "dependencies": { - "@fortawesome/fontawesome-free": { - "version": "5.11.2", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.11.2.tgz", - "integrity": "sha512-XiUPoS79r1G7PcpnNtq85TJ7inJWe0v+b5oZJZKb0pGHNIV6+UiNeQWiFGmuQ0aj7GEhnD/v9iqxIsjuRKtEnQ==", - "dev": true - }, "@gulp-sourcemaps/identity-map": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-1.0.2.tgz", @@ -688,12 +682,6 @@ } } }, - "ckeditor": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/ckeditor/-/ckeditor-4.12.1.tgz", - "integrity": "sha512-pH2Su4oi0D4iN/3U8nUcwI7/lXHoOJi0aiN8e2zxnm4Ow5kq8eZP2ZGmpYyuqRyKZ2tHaU8+OyYi7laXcjiq9Q==", - "dev": true - }, "class-utils": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", diff --git a/Ignia.Topics.Editor.Mvc/package.json b/Ignia.Topics.Editor.Mvc/package.json index 8a5e5bd3..65e103ca 100644 --- a/Ignia.Topics.Editor.Mvc/package.json +++ b/Ignia.Topics.Editor.Mvc/package.json @@ -7,7 +7,6 @@ }, "license": "MIT", "devDependencies": { - "@fortawesome/fontawesome-free": "^5.11.2", "bootstrap": "^4.3.1", "cssnano": "^4.1.10", "gulp": "^4.0.2", From 0152e78ec5a9e71a3c77b43efb950b616765776d Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 11 Nov 2019 16:17:05 -0800 Subject: [PATCH 537/637] Excluded map files from project Map files are useful for client-side debugging. But we don't want to distribute them with e.g. the **NuGet** package, as they add a lot of extra bloat. To mitigate that, we're excluding them from the project. --- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 194f2927..83289352 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -29,6 +29,10 @@ + + + + From 0a7f86f7d2ceabcf4ea9ec293480acd52f6900a0 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 11 Nov 2019 16:40:15 -0800 Subject: [PATCH 538/637] Refactored around factory methods By reorganizing around closures, we're able to establish parameterized factory methods that provide better reuse of code. In addition, broke `dependencies` down into `standaloneFiles` (which still require processing) and `precompiled` files (which just need distribution). Functionally, this is virtually identical to the previous version, but it's a significant rewrite in terms of code, and offers a lot more flexibility. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 4 +- Ignia.Topics.Editor.Mvc/gulpFile.js | 238 ++++++++++-------- 2 files changed, 140 insertions(+), 102 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 46c23f1a..fea3deb9 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -14,8 +14,8 @@ - - + + diff --git a/Ignia.Topics.Editor.Mvc/gulpFile.js b/Ignia.Topics.Editor.Mvc/gulpFile.js index af164323..fdb361a2 100644 --- a/Ignia.Topics.Editor.Mvc/gulpFile.js +++ b/Ignia.Topics.Editor.Mvc/gulpFile.js @@ -39,55 +39,38 @@ var environment = 'development', const files = { scss : 'Shared/Styles/**/[!_]*.scss', js : 'Shared/Scripts/*.js', - jsVendor : [ 'node_modules/jquery/dist/jquery.min.js', - 'node_modules/jquery-ui-dist/jquery-ui.min.js', - 'node_modules/jquery-validation/dist/jquery.validate.min.js', - 'node_modules/popper.js/dist/umd/popper.min.js', - 'node_modules/bootstrap/dist/js/bootstrap.min.js', - 'node_modules/jquery-tokeninput/dist/js/jquery-tokeninput.min.js', - 'Shared/Scripts/ExtJS/ext-base.js', - 'Shared/Scripts/ExtJS/ext-all.js', - 'Shared/Scripts/ExtJS/ext-ExtendTextField.js', - 'node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.js', - 'node_modules/jquery.are-you-sure/jquery.are-you-sure.js' - ], - cssVendor : [ 'node_modules/bootstrap/dist/css/bootstrap.min.css', - 'node_modules/jquery-ui-dist/jquery-ui.min.css', - 'node_modules/jquery-tokeninput/dist/css/token-input.min.css', - 'node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.css' - ] -}; - - - -/*============================================================================================================================== -| DEPENDENCIES ->------------------------------------------------------------------------------------------------------------------------------- -| Paths to third-party dependencies that need to be copied into the project. This is exclusively for pre-compiled client-side -| files, such as JavaScript (excluding TypeScript), CSS (excluding SCSS), images, and the occasional font. -\-----------------------------------------------------------------------------------------------------------------------------*/ -const dependencies = { - 'Scripts': { - 'jQuery' : 'node_modules/jquery/dist/*.*', - 'jQueryUI' : 'node_modules/jquery-ui-dist/jquery-ui.*.js', - 'jQueryValidate' : 'node_modules/jquery-validation/dist/jquery.validate*.js', - 'Bootstrap' : 'node_modules/bootstrap/dist/js/bootstrap.min.*', - 'Popper' : 'node_modules/popper.js/dist/umd/popper.min*', - 'TokenInput' : 'node_modules/jquery-tokeninput/dist/js/*.js', - 'ExtJS' : 'Shared/Scripts/ExtJS/*.js', - 'CkEditor' : 'Shared/Scripts/CkEditor/**/*.js', - 'TrentRichardson' : 'node_modules/jquery-ui-timepicker-addon/dist/*.js', - 'PaperCut' : 'node_modules/jquery.are-you-sure/*.js' - }, - 'Styles': { - 'Bootstrap' : 'node_modules/bootstrap/dist/css/bootstrap.min.*', - 'jQueryUI' : 'node_modules/jquery-ui-dist/jquery-ui.*.css', - 'ExtJS' : 'Shared/Scripts/ExtJS/Resources/**/*', - 'TokenInput' : 'node_modules/jquery-tokeninput/dist/css/token-input.min.css', - 'TrentRichardson' : 'node_modules/jquery-ui-timepicker-addon/dist/*.css' - }, - 'Fonts': { - } + vendor : { + js : [ 'node_modules/jquery/dist/jquery.min.js', + 'node_modules/jquery-ui-dist/jquery-ui.min.js', + 'node_modules/jquery-validation/dist/jquery.validate.min.js', + 'node_modules/popper.js/dist/umd/popper.min.js', + 'node_modules/bootstrap/dist/js/bootstrap.min.js', + 'node_modules/jquery-tokeninput/dist/js/jquery-tokeninput.min.js', + 'Shared/Scripts/ExtJS/ext-base.js', + 'Shared/Scripts/ExtJS/ext-all.js', + 'Shared/Scripts/ExtJS/ext-ExtendTextField.js', + 'node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.js', + 'node_modules/jquery.are-you-sure/jquery.are-you-sure.js' + ], + css : [ 'node_modules/bootstrap/dist/css/bootstrap.min.css', + 'node_modules/jquery-ui-dist/jquery-ui.min.css', + 'node_modules/jquery-tokeninput/dist/css/token-input.min.css', + 'node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.css' + ] + }, + standalone : { + 'Scripts' : { + 'CkEditor' : 'Shared/Scripts/CkEditor/*.js' + } + }, + precompiled : { + 'Scripts' : { + 'ExtJS' : 'Shared/Scripts/ExtJS/*.js' + }, + 'Styles': { + 'ExtJS' : 'Shared/Scripts/ExtJS/Resources/**/*' + } + } }; /*============================================================================================================================== @@ -108,102 +91,157 @@ else { } /*============================================================================================================================== -| TASK: SCSS +| METHOD: GET OUTPUT DIR +\-----------------------------------------------------------------------------------------------------------------------------*/ +var getOutputDir = (contentType) => outputDir.concat("/Shared/", contentType, "/"); + +/*============================================================================================================================== +| FACTORY: SCSS >------------------------------------------------------------------------------------------------------------------------------- | Compiles the SCSS files, including views, and moves them to the build directory. \-----------------------------------------------------------------------------------------------------------------------------*/ -function scssTask() { - return src(files.scss, {base: 'Shared/Styles'}) - //.pipe(autoPrefixer({ browsers: ['last 2 versions', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'] })) - //.pipe(sassUnicode()) - .pipe(sourceMaps.init()) - .pipe(sass()) - .on("error", sass.logError) - .pipe(postCss([ - cssNano() - ])) - .pipe(sourceMaps.write('.')) - .pipe(dest(outputDir + '/Shared/Styles/')); -} +var scssFactory = (source, destination) => + src(source, { base: 'Shared/Styles' }) + //.pipe(autoPrefixer({ browsers: ['last 2 versions', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'] })) + //.pipe(sassUnicode()) + .pipe(sourceMaps.init()) + .pipe(sass()) + .on("error", sass.logError) + .pipe(postCss([ + cssNano() + ])) + .pipe(sourceMaps.write('.')) + .pipe(dest(destination || getOutputDir('Styles'))); + +var condition = ""; /*============================================================================================================================== -| TASK: JAVASCRIPT FILES +| FACTORY: JAVASCRIPT FILES >------------------------------------------------------------------------------------------------------------------------------- | Minimizes JavaScript files as part of production process. \-----------------------------------------------------------------------------------------------------------------------------*/ -function jsTask() { - return src(files.js, { base: 'Shared/Scripts' }) +var jsFactory = (source, destination, filename) => + src(source) //.pipe(jshint('.jshintrc')) .pipe(sourceMaps.init()) .pipe(jshint()) .pipe(jshint.reporter('default')) - .pipe(concat('Scripts.js')) + .pipe(gulpif(!!filename, concat(filename || 'Ghost.js'))) .pipe(uglify()) .pipe(sourceMaps.write('.')) - .pipe(dest(outputDir + '/Shared/Scripts/')); -} + .pipe(dest(destination)); /*============================================================================================================================== -| TASK: JAVASCRIPT VENDOR FILES +| FACTORY: VENDOR FILES >------------------------------------------------------------------------------------------------------------------------------- -| Consolidates third-party JavaScript files sourced from npm as part of production process. +| Consolidates third-party files sourced from npm as part of production process. \-----------------------------------------------------------------------------------------------------------------------------*/ -function jsVendorTask() { - return src(files.jsVendor) +var vendorFilesFactory = (source, destination, filename) => + src(source) .pipe(sourceMaps.init()) - .pipe(concat('Vendor.js')) + .pipe(concat(filename)) .pipe(sourceMaps.write('.')) - .pipe(dest(outputDir + '/Shared/Scripts/')); -} + .pipe(dest(destination)); /*============================================================================================================================== -| TASK: STYLESHEET VENDOR FILES +| FACTORY: COPY FILES >------------------------------------------------------------------------------------------------------------------------------- -| Consolidates third-party Stylesheet files sourced from npm as part of production process. +| Consolidates third-party files sourced from npm as part of production process. \-----------------------------------------------------------------------------------------------------------------------------*/ -function cssVendorTask() { - return src(files.cssVendor) - .pipe(sourceMaps.init()) - .pipe(concat('Vendor.css')) - .pipe(sourceMaps.write('.')) - .pipe(dest(outputDir + '/Shared/Styles/')); -} +var copyFilesFactory = (source, destination) => src(source).pipe(dest(destination)); /*============================================================================================================================== -| TASK: DEPENDENCIES +| FACTORY: BATCH SET +>------------------------------------------------------------------------------------------------------------------------------- +| Produces a task based on a given source, destinction, and factory method. Intended to handle files that need to be handled as +| batches. Expects an source argument broken down by named collections, where the name will be the target folder. +\-----------------------------------------------------------------------------------------------------------------------------*/ +var batchSetFactory = (source, destination, factory) => { + var streams = []; + for (var target in source) { + streams.push( + factory( + source[target], + destination.concat(target) + ) + ); + } + return merge(streams); +}; + +/*============================================================================================================================== +| TASK: STANDALONE FILES >------------------------------------------------------------------------------------------------------------------------------- | Copies static dependencies from their source folders and into their appropriate build folders. \-----------------------------------------------------------------------------------------------------------------------------*/ -function dependenciesTask() { +var standaloneFilesTask = () => { var streams = []; - for (var contentType in dependencies) { - for (var dependency in dependencies[contentType]) { - streams.push( - src(dependencies[contentType][dependency]) - .pipe(dest(outputDir.concat('/Shared/', contentType, '/Vendor/', dependency))) - ); - } + for (var contentType in files.standalone) { + var factory = (function (contentType) { + switch (contentType) { + case 'Scripts' : return jsFactory; + case 'Styles' : return scssFactory; + case 'Fonts' : return copyFilesFactory; + } + })(contentType); + streams.push( + batchSetFactory( + files.standalone[contentType], + getOutputDir(contentType), + factory + ) + ); } return merge(streams); -} +}; + +/*============================================================================================================================== +| TASK: PRECOMPILED FILES +>------------------------------------------------------------------------------------------------------------------------------- +| Copies precompiled dependencies from their source folders and into their appropriate build folders. +\-----------------------------------------------------------------------------------------------------------------------------*/ +var precompiledFilesTask = () => { + var streams = []; + for (var contentType in files.precompiled) { + streams.push( + batchSetFactory( + files.precompiled[contentType], + getOutputDir(contentType), + copyFilesFactory + ) + ); + } + return merge(streams); +}; + +/*============================================================================================================================== +| DEFINE TASKS +>------------------------------------------------------------------------------------------------------------------------------- +| Using the above factory methods, define available tasks +\-----------------------------------------------------------------------------------------------------------------------------*/ +var scssTask = () => scssFactory(files.scss); +var jsTask = () => jsFactory(files.js, getOutputDir('Scripts'), 'Scripts.js'); +var jsVendorTask = () => vendorFilesFactory(files.vendor.js, getOutputDir('Scripts'), 'Vendor.js'); +var cssVendorTask = () => vendorFilesFactory(files.vendor.css, getOutputDir('Styles'), 'Vendor.css'); /*============================================================================================================================== | EXPORT TASKS >------------------------------------------------------------------------------------------------------------------------------- | Exports the above defined tasks for use by gulp. \-----------------------------------------------------------------------------------------------------------------------------*/ -exports.scss = scssTask; -exports.cssVendor = cssVendorTask; exports.js = jsTask; +exports.scss = scssTask; exports.jsVendor = jsVendorTask; -exports.dependencies = dependenciesTask; +exports.cssVendor = cssVendorTask; +exports.standaloneFiles = standaloneFilesTask; +exports.precompiledFiles = precompiledFilesTask; /*============================================================================================================================== | TASK: BUILD >------------------------------------------------------------------------------------------------------------------------------- | Composite task that will call all build-related tasks. \-----------------------------------------------------------------------------------------------------------------------------*/ -exports.build = parallel(dependenciesTask, scssTask, cssVendorTask, jsTask, jsVendorTask); +exports.build = parallel(standaloneFilesTask, precompiledFilesTask, scssTask, cssVendorTask, jsTask, jsVendorTask); /*============================================================================================================================== | TASK: DEFAULT @@ -211,4 +249,4 @@ exports.build = parallel(dependenciesTask, scssTask, cssVendorTask, jsTask, jsVe | The default task when Gulp runs, assuming no task is specified. Assuming the environment variable isn't explicitly defined | otherwise, will run on development-oriented tasks. \-----------------------------------------------------------------------------------------------------------------------------*/ -exports.default = parallel(dependenciesTask, scssTask, cssVendorTask, jsTask, jsVendorTask); +exports.default = parallel(standaloneFilesTask, precompiledFilesTask, scssTask, cssVendorTask, jsTask, jsVendorTask); From 83e4476f3e41718e97fda5420485b0c2bf9b33d9 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Mon, 11 Nov 2019 17:36:42 -0800 Subject: [PATCH 539/637] Established semver style versioning to flag as prerelease --- Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj | 2 +- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 7ba4f105..11860e1c 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -9,7 +9,7 @@ - 3.0.0 + 3.0.0-AspNetCore.1 Ignia Ignia Ignia OnTopic Editor Models diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 83289352..9794b358 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -7,7 +7,7 @@ - 3.0.0 + 3.0.0-AspNetCore.1 Ignia Ignia Ignia OnTopic Editor From b4c831d1cda69858dd40ed866bf2811f198f7b76 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 11:50:47 -0800 Subject: [PATCH 540/637] Filter out hidden topics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The internally sourced collection via `TopicQueryService` is already configured to hide hidden topics. The externally sourced `values` parameter may or may not be (and, in practice, is not). Typically, these will represent content types—e.g., in `NestedTopicList` and `_Layout.cshtml`. Adding this helps centralize this logic, and ensure the interface isn't polluted with hidden topics. --- .../Areas/Editor/Components/TopicListViewComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index c112a150..9ac316cc 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -109,7 +109,7 @@ public IViewComponentResult Invoke( //This, of course, assumes that the topic view models refer to existing topics in the repository. if (values != null && values.Count() > 0) { topics = new List(); - foreach (var topicViewModel in values) { + foreach (var topicViewModel in values.Where(t => !t.IsHidden)) { topics.Add( new QueryResultTopicViewModel( topicViewModel.Id, From 86ca32da9338548a82dafcd8c094065f0d3f09c0 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 13:06:41 -0800 Subject: [PATCH 541/637] Introduced `GitVersionTask` for automatic versioning As part of this, removed explicit setting of version information (including release notes), and added a barebones `GitVersion.yml` to the solution. This also corresponds to a tag that explicitly set the initial version to `4.0.0`. --- GitVersion.yml | 5 +++++ .../Ignia.Topics.Editor.Models.csproj | 6 ++++-- Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj | 6 ++++-- Ignia.Topics.Editor.sln | 1 + 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 GitVersion.yml diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 00000000..5c67bde6 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,5 @@ +assembly-versioning-scheme: MajorMinorPatch +mode: ContinuousDelivery +branches: {} +ignore: + sha: [] diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 11860e1c..43a77e26 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -9,7 +9,6 @@ - 3.0.0-AspNetCore.1 Ignia Ignia Ignia OnTopic Editor Models @@ -19,11 +18,14 @@ https://github.com/Ignia/Topic-Editor-MVC/ DotNetCore UI Editor CMS ASP.NET OnTopic Ignia Models Library git - Complete rearchitecture of OnTopic Editor to support ASP.NET Core 3.0 MVC with controls implemented as view components. Implemented as a Razor Class Library for easy redistribution. en + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 9794b358..a0a49288 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -7,7 +7,6 @@ - 3.0.0-AspNetCore.1 Ignia Ignia Ignia OnTopic Editor @@ -17,12 +16,15 @@ https://github.com/Ignia/Topic-Editor-MVC/ DotNetCore UI Editor CMS ASP.NET OnTopic Ignia git - Complete rearchitecture of OnTopic Editor to support ASP.NET Core 3.0 MVC with controls implemented as view components. Implemented as a Razor Class Library for easy redistribution. en + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Ignia.Topics.Editor.sln b/Ignia.Topics.Editor.sln index dad82832..cdb1f7c7 100644 --- a/Ignia.Topics.Editor.sln +++ b/Ignia.Topics.Editor.sln @@ -12,6 +12,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{607420FD-7AC7-415A-824A-F7E31D475F1D}" ProjectSection(SolutionItems) = preProject .gitignore = .gitignore + GitVersion.yml = GitVersion.yml EndProjectSection EndProject Global From f13324118d6ef98f27bc9707747b34149f8ba583 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 14:04:54 -0800 Subject: [PATCH 542/637] Fixed binding of hidden metadata fields The `AttributeBindingModelBinder` class relies on two (hidden) fields for determing the `AttributeBindingModel` type and key. When we moved `ContentType` and `Key` from `AttributeViewModel` to directly calling them from `AttributeDescriptorTopicViewModel`, however, that broke the automatic conventions, thus saving these as e.g. `Attributes[0].AttributeDescriptor.ContentType`. We could change this in #d56a9ec, we inadvertantly broke binding. Whoops! --- .../Editor/Infrastructure/AttributeBindingModelBinder.cs | 4 ++-- .../Areas/Editor/Views/Editor/Components/_Layout.cshtml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs index 7437de57..3f4c2bb8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Infrastructure/AttributeBindingModelBinder.cs @@ -52,8 +52,8 @@ public Task BindModelAsync(ModelBindingContext bindingContext) { | LOOKUP FIELD \-----------------------------------------------------------------------------------------------------------------------*/ var modelName = bindingContext.ModelName; - var key = bindingContext.ValueProvider.GetValue(modelName + ".Key").FirstValue; - var editorType = bindingContext.ValueProvider.GetValue(modelName + ".EditorType").FirstValue; + var key = bindingContext.ValueProvider.GetValue(modelName + ".AttributeDescriptor.Key").FirstValue; + var editorType = bindingContext.ValueProvider.GetValue(modelName + ".AttributeDescriptor.ContentType").FirstValue; var value = bindingContext.ValueProvider.GetValue(modelName + ".Value").FirstValue; /*------------------------------------------------------------------------------------------------------------------------ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml index 91d02212..18166be0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/_Layout.cshtml @@ -8,8 +8,8 @@
    - @Html.HiddenFor(m => m.AttributeDescriptor.ContentType) - @Html.HiddenFor(m => m.AttributeDescriptor.Key) + + @RenderBody() From 94929d85fe7a7da7a5506ec80082de6d58f28037 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 14:19:29 -0800 Subject: [PATCH 543/637] Ensure `NestedTopicList` container is created When a `NestedTopicListViewComponent` is used, it retrieves topics from a `List` container by the attribute name. A `TreeView` component attempts to pull values from this container, and new nested topics are created under that container. In order to do this, we must ensure the container is first created. This necessitates a dependency on the `ITopicRepository` so it can a) load the `CurrentTopic` to determine whether or not it already has the container, and, if not, b) automatically create and save the container. The `Save()` call is currently commented out, as are all other instances in the editor; those will be uncommented as part of final testing before release. --- .../SampleActivator.cs | 2 +- .../NestedTopicListViewComponent.cs | 21 ++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 304e061c..d16e7ecc 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -144,7 +144,7 @@ public object Create(ViewComponentContext context) { return new LastModifiedByViewComponent(); } if (type == typeof(NestedTopicListViewComponent)) { - return new NestedTopicListViewComponent(); + return new NestedTopicListViewComponent(_topicRepository); } if (type == typeof(NumberViewComponent)) { return new NumberViewComponent(); diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs index 1e2a6d7d..3e9003d8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs @@ -9,6 +9,7 @@ using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.ViewModels; using Ignia.Topics.Editor.Models.Metadata; +using Ignia.Topics.Repositories; using Microsoft.AspNetCore.Mvc; namespace Ignia.Topics.Editor.Mvc.Components { @@ -21,13 +22,20 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// public class NestedTopicListViewComponent : AttributeTypeViewComponentBase { + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private readonly ITopicRepository _topicRepository; + /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Initializes a new instance of a with necessary dependencies. /// - public NestedTopicListViewComponent() : base() { } + public NestedTopicListViewComponent(ITopicRepository topicRepository) : base() { + _topicRepository = topicRepository; + } /*========================================================================================================================== | METHOD: INVOKE @@ -68,6 +76,17 @@ string htmlFieldPrefix viewModel.UniqueKey = currentTopic.UniqueKey; viewModel.WebPath = currentTopic.WebPath; + /*------------------------------------------------------------------------------------------------------------------------ + | Establish nested topic container, if needed + \-----------------------------------------------------------------------------------------------------------------------*/ + if (!viewModel.IsNew) { + var topic = _topicRepository.Load(viewModel.UniqueKey); + if (!topic.Children.Contains(attribute.Key)) { + var topicContainer = TopicFactory.Create(attribute.Key, "List", topic); + //_topicRepository.Save(topicContainer); + } + } + /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model \-----------------------------------------------------------------------------------------------------------------------*/ From 1451ac6be4aeb094124927384ad8479f77006a89 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 15:14:23 -0800 Subject: [PATCH 544/637] Reintroduced `IsNew` Having `IsNew` on `EditorViewModel` makes it easier (and more reliable) to make modifications to the user interface based on the `IsNew` state. --- Ignia.Topics.Editor.Models/EditorViewModel.cs | 14 +++++++++++++- .../Areas/Editor/Controllers/EditorController.cs | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Models/EditorViewModel.cs b/Ignia.Topics.Editor.Models/EditorViewModel.cs index 0659db81..2053e608 100644 --- a/Ignia.Topics.Editor.Models/EditorViewModel.cs +++ b/Ignia.Topics.Editor.Models/EditorViewModel.cs @@ -26,6 +26,7 @@ public class EditorViewModel { public EditorViewModel( EditingTopicViewModel topic, ContentTypeDescriptorTopicViewModel contentTypeDescriptor, + bool isNew, bool isModal ) { @@ -34,6 +35,7 @@ bool isModal \-----------------------------------------------------------------------------------------------------------------------*/ Topic = topic; ContentTypeDescriptor = contentTypeDescriptor; + IsNew = isNew; IsModal = isModal; } @@ -61,7 +63,7 @@ public ContentTypeDescriptorTopicViewModel ContentTypeDescriptor { } /*========================================================================================================================== - | IS MODAL + | IS MODAL? \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Determines whether or not the page should be rendered as a modal (e.g., including the chrome or not). @@ -70,5 +72,15 @@ public bool IsModal { get; } + /*========================================================================================================================== + | IS NEW? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether or not the page is being newly created. + /// + public bool IsNew { + get; + } + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 99c6b399..961b4a3e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -160,7 +160,7 @@ public async Task Edit(bool isNew = false, string contentType = n /*------------------------------------------------------------------------------------------------------------------------ | ESTABLISH VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - var editorViewModel = new EditorViewModel(topicViewModel, contentTypeViewModel, isModal); + var editorViewModel = new EditorViewModel(topicViewModel, contentTypeViewModel, isNew, isModal); /*------------------------------------------------------------------------------------------------------------------------ | RETURN VIEW (MODEL) From 95ddc26899d55acc067cfc73e939bfbb754fe1f1 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 15:17:05 -0800 Subject: [PATCH 545/637] Introduced automatic `Key` naming The `Key` should be named based on the `Title`, with all symbols removed. This should only occur for new topics; we don't want to be inadvertantly changing the key (and, thus, the unique page path) for topics based on title changes; that should be a deliberate modification. Since `Key` and `Title` are available for _all_ topics, we can safely wire this up as part of the `UserInterface.js` assembly, assuming those fields will be available. (That said, if they aren't, this will fail silently.) --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 2 +- .../Shared/Scripts/UserInterface.js | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index fea3deb9..63db37a6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -21,7 +21,7 @@ - + @if (!Model.IsModal) { public AttributeViewModel( EditingTopicViewModel currentTopic, - AttributeDescriptorTopicViewModel attributeDescriptor, - string value = null, - string inheritedValue = null + AttributeDescriptorTopicViewModel attributeDescriptor ) { /*------------------------------------------------------------------------------------------------------------------------ @@ -35,8 +33,15 @@ public AttributeViewModel( \-----------------------------------------------------------------------------------------------------------------------*/ CurrentTopic = currentTopic; AttributeDescriptor = attributeDescriptor; - Value = value; - InheritedValue = inheritedValue; + + /*------------------------------------------------------------------------------------------------------------------------ + | Set values + \-----------------------------------------------------------------------------------------------------------------------*/ + var key = AttributeDescriptor.Key; + var topic = CurrentTopic; + + Value = topic.Attributes.ContainsKey(key) ? topic.Attributes[key] : null; + InheritedValue = topic.InheritedAttributes.ContainsKey(key) ? topic.InheritedAttributes[key] : null; } diff --git a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs index 41356465..12efe270 100644 --- a/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs +++ b/Ignia.Topics.Editor.Models/AttributeViewModel{T}.cs @@ -30,9 +30,7 @@ public AttributeViewModel( string inheritedValue = null ): base( currentTopic, - attributeDescriptor, - value, - inheritedValue + attributeDescriptor ) { AttributeDescriptor = attributeDescriptor; } diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs deleted file mode 100644 index d82f0ffc..00000000 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/AttributeTypeViewComponentBase.cs +++ /dev/null @@ -1,89 +0,0 @@ -/*============================================================================================================================== -| Author Ignia, LLC -| Client Ignia, LLC -| Project Topics Library -\=============================================================================================================================*/ -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Ignia.Topics.Mapping; -using Ignia.Topics.Models; -using Ignia.Topics.AspNetCore.Mvc.Models; -using Ignia.Topics.Editor.Models; -using System; -using System.Diagnostics.CodeAnalysis; -using Ignia.Topics.Editor.Models.Metadata; - -namespace Ignia.Topics.Editor.Mvc.Components { - - /*============================================================================================================================ - | CLASS: ATTRIBUTE TYPE (VIEW COMPONENT) - \---------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Defines a foundation for custom implementations that is based on an and a current reference. - /// model. - /// - /// - /// This class is intended to provide a foundation for concrete implementations. It is not a fully formed implementation - /// itself. As a result, it is marked as abstract. - /// - public abstract class AttributeTypeViewComponentBase : ViewComponent { - - /*========================================================================================================================== - | CONSTRUCTOR - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Initializes a new instance of a with necessary dependencies. - /// - /// A topic . - protected AttributeTypeViewComponentBase() {} - - /*========================================================================================================================== - | METHOD: GET ATTRIBUTE VIEW MODEL - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Given an , creates a new and ensures - /// that the properties are properly set. - /// - /// - /// The to initialize a new with. - /// - /// The Topic associated with the current request. - public AttributeViewModel GetAttributeViewModel( - EditingTopicViewModel topic, - AttributeDescriptorTopicViewModel attribute - ) { - var viewModel = new AttributeViewModel(topic, attribute); - GetAttributeViewModel(viewModel); - return viewModel; - } - - /// - /// Ensures that the properties of the are properly set. - /// - /// The to populate with values. - /// The Topic associated with the current request. - [return: NotNullIfNotNull("viewModel")] - public AttributeViewModel GetAttributeViewModel(AttributeViewModel viewModel) { - - /*------------------------------------------------------------------------------------------------------------------------ - | Set variables - \-----------------------------------------------------------------------------------------------------------------------*/ - var topic = viewModel.CurrentTopic; - var key = viewModel.AttributeDescriptor.Key; - - /*------------------------------------------------------------------------------------------------------------------------ - | Set contextual values from current topic - \-----------------------------------------------------------------------------------------------------------------------*/ - viewModel.InheritedValue = topic.InheritedAttributes.ContainsKey(key)? topic.InheritedAttributes[key] : null; - viewModel.Value = topic.Attributes.ContainsKey(key)? topic.Attributes[key] : null; - - /*------------------------------------------------------------------------------------------------------------------------ - | Return value - \-----------------------------------------------------------------------------------------------------------------------*/ - return viewModel; - - } - - } // Class -} // Namespace \ No newline at end of file diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs index cec0a8db..49304707 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/BooleanViewComponent.cs @@ -18,7 +18,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a boolean attribute type. /// - public class BooleanViewComponent: AttributeTypeViewComponentBase { + public class BooleanViewComponent: ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -41,7 +41,7 @@ public IViewComponentResult Invoke( string htmlFieldPrefix ) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; - return View(GetAttributeViewModel(new BooleanAttributeViewModel(currentTopic, attribute))); + return View(new BooleanAttributeViewModel(currentTopic, attribute)); } } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs index a1ba823e..f8d7eef0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DateTimeViewComponent.cs @@ -18,7 +18,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a date/time attribute type. /// - public class DateTimeViewComponent: AttributeTypeViewComponentBase { + public class DateTimeViewComponent: ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -51,8 +51,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var model = new DateTimeAttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(model); - /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs index 4fab5f68..d706e2a4 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/DefaultAttributeTypeViewComponent.cs @@ -25,7 +25,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// still expected that derived classes be created, but by deriving from , /// they do not need to implement their own method. /// - public class DefaultAttributeTypeViewComponent : AttributeTypeViewComponentBase { + public class DefaultAttributeTypeViewComponent : ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -48,7 +48,7 @@ string htmlFieldPrefix ) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix; var viewModel = new AttributeViewModel(currentTopic, attribute); - return View(GetAttributeViewModel(viewModel)); + return View(viewModel); } } // Class diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index 82491d18..a373677a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -24,7 +24,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a file attribute type. /// - public class FileListViewComponent: AttributeTypeViewComponentBase { + public class FileListViewComponent: ViewComponent { /*========================================================================================================================== | PRIVATE VARIABLES @@ -71,8 +71,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var model = new FileListAttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(model); - /*------------------------------------------------------------------------------------------------------------------------ | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs index 4cf27936..bc52782a 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs @@ -22,7 +22,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a file path attribute type. /// - public class FilePathViewComponent: AttributeTypeViewComponentBase { + public class FilePathViewComponent: ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -83,7 +83,7 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Establish view model \-----------------------------------------------------------------------------------------------------------------------*/ - var model = GetAttributeViewModel(new FilePathAttributeViewModel(currentTopic, attribute)) as FilePathAttributeViewModel; + var model = new FilePathAttributeViewModel(currentTopic, attribute); /*------------------------------------------------------------------------------------------------------------------------ | Set model values diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs index 7f0ec3c8..d6c98a63 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/HtmlViewComponent.cs @@ -16,7 +16,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a HTML attribute type. /// - public class HtmlViewComponent : AttributeTypeViewComponentBase { + public class HtmlViewComponent : ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -60,8 +60,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var viewModel = new AttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(viewModel); - /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs index 670ada21..37a43a10 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedByViewComponent.cs @@ -19,7 +19,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a last modified by attribute type. /// - public class LastModifiedByViewComponent : AttributeTypeViewComponentBase { + public class LastModifiedByViewComponent : ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -51,8 +51,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var model = new LastModifiedByAttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(model); - /*------------------------------------------------------------------------------------------------------------------------ | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs index e9543d1b..66f22e0e 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/LastModifiedViewComponent.cs @@ -18,7 +18,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a last modified attribute type. /// - public class LastModifiedViewComponent: AttributeTypeViewComponentBase { + public class LastModifiedViewComponent: ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -51,8 +51,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var model = new LastModifiedAttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(model); - /*------------------------------------------------------------------------------------------------------------------------ | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs index 3e9003d8..4ec82d9b 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NestedTopicListViewComponent.cs @@ -20,7 +20,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a topic list attribute type. /// - public class NestedTopicListViewComponent : AttributeTypeViewComponentBase { + public class NestedTopicListViewComponent : ViewComponent { /*========================================================================================================================== | PRIVATE VARIABLES @@ -65,8 +65,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var viewModel = new NestedTopicListAttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(viewModel); - /*------------------------------------------------------------------------------------------------------------------------ | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs index 3875d641..57d4b701 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/NumberViewComponent.cs @@ -18,7 +18,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a numeric attribute type. /// - public class NumberViewComponent: AttributeTypeViewComponentBase { + public class NumberViewComponent: ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -51,8 +51,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var viewModel = new AttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(viewModel); - /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs index 8b9a6eb3..28615dd0 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/RelationshipViewComponent.cs @@ -17,7 +17,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a relationship attribute type. /// - public class RelationshipViewComponent : AttributeTypeViewComponentBase { + public class RelationshipViewComponent : ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -58,8 +58,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var model = new AttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(model); - /*------------------------------------------------------------------------------------------------------------------------ | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs index 44a5286e..ab3f8dda 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextAreaViewComponent.cs @@ -19,7 +19,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a text area attribute type. /// - public class TextAreaViewComponent: AttributeTypeViewComponentBase { + public class TextAreaViewComponent: ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -52,8 +52,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var viewModel = new AttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(viewModel); - /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs index 1ac59167..91605f37 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TextViewComponent.cs @@ -19,7 +19,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a text area attribute type. /// - public class TextViewComponent: AttributeTypeViewComponentBase { + public class TextViewComponent: ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -52,8 +52,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var viewModel = new AttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(viewModel); - /*------------------------------------------------------------------------------------------------------------------------ | Set configuration values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs index 69584cc7..3421e048 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TokenizedTopicListViewComponent.cs @@ -20,7 +20,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a tokenized topic list attribute type. /// - public class TokenizedTopicListViewComponent : AttributeTypeViewComponentBase { + public class TokenizedTopicListViewComponent : ViewComponent { /*========================================================================================================================== | PRIVATE VARIABLES @@ -70,8 +70,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var model = new TokenizedTopicListAttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(model); - /*------------------------------------------------------------------------------------------------------------------------ | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs index 9ac316cc..f3316f79 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicListViewComponent.cs @@ -26,7 +26,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a topic list attribute type. /// - public class TopicListViewComponent : AttributeTypeViewComponentBase { + public class TopicListViewComponent : ViewComponent { /*========================================================================================================================== | PRIVATE VARIABLES @@ -82,8 +82,6 @@ public IViewComponentResult Invoke( \-----------------------------------------------------------------------------------------------------------------------*/ var viewModel = new TopicListAttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(viewModel); - /*------------------------------------------------------------------------------------------------------------------------ | Set label \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs index 03b44b24..7fbfe207 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/TopicReferenceViewComponent.cs @@ -21,7 +21,7 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// /// Delivers a view model for a topic reference attribute type. /// - public class TopicReferenceViewComponent : AttributeTypeViewComponentBase { + public class TopicReferenceViewComponent : ViewComponent { /*========================================================================================================================== | CONSTRUCTOR @@ -65,8 +65,6 @@ string htmlFieldPrefix \-----------------------------------------------------------------------------------------------------------------------*/ var viewModel = new AttributeViewModel(currentTopic, attribute); - GetAttributeViewModel(viewModel); - /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model \-----------------------------------------------------------------------------------------------------------------------*/ From 1d1cc7648b4576a1db67582850befa73ede95f54 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 16:07:52 -0800 Subject: [PATCH 547/637] Removed legacy navigation This navigation, long commented out, was left over from the out-of-the-box MVC template and is not used. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 63db37a6..152d005f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -47,17 +47,6 @@ } - -
    From d6ee6b47a40e880c8cb97f267e5b6594642b44af Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 16:13:14 -0800 Subject: [PATCH 548/637] Reintroduced warning for `DisableDelete` Reintroduced the warning for cases where the `ContentTypeDescriptor` is set to `DisableDelete`, which means it's a system object and not entended to be moved or edited. This will need some SCSS love from @ktrunkey, as it's a bit too close to the header. It'll likely need it's own class to introduce some padding. --- .../Areas/Editor/Views/Editor/Edit.cshtml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 5cddceb4..9e499768 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -10,6 +10,16 @@
    + +
    + @if (Model.ContentTypeDescriptor.DisableDelete) { + + } +
    +
    @{int index = 0;}
    @@ -21,12 +31,10 @@
    @foreach (var attribute in Model.ContentTypeDescriptor.GetAttributeDescriptors(displayGroupName)) { - @await Component.InvokeAsync( attribute.ContentType.Replace("Attribute", ""), new { CurrentTopic=Model.Topic, Attribute=attribute, HtmlFieldPrefix=$"Attributes[{index++}]" } ) - }
    From 45d11eafe459f89fa21a2c512286e595019a4912 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 16:15:20 -0800 Subject: [PATCH 549/637] Introduced `ContentTypeDescriptor.Description` onto edit form The `ContentTypeDescriptor`'s `Description` property is intended to provide a description of what the form's purpose is for, as a type of internal instruction. This should be displayed at the top of each form, so the editor has some guidance regarding the context of the page. Currently, no `ContentTypeDescriptor`s have their `Description` attribute filled out, but this should display correctly once they do. --- .../Areas/Editor/Views/Editor/Edit.cshtml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 9e499768..9385e9bd 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -18,6 +18,11 @@ Warning: This topic is part of the OnTopic internal organizational structure and is not intended to be modified. Deletion of this Topic has been disabled.
    } + else if (!String.IsNullOrWhiteSpace(Model.ContentTypeDescriptor.Description)) { + + }
    From 0e36339b071b9405b025443ea9970d9402d428d1 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 17:27:16 -0800 Subject: [PATCH 550/637] Introduced basic server-side form validation for required fields Ideally, we'll duplicate all error validation on the server, so we're not reliant on the client-side validation. E.g., we might validate regex, minlength, maxlength, &c. That said, _at minimum_, we need to validate that required fields are set. This update accomplish that. This, too, will require some care from @ktrunkey to fix formatting. --- .../Editor/Controllers/EditorController.cs | 76 ++++++++++++++++--- .../Areas/Editor/Views/Editor/Edit.cshtml | 1 + 2 files changed, 65 insertions(+), 12 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 961b4a3e..16940b91 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -103,18 +103,15 @@ protected ContentTypeDescriptor GetContentType(string contentType) => _topicRepo .Where(t => t.Key.Equals(contentType)) .First(); - /*========================================================================================================================== - | [GET] EDIT - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Present an editor view bound to a specific topic. - /// - public async Task Edit(bool isNew = false, string contentType = null, bool isModal = false) { + protected async Task GetEditorViewModel( + ContentTypeDescriptor contentTypeDescriptor, + bool isNew, + bool isModal + ) { /*------------------------------------------------------------------------------------------------------------------------ | ESTABLISH CONTENT TYPE VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); var contentTypeViewModel = await _topicMappingService.MapAsync(contentTypeDescriptor); var parentTopic = isNew ? CurrentTopic : CurrentTopic.Parent; @@ -125,7 +122,7 @@ public async Task Edit(bool isNew = false, string contentType = n if (isNew) { topicViewModel = new EditingTopicViewModel() { - ContentType = contentType, + ContentType = contentTypeDescriptor.Key, UniqueKey = CurrentTopic.GetUniqueKey(), Parent = topicViewModel }; @@ -157,10 +154,32 @@ public async Task Edit(bool isNew = false, string contentType = n } + /*------------------------------------------------------------------------------------------------------------------------ + | ESTABLISH AND RETURN VIEW MODEL + \-----------------------------------------------------------------------------------------------------------------------*/ + return new EditorViewModel(topicViewModel, contentTypeViewModel, isNew, isModal); + + } + + + + /*========================================================================================================================== + | [GET] EDIT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Present an editor view bound to a specific topic. + /// + public async Task Edit(bool isNew = false, string contentType = null, bool isModal = false) { + + /*------------------------------------------------------------------------------------------------------------------------ + | ESTABLISH CONTENT TYPE VIEW MODEL + \-----------------------------------------------------------------------------------------------------------------------*/ + var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); + /*------------------------------------------------------------------------------------------------------------------------ | ESTABLISH VIEW MODEL \-----------------------------------------------------------------------------------------------------------------------*/ - var editorViewModel = new EditorViewModel(topicViewModel, contentTypeViewModel, isNew, isModal); + var editorViewModel = await GetEditorViewModel(contentTypeDescriptor, isNew, isModal); /*------------------------------------------------------------------------------------------------------------------------ | RETURN VIEW (MODEL) @@ -177,12 +196,18 @@ public async Task Edit(bool isNew = false, string contentType = n /// /// An instance of the constructed from the HTTP Post. [HttpPost] - public async Task Edit(EditorBindingModel model, bool isNew = false, string contentType = null, bool isModal = false) { + public async Task Edit( + EditorBindingModel model, + bool isNew = false, + string contentType = null, + bool isModal = false + ) { /*------------------------------------------------------------------------------------------------------------------------ | SET TOPIC \-----------------------------------------------------------------------------------------------------------------------*/ - var topic = CurrentTopic; + var topic = CurrentTopic; + var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); if (isNew) { topic = TopicFactory.Create("NewTopic", contentType); @@ -191,6 +216,33 @@ public async Task Edit(EditorBindingModel model, bool isNew = fal contentType = CurrentTopic.ContentType; } + /*------------------------------------------------------------------------------------------------------------------------ + | VALIDATE REQUIRED FIELDS + \-----------------------------------------------------------------------------------------------------------------------*/ + foreach (var attribute in contentTypeDescriptor.AttributeDescriptors) { + var submittedValue = model.Attributes.Contains(attribute.Key)? model.Attributes[attribute.Key] : null; + if (attribute.IsRequired && !attribute.IsHidden && String.IsNullOrEmpty(submittedValue?.Value)) { + ModelState.AddModelError(attribute.Key, $"The {attribute.Title} field is required."); + } + } + + /*------------------------------------------------------------------------------------------------------------------------ + | RETURN ERROR STATE + \-----------------------------------------------------------------------------------------------------------------------*/ + if (ModelState.Values.Count() > 0) { + + //Establish view model + var editorViewModel = await GetEditorViewModel(contentTypeDescriptor, isNew, isModal); + + foreach (var attribute in contentTypeDescriptor.AttributeDescriptors) { + var submittedValue = model.Attributes.Contains(attribute.Key)? model.Attributes[attribute.Key] : null; + editorViewModel.Topic.Attributes[attribute.Key] = submittedValue?.Value; + } + + return View(editorViewModel); + + } + /*------------------------------------------------------------------------------------------------------------------------ | SET ATTRIBUTES \-----------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index 9385e9bd..dde17af6 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -23,6 +23,7 @@ @Model.ContentTypeDescriptor.Description
    } +
    From d8d16087ed0a7d1a95bbef868dfde4958a5077fa Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Tue, 12 Nov 2019 17:41:21 -0800 Subject: [PATCH 551/637] Bypass server-side validation if topic is derived MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In that case, the values can and should be derived from the target topic if left null—even if they're otherwise required. --- .../Areas/Editor/Controllers/EditorController.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 16940b91..fc6dc13f 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -219,10 +219,12 @@ public async Task Edit( /*------------------------------------------------------------------------------------------------------------------------ | VALIDATE REQUIRED FIELDS \-----------------------------------------------------------------------------------------------------------------------*/ - foreach (var attribute in contentTypeDescriptor.AttributeDescriptors) { - var submittedValue = model.Attributes.Contains(attribute.Key)? model.Attributes[attribute.Key] : null; - if (attribute.IsRequired && !attribute.IsHidden && String.IsNullOrEmpty(submittedValue?.Value)) { - ModelState.AddModelError(attribute.Key, $"The {attribute.Title} field is required."); + if (model.Attributes.Contains("TopicID")? String.IsNullOrEmpty(model.Attributes["TopicID"].Value) : true) { + foreach (var attribute in contentTypeDescriptor.AttributeDescriptors) { + var submittedValue = model.Attributes.Contains(attribute.Key)? model.Attributes[attribute.Key] : null; + if (attribute.IsRequired && !attribute.IsHidden && String.IsNullOrEmpty(submittedValue?.Value)) { + ModelState.AddModelError(attribute.Key, $"The {attribute.Title} field is required."); + } } } From 7ad33ef5a8d66b70fb6ba58f39ea88ccb9c1108b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 13 Nov 2019 15:50:03 -0800 Subject: [PATCH 552/637] Relay critical route data to `[Post]` handler By default, query string values are not relayed as part of the postback. This means that values such as `IsModal`, `IsNew`, and `ContentType` will get lost after postback. This can be mitigated by relaying those as route values using the `asp-route-` tag helper. --- .../Areas/Editor/Views/Editor/Edit.cshtml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index dde17af6..fd834ce8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -5,7 +5,15 @@ var bindingModel = new EditorBindingModel(); } -
    + From 57ad80f87a356f99f4a9a09db9fd918094d4c0d6 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 13 Nov 2019 15:53:00 -0800 Subject: [PATCH 553/637] Use derived `Key` if appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the topic derives from another topic, and the `Key` is `null`, then default to the `Key` of the derived topic. In the legacy setup, this would autogenerate a new `Key`—which was almost never the desired approach. This is much more intuitive in _most_ use cases. (One exception being if it's deriving from a topic in the same parent; an issue we'll address shortly.) --- .../Editor/Controllers/EditorController.cs | 36 +++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index fc6dc13f..de76ceaf 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -204,22 +204,18 @@ public async Task Edit( ) { /*------------------------------------------------------------------------------------------------------------------------ - | SET TOPIC + | SET VARIABLES \-----------------------------------------------------------------------------------------------------------------------*/ - var topic = CurrentTopic; + var parentTopic = isNew? CurrentTopic : CurrentTopic.Parent; var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); - - if (isNew) { - topic = TopicFactory.Create("NewTopic", contentType); - } - else { - contentType = CurrentTopic.ContentType; - } + var derivedTopicId = Int32.Parse(model.Attributes.Contains("TopicID")? model.Attributes["TopicID"].Value : "-1"); + var derivedTopic = (derivedTopicId >= 0)? TopicRepository.Load(derivedTopicId) : null; + var newKey = model.Attributes.Contains("Key")? model.Attributes["Key"].Value : null; /*------------------------------------------------------------------------------------------------------------------------ | VALIDATE REQUIRED FIELDS \-----------------------------------------------------------------------------------------------------------------------*/ - if (model.Attributes.Contains("TopicID")? String.IsNullOrEmpty(model.Attributes["TopicID"].Value) : true) { + if (derivedTopic == null) { foreach (var attribute in contentTypeDescriptor.AttributeDescriptors) { var submittedValue = model.Attributes.Contains(attribute.Key)? model.Attributes[attribute.Key] : null; if (attribute.IsRequired && !attribute.IsHidden && String.IsNullOrEmpty(submittedValue?.Value)) { @@ -228,10 +224,16 @@ public async Task Edit( } } + /*------------------------------------------------------------------------------------------------------------------------ + | INHERIT KEY VALUE, IF PRESENT + \-----------------------------------------------------------------------------------------------------------------------*/ + else if (String.IsNullOrEmpty(newKey)) { + newKey = derivedTopic.Key; + } /*------------------------------------------------------------------------------------------------------------------------ | RETURN ERROR STATE \-----------------------------------------------------------------------------------------------------------------------*/ - if (ModelState.Values.Count() > 0) { + if (!ModelState.IsValid) { //Establish view model var editorViewModel = await GetEditorViewModel(contentTypeDescriptor, isNew, isModal); @@ -245,6 +247,18 @@ public async Task Edit( } + /*------------------------------------------------------------------------------------------------------------------------ + | ESTABLISH TOPIC + \-----------------------------------------------------------------------------------------------------------------------*/ + var topic = CurrentTopic; + + if (isNew) { + topic = TopicFactory.Create(newKey, contentType); + } + else { + contentType = CurrentTopic.ContentType; + } + /*------------------------------------------------------------------------------------------------------------------------ | SET ATTRIBUTES \-----------------------------------------------------------------------------------------------------------------------*/ From cb9e93de6aedd1af4f28d261f4836f04ca3e3a7f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 13 Nov 2019 15:54:16 -0800 Subject: [PATCH 554/637] Validate that the `Key` is unique MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One of the most crucial issues when creating a new topic or accepting a topic with a `Key` change is to validate that the new `Key` is unique. This addresses this—including in the scenario where the `Key` is inherited from the derived topic (see #57ad80f). --- .../Areas/Editor/Controllers/EditorController.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index de76ceaf..fe6cab32 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -230,6 +230,19 @@ public async Task Edit( else if (String.IsNullOrEmpty(newKey)) { newKey = derivedTopic.Key; } + + /*------------------------------------------------------------------------------------------------------------------------ + | VALIDATE KEY + \-----------------------------------------------------------------------------------------------------------------------*/ + if (isNew || !CurrentTopic.Key.Equals(newKey, StringComparison.InvariantCultureIgnoreCase)) { + if (parentTopic.Children.Contains(newKey)) { + ModelState.AddModelError( + "Key", + $"The folder name {newKey} already exists under '{parentTopic.Title}'. Please choose a unique folder name." + ); + } + } + /*------------------------------------------------------------------------------------------------------------------------ | RETURN ERROR STATE \-----------------------------------------------------------------------------------------------------------------------*/ From 17b402f5be6157fbdd0ef69235ff0a2739cc03fc Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 13 Nov 2019 16:13:13 -0800 Subject: [PATCH 555/637] Resolved issue with `IsNew` updating the parent topic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Perhaps confusingly, `CurrentTopic` is set to the _parent_ topic when `IsNew`. That's because the user is currently in the parent topic, and hasn't yet created the new topic. Perhaps we should revisit the naming conventions to avoid ambiguity in this case (which, it should be noted, only occurs in the editor). Regardless, this mandates updating the code to modify the local `topic` object instead—which _may_ be set to `CurrentTopic`, but may _instead_ be set to a new `Topic` if `IsNew`. --- .../Areas/Editor/Controllers/EditorController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index fe6cab32..069a9b8c 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -284,7 +284,7 @@ public async Task Edit( //Handle missing attributes if (!model.Attributes.Contains(attribute.Key)) { - CurrentTopic.Attributes.Remove(attribute.Key); + topic.Attributes.Remove(attribute.Key); continue; } @@ -296,13 +296,13 @@ public async Task Edit( SetRelationships(topic, attribute, attributeValue); } else if (attribute.Key.Equals("Key")) { - CurrentTopic.Key = attributeValue.Value.Replace(" ", ""); + topic.Key = attributeValue.Value.Replace(" ", ""); } else if (String.IsNullOrEmpty(attributeValue.Value)) { - CurrentTopic.Attributes.Remove(attribute.Key); + topic.Attributes.Remove(attribute.Key); } else { - CurrentTopic.Attributes.SetValue(attribute.Key, attributeValue.Value); + topic.Attributes.SetValue(attribute.Key, attributeValue.Value); } } From 98d1e8372cb11a7e0db77202f185bf947656817f Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 13 Nov 2019 16:20:58 -0800 Subject: [PATCH 556/637] Introduced functionality to cross-validate all tabs By default, **jQuery Validate** only validates the fields in the _current_ tab. That's because the fields in the remaining tabs are hidden, and hidden fields don't get validated. This is fixed by introducing `ignore` into the `validate()` call. In addition, an `invalidHandler` is introduced in order to ensure that tabs with errors are properly marked. Notably, an asterisk is appended to each one, and a new class, `error`, is added to the link itself. Shout out to Gabriel Buzzi Venturi for the useful example on **CodePen**. As with other validation-related features, this will need some care from @ktrunkey. --- .../Areas/Editor/Views/Editor/Edit.cshtml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index fd834ce8..c7e91ace 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -36,7 +36,7 @@
    @{int index = 0;} -
    +
    @foreach (string displayGroupName in Model.ContentTypeDescriptor.GetDisplayGroups()) { var displayGroupId = displayGroupName.Replace(" ", String.Empty); @@ -85,8 +85,19 @@ /** * Trigger jQuery validation */ - $('#EditorForm').validate(); - + $('#EditorForm').validate({ + ignore: [], + invalidHandler: function () { + setTimeout(function () { + $('.nav-tabs a small.required').remove(); + $('.nav-tabs a.error').removeClass("error"); + $('.tab-content.tab-validate .tab-pane:has(input.error)').each(function () { + var id = $(this).attr('id'); + $('.nav-tabs').find('a[href^="#' + id + '"]').addClass("error").append(' *'); + }); + }); + } + }); /** * Sends AJAX request to Delete Action From cbba7221823ffebb88d562c0a4aaa5f075a727bc Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 13 Nov 2019 17:09:14 -0800 Subject: [PATCH 557/637] Resolved issue with potentially empty `TopicID` If the `TopicID` attribute is found (expected) _but_ is empty (usually the case) then `Int32.Parse()` would fail. Mitigated that by checking `IsNullOrEmpty()` prior to calling `Int32.Parse()`. This is a touch clumsy with three distinct variables, but it's simpler than having a number of nested conditions written out with `if/then` statements. --- .../Areas/Editor/Controllers/EditorController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 069a9b8c..0fddb3ed 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -208,7 +208,8 @@ public async Task Edit( \-----------------------------------------------------------------------------------------------------------------------*/ var parentTopic = isNew? CurrentTopic : CurrentTopic.Parent; var contentTypeDescriptor = GetContentType(contentType?? CurrentTopic.ContentType); - var derivedTopicId = Int32.Parse(model.Attributes.Contains("TopicID")? model.Attributes["TopicID"].Value : "-1"); + var derivedTopicValue = model.Attributes.Contains("TopicID")? model.Attributes["TopicID"].Value : "-1"; + var derivedTopicId = String.IsNullOrWhiteSpace(derivedTopicValue)? -1 : Int32.Parse(derivedTopicValue); var derivedTopic = (derivedTopicId >= 0)? TopicRepository.Load(derivedTopicId) : null; var newKey = model.Attributes.Contains("Key")? model.Attributes["Key"].Value : null; From 56114210bb80c4150c241d1df755b2f1ea6eadd9 Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Wed, 13 Nov 2019 17:47:13 -0800 Subject: [PATCH 558/637] Introduction of basic `error` styles These could probably use a bit of additional care from @ktrunkey, but the basic structure and color scheme is in place. --- .../Shared/Styles/Base/_forms.scss | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_forms.scss b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_forms.scss index 83122baa..0169edd7 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_forms.scss +++ b/Ignia.Topics.Editor.Mvc/Shared/Styles/Base/_forms.scss @@ -125,19 +125,42 @@ span.radio { //---------------------------------------------------------------------------------------------- // VALIDATION //---------------------------------------------------------------------------------------------- -label { + +//Tabs +a.nav-link.error { + border-bottom-color : $red !important; + small.required { + color : $red; + } +} + +//Summary +.validation-summary-errors { + padding : 20px 0px; + color : $red; +} + +//Labels +section.attribute label.error { + color : $red; + font-style : italic; } -.alert { + +//Form fields +section.attribute input.error { + border-color : $red; + background-color : tint($red, 10%); } //---------------------------------------------------------------------------------------------- // SUPPORTING STYLES //---------------------------------------------------------------------------------------------- .instructions { - font-size : rem-calc(16); - font-style : italic; - color : $grey-medium; + font-size: rem-calc(16); + font-style: italic; + color: $grey-medium; + &.error { - color : $red; + color: $red; } } From 3d1fc8266dbdab0d1245b3e749ce9253ca56a28b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 14 Nov 2019 13:41:45 -0800 Subject: [PATCH 559/637] Bumped **Topic Library** version The latest patch includes bug fixes for mapping nullable properties (such as `bool?`) as well as controls to help restrict runaway recursive mapping of mapped collections (such as `PermittedContentTypes`). --- .../Ignia.Topics.Editor.Models.csproj | 4 ++-- .../Ignia.Topics.Editor.Mvc.Host.csproj | 12 ++++++------ .../Ignia.Topics.Editor.Mvc.csproj | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 43a77e26..09547999 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -26,8 +26,8 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 8be2dd39..6c058bf9 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -7,12 +7,12 @@ - - - - - - + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index a0a49288..d8119a73 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -25,9 +25,9 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + From 97180519d8876cc162d64f00e9b80f5c961d1e2b Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Thu, 14 Nov 2019 13:41:59 -0800 Subject: [PATCH 560/637] Improved comments --- .../Editor/Controllers/EditorController.cs | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index 0fddb3ed..eef90507 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -103,6 +103,21 @@ protected ContentTypeDescriptor GetContentType(string contentType) => _topicRepo .Where(t => t.Key.Equals(contentType)) .First(); + /*========================================================================================================================== + | GET EDITOR VIEW MODEL + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Given a and any arguments from the corresponding action, constructs a new + /// , including a mapped . + /// + /// + /// This helps centralize the logic between e.g. and . + /// + /// The strongly-typed of the topic. + /// Determines whether the topic represents a new or existing object. + /// Determines whether whether the view is being displayed within a modal window. + /// The Content Type associated with the current request. protected async Task GetEditorViewModel( ContentTypeDescriptor contentTypeDescriptor, bool isNew, @@ -161,14 +176,15 @@ bool isModal } - - /*========================================================================================================================== | [GET] EDIT \-------------------------------------------------------------------------------------------------------------------------*/ /// /// Present an editor view bound to a specific topic. /// + /// Determines whether the topic represents a new or existing object. + /// The key name of the representing the topic. + /// Determines whether whether the view is being displayed within a modal window. public async Task Edit(bool isNew = false, string contentType = null, bool isModal = false) { /*------------------------------------------------------------------------------------------------------------------------ @@ -195,6 +211,9 @@ public async Task Edit(bool isNew = false, string contentType = n /// Handles postback from the editor, based on an . /// /// An instance of the constructed from the HTTP Post. + /// Determines whether the topic represents a new or existing object. + /// The key name of the representing the topic. + /// Determines whether whether the view is being displayed within a modal window. [HttpPost] public async Task Edit( EditorBindingModel model, From b45b91c4cf81dc06cf0052f5bbf098d79e8bbdec Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 15 Nov 2019 10:57:38 -0800 Subject: [PATCH 561/637] Allow `FileListViewComponent` to silently fail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, if `FileListViewComponent` couldn't find the directory path for some reason, it would throw an exception that would prevent the entire page from loading. That isn't preferred. This mitigates that issue—though, in a future version, we probably want to relay this warning to the user interface. --- .../Areas/Editor/Components/FileListViewComponent.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index a373677a..98bc00ba 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -120,6 +120,8 @@ public List GetFiles(string inheritedValue, FileListAttributeTop /*------------------------------------------------------------------------------------------------------------------------ | GET ALL FILES \-----------------------------------------------------------------------------------------------------------------------*/ + if (!Directory.Exists(_webHostEnvironment.WebRootPath + attribute.Path)) return files; + var foundFiles = Directory.GetFiles(_webHostEnvironment.WebRootPath + attribute.Path, searchPattern, searchOption); if (!String.IsNullOrEmpty(inheritedValue)) { From 3c79ffe224612221351067b26ddd3321372e54bf Mon Sep 17 00:00:00 2001 From: Jeremy Caney Date: Fri, 15 Nov 2019 11:40:29 -0800 Subject: [PATCH 562/637] Provided error handling for invalid `FileListViewComponent`'s `path` The calculated `AbsolutePath` is now explicitly defined and relayed via the view model, so the view can conditionally display it if the `Files` collection is empty. --- .../Components/FileListViewComponent.cs | 12 +++++++---- .../Models/FileListAttributeViewModel.cs | 12 +++++++++++ .../Editor/Components/FileList/Default.cshtml | 21 ++++++++++++------- 3 files changed, 34 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index 98bc00ba..6f169e82 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -74,7 +74,8 @@ string htmlFieldPrefix /*------------------------------------------------------------------------------------------------------------------------ | Set model values \-----------------------------------------------------------------------------------------------------------------------*/ - model!.Files = GetFiles(model.InheritedValue, attribute); + model.AbsolutePath = _webHostEnvironment.ContentRootPath + attribute.Path; + model.Files = GetFiles(model.InheritedValue, attribute, model.AbsolutePath); /*------------------------------------------------------------------------------------------------------------------------ | Return view with view model @@ -89,7 +90,11 @@ string htmlFieldPrefix /// /// Retrieves a collection of files in a directory, given the provided . /// - public List GetFiles(string inheritedValue, FileListAttributeTopicViewModel attribute) { + public List GetFiles( + string inheritedValue, + FileListAttributeTopicViewModel attribute, + string absolutePath + ) { /*------------------------------------------------------------------------------------------------------------------------ | INSTANTIATE OBJECTS @@ -102,6 +107,7 @@ public List GetFiles(string inheritedValue, FileListAttributeTop | Validate input \-----------------------------------------------------------------------------------------------------------------------*/ if (String.IsNullOrEmpty(attribute.Path)) return files; + if (!Directory.Exists(absolutePath)) return files; /*------------------------------------------------------------------------------------------------------------------------ | Filter file list based on extension @@ -120,8 +126,6 @@ public List GetFiles(string inheritedValue, FileListAttributeTop /*------------------------------------------------------------------------------------------------------------------------ | GET ALL FILES \-----------------------------------------------------------------------------------------------------------------------*/ - if (!Directory.Exists(_webHostEnvironment.WebRootPath + attribute.Path)) return files; - var foundFiles = Directory.GetFiles(_webHostEnvironment.WebRootPath + attribute.Path, searchPattern, searchOption); if (!String.IsNullOrEmpty(inheritedValue)) { diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs index a4a8fb4e..b7189aef 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Models/FileListAttributeViewModel.cs @@ -50,6 +50,18 @@ public FileListAttributeViewModel( /// public List Files { get; set; } = new List(); + /*========================================================================================================================== + | ABSOLUTE PATH + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides the absolute path where files are being displayed from. + /// + /// + /// While the relative file path can be retrieved from , that + /// doesn't include the base path of the web application. The addresses this. + /// + public string AbsolutePath { get; set; } + } // Class } // Namespace diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml index c41aae0d..d14dbcfd 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/FileList/Default.cshtml @@ -4,10 +4,17 @@ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; } - \ No newline at end of file +@if (Model.Files.Count > 0) { + +} + +else { + + The file location '@Model.AbsolutePath' could not be located, so the file list is not being displayed. +} \ No newline at end of file From 45b33907a2efc80d1847097f1019fd907f487736 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Fri, 15 Nov 2019 12:34:44 -0800 Subject: [PATCH 563/637] Missed replaces for `absolutePath` It makes sense to reuse the `absolutePath` variable wherever possible. But this is especially important here since the implementation of `absolutePath` in #3c79ffe relies on a different source property for calculating the base application path. This change was actually complete previously, but somehow didn't get picked up by git. --- .../Areas/Editor/Components/FileListViewComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs index 6f169e82..7e4ba8b3 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FileListViewComponent.cs @@ -126,13 +126,13 @@ string absolutePath /*------------------------------------------------------------------------------------------------------------------------ | GET ALL FILES \-----------------------------------------------------------------------------------------------------------------------*/ - var foundFiles = Directory.GetFiles(_webHostEnvironment.WebRootPath + attribute.Path, searchPattern, searchOption); + var foundFiles = Directory.GetFiles(absolutePath, searchPattern, searchOption); if (!String.IsNullOrEmpty(inheritedValue)) { files.Add(new SelectListItem("", inheritedValue)); } foreach (var foundFile in foundFiles) { - var fileName = foundFile.Replace(_webHostEnvironment.WebRootPath + attribute.Path, ""); + var fileName = foundFile.Replace(absolutePath, ""); var fileNameKey = fileName.Replace("." + attribute.Extension, ""); files.Add(new SelectListItem(fileNameKey, fileName)); } From 0abf527cd8b6ab68a31e122f00c12036623e14a0 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sun, 17 Nov 2019 16:25:22 -0800 Subject: [PATCH 564/637] Updated to the latest patch of *OnTopic Library* With regard to the editor, this notably includes a breaking change due to the reorganization of mapping attributes to a new `Annotations` namespace. --- .../Ignia.Topics.Editor.Models.csproj | 4 ++-- .../Metadata/ContentTypeDescriptorTopicViewModel.cs | 2 +- .../NestedTopicListAttributeTopicViewModel.cs | 2 +- .../TopicReferenceAttributeTopicViewModel.cs | 2 +- .../Ignia.Topics.Editor.Mvc.Host.csproj | 12 ++++++------ .../Ignia.Topics.Editor.Mvc.csproj | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index 09547999..a329320d 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -26,8 +26,8 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs index 688fb4fd..d5752d00 100644 --- a/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/ContentTypeDescriptorTopicViewModel.cs @@ -5,7 +5,7 @@ \=============================================================================================================================*/ using System.Collections.Generic; using System.Linq; -using Ignia.Topics.Mapping; +using Ignia.Topics.Mapping.Annotations; using Ignia.Topics.Metadata; namespace Ignia.Topics.Editor.Models.Metadata { diff --git a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs index d27c5036..62c2094d 100644 --- a/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/NestedTopicListAttributeTopicViewModel.cs @@ -3,7 +3,7 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ -using Ignia.Topics.Mapping; +using Ignia.Topics.Mapping.Annotations; using Ignia.Topics.Metadata; using System; using System.Collections.Generic; diff --git a/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs b/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs index 52680736..5d6dca10 100644 --- a/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs +++ b/Ignia.Topics.Editor.Models/Metadata/TopicReferenceAttributeTopicViewModel.cs @@ -3,7 +3,7 @@ | Client Ignia, LLC | Project Topics Library \=============================================================================================================================*/ -using Ignia.Topics.Mapping; +using Ignia.Topics.Mapping.Annotations; using Ignia.Topics.Metadata; using Ignia.Topics.ViewModels; using System; diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 6c058bf9..6bfa624a 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -7,12 +7,12 @@ - - - - - - + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index d8119a73..406b97dc 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -25,9 +25,9 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + From 642fbcd51bdf1b5e90a5ab2a9aa9f6fb13074864 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sun, 17 Nov 2019 16:25:55 -0800 Subject: [PATCH 565/637] Introduced a new `MapTopicEditorRoute()` extension for simplicity --- Ignia.Topics.Editor.Mvc.Host/Startup.cs | 7 +------ .../EditorServiceCollectionExtensions.cs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/Startup.cs b/Ignia.Topics.Editor.Mvc.Host/Startup.cs index decd5422..a47f3ce6 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Startup.cs +++ b/Ignia.Topics.Editor.Mvc.Host/Startup.cs @@ -136,12 +136,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { \-----------------------------------------------------------------------------------------------------------------------*/ app.UseEndpoints(endpoints => { endpoints.MapControllers(); - endpoints.MapAreaControllerRoute( - name: "TopicEditor", - areaName: "Editor", - pattern: "Ontopic/{action}/{**path}", - defaults: new { controller = "Editor" } - ); + endpoints.MapTopicEditorRoute(); }); } diff --git a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs index f227b969..e1605481 100644 --- a/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs +++ b/Ignia.Topics.Editor.Mvc/EditorServiceCollectionExtensions.cs @@ -6,6 +6,8 @@ using System; using Ignia.Topics.Editor.Mvc.Infrastructure; using Ignia.Topics.Internal.Diagnostics; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -46,5 +48,21 @@ public static IMvcBuilder AddTopicEditor(this IMvcBuilder services) { return services; } + /*========================================================================================================================== + | EXTENSION: MAP TOPIC ROUTE (IENDPOINTROUTEBUILDER) + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Adds an MVC route for handling OnTopic related requests, and maps it to the by default. + /// + public static ControllerActionEndpointConventionBuilder MapTopicEditorRoute( + this IEndpointRouteBuilder routes + ) => + routes.MapAreaControllerRoute( + name: "TopicEditor", + areaName: "Editor", + pattern: "OnTopic/{action}/{**path}", + defaults: new { controller = "Editor" } + ); + } // Class } // Namespace \ No newline at end of file From ad2f43fa8726c7b6e91acb4b396c629f6befde09 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sun, 17 Nov 2019 17:17:21 -0800 Subject: [PATCH 566/637] Introduced a `StandardEditorComposer` I'm not in love with this approach, and may reevaluate it prior to launch, but the `StandardEditorComposer` provides a basic implementation for aiding in the composition of dependency graphs around the standard out-of-the-box view components required by the editor, and thus helps eliminate the need for caller applications to know and register every single attribute type view component. That said, this approach introduces some tradeoffs; namely, it presumes certain lifestyles, and mandates an `ITopicRoutingService` be created, even though only one of the view components (`FilePathViewComponent`) even requires it. That said, this assumptions should be valid in the vast majority of use cases. --- .../SampleActivator.cs | 87 +++++-------- .../StandardEditorComposer.cs | 114 ++++++++++++++++++ 2 files changed, 141 insertions(+), 60 deletions(-) create mode 100644 Ignia.Topics.Editor.Mvc/StandardEditorComposer.cs diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index d16e7ecc..80ad06f2 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -9,9 +9,11 @@ using Ignia.Topics.AspNetCore.Mvc.Components; using Ignia.Topics.Data.Caching; using Ignia.Topics.Data.Sql; +using Ignia.Topics.Editor.Mvc; using Ignia.Topics.Editor.Mvc.Components; using Ignia.Topics.Editor.Mvc.Controllers; using Ignia.Topics.Editor.Mvc.Infrastructure; +using Ignia.Topics.Internal.Diagnostics; using Ignia.Topics.Mapping; using Ignia.Topics.Repositories; using Ignia.Topics.ViewModels; @@ -38,6 +40,7 @@ public class SampleActivator : IControllerActivator, IViewComponentActivator { private readonly ITopicMappingService _topicMappingService; private readonly ITopicRepository _topicRepository; private readonly IWebHostEnvironment _webHostEnvironment; + private readonly StandardEditorComposer _standardEditorComposer; private readonly Topic _rootTopic; /*========================================================================================================================== @@ -53,20 +56,32 @@ public class SampleActivator : IControllerActivator, IViewComponentActivator { /// public SampleActivator(string connectionString, IWebHostEnvironment webHostEnvironment) { + /*------------------------------------------------------------------------------------------------------------------------ + | Verify dependencies + \-----------------------------------------------------------------------------------------------------------------------*/ + Contract.Requires(connectionString, nameof(connectionString)); + Contract.Requires(webHostEnvironment, nameof(webHostEnvironment)); + /*------------------------------------------------------------------------------------------------------------------------ | Initialize Topic Repository \-----------------------------------------------------------------------------------------------------------------------*/ - _webHostEnvironment = webHostEnvironment; - var sqlTopicRepository = new SqlTopicRepository(connectionString); - var cachedTopicRepository = new CachedTopicRepository(sqlTopicRepository); + var sqlTopicRepository = new SqlTopicRepository(connectionString); + var cachedTopicRepository = new CachedTopicRepository(sqlTopicRepository); /*------------------------------------------------------------------------------------------------------------------------ | Preload repository \-----------------------------------------------------------------------------------------------------------------------*/ - _topicRepository = cachedTopicRepository; - _typeLookupService = new EditorViewModelLookupService(); - _topicMappingService = new TopicMappingService(_topicRepository, _typeLookupService); - _rootTopic = _topicRepository.Load(); + _topicRepository = cachedTopicRepository; + _typeLookupService = new EditorViewModelLookupService(); + _topicMappingService = new TopicMappingService(_topicRepository, _typeLookupService); + _rootTopic = _topicRepository.Load(); + + /*------------------------------------------------------------------------------------------------------------------------ + | Establish standard editor composer + \-----------------------------------------------------------------------------------------------------------------------*/ + _webHostEnvironment = webHostEnvironment; + _standardEditorComposer = new StandardEditorComposer(_topicRepository, _webHostEnvironment); + } @@ -110,23 +125,9 @@ public object Create(ViewComponentContext context) { /*------------------------------------------------------------------------------------------------------------------------ | Configure and return appropriate view component \-----------------------------------------------------------------------------------------------------------------------*/ - if (type == typeof(LastModifiedViewComponent)) { - return new LastModifiedViewComponent(); - } - if (type == typeof(BooleanViewComponent)) { - return new BooleanViewComponent(); - } - if (type == typeof(DateTimeViewComponent)) { - return new DateTimeViewComponent(); - } - if (type == typeof(DisplayOptionsViewComponent)) { - return new DisplayOptionsViewComponent(); - } - if (type == typeof(FileListViewComponent)) { - return new FileListViewComponent(_webHostEnvironment); - } - if (type == typeof(FilePathViewComponent)) { - return new FilePathViewComponent( + if (_standardEditorComposer.IsEditorComponent(type)) { + return _standardEditorComposer.ActivateEditorComponent( + type, new MvcTopicRoutingService( _topicRepository, new Uri($"https://{context.ViewContext.HttpContext.Request.Host}/{context.ViewContext.HttpContext.Request.Path}"), @@ -134,42 +135,8 @@ public object Create(ViewComponentContext context) { ) ); } - if (type == typeof(HtmlViewComponent)) { - return new HtmlViewComponent(); - } - if (type == typeof(LastModifiedViewComponent)) { - return new LastModifiedViewComponent(); - } - if (type == typeof(LastModifiedByViewComponent)) { - return new LastModifiedByViewComponent(); - } - if (type == typeof(NestedTopicListViewComponent)) { - return new NestedTopicListViewComponent(_topicRepository); - } - if (type == typeof(NumberViewComponent)) { - return new NumberViewComponent(); - } - if (type == typeof(RelationshipViewComponent)) { - return new RelationshipViewComponent(); - } - if (type == typeof(TextViewComponent)) { - return new TextViewComponent(); - } - if (type == typeof(TextAreaViewComponent)) { - return new TextAreaViewComponent(); - } - if (type == typeof(TokenizedTopicListViewComponent)) { - return new TokenizedTopicListViewComponent(_topicRepository); - } - if (type == typeof(TopicListViewComponent)) { - return new TopicListViewComponent(_topicRepository); - } - if (type == typeof(TopicReferenceViewComponent)) { - return new TopicReferenceViewComponent(); - } - else { - throw new Exception($"Unknown view component {type.Name}"); - } + + throw new Exception($"Unknown view component {type.Name}"); } diff --git a/Ignia.Topics.Editor.Mvc/StandardEditorComposer.cs b/Ignia.Topics.Editor.Mvc/StandardEditorComposer.cs new file mode 100644 index 00000000..bfef13a1 --- /dev/null +++ b/Ignia.Topics.Editor.Mvc/StandardEditorComposer.cs @@ -0,0 +1,114 @@ +/*============================================================================================================================== +| Author Ignia, LLC +| Client Ignia, LLC +| Project Topics Library +\=============================================================================================================================*/ +using System; +using Ignia.Topics.Editor.Mvc.Components; +using Ignia.Topics.Editor.Mvc.Infrastructure; +using Ignia.Topics.Internal.Diagnostics; +using Ignia.Topics.Repositories; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection.Extensions; + +namespace Ignia.Topics.Editor.Mvc { + + /*============================================================================================================================ + | CLASS: STANDARD EDITOR COMPOSER + \---------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides tools that aid in composing dependency graphs for a standard topic editor configuration. + /// + /// + /// This should only be used for handling out-of-the-box scenarios. For topic editor instances relying on custom attribute + /// types, or which need fine-tuned control over dependency lifestyles, it may be appropriate to manually compose + /// dependencies. + /// + public class StandardEditorComposer { + + /*========================================================================================================================== + | PRIVATE INSTANCES + \-------------------------------------------------------------------------------------------------------------------------*/ + private readonly ITopicRepository _topicRepository; + private readonly IWebHostEnvironment _webHostEnvironment; + + /*========================================================================================================================== + | CONSTRUCTOR + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Establishes a new instance of a with dependencies which are expected to have a singleton + /// lifestyle. + /// + /// + /// The constructor is responsible for establishing dependencies with the singleton lifestyle so that they are available + /// to all requests. If this isn't the appropriate lifestyle for these dependencies given the specific requirements of the + /// application, then the components should be composed separately, instead of relying on the convenience of the . + /// + public StandardEditorComposer(ITopicRepository topicRepository, IWebHostEnvironment webHostEnvironment) { + + /*------------------------------------------------------------------------------------------------------------------------ + | Validate dependencies + \-----------------------------------------------------------------------------------------------------------------------*/ + Contract.Requires(topicRepository, nameof(topicRepository)); + Contract.Requires(webHostEnvironment, nameof(webHostEnvironment)); + + /*------------------------------------------------------------------------------------------------------------------------ + | Initialize Topic Repository + \-----------------------------------------------------------------------------------------------------------------------*/ + _topicRepository = topicRepository; + _webHostEnvironment = webHostEnvironment; + + } + + /*========================================================================================================================== + | METHOD: IS EDITOR COMPONENT? + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Determines whether a given type is capable of being activated by the method. + /// + public bool IsEditorComponent(Type type) => + typeof(StandardEditorComposer).Assembly.Equals(type.Assembly) && + typeof(ViewComponent).IsAssignableFrom(type); + + /*========================================================================================================================== + | METHOD: ACTIVATE EDITOR COMPONENT + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Given a type, as well as any potential depenencies, activates the type. + /// + /// + /// This only works because most of the dependencies are either a) cheap to construct, or b) expected to use the singleton + /// lifestyle. If in a future version we end up with more expensive transient dependencies, this approach should be + /// reevaluated. + /// + public ViewComponent ActivateEditorComponent( + Type type, + ITopicRoutingService topicRoutingService + ) => + type.Name switch { + nameof(BooleanViewComponent) => new BooleanViewComponent(), + nameof(DateTimeViewComponent) => new DateTimeViewComponent(), + nameof(DisplayOptionsViewComponent) => new DisplayOptionsViewComponent(), + nameof(FileListViewComponent) => new FileListViewComponent(_webHostEnvironment), + nameof(FilePathViewComponent) => new FilePathViewComponent(topicRoutingService), + nameof(HtmlViewComponent) => new HtmlViewComponent(), + nameof(LastModifiedViewComponent) => new LastModifiedViewComponent(), + nameof(LastModifiedByViewComponent) => new LastModifiedByViewComponent(), + nameof(NestedTopicListViewComponent) => new NestedTopicListViewComponent(_topicRepository), + nameof(NumberViewComponent) => new NumberViewComponent(), + nameof(RelationshipViewComponent) => new RelationshipViewComponent(), + nameof(TextViewComponent) => new TextViewComponent(), + nameof(TextAreaViewComponent) => new TextAreaViewComponent(), + nameof(TokenizedTopicListViewComponent) => new TokenizedTopicListViewComponent(_topicRepository), + nameof(TopicListViewComponent) => new TopicListViewComponent(_topicRepository), + nameof(TopicReferenceViewComponent) => new TopicReferenceViewComponent(), + _ => throw new Exception($"Unknown view component {type.Name}") + }; + + } // Class +} // Namespace \ No newline at end of file From bda589fe7184b7a5a2cb4aec4d1b6fff0628b085 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Fri, 22 Nov 2019 12:15:22 -0800 Subject: [PATCH 567/637] Updated path to `customConfig` As part of a recent change to how dependency and view scripts were distributed, the `/CkEditor` folder is no longer nested in `/Vendor`. This makes more sense as it no longer contains vendor-specific files, but is rather acting as a (partial) view-specific script. --- .../Areas/Editor/Views/Editor/Components/HTML/Default.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml index 5957110a..c8540850 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/HTML/Default.cshtml @@ -48,7 +48,7 @@ CKEDITOR.replace(textareaId, { height : '@Model.AttributeDescriptor.Height', resize_maxHeight : '@(Model.AttributeDescriptor.Height+300)', - customConfig : '/_content/Ignia.Topics.Editor.Mvc/Shared/Scripts/Vendor/CkEditor/customConfig.js' + customConfig : '/_content/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/customConfig.js' }); } \ No newline at end of file From 40da9e72e0936a5ddba6ee7d6dead7b5e32b3db7 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Fri, 22 Nov 2019 20:27:38 -0800 Subject: [PATCH 568/637] Fixed condition to properly exclude time, when appropriate --- .../Editor/Views/Editor/Components/DateTime/Default.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml index 01b21b45..a8bdd6ae 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml @@ -30,7 +30,7 @@ separator : '@Model.AttributeDescriptor.DateTimeSeparator', } - @if (Model.AttributeDescriptor.IncludeDatePicker?? true) { + @if (Model.AttributeDescriptor.IncludeTimePicker?? true) { timeFormat : '@Model.AttributeDescriptor.TimeFormat', defaultTime : '@Model.GetDefaultTime()', From 6aec59779a6c726aa59925dd1423a654c9e8c8dc Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sat, 23 Nov 2019 23:30:22 -0800 Subject: [PATCH 569/637] Bumped **Topic Library** version This version includes, among other changes, the deprecation of the `MvcTopicRoutingService`, instead preferring the new `ITopicRepository.Load(RouteData)` extension method, which does much the same thing. --- .../Ignia.Topics.Editor.Models.csproj | 4 ++-- .../Ignia.Topics.Editor.Mvc.Host.csproj | 12 ++++++------ .../Ignia.Topics.Editor.Mvc.csproj | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj index a329320d..3a493d7e 100644 --- a/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj +++ b/Ignia.Topics.Editor.Models/Ignia.Topics.Editor.Models.csproj @@ -26,8 +26,8 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj index 6bfa624a..309796a4 100644 --- a/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj +++ b/Ignia.Topics.Editor.Mvc.Host/Ignia.Topics.Editor.Mvc.Host.csproj @@ -7,12 +7,12 @@ - - - - - - + + + + + + diff --git a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj index 406b97dc..299cde6d 100644 --- a/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj +++ b/Ignia.Topics.Editor.Mvc/Ignia.Topics.Editor.Mvc.csproj @@ -25,9 +25,9 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + From 588d791b40fb56bb591e02ea9190851c0cf5ade0 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sat, 23 Nov 2019 23:31:54 -0800 Subject: [PATCH 570/637] Integrated new `ITopicRepository.Load(RouteData)` extension The new `ITopicRepository.Load(RouteData)` extension replaces the (now deprecated) `ITopicRoutingService` (e.g., `MvcTopicRoutingService`). These effectively do the same thing, but requires one less level of abstraction, while also simplifying the construction of the dependency graph (by allowing us to just pass the standard `ITopicRepository` in, instead of also constructing a new `ITopicRoutingService`). --- .../SampleActivator.cs | 36 +----------------- .../Components/FilePathViewComponent.cs | 38 ++++++++++++++++--- .../Editor/Controllers/EditorController.cs | 7 +--- .../StandardEditorComposer.cs | 4 +- 4 files changed, 38 insertions(+), 47 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs index 80ad06f2..41e3a311 100644 --- a/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs +++ b/Ignia.Topics.Editor.Mvc.Host/SampleActivator.cs @@ -82,7 +82,6 @@ public SampleActivator(string connectionString, IWebHostEnvironment webHostEnvir _webHostEnvironment = webHostEnvironment; _standardEditorComposer = new StandardEditorComposer(_topicRepository, _webHostEnvironment); - } /*========================================================================================================================== @@ -103,7 +102,7 @@ public object Create(ControllerContext context) { | Configure and return appropriate controller \-----------------------------------------------------------------------------------------------------------------------*/ if (type == typeof(EditorController)) { - return CreateEditorController(context); + return new EditorController(_topicRepository, _topicMappingService); } else { throw new Exception($"Unknown controller {type.Name}"); @@ -126,44 +125,13 @@ public object Create(ViewComponentContext context) { | Configure and return appropriate view component \-----------------------------------------------------------------------------------------------------------------------*/ if (_standardEditorComposer.IsEditorComponent(type)) { - return _standardEditorComposer.ActivateEditorComponent( - type, - new MvcTopicRoutingService( - _topicRepository, - new Uri($"https://{context.ViewContext.HttpContext.Request.Host}/{context.ViewContext.HttpContext.Request.Path}"), - context.ViewContext.RouteData - ) - ); + return _standardEditorComposer.ActivateEditorComponent(type, _topicRepository); } throw new Exception($"Unknown view component {type.Name}"); } - /*========================================================================================================================== - | METHOD: CREATE EDITOR CONTROLLER - \-------------------------------------------------------------------------------------------------------------------------*/ - /// - /// Responds to a request to create a instance, the default controller for the editor area. - /// - private EditorController CreateEditorController(ControllerContext context) { - - /*------------------------------------------------------------------------------------------------------------------------ - | Register - \-----------------------------------------------------------------------------------------------------------------------*/ - var mvcTopicRoutingService = new MvcTopicRoutingService( - _topicRepository, - new Uri($"https://{context.HttpContext.Request.Host}/{context.HttpContext.Request.Path}"), - context.RouteData - ); - - /*------------------------------------------------------------------------------------------------------------------------ - | Return EditorController - \-----------------------------------------------------------------------------------------------------------------------*/ - return new EditorController(_topicRepository, mvcTopicRoutingService, _topicMappingService); - - } - /*========================================================================================================================== | METHOD: RELEASE \-------------------------------------------------------------------------------------------------------------------------*/ diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs index bc52782a..29050879 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Components/FilePathViewComponent.cs @@ -4,6 +4,7 @@ | Project Topics Library \=============================================================================================================================*/ using Microsoft.AspNetCore.Mvc; +using Ignia.Topics.AspNetCore.Mvc; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components; using Ignia.Topics.Editor.Models.Metadata; @@ -11,6 +12,8 @@ using System; using System.Linq; using System.Threading.Tasks; +using Ignia.Topics.Repositories; +using Ignia.Topics.Internal.Diagnostics; #nullable enable @@ -24,6 +27,11 @@ namespace Ignia.Topics.Editor.Mvc.Components { /// public class FilePathViewComponent: ViewComponent { + /*========================================================================================================================== + | PRIVATE VARIABLES + \-------------------------------------------------------------------------------------------------------------------------*/ + private Topic? _currentTopic = null; + /*========================================================================================================================== | CONSTRUCTOR \-------------------------------------------------------------------------------------------------------------------------*/ @@ -39,13 +47,23 @@ public class FilePathViewComponent: ViewComponent { /// The is still passed not only for consistency, but also to spare the overhead and /// redundant logic of mapping it again, since this was already done in . /// - public FilePathViewComponent(ITopicRoutingService topicRoutingService) : base() { - if (topicRoutingService == null) { - throw new ArgumentNullException(nameof(topicRoutingService)); - } - CurrentTopic = topicRoutingService.GetCurrentTopic() ?? throw new NullReferenceException(nameof(CurrentTopic)); + public FilePathViewComponent(ITopicRepository topicRepository) : base() { + Contract.Requires(topicRepository, nameof(topicRepository)); + TopicRepository = topicRepository; } + /*========================================================================================================================== + | TOPIC REPOSITORY + \-------------------------------------------------------------------------------------------------------------------------*/ + /// + /// Provides a reference to the in order to allow the current topic to be identified based + /// on the route data. + /// + /// + /// The associated with the . + /// + protected ITopicRepository TopicRepository { get; } + /*========================================================================================================================== | CURRENT TOPIC \-------------------------------------------------------------------------------------------------------------------------*/ @@ -53,7 +71,15 @@ public FilePathViewComponent(ITopicRoutingService topicRoutingService) : base() /// Provides a reference to the current topic associated with the request. /// /// The Topic associated with the current request. - protected Topic CurrentTopic { get; set; } + protected Topic? CurrentTopic { + get { + if (_currentTopic == null) { + _currentTopic = TopicRepository.Load(RouteData); + } + Contract.Assume(_currentTopic, nameof(_currentTopic)); + return _currentTopic; + } + } /*========================================================================================================================== | METHOD: INVOKE diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs index eef90507..d2cbff98 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Controllers/EditorController.cs @@ -8,6 +8,7 @@ using System.Linq; using System.Threading.Tasks; using Ignia.Topics.Collections; +using Ignia.Topics.AspNetCore.Mvc; using Ignia.Topics.Editor.Models; using Ignia.Topics.Editor.Models.Components.BindingModels; using Ignia.Topics.Editor.Models.Queryable; @@ -33,7 +34,6 @@ public class EditorController : Controller { | PRIVATE VARIABLES \-------------------------------------------------------------------------------------------------------------------------*/ private readonly ITopicRepository _topicRepository; - private readonly ITopicRoutingService _topicRoutingService; private readonly ITopicMappingService _topicMappingService; private Topic _currentTopic = null; @@ -46,7 +46,6 @@ public class EditorController : Controller { /// A topic controller for loading OnTopic views. public EditorController( ITopicRepository topicRepository, - ITopicRoutingService topicRoutingService, ITopicMappingService topicMappingService ) { @@ -54,14 +53,12 @@ ITopicMappingService topicMappingService | Validate input \-----------------------------------------------------------------------------------------------------------------------*/ Contract.Requires(topicRepository != null, "A concrete implementation of an ITopicRepository is required."); - Contract.Requires(topicRoutingService != null, "A concrete implementation of an ITopicRoutingService is required."); Contract.Requires(topicMappingService != null, "A concrete implementation of an ITopicMappingService is required."); /*------------------------------------------------------------------------------------------------------------------------ | Set values locally \-----------------------------------------------------------------------------------------------------------------------*/ _topicRepository = topicRepository; - _topicRoutingService = topicRoutingService; _topicMappingService = topicMappingService; } @@ -85,7 +82,7 @@ ITopicMappingService topicMappingService protected Topic CurrentTopic { get { if (_currentTopic == null) { - _currentTopic = _topicRoutingService.GetCurrentTopic(); + _currentTopic = TopicRepository.Load(RouteData); } return _currentTopic; } diff --git a/Ignia.Topics.Editor.Mvc/StandardEditorComposer.cs b/Ignia.Topics.Editor.Mvc/StandardEditorComposer.cs index bfef13a1..b786b3e8 100644 --- a/Ignia.Topics.Editor.Mvc/StandardEditorComposer.cs +++ b/Ignia.Topics.Editor.Mvc/StandardEditorComposer.cs @@ -88,14 +88,14 @@ public bool IsEditorComponent(Type type) => /// public ViewComponent ActivateEditorComponent( Type type, - ITopicRoutingService topicRoutingService + ITopicRepository topicRepository ) => type.Name switch { nameof(BooleanViewComponent) => new BooleanViewComponent(), nameof(DateTimeViewComponent) => new DateTimeViewComponent(), nameof(DisplayOptionsViewComponent) => new DisplayOptionsViewComponent(), nameof(FileListViewComponent) => new FileListViewComponent(_webHostEnvironment), - nameof(FilePathViewComponent) => new FilePathViewComponent(topicRoutingService), + nameof(FilePathViewComponent) => new FilePathViewComponent(topicRepository), nameof(HtmlViewComponent) => new HtmlViewComponent(), nameof(LastModifiedViewComponent) => new LastModifiedViewComponent(), nameof(LastModifiedByViewComponent) => new LastModifiedByViewComponent(), From 40db56ab8c0c365a38f152043fc8bf863cffa122 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sun, 24 Nov 2019 00:26:20 -0800 Subject: [PATCH 571/637] Fixed broken link to `StylesSet.js` As part of a recent change to how dependency and view scripts were distributed, the `/CkEditor` folder is no longer nested in `/Vendor`. This makes more sense as it no longer contains vendor-specific files, but is rather acting as a (partial) view-specific script. See #bda589f for similar issue. --- Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/CustomConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/CustomConfig.js b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/CustomConfig.js index 8e20644c..e3f6c37b 100644 --- a/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/CustomConfig.js +++ b/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/CustomConfig.js @@ -70,7 +70,7 @@ CKEDITOR.editorConfig = function( config ) { 'Times New Roman/Times New Roman, Times, serif;' + 'Verdana'; //Call external styles set definition for Styles dropdown menu - config.stylesCombo_stylesSet = 'OnTopicStyleSet:/_content/Ignia.Topics.Editor.Mvc/Shared/Scripts/Vendor/CkEditor/StylesSet.js'; + config.stylesCombo_stylesSet = 'OnTopicStyleSet:/_content/Ignia.Topics.Editor.Mvc/Shared/Scripts/CkEditor/StylesSet.js'; //Set classes for styles defined in styles set config.bodyClass = 'CKEPanel'; From d3f2b8756061ec604c8fe8de31cded57126c36b8 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sun, 24 Nov 2019 13:02:26 -0800 Subject: [PATCH 572/637] Fixed conditions for disabling date and/or time Previously, the _options_ on the `datetimepicker` were conditional, but the _method_ name was not. As such, it _always_ delivered a `datetimepicker`. Now, it will conditionally display a `datepicker`, `timepicker`, or `datetimepicker` depending on the `Model.AttributeDescriptor`'s `IncludeDatePicker` and `IncludeTimePicker` properties. --- .../Views/Editor/Components/DateTime/Default.cshtml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml index a8bdd6ae..d9982883 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/DateTime/Default.cshtml @@ -2,6 +2,8 @@ @{ Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; + var includeDatePicker = Model.AttributeDescriptor.IncludeDatePicker?? true; + var includeTimePicker = Model.AttributeDescriptor.IncludeTimePicker?? true; } $(function() { - + //Instantiate date and/or time picker $('#@Html.IdFor(m => m.Value)') - .datetimepicker({ - @if (Model.AttributeDescriptor.IncludeDatePicker?? true) { + .@(includeDatePicker? "date" : "")@(includeTimePicker? "time" : "")picker({ + @if (includeDatePicker) { dateFormat : '@Model.AttributeDescriptor.DateFormat', defaultDate : '@Model.GetDefaultDate()', } - @if ((Model.AttributeDescriptor.IncludeDatePicker?? true) && (Model.AttributeDescriptor.IncludeTimePicker?? true)) { + @if (includeDatePicker && includeTimePicker) { separator : '@Model.AttributeDescriptor.DateTimeSeparator', } - @if (Model.AttributeDescriptor.IncludeTimePicker?? true) { + @if (includeTimePicker) { timeFormat : '@Model.AttributeDescriptor.TimeFormat', defaultTime : '@Model.GetDefaultTime()', From 59b89c1aada43101b4d4e063ecc6f81124485299 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sun, 24 Nov 2019 13:03:27 -0800 Subject: [PATCH 573/637] Introduced Ignia's favicon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can't just be placed in the `wwwroot` because, as a **Razor Class Library**, it must be namespaced by the application—i.e., `~/_content/Ignia.Topics.Editor.Mvc/`. --- .../Areas/Editor/Views/Shared/_Layout.cshtml | 4 ++++ Ignia.Topics.Editor.Mvc/wwwroot/favicon.ico | Bin 0 -> 15086 bytes 2 files changed, 4 insertions(+) create mode 100644 Ignia.Topics.Editor.Mvc/wwwroot/favicon.ico diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml index 152d005f..03b0b8a8 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Shared/_Layout.cshtml @@ -3,6 +3,7 @@ + @ViewBag.Title - Ignia OnTopic @@ -20,6 +21,9 @@ + + + diff --git a/Ignia.Topics.Editor.Mvc/wwwroot/favicon.ico b/Ignia.Topics.Editor.Mvc/wwwroot/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..db9da02b33bfb585f701516fa341a273d5d1a811 GIT binary patch literal 15086 zcmd^`3vdvceHjMKP!!XUx>y@N0CvEIl_qxt7CY)v% zBe5Y1kIr-g!@w@;mus?mgEPTtpe)KZC=Z`g!DHYB@G~$Dln2=crC~b~ya5~+y9jH8 zY=hFU9S>~RSIV%!7lLeq(y+Y&90nf$$JuGtBy*$vd2_8@738C);WtO|b#fD}Pik+s zW}EBmSMXmACV`d!>_`i*x1KtJWR8BRH?|h&C!R&PFcKmm{{)Y*# zQGL94?n?*@1l%-=SbBkUrEQ$bP-xzg6*HWv;O+R9-cXk30i);5%SLcB<73 z|5J+ppNXHW`h>-EU$H8O-)~o8|A^u*TKb3i1f^qN4@5&d_!}4yWEYi&&p>cBXaq<5 zpyL?EK47bOz%bhGI~Mj_Y(NKa1g!ucdC!=j0m%EQ@RJu$5kK0w90cCeB8o|D3U?L# zSNcvJ;b71!abXD@;gvpjA9x460^~WG3z>4BzQjpZD0wwgl}1;9#gOtyu-lmSpLfxNBjZ4we|rZ z;{d^j;9+n{()$AMC?M}W|NTDp`ZDXs<_7z#aH;&Bj-8}`F}Q}&sqmf;(`Ofaw;9q7wZ1;!zuOa-Kcot9f zmmhV_yGP!=w}QPI{J-M;b28jpLio4Ce`XY)KM&3dG<=zGj|Tr@p8vjZw}$ZVf&Uyo zN8C01L*V{LEPs>rTgLtUBI+-5ql@GC{Q2-#!M#d@fA#Q%h5F0*-~a5%^*%7!U%t*Y z-1R`_EK%>EwY78Y&%yCn2*11+^E!Nf8+c{zcLA6So(4hBSQ86UcW#=5f+44`#n*mBXuY;a}->237VS3=L0qa0VfChOt4h-{6D;w+!d@n zGa`4*2z}*N4d84(ZP%qlQ5k3DYLjR}OPAr8tE#K@7 zJipD>b?Awo`*+=+BiK((OG7E;pnWh}?g8<0=Pv!ymu8g0o0cy+WKI1c5Vh{A_I)ot zJ1q^Rl!IJl^F;9X1o{_<2FANp%ykB^=G3k8t+4vi|C`ai z6X>+LYV+&N6LxR(PXUX7tY_DP9<2wur-1l%x8v)#jQ!XO^xh3*&1El;{q=d^BG5Oi z&C*OqyNn0acGZoq5FO~0y;ybbDDznh$UV7`zEzW^UVm9=pPf+uI#>U6bb9k%e`u5U zD0PsdDyjdn*V{7o{Aoh{n?@LWrT>Wjpfv=wF3)0<`k0SrSJsx+C)B^SZlrY*YtfgZ zP0jD3H5KQ`;yh4XLt;{KGe`JXGb{El-@5lr7&+2db zb>pmR_98~1>wOLV|HNi!dg?n%Li>V*`d`gmY}K%rRfn#yy(G0C$r@MD=S`yOo10wd z|0@#ee>pea8pvMg5Om4DpQ<$|{v6-v)1&kho5%Aj^TtOL>fe#Ol=k0fSEK!T4gI^& zKe||rQTFH`gm#$=>VC6SyPdg4Ye?ql!nvj=HT1v5ci^HZJ;mmszZUJAfVVfG>WhoN zj{d=!XYD>{-=v{mzR8o#mFb*2;GCVTyG;PkB-H;h`fD<+g)varUXc16{1^Q z8|XKO?cXPRfnj@*{`(+f(bUe5)EBM6qi(>N8 zA$>^Jq@wzZKTp*kwHK=1gDtfGdBtecu|>ChhwlRK1Ko89*;5`N<WZf8K-gId_5CUFo1)4( z5qW4D0rmjD)}ZTqIltB8{Xec<(0&Uzpizg7*rYy>kJA^Ik0v>j^=z zorrvN$yjbQxEIJ;?m^)1L(9xnJ@fug+6HJY;~g`UQ0~W*pbfkOWc*h6W+yGXC;iY` z2IQ=z> Date: Sun, 24 Nov 2019 15:30:31 -0800 Subject: [PATCH 574/637] Remove callout for `IsModal` --- .../Areas/Editor/Views/Editor/Edit.cshtml | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml index c7e91ace..dc377852 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Edit.cshtml @@ -58,21 +58,25 @@
    -
    -
    - -

    Topic Information

    -
    -
    Content Type
    -
    @Model.Topic.ContentType
    -
    Topic ID
    -
    @Model.Topic.Id
    -
    Current
    -
    View Page
    -
    + @if (!Model.IsModal) { +
    +
    + +

    Topic Information

    +
    +
    Content Type
    +
    @Model.Topic.ContentType
    +
    Topic ID
    +
    @Model.Topic.Id
    +
    Current
    +
    View Page
    +
    + +
    -
    + } +
    From 60df9dd35394bda40e4a2b31edcb702ef73bd546 Mon Sep 17 00:00:00 2001 From: JeremyCaney Date: Sun, 24 Nov 2019 15:33:05 -0800 Subject: [PATCH 575/637] Update `IsModal` class names Use `modal-window` instead of `Modal` (`modal` is the **Bootstrap** class). Don't reapply `Modal` (or, now, `modal-window`) on child elements (such as `#PageContentArea`; that can be handled by a selector (e.g., `.modal-window #PageContentArea`). Use `modal-lg` to set **Bootstrap** to use the large modal window. --- .../Views/Editor/Components/NestedTopicList/Default.cshtml | 1 + .../Areas/Editor/Views/Shared/_Layout.cshtml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml index 4b99a0a2..3abf3c97 100644 --- a/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml +++ b/Ignia.Topics.Editor.Mvc/Areas/Editor/Views/Editor/Components/NestedTopicList/Default.cshtml @@ -115,6 +115,7 @@ else {